if(navigator.platform.indexOf('Mac') != -1){document.write('<style>.topbar .tab b{font:bold 10px Arial;}</style>');}

var last=null;
var timeoutID='';
function klick(num){
clearTimeout(timeoutID);
var strCMD='klick_body(\''+num+'\');';
timeoutID=setTimeout(strCMD,1);
}

function klick_body(num){
var thiso=document.getElementById(num);
var color_sel=thiso.style.backgroundColor;
if(last){last.getElementsByTagName('b').item(0).style.borderBottom='1px solid #FFF';}
thiso.getElementsByTagName('b').item(0).style.borderBottom='1px solid '+color_sel;
document.getElementById('lowbar').style.backgroundColor=color_sel;
last=thiso;
var label='H-'+thiso.id;
document.getElementById('menu').innerHTML=document.getElementById(label).innerHTML;

}
function getUrlValue(what,iframe){
if(iframe==false){
if(what=='image'){if(tsLogo){return tsLogo;}else{return('/images/gfx/titles/tab01_default.gif');}}
if(what=='selected'){if(tsSelected){return tsSelected;}else{return('one');}}
if(what=='area_HP_link'){if(tsLogoLink){return tsLogoLink;}else{return('');}
}
}else{
var url=document.location.href;
if(url.indexOf(what)==-1){return;}
url=url.substring(url.indexOf(what)+what.length+1);
var end=(url.indexOf('&')!=-1)?url.indexOf('&'):url.length;
url=url.substring(0,end);
return (url);}
return null;
}

function logo(iframe){
var url=getUrlValue('area_HP_link',iframe);
var html=(url)?'<a href="'+url+'" alt="Tiscali logo">':'';
html+='<img src="'+getUrlValue('image',iframe)+'" alt="Tiscali Logo" id="logo">';
html+=(url)?'</a>':'';
document.write(html);
}

function w3cLinks(){
var anchors = document.getElementsByTagName("a"); 
for(i=0;i<anchors.length;i++){
anchors[i].target = "_top"; 
}
document.getElementById('searchForm').target="_top";
}

function setup(iframe){
w3cLinks();
var S=getUrlValue('selected',iframe);
klick_body(S);
}


