var stopMusic = 'true';


function menuRollOver(imgObj, lang){
	imgSrc = document.getElementById(imgObj).src;
	imgSrcLong = imgSrc.length;
	
	imgSrcSuffix = imgSrc.slice(-11);
	imgSrcRel = imgSrc.slice([imgSrcLong - 18]);
	imgSrcNoExt = imgSrcRel.slice(0,7);
	
	if(imgSrcSuffix == '_active.gif')
	{
		document.getElementById(imgObj).src = '../images/' + lang + '/' + imgSrcNoExt + '_normal.gif';
	}
	
	else
	{
		document.getElementById(imgObj).src = '../images/' + lang + '/' + imgSrcNoExt + '_active.gif';
	}


}

function openpopupWindow(popupURL, width, height)
{
   
   var w = width;
   var h = height;
   var l = Math.floor((screen.width-w)/2);
   var t = Math.floor((screen.height-h)/2);
   popupWindow = window.open(popupURL,"popupWindowDoc","scrollbars=no,location=no,toolbar=no,directories=no,status=no,resizable=no,height=" + height + ",width=" + width + ",top=" + t + ",left=" + l);
   popupWindow.blur();
}

	function playMusic()
			{
			
			if (stopMusic=='true')
			{
			
			document.getElementById('music').innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="0" height="0"><param name="movie" value="movies/sound.swf"><param name="quality" value="high"><embed src="movies/sound.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="0" height="0"></embed></object>';
			document.getElementById('controlMusic').className="controlMusicPause";
			stopMusic = 'false';
			
			}
			
			else 
			{
			
			document.getElementById('music').innerHTML="&nbsp;";
			document.getElementById('controlMusic').className="controlMusicPlay";
			stopMusic = 'true';
			
			}
			
			}
			
	function openMusic()
			{
			
			if (stopMusic=='true')
			{
			
			stopMusic = 'false';
			openpopupWindow('../music.html', 200, 120);
			 
			}
			
			else 
			{
			
			stopMusic = 'true';
			//popupWindow.close();
			}
			
			}
					
			
			
			