function DynamicMenuHelper(id) 
{
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) 
        {
		if (document.getElementById('menuItem'+i)) {document.getElementById('menuItem'+i).style.display='none';}
	}
        if (d) {d.style.display='block';}
}

function OpenDownPoker(loc)
{        
         document.location.href = "/" + sLang +"/download_short.htm";  
        url= "/PokerInstaller?" +sCut + "&dl="+loc;
        window.open(url,"popDown","width=1,height=1,top=0,left=0");
}
 
function OpenDownPokerPt(loc)
{        
        document.location.href = "http://www.pacificpoker.com/en/download_short.htm?dl=" + loc;
        url= "/PokerInstaller?" +sCut + "&dl="+loc;
        window.open(url,"popDown","width=1,height=1,top=0,left=0");
}
 
 function showFlash(path)
 {
    var flashPath= path + 'flash_main_image.swf';
    var imgPath= path + 'flash_main_image.jpg';
    
    if (MM_FlashCanPlay)
    {
        document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="519" height="201" id="888" align="middle" VIEWASTEXT>');
        document.write('<param name="movie" value="' + flashPath + '" />');
        document.write('<param name="quality" value="high" />');
        document.write('<param name="bgcolor" value="#007e3a" />');

        document.write('<embed src="'+ flashPath +  '" quality="high" bgcolor="#007e3a" width="519" height="201" name="main888" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
        document.write('</object>');
     }
    else
    {
         document.write('<img border=0 src="' + imgPath + '">');   
    }
  }
