var MENU_DOWNLOAD='download';var SUBMENU_DOWNLOAD1='subdownload1';var INDEX_DOWNLOAD="/poker/scarica_gioca/scarica.html";var MENU_REGOLE='le_regole_generali';var SUBMENU_REGOLE1='subregole1';var INDEX_REGOLE="/poker/regole_generali/introduzione.html";var MENU_REGOLE_TEXAS='le_regole_del_texas_holdem';var SUBMENU_REGOLE_TEXAS1='subregoleTexas1';var INDEX_REGOLE_TEXAS="/poker/regole_texas/concettoGenerale.html";var MENU_LEZIONI='lezioni';var SUBMENU_LEZIONI1='sublezioni1';var SUBMENU_LEZIONI2='sublezioni2';var SUBMENU_LEZIONI3='sublezioni3';var SUBMENU_LEZIONI4='sublezioni4';var INDEX_LEZIONI="/poker/lezioni/requisiti_etichetta.html";var MENU_TORNEI='tornei';var SUBMENU_TORNEI1='subtornei1';var SUBMENU_TORNEI2='subtornei2';var INDEX_TORNEI="/poker/tornei/introduzione.html";var MENU_CONCORSO='concorso';var SUBMENU_CONCORSO1='subconcorso1';var INDEX_CONCORSO="/poker/concorso/granpremio_las_vegas.html";var MENU_GLOSSARIO='glossario';var SUBMENU_GLOSSARIO1='subglossario1';var INDEX_GLOSSARIO="/poker/glossario/index.html";var MENU_VIDEO='video';var SUBMENU_VIDEO1='subvideo';var INDEX_VIDEO="/poker/video/index.html";var MENU_LIBRO='libro';var SUBMENU_LIBRO1='sublibro1';var INDEX_LIBRO="/poker/libro/deToffoli.html";var MENU_NOSTRA_ROOM='pokerRoom';var SUBMENU_NOSTRA_ROOM1='subnostra_room1';var INDEX_NOSTRA_ROOM="/poker/poker_room/programmati_calendario_freeroll.html";var MENU_PROMOZIONI='promozioni';INDEX_PROMOZIONI="/poker/promozioni/promozioni.html";var MENU=[MENU_DOWNLOAD,MENU_PROMOZIONI,MENU_REGOLE,MENU_REGOLE_TEXAS,MENU_LEZIONI,MENU_TORNEI,MENU_CONCORSO,MENU_GLOSSARIO,MENU_VIDEO,MENU_LIBRO,MENU_NOSTRA_ROOM];var SUBMENU=[SUBMENU_DOWNLOAD1,SUBMENU_REGOLE1,SUBMENU_REGOLE_TEXAS1,SUBMENU_LEZIONI1,SUBMENU_LEZIONI2,SUBMENU_LEZIONI3,SUBMENU_LEZIONI4,SUBMENU_TORNEI1,SUBMENU_TORNEI2,SUBMENU_CONCORSO1,SUBMENU_GLOSSARIO1,SUBMENU_VIDEO1,SUBMENU_LIBRO1,SUBMENU_NOSTRA_ROOM1];var INDEX=[INDEX_DOWNLOAD,INDEX_PROMOZIONI,INDEX_REGOLE,INDEX_REGOLE_TEXAS,INDEX_LEZIONI,INDEX_TORNEI,INDEX_CONCORSO,INDEX_GLOSSARIO,INDEX_VIDEO,INDEX_LIBRO,INDEX_NOSTRA_ROOM];


function poker_switchMenu(el)
{for(var i in MENU)
{var oldClass='';var element='elements_'+MENU[i];var toggler='toggler_'+MENU[i];var page=INDEX[i];if(MENU[i]==el)
{try
{document.getElementById(toggler).style.fontWeight='bold';document.getElementById(toggler).className=oldClass+' bgMenuON';document.getElementById(element).style.display='block';}
catch(e){}}
else
{try
{document.getElementById(toggler).style.fontWeight='normal';document.getElementById(toggler).className=oldClass+' toggler';document.getElementById(element).style.display='none';}
catch(e){}}}}
function poker_switchSubMenu(el,elSub)
{poker_switchMenu(el);for(var i in SUBMENU)
{var element='elements_'+SUBMENU[i];var toggler='toggler_'+SUBMENU[i];if(SUBMENU[i]==elSub)
{try
{document.getElementById(toggler).style.fontWeight='bold';document.getElementById(element).style.display='block';}
catch(e){}}
else
{try
{document.getElementById(toggler).style.fontWeight='normal';document.getElementById(element).style.display='none';}
catch(e){}}}}

function download(downloadLink,redirectLink){var downloadLink="http://www.telegaming.org/giocodigitale/sw/GiocoDigitalePokerSetup.exe";var redirectLink="/poker/scarica_gioca/scarica.html";var isIe=(window.navigator.userAgent.toUpperCase().indexOf('MSIE')!=-1);var isFF=(window.navigator.userAgent.toUpperCase().indexOf('FIREFOX')!=-1);var isOpera=(window.navigator.userAgent.toUpperCase().indexOf('OPERA')!=-1);if(isIe&&!isOpera){dlWindow=window.open(downloadLink,'_blank','toolbar=0,location=no,directories=0,status=0,scrollbars=yes,resizable=1,width=1,height=1,top=0,left=0');}
if(isFF){window.open(downloadLink,'_blank','toolbar=0,location=no,directories=0,status=0,scrollbars=yes,resizable=1,width=1,height=1,top=0,left=0');}
document.location=redirectLink;return false;}


var periodo;var offset;var delay;var secs;var timerID=null;var timerRunning=false;function InitializeTimer()
{secs=periodo;StopTheClock();StartTheTimer();}
function StopTheClock()
{if(timerRunning)
clearTimeout(timerID);timerRunning=false;}
function StartTheTimer()
{if(secs==0)
{switchImage(index);self.status=secs;secs=periodo;timerRunning=true;timerID=self.setTimeout("StartTheTimer()",delay);}
else
{self.status=secs;secs=secs-1;timerRunning=true;timerID=self.setTimeout("StartTheTimer()",delay);}}
function rotateThumbnailFromClick(indice){if(index==((indice+1)%totalNum)){}
else{switchImage(indice);secs=offset;}}
function changeThumbnailMenu(indice){if(index==((indice+1)%totalNum)){}
else{altercontent(DIV_THUMBNAIL,thumbnail[indice]);}}
function switchImage(indice){if(bname=='Microsoft Internet Explorer'){new Effect.Fade(DIV_IMG,{duration:0.5,afterFinish:function(){altercontent(DIV_IMG,content[indice]);new Effect.Appear(DIV_IMG);}.bind(this)});changeThumbnailMenu(indice);}else{new Effect.Fade(DIV_IMG,{duration:0.5,afterFinish:function(){altercontent(DIV_IMG,content[indice]);new Effect.Appear(DIV_IMG);}.bind(this)});changeThumbnailMenu(indice);}
if(indice==(totalNum-1)){index=0;}else{index=indice+1;}}

