
function switchImg( obj )
{
    var temp = obj.getAttribute( 'src' );
    obj.setAttribute( 'src', obj.getAttribute( 'hover' ) );
    obj.setAttribute( 'hover', temp );
}

function menuSwitch( obj )
{
    switchImg( obj );
}

function ready()
{
        
}

function radioSwitch( obj )
{
    var buttons = obj.parentNode.parentNode.parentNode.getElementsByTagName( 'img' );
    for( i=0; i < buttons.length; i++ )
    {
        if( buttons[i].getAttribute( 'state' ) == 1 )
        {
            switchImg( buttons[i] );
            buttons[i].setAttribute( 'state', 0 );
        }
    }
    
    switchImg( obj );
    obj.setAttribute( 'state', 1 );
    
    var radio = obj.parentNode.getElementsByTagName( 'input' );
    radio = radio[0];
    radio.checked = true;
}

function submitClick( obj )
{
    switchImg( obj );
    
    /* Submit code implement here... */
        
}

/* JQuery use from pngfix only!!! */

jQuery(document).ready
(
    function()
    { 
            jQuery(document).pngFix(); 
    }
);
