//#########################################
// © 2003-2004 Ralf H. Schübel / www.ad1.de
// jegliche Änderung am Quellcode dieses Dokumentes
// und seiner Bestandteile nur mit ausdrücklicher,
// schriftlicher Genehmigung.
//#########################################

wid = 624
hioffs = 20

function clerk(){
	
if(!window.wwi && document.body && document.body.offsetWidth) {
 window.onresize = reget;
	wwi = wiwi(); 
	whi = wihi();
}
	
		
	if(ie4) {dbow = document.body.offsetWidth-20;if(dbow<dbowmin) dbow = dbowmin;}
	if(n4)  {dbow = innerWidth-8; if(dbow<dbowmin) dbow = dbowmin;}
	if(n6) {dbow = innerWidth-16;if(dbow<dbowmin) dbow = dbowmin;}

	if(ie4) dboh = document.body.offsetHeight
	if(n4||n6)  dboh = innerHeight


	Lmin = 160
	Xo = ((dbow-wid)/3+(Lmin/2))
	if(Xo<Lmin) Xo = Lmin
	Yo = 155
	
	home ="<a href=\"index.php\"  onMouseOut=\"window.status=''\" onMouseOver=\"window.status='home'; return true\">"
	
	sw = ""
	
	sw+= "<div id=\"bg\" style=\"position:absolute;left:0px;top:0px;z-index:1;width:"+dbow+"px\">\n"
	sw+= "<img src=\"../p/bgrb.gif\" width=\""+dbow+"\" height=\"148\" alt=\"\">"
	sw+= "</div>"
	
	sw+= (n4) ? "<div id=\"illu\" style=\"position:absolute;left:-4px;top:37px;" : "<div id=\"illu\" style=\"position:absolute;left:0px;top:41px;" //>
	sw+= "z-index:17;width:"+dbow+"px;visibility:visible;background-image:url(../p/illu.jpg)\">"
	sw+= "<img src=\"../p/bl.gif\" width=\""+dbow+"\" height=\"98\" alt=\"\">"
	sw+= "</div>"
	sw+= "<div id=\"redhili\" style=\"position:absolute;left:0px;top:10px;z-index:16;visibility:hidden\">"
	sw+= "<img src=\"../p/hili.gif\" width=\"122\" height=\"36\" alt=\"\">"
	sw+= "</div>"
	sw+= ""
	sw+= "<div id=\"logo\" style=\"position:absolute;left:0px;top:0px;z-index:32\">"
	sw+= (pnr!=0) ? home : ""
	sw+= "<img src=\"../p/logo-rb.gif\" width=\"122\" height=\"108\" alt=\"Sound Workshop Stuttgart\" border=\"0\">"
	sw+= (pnr!=0) ? "</a>" : ""
	sw+= "</div>"
	sw+= ""
	sw+= "<div id=\"black\" style=\"position:absolute;left:176px;top:48px;width:560px;height:83px;clip:rect(0px 560px 82px 0px);z-index:14;visibility:hidden\">"
	sw+= ""
	sw+= "<div id=\"bgb\" style=\"position:absolute;left:0px;top:0px;z-index:12\"><img src=\"../p/clrstrp-0.jpg\" width=\"159\" height=\"83\" alt=\"\"></div>"
	sw+= ""
	sw+= "<div id=\"msk\" style=\"position:absolute;left:0px;top:0px;z-index:18\">"
	sw+= "<img src=\"../p/coordinata.gif\" width=\"600\" height=\"200\" alt=\"\">"
	sw+= "</div>"
	sw+= ""
	sw+= "<div id=\"bgs1\" style=\"position:absolute;left:0px;top:11px;z-index:22\"><img src=\"../p/clrstrp-1.jpg\" width=\"159\" height=\"1\" alt=\"\"></div>"
	sw+= "<div id=\"bgs2\" style=\"position:absolute;left:0px;top:27px;z-index:22\"><img src=\"../p/clrstrp-2.jpg\" width=\"159\" height=\"1\" alt=\"\"></div>"
	sw+= "<div id=\"bgs3\" style=\"position:absolute;left:0px;top:43px;z-index:22\"><img src=\"../p/clrstrp-3.jpg\" width=\"159\" height=\"1\" alt=\"\"></div>"
	sw+= "<div id=\"bgs4\" style=\"position:absolute;left:0px;top:59px;z-index:22\"><img src=\"../p/clrstrp-4.jpg\" width=\"159\" height=\"1\" alt=\"\"></div>"
	sw+= "<div id=\"bgs5\" style=\"position:absolute;left:0px;top:75px;z-index:22\"><img src=\"../p/clrstrp-5.jpg\" width=\"159\" height=\"1\" alt=\"\"></div>"
	for (i=1 ; i< subs.length ; i++){
		sw+= "<div id=\"sub"+i+"\" style=\"position:absolute;left:172px;top:"+eval("S"+i)+"px;z-index:23;width:280px\" class=\"no\">"+subs[i]+"</div>"
		if(n4){
			sw+= "<div id=\"subN"+i+"\" style=\"position:absolute;left:172px;top:"+eval("S"+i)+"px;visibility:hidden;z-index:24;width:280px\" class=\"nN\">"+subs[i]+"</div>"
		}
	}
	
	sw+= "</div>"
	sw+= ""
	sw+= ""
	sw+= ""
/*
	for (i=1 ; i< items.length ; i++){
		sw+= "<div id=\"N"+i+"\" style=\"position:absolute;left:"+eval("L"+i)+"px;top:20px;width:"+(items[i][1]+10)+";z-index:42\" class=\"nb\">"+items[i][0]+"</div>"
		if(n4){
			sw+= "<div id=\"N4"+i+"\" style=\"position:absolute;left:"+eval("L"+i)+"px;top:20px;width:"+(items[i][1]+10)+";visibility:hidden;z-index:43\" class=\"nb4\">"+items[i][0]+"</div>"
		}
	}
	
	sw+= ""
	sw+= "<div id=\"sens\" style=\"position:absolute;left:"+L1+"px;top:20px;z-index:52\">"
	sw+= "<a href=\"#\" onMouseout=\"window.status=''\" onMouseover=\"window.status='';return true\" onClick=\"if(ie4)this.blur();clk();return false\"><img src=\"../p/bl.gif\" width=\""
	sw+= rbnd[rbnd.length-1]-L1-Math.floor(offsub/2)
	sw+= "\" height=\"116\" alt=\"\" border=\"0\"></a>"
	sw+= "</div>"
*/	
	//sw+= "<div id=\"gaga\" style=\"position:absolute;left:0px;top:0px;width:200px;z-index:100\"></div>"
	
   sw+= "<div id=\"redII\" STYLE=\"position:absolute; top:166px; left:12px;\">"
// sw+= "<img src=\"../p/redplate.gif\" width=\"150\" height=\"215\" alt=\"\">"
// sw+= "<img src=\"../p/redplate.gif\" width=\"150\" height=\"184\" alt=\"\">"
   sw+= "<img src=\"../p/redplate.gif\" width=\"150\" height=\"154\" alt=\"\">"
   sw+= "<div id=\"kodat\" STYLE=\"position:absolute; top:8px; left:4px;\" class=\"ns\">"
   sw+= "<span class=\"nb\">Sound Workshop<br>Stuttgart GmbH i.L.</span><br><img src=\"../p/bl.gif\" width=\"1\" height=\"5\" alt=\"\"><br>"
 //  sw+= "Augsburger Strasse 560<br>"
 //  sw+= "70329 Stuttgart<br><img src=\"../p/bl.gif\" width=\"1\" height=\"5\" alt=\"\"><br>"
   sw+= "Telefon:<br><span class=\"nsb\">+49 (0)171 81 445 69</span><br><img src=\"../p/bl.gif\" width=\"1\" height=\"5\" alt=\"\"><br>"
   sw+= "Telefax:<br><span class=\"nsb\">+49 (0)711 45 950 25</span><br><img src=\"../p/bl.gif\" width=\"1\" height=\"5\" alt=\"\"><br>"
   sw+= "email:<br><span class=\"nsb\"><a href=\"mailto:info@soundworkshop.de\">info@soundworkshop.de</span></a><br><img src=\"../p/bl.gif\" width=\"1\" height=\"5\" alt=\"\"><br>"
   //sw+= "<span class=\"nsb\"><a href=\"#\" onMouseOut=\"window.status=''\" onMouseOver=\"window.status='Anfahrtskizze'; return true\" onClick=\"if(ie4||n6)this.blur();wop('anfahrt.html',762,516,'MAP');return false\">Anfahrtskizze</span></a><br><img src=\"../p/bl.gif\" width=\"1\" height=\"5\" alt=\"\"><br>"
   sw+= "<span class=\"nsb\"><a href=\"impressum.php\" onMouseOut=\"window.status=''\" onMouseOver=\"window.status='Impressum'; return true\" >Impressum</span></a><br><img src=\"../p/bl.gif\" width=\"1\" height=\"5\" alt=\"\"><br>"
/*
   sw+= "&#214;ffnungszeiten:<br><img src=\"../p/bl.gif\" width=\"1\" height=\"5\" alt=\"\"><br>"
   sw+= "Montag - Freitag:<br>"
   sw+= "<span class=\"nsb\">09:00 - 13:00 Uhr</span><br>"
   sw+= "und<br>	"
   sw+= "<span class=\"nsb\">14:00 - 18:00 Uhr</span><br><img src=\"../p/bl.gif\" width=\"1\" height=\"5\" alt=\"\"><br>"
   sw+= "Samstag:<br>"
   sw+= "<span class=\"nsb\">10:00 - 14:00 Uhr</span>"
*/   sw+= "<div id=\"ttp\" STYLE=\"position:absolute; top:276px; left:0px;visibility:hidden\">"
   sw+= "<a href=\"c"+pnr+".php\"><img src=\"../p/totop.gif\" width=\"134\" height=\"22\" alt=\"zum Seitenanfang\" border=\"0\"></a>"
   sw+= "</div>	"
   sw+= "</div>"
   sw+= "</div>"	


	return sw
}

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

function prospector(){
	
	if(ie4) coht = parseInt(document.all.cont.offsetHeight)
	if(n4) coht = parseInt(document.cont.clip.bottom)
	if(n6) coht = parseInt(document.getElementById('cont').offsetHeight)
	
	qtest = parseInt((coht/5-Math.floor(coht/5))*100)
	//  alert(qtest)
	switch(qtest){
		case 79:	coht = coht+1; break
		case 80:	coht = coht+1; break
		case 59:	coht = coht+2; break
		case 60:	coht = coht+2; break
		case 39:	coht = coht+3; break;
		case 40:	coht = coht+3; break;
		case 19:	coht = coht+4; break;
		case 20:	coht = coht+4; break;
	}
	
	if(coht<25) coht=25
	
	tbg = ""
	tbg+= "<div id=\"bgwt\" style=\"position:absolute;left:"+Xo+"px;top:"+Yo+"px;z-index:1;width:"+wid+"px\">\n"
	tbg+= "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\""+wid+"\">\n"
	tbg+= "<tr><td background=\"../p/tbgx.gif\"><img src=\"../p/bl.gif\" width=\""+wid+"\" height=\"24\" alt=\"\"></td></tr>\n"
	tbg+= "<tr><td background=\"../p/tbgy.gif\"><img src=\"../p/bl.gif\" width=\""+wid+"\" height=\""+coht+"\" alt=\"\"></td></tr>\n"
	tbg+= "<tr><td background=\"../p/tbgz.gif\"><img src=\"../p/bl.gif\" width=\""+wid+"\" height=\"25\" alt=\"\"></td></tr>\n"
	tbg+= "</table>\n"
	tbg+= "</div>"
	
	return tbg
	
}

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

function tbgwr (){
if(n4){
	document.toto.document.clear()
	document.toto.document.open()
	document.toto.document.write(tbg)
	document.toto.document.close()
	document.cont.visibility = "show"
	}
}

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

function ghost() {
	
eckstein = (n4) ? "hidden" : "visible"
	tara = "<DIV ID=\"cont\" STYLE=\"position:absolute;left:"+(Xo+hioffs)+"px;top:"+(Yo+hioffs)+"px;width:"+(wid-48)+"px; z-index:31;visibility:"+eckstein+";\" class=\"no\">"
	
	return tara
}

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


	