// Javascript Funktionen - tiscali.de - Version: 26.02.2004

// SKYSCRAPER

var platform = navigator.platform;
var version = navigator.appVersion;
var browser = navigator.appName;
var fullVersion = parseFloat(version.substring(version.indexOf("MSIE")+5,version.length));
var majorVersion = parseInt(''+fullVersion);
var bodyWidth = 0, bodyHeight = 0;

function getWidth(){
	if( typeof( window.innerWidth ) == 'number' ) {    //Non-IE
		bodyWidth = window.innerWidth;
	} 
	else {
		if( document.documentElement && ( document.documentElement.clientWidth ) ) {
			//IE 6+ in 'standards compliant mode'
			bodyWidth = document.documentElement.clientWidth;
		} 
		else {
			if( document.body && ( document.body.clientWidth ) ) {
				bodyWidth = document.body.clientWidth;
			}
		}
	}
	return(bodyWidth);
}

function adjustSkyScraper(){
	try{
		var bodyWidth=getWidth();
	 	if(bodyWidth < 925){
	    	document.getElementById('skyscraper').style.display = 'none';
			document.body.style.width='776px';
		}else{
			document.getElementById('skyscraper').style.display = 'inline';
			document.body.style.width='910px';
		}
	}
	catch(exception){}
}
	
	if((platform == "Win32") && (majorVersion < 6)){
		document.write('<style>.container{width:776px;display:inline;}');
		document.write('.skyscraper{float:none;display:inline;vertical-align:top;}');
		document.write('body{width:910px;}</style>');
	}
	
//Version 5.2 Rich Media
var magic2=Math.floor(Math.random() * 4573285835)
function makeSKY (sito, tags, dimw, dimh) {
now = new Date();
itstime = now.getTime();
site=sito+"/";
target=tags+"/ACC_RANDOM="+itstime+"/PAGEID="+magic2;
document.write('<IFRAME SRC="' + site + 'hserver' + target + '" NORESIZE ');
document.write('SCROLLING=NO HSPACE=0 VSPACE=0 FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0 WIDTH='+dimw+' HEIGHT='+dimh+'>');
document.write('<SCR' + 'IPT Language="JAVASCRIPT1.1" SRC="' + site + 'jnserver' + target + '">');
document.write('</SCR' + 'IPT>');
document.write('</IFRAME>');
}

// dynamisches submenue

var last=null;
function ChTab(inTab)
	{
	var color;
	var tab=new Array("menu1a", "menu1", "menu2", "menu3", "menu4", "menu5", "menu6");
	var clr=new Array("#DEEBF7", "#DEEBF7", "#DEEBF7", "#DEEBF7", "#DEEBF7", "#DEEBF7", "#DEEBF7");
	for(i=0; i<tab.length; i++)
		{
		if(inTab==tab[i])
			{
			color=clr[i];
			}
		}
	if(last)
		{
		last.style.borderBottom='0px solid #FFF';
		}
	document.getElementById('tab'+inTab).style.borderBottom='0px solid '+color; // ein Strich unter einem Bookmark/Reiter
	document.getElementById('lowbar').style.backgroundColor=color; // Farbenänderung der Navigationszeile
	last=document.getElementById('tab'+inTab);
	var label='H-'+inTab; // Das Zeigen der Navigation
	document.getElementById('lowbar').innerHTML=document.getElementById(label).innerHTML;
	}
	