support = "www.ad1.de";

// ################################### //

USA=navigator.userAgent.toUpperCase();
//alert(USA)

ie4 = (document.all) ? 1 : 0
n4 = ((navigator.userAgent.indexOf("Mozilla/4") >= 0) && (navigator.appName=="Netscape")) ? 1 : 0 ;
nodom = 0;

ff = (USA.indexOf("FIREFOX") >= 0) ? 1 : 0 ;
n6 = (USA.indexOf("GECKO") >= 0) ? 1 : 0 ;
ie = (USA.indexOf("MSIE") >= 0) ? 1 : 0 ;
ie6 = (USA.indexOf("MSIE 6") >= 0) ? 1 : 0 ;

dom = (document.getElementById) ? 1 : 0 ;
if(dom){
	ie4 = 0;
} else {
	nodom = 1;
}

// alert(ff+" - "+n6+" - "+ie4+" - "+dom)

// ################################### //

var cr=0; var cor=support.split(""); for(var i=0; i<cor.length;i++)cr+=cor[i].charCodeAt(0); cr+=""; ky=parseInt(cr.substr(1,2));

// ################################### //

function prep(pObj,pSrc){
	if(document.images){
		eval(pObj+' = new Image()');
		eval(pObj+'.src = "'+pSrc+'"');
	}
}

prep('P20','../p/headline_01-2_o.gif');
prep('P21','../p/headline_01-2_x.gif');
prep('P30','../p/headline_01-3_o.gif');
prep('P31','../p/headline_01-3_x.gif');
prep('P40','../p/headline_01-4_o.gif');
prep('P41','../p/headline_01-4_x.gif');

// ###################################### //

function px(id,st){
	document.images["P"+id].src = eval("P"+id+st).src;
}

// ################################### //

function style(css){cyc=0;re="";ret="";for(var i=0;i<css.length;++i){cyc++;if(cyc==1){re+=(parseInt(css.slice(i,i+2),16)-ky);ret+= String.fromCharCode(re);}if(cyc==2){cyc=0;re="";}}return ret;}

// ###################################### //

var itm = "popup";
	
function hinmit(){
	if(!jf){
		scw = screen.width-10
		sch = screen.height-48
	
		if (navigator.cookieEnabled == true){
			if(dom && !ie6){
				document.getElementById(itm).style.left = (scw/2)-(700/2)+"px";/*
				document.getElementById(itm).style.top = (sch/3)-(368/2)+"px";*/
				document.getElementById(itm).style.display = "block";
			}
			/* ie6 zeigt die Transparenz bei pngs nicht. Der iepngfix.htc-hack funktioniert hier auch nicht, weil dadurch die Links 'abgedeckt' und somit unbedienbar werden. Alo kein Pop_up für IE6!
			if(ie4){
				document.all[itm].style.display = "block";
			}
			*/
			//if(n4) document.itm.visibility = "show"
		}
	}
}

// ###################################### //

function wegmit(){

	if(dom) document.getElementById(itm).style.display = "none"
	if(ie4) document.all[itm].style.display = "none"
	//if(n4) document.itm.visibility = "hide"
}

// ###################################### //
