
						 
						 
						 var amountkollektionpics = 21;
						 
						 function statustext(text){
						 		  window.status = text;
						 }
						 
						 var setstatus="";
						 var topnavpos="";
						 function currentstatustext(pos){
						 	if(pos != -2){  
						 		  if(pos == -1){
								  		 window.status = "HOME"
								  		 setstatus =  "HOME";
								       topnavpos = -1; 
								  }else{
								  		window.status = navelement[pos][0];
						 				  setstatus =  navelement[pos][0]; 		
								      topnavpos = pos;
								  }		
						 	}	
						 }
						 	  
						 function getstatus(){
						 		  window.status = setstatus;
						 }	  
						
						function changecolor(cell,color){
								 cell.bgColor=color;
								 
						}	  
		
						function checkBrowser() {
  								 this.agt=navigator.userAgent.toLowerCase();
  								 this.ver=navigator.appVersion;
  								 this.dom=document.getElementById?1:0;
  								 this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
  								 this.ie4=(document.all && !this.dom)?1:0;
  								 this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
  								 this.ns4=(document.layers && !this.dom)?1:0;
  								 this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5);
  								 this.moz=this.ns5;
  								 this.mac=(this.agt.indexOf("mac")!=-1);
  								 this.win=((this.agt.indexOf("win")!=-1) || (this.agt.indexOf("16bit")!=-1));
  								 return this;
						}	  
		
						browser = new checkBrowser();
						
						var prefix = "final/kollektion/";
						var predef = "final/";
						function present(id){
							resetImageStyle();
							document.images['show'].src = prefix +"kollektion"+id+"_big.jpg";
							image = document.getElementById('fader');
						  	setOpacity(image,0);
						  	fadeIn('fader',0);
							//document.images['thumb'+id].className="thumbnailActive";
						}
						
						function presentKollektion(src){
							resetImageStyle();
							document.images['show'].src = src;
							image = document.getElementById('fader');
						  	setOpacity(image,0);
						  	fadeIn('fader',0);
							//document.images['thumb'+id].className="thumbnailActive";
						}
						
						function togglePic(imgsrc){
							resetImageStyle();
							
							
							document.images['show'].src = predef+imgsrc;
							image = document.getElementById('fader');
						  	setOpacity(image,0);
						  	fadeIn('fader',0);
							//document.images['thumb'+id].className="thumbnailActive";
						}
						
						function togglePicShop_old(imgsrc){
							document.images['show'].src = imgsrc;
							//document.images['thumb'+id].className="thumbnailActive";
						}
						
						function togglePicShop(imgsrc) {
						  
						  document.images['show'].src = imgsrc;
						  image = document.getElementById('fader');
						  setOpacity(image,0);
						  fadeIn('fader',0);
						  
						}
						
						
						function preloadThumbs(){
							var lw=null;
							var _d="<html><head><title>PreLoading Pictures...</title><LINK rel=\"stylesheet\" href=\"ludvik.css\" type=\"text/css\"></head><body bgcolor=\"#D6D6D9\"><table width=100% height=100%><tr><td valign=middle align=center class=\"text\">PreLoading Pictures...</td></tr></table></body></html>";
							// popup a loading window showing the page is loading. See the HTML for the "loadwin.htm" code 
    						lw = window.open("", "_targetLW", "width=400,height=250");
    						lw.document.open();
							lw.document.write(_d);
							lw.document.close();
    						lw.focus(); 
							
							var imgObjsThumb = new Array(amountkollektionpics);
							for(i=0;i<amountkollektionpics;i++){
								imgObjsThumb[i] = new Image();
								imgObjsThumb[i].src = prefix +"kollektion"+(i+1)+".jpg";
							}
							lw.close();
							lw = null;
						}
						
						function resetImageStyle(){
							for(i=1;i<amountkollektionpics;i++){
								if(document.images['thumb'+i]){
									document.images['thumb'+i].className="thumbnail";
								}
							}
						
						}
						
						//navarea
						
						var kollektion = new Array();
						kollektion[0] = new Array("2008","index.php?top=0&sub=0");
						kollektion[1] = new Array("2007","index.php?top=0&sub=1");
						kollektion[2] = new Array("2006","index.php?top=0&sub=2");
						kollektion[3] = new Array("2005","index.php?top=0&sub=3");
						kollektion[4] = new Array("2004","index.php?top=0&sub=4");
						//kollektion[1] = new Array("kollektion2","#");
						
						var show = new Array();
						show[0] = new Array("videos","index.php?top=1&sub=0");
						//show[1] = new Array("show2","#");
						
						var shop = new Array();
						shop[0] = new Array("oberteile","index.php?top=2&sub=0");
						shop[1] = new Array("röcke & hosen","index.php?top=2&sub=1");
						shop[2] = new Array("jacken & m‰ntel","index.php?top=2&sub=2");
						shop[3] = new Array("accessoires","index.php?top=2&sub=3");
						//shop[1] = new Array("accessoires","#");
						
						var presse = new Array();
						presse[0] = new Array("labelportrait","index.php?top=2&sub=0");
						presse[1] = new Array("pressefotos","index.php?top=2&sub=1");
						presse[2] = new Array("referenzen","index.php?top=2&sub=2");
						
						var kontakt = new Array();
						kontakt[0] = new Array("email","index.php?top=3&sub=0");
						kontakt[1] = new Array("newsletter","index.php?top=3&sub=1");
                                                //kontakt[2] = new Array("jobs","index.php?top=4&sub=2");
						
						var navelement = new Array();
						navelement[0] = new Array("KOLLEKTION",kollektion);
						navelement[1] = new Array("SHOW",show);
						//navelement[2] = new Array("SHOP",shop);
						navelement[2] = new Array("PRESSE",presse);
						navelement[3] = new Array("KONTAKT",kontakt);
						
						var layerRef="null";
 						var styleSwitch="null";
						var anz = navelement.length;
						var currentnav = 1;
						if ((browser.ie4)||(browser.ie5)) {
								layerRef="document.all";
								styleSwitch=".style";
	
						}else if (browser.ns4){
								layerRef="document.layers";
								styleSwitch="";

						}else if (browser.dom){
								 layerRef="document.getElementById";
								 styleSwitch=".style";
						}
						
						
						function hideall(){
								 for(i=0;i<anz;i++){
								 		if(browser.dom){
														eval(layerRef+'("nav'+i+'")'+styleSwitch+'.visibility = "hidden"');
								 						
										}else{
								 	   		  			eval(layerRef+'["nav'+i+'"]'+styleSwitch+'.visibility = "hidden"');
								 		}
								 }		 
						}
						
						function display(id){
 							hideall();
							if(id != -1 && id != -2){	 
								 
  								 
								 if(browser.dom){	
								 						eval(layerRef+'("nav'+id+'")'+styleSwitch+'.visibility = "visible"');	
  								 }else{
	  							 	   					eval(layerRef+'["nav'+id+'"]'+styleSwitch+'.visibility = "visible"');
								}
  							}	
  						}
						
						
						
						function openit(layername){
							if(browser.dom){
					            eval(layerRef+'("'+layername+'")'+styleSwitch+'.display = "block"');
					              eval(layerRef+'("'+layername+'")'+styleSwitch+'.visibility = "visible"');
					           }else{
					                  eval(layerRef+'["'+layername+'"]'+styleSwitch+'.display = "block"');
					            eval(layerRef+'["'+layername+'"]'+styleSwitch+'.visibility = "visible"');
					           }
					    }
					
					    function closeit(layername){
					            if(browser.dom){
					            eval(layerRef+'("'+layername+'")'+styleSwitch+'.display = "none"');
					              eval(layerRef+'("'+layername+'")'+styleSwitch+'.visibility = "hidden"');
					           }else{
					                  eval(layerRef+'["'+layername+'"]'+styleSwitch+'.display = "none"');
					            eval(layerRef+'["'+layername+'"]'+styleSwitch+'.visibility = "hidden"');
					           }
					    }

						function closeall(layerprefix){
							var layer = document.getElementsByTagName("div");
							for (var i=0; i < layer.length; i++) {
								var currentlayerid = layer[i].getAttribute('id');
								if(currentlayerid.indexOf(layerprefix)>-1){
								  	closeit(currentlayerid);
								}	
								
							}		
						}	
					    
					    function switchblock(layername){
							closeall('article');
							openit(layername);
						}	
						
						function popup(hoehe,breite,url){
								 var name="popup";
								 var win=null;
								 LeftPosition = 10;
								 TopPosition = 10;
								 //LeftPosition=(screen.width)?(screen.width-breite)/2:10;
								 //TopPosition=(screen.height)?(screen.height-hoehe)/2:10;
								 
								 options='width='+breite+',height='+hoehe+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
								 if (browser.ns4){
								 	options='width='+breite+',height='+hoehe+',screenY='+TopPosition+',screenX='+LeftPosition+',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
								}
								//alert(options);
								winagb=window.open(url,name,options);
								winagb.focus();
								
						}
						
						function openKart(){
							var name="kart";
								 var win=null;
								 LeftPosition = 10;
								 TopPosition = 10;
								 //LeftPosition=(screen.width)?(screen.width-breite)/2:10;
								 //TopPosition=(screen.height)?(screen.height-hoehe)/2:10;
								 
								 options='width=390,height=500,top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
								 if (browser.ns4){
								 	options='width='+breite+',height='+hoehe+',screenY='+TopPosition+',screenX='+LeftPosition+',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
								}
								//alert(options);
								winkart=window.open('kartcheck.php',name,options);
								winkart.focus();	
							
						}	
						
						function target(url){
							window.opener.location.href = url;	
						}	
						
						function setDelivery(){
							document.forms[0].isdelivery.value = "true";	
						}	
						
						function switchByBlock(){
							var layername = "deliveryarea";
							var layerdisplay;
							var layervis;
							if(browser.dom){
					            layerdisplay = eval(layerRef+'("'+layername+'")'+styleSwitch+'.display');
					            layervis = eval(layerRef+'("'+layername+'")'+styleSwitch+'.visibility');
					         }else{
					            layerdisplay = eval(layerRef+'["'+layername+'"]'+styleSwitch+'.display');
					            layervis = eval(layerRef+'["'+layername+'"]'+styleSwitch+'.visibility');
					          }	
							//alert(layerdisplay+" "+layervis);
							if(layerdisplay == "block" && layervis == "visible"){
								document.forms['order'].isdelivery.value = "false";
								closeit('deliveryarea');	
								
							}else{
								document.forms['order'].isdelivery.value = "true";
								openit('deliveryarea');
								
							}		
							
						}	
						
						function switchBlock(layername){
							
							var layerdisplay;
							var layervis;
							if(browser.dom){
					            layerdisplay = eval(layerRef+'("'+layername+'")'+styleSwitch+'.display');
					            layervis = eval(layerRef+'("'+layername+'")'+styleSwitch+'.visibility');
					         }else{
					            layerdisplay = eval(layerRef+'["'+layername+'"]'+styleSwitch+'.display');
					            layervis = eval(layerRef+'["'+layername+'"]'+styleSwitch+'.visibility');
					          }	
							//alert(layerdisplay+" "+layervis);
							if(layerdisplay == "block" && layervis == "visible"){
								closeit(layername);	
								
							}else{
								
								openit(layername);
								
							}		
							
						}	
						
						function setOpacity(obj, opacity) {
						  opacity = (opacity == 100)?99.999:opacity;
						  
						  // IE/Win
						  obj.style.filter = "alpha(opacity:"+opacity+")";
						  
						  // Safari<1.2, Konqueror
						  obj.style.KHTMLOpacity = opacity/100;
						  
						  // Older Mozilla and Firefox
						  obj.style.MozOpacity = opacity/100;
						  
						  // Safari 1.2, newer Firefox and Mozilla, CSS3
						  obj.style.opacity = opacity/100;
						}
						
						function fadeIn(objId,opacity) {
						    
							if (document.getElementById) {
						    
						  	obj = document.getElementById(objId);
						    if (opacity <= 100) {
						      setOpacity(obj, opacity);
						      opacity += 10;
						      window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 100);
						    }
						  }
						}
						
						
						var preImages = new Array();
						var loaded = new Array();
							
						function loadImages() {
							var imgLen = images.length;
							
							for (i = 0; i < imgLen; i++) {
								preImages[i] = new Image();
								preImages[i].src = images[i];
								loaded[i] = 0;
								
							}
							
							checkLoad();
							
						}
						function checkLoad() {
							var imgLen = images.length;
							
							for (i = 0; i < imgLen; i++) {
								if (!loaded[i] && preImages[i].complete) {
									loaded[i] = 1;
									checkLoad();
									return;
								}
							}
							setTimeout("checkLoad()",10);
						}

							