function swapImage(obj) {
    var imgPath     = obj.childNodes[0].src;
    var dotPos      = imgPath.lastIndexOf(".");
    var status      = imgPath.substr(dotPos-2, 2);
    var pathStart   = imgPath.substr(0, dotPos-2);
    var pathEnd     = imgPath.substr(dotPos, imgPath.length-dotPos);
    
    if(status == 'lo') {
        obj.childNodes[0].src = pathStart + 'hi' + pathEnd;
    } else {
        obj.childNodes[0].src = pathStart + 'lo' + pathEnd;
    }
}

function openWin (url,scrolling) {
    myWin = window.open(url, "wis", "width=500,height=400,scrollbars="+scrolling);
    myWin.focus();
}

function showFlashMovie (path, width, height) {

    var mode = 1;
    
    config 				= 	new Array();
    config[0]			=	new Array();
    config[0]['object']	=	'<param name="wmode" value="opaque" />';
    config[0]['embed']	=	' wmode="opaque"';
    config[1]			=	new Array();
    config[1]['object']	=	'';
    config[1]['embed']	=	'';
    
    if (showFlashMovie.arguments.length > 3) { mode = 0; } 
    
    document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" bgcolor="" width="' + width + '" height="' + height + '">');
    document.write ('<param name="movie" value="' + path + '" />');
    document.write ('<param name="play" value="true" />');
    document.write ('<param name="loop" value="true" />');
    document.write (config[mode]['object']);
    document.write ('<param name="scale" value="noscale" />');
    document.write ('<param name="menu" value="true" />');
    document.write ('<param name="quality" value="high" />');
    document.write ('<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"  src="'+ path +'" bgcolor="" width="' + width + '" height="' + height + '" play="true" loop="true" '+ config[mode]['embed'] +' scale="noscale" menu="true" quality="high" />');
    document.write ('</object>');

}