//#########################################
// © 2002 Ralf H. Schübel / www.ad1.de
// jegliche Änderung am Quellcode dieses Dokumentes
// und seiner Bestandteile nur mit ausdrücklicher,
// schriftlicher Genehmigung.
//#########################################
PLAFO=navigator.platform.toUpperCase().substring(0,3);
// ################################### //
USA=navigator.userAgent.toUpperCase();

ie4 = ((USA.indexOf("MSIE 4") > 0) || (USA.indexOf("MSIE 5") > 0) || (USA.indexOf("MSIE 6") > 0) || (USA.indexOf("MSIE 7") > 0) && (USA.indexOf("Opera") < 0)) ? 1 : 0
ie4m = ((USA.indexOf("MSIE 4") > 0) && (PLAFO=="MAC"))
n4 = ((USA.indexOf("MOZILLA/4") >= 0) && (navigator.appName=="Netscape")) ? 1 : 0
n6 = (USA.indexOf("GECKO") > 0) ? 1 : 0
op = (navigator.userAgent.indexOf("OPERA") > 0) ? 1 : 0
// ################################### //
// alert(PLAFO+" "+USA)
// ################################### //
jetzt = new Date();
TagInWoche = jetzt.getDay();
var Wochentag = new Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag");
Tag = jetzt.getDate();
then = new Date(2002,8,11,21,0,0);
X = then.getTime();
bisX = X - jetzt.getTime();
// ################################### //
scah = screen.availHeight
scaw = screen.availWidth
sch = screen.height
scw = screen.width
var keep = 0
var keeper = 0
var nohid = 0
// ################################### //
function reget(){
if(n4){
 me = this.location.href;
 this.location.href = me;
}}
// ################################### //

function stych(){
	void(null);
}

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

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

prep('LR0','../p/LaniR.gif')
prep('LR1','../p/LR1.gif')
prep('LR2','../p/LR2.gif')
prep('LR3','../p/LR3.gif')
prep('LR4','../p/LR4.gif')
prep('LR5','../p/LR5.gif')
prep('LR6','../p/LR6.gif')
prep('LR7','../p/LR7.gif')

prep('it101o','p/Tago.gif')
prep('it101x','p/Tagx.gif')
prep('it102o','../p/MFo.gif')
prep('it102x','../p/MFx.gif')
prep('it1o','../p/it1o.gif')
prep('it1x','../p/it1x.gif')
prep('it2o','../p/it2o.gif')
prep('it2x','../p/it2x.gif')
prep('it3o','../p/it3o.gif')
prep('it3x','../p/it3x.gif')
prep('it4o','../p/it4o.gif')
prep('it4x','../p/it4x.gif')
prep('it5o','../p/it5o.gif')
prep('it5x','../p/it5x.gif')
prep('it6o','../p/it6o.gif')
prep('it6x','../p/it6x.gif')
prep('it7o','../p/it7o.gif')
prep('it7x','../p/it7x.gif')
prep('it8o','../p/it8o.gif')
prep('it8x','../p/it8x.gif')
prep('it9o','../p/it9o.gif')
prep('it9x','../p/it9x.gif')
prep('it10o','../p/it10o.gif')
prep('it10x','../p/it10x.gif')
prep('it11o','../p/it11o.gif')
prep('it11x','../p/it11x.gif')
prep('it12o','../p/it12o.gif')
prep('it12x','../p/it12x.gif')
prep('it13o','../p/it13o.gif')
prep('it13x','../p/it13x.gif')


// ################################### //
// ################################### //
/*fix
	weite = 1016
	hoehe = 712
*/
	weite = scaw; // 1016
	hoehe = scah - 30; // 712

function wop(lg){
	
	//	weite = (scw>=1024) ? 1016 : 632
	//	hoehe = (scw>=1024) ? 712 : 426
	

// if((PLAFO=="MAC")&&(ie4))hoehe = 712 - 28
	
	Li = Math.floor(((scw-8)-weite)/2)
	Ob = Math.floor(((sch-54)-hoehe)/2)
	// alert(Ob); alert(weite); alert(hoehe); alert(Li)
	
	eval("window.open(\""+lg+"/index.php\",\"CNVS\",\"scrollbars=no,toolbars=no,status=no,resizeable=no,width="+weite+",height="+hoehe+",left="+Li+",top="+Ob+"\")")
	
}
// ################################### //
// ################################### //

wits = new Array(
"",
new Array("db1_2008", 1551, 228) , 
new Array("db2_2008", 2268, 228) ,
new Array("db3_2008", 2268, 228) ,
new Array("suhrkamp", 2181, 228) ,
new Array("sono1_Anzeigen_2008", 1034, 228) ,
new Array("sono2_Broschueren_2008", 1434, 228) ,
new Array("Yamaha_PA", 1493, 228) ,
new Array("Yamaha_CA_2008", 1490, 228) ,
new Array("Yamaha_Salesman_2008", 854, 228) ,
new Array("Staehle_2008", 963, 228) ,
new Array("Marabu_2008_2", 1702, 228) ,
new Array("Columbus_2008", 1701, 228) ,
new Array("gerriets", 875, 198) ,
new Array("mailform", 444, 246)
)

tgo = 1;
detail_keeper = 0;

function wopit(twit,twow,twoh){
	if(tgo==1){
		a = twit
		b = twow
		c = twoh
		tgo = 0
		wops = window.setTimeout("wopsit(a,b,c)",77)
	}
}

function wopsit(wit){
	
	// cleanup();
	
	
	wow = wits[wit][1];
	woh = wits[wit][2];	
	yn = (wow > 990) ? "yes" : "no";

	if(ie4) wow = wow+8
	if(n4) wow = wow+20
	itscr = (wit==14) ? "MSC" : "ITSC"
	woLi = Math.floor(((scw-8)-wow)/2)-20
	wOb = 500 // Math.floor(((sch-54)-woh)/2)
	// alert(Ob); alert(weite); alert(hoehe); alert(Li)
//	eval("window.open(\""+wits[wit][0]+".html\",\""+itscr+"\",\"scrollbars="+yn+",toolbars=no,status=no,width="+wow+",height="+woh+",left="+woLi+",top="+wOb+"\")")
	tgo = 1
	
	if(document.getElementById){
		document.getElementById("detail_"+ wit).style.visibility = "visible";
		detail_keeper = wit;
	}
	
}
// ################################### //
// ################################### //

delay = 1
var stop = 0
halt = 0
Yw = scaw - 116; // 834;
sti = 0
var RayL, cowt

function ini(){
	if(ie4) cowt = (document.all.ctnt.offsetWidth + 32)
	if(n4) cowt = (document.cont.document.ctnt.clip.right + 32)
	if(n6) { cowt = Math.floor(document.getElementById("ctnt").style.width.replace(/px/,"")); cowt += 32 }
}


function slix(stp){
	
	window.clearTimeout(RayL)
	steps = stp
	
	
	if(steps>0){
		steps = (sti<-21) ? steps : (sti<-8) ? 7 : 1
		if	(sti==0) stop = 1
	}
	
	if(steps<0){
		steps = (sti>(21-cowt)) ? steps : (sti>(8-cowt)) ? -7 : -1
		if	(sti==-cowt) stop = 1
	}
	
	
	
	if(stop==0){
		
		Yw = Yw+steps
		
		
		if(ie4){
			document.all.ctnt.style.left = Yw
		}
		
		if(n4){
			document.cont.document.ctnt.left = Yw
		}
		if(n6){
			//alert(steps)
			document.getElementById("ctnt").style.left = Yw
		}
		
		sti = sti+steps
		RayL = window.setTimeout("slix(steps)", delay)
		
	}
	
}

function pz(){
	stop =1
	window.clearTimeout(RayL)
	if(ie4) document.images.LR.src = LR0.src
	if(n4) document.nav.document.images.LR.src = LR0.src
	
}

function zp(zpid){
	
	if(ie4) document.images.LR.src = eval("LR"+zpid+".src")
	if(n4) document.nav.document.images.LR.src = eval("LR"+zpid+".src")
	
	
}

// ################################### //
function imov(ip){
	
	keep = ip
	nohid = 1
	
	lco = "document.toto.document."
	
	if(ip<100){
		if(ie4) document.all["t"+ip].style.zIndex = 22
		if(n6) document.getElementById("t"+ip).style.zIndex = 22
		if(n4) document.cont.document.ctnt.document["t"+ip].zIndex = 22
		
	}
	
	if(ie4||n6) document.images["IT"+ip].src = eval("it"+ip+"x.src")
	
	if(n4) {
		if(pnr==1)eval("document.cont.document.ctnt.document.t"+ip+".document.images.IT"+ip+".src = it"+ip+"x.src")
		if(pnr==0)eval("document.images.IT"+ip+".src = it"+ip+"x.src")
	}
}
// ################################### //
function imut(){
	nohid = 0
	
	if(keep<100){
		if(ie4) document.all["t"+keep].style.zIndex = 11
		if(n6) document.getElementById("t"+keep).style.zIndex = 11
		if(n4) document.cont.document.ctnt.document["t"+keep].zIndex = 11
	}
	
	if(ie4||n6) document.images["IT"+keep].src = eval("it"+keep+"o.src")
	if(n4) {
		if(pnr==1)eval("document.cont.document.ctnt.document.t"+keep+".document.images.IT"+keep+".src = it"+keep+"o.src")
		if(pnr==0)eval("document.images.IT"+keep+".src = it"+keep+"o.src")
	}
	
	
}
// ################################### //

