function MM_findObj(n, d) { //v4.01
	  var p,i,x;

	  if(!d) d=document;
	  if((p=n.indexOf("?"))>0&&parent.frames.length) {
			d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
	  }
	  if(!(x=d[n])&&d.all) x=d.all[n];

	  for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

	  if(!x && d.getElementById) x=d.getElementById(n);
	  return x;
}


function MM_showHideLayers() { //v6.0
	  var i,p,v,obj,args=MM_showHideLayers.arguments;
	  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
			if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
			obj.visibility=v;
	  }
}




function print() {

	var title;
	var content;
	var css;
	var newWindow;

	if (document.getElementById("content")){
		content= document.getElementById("content").innerHTML;
		
		content = content.replace('<TD class=look1_imgTd><IMG alt="" src="/vb/opencms/Resource/galleries/vbh/pics/CorporateIdentity/men.gif" border=0></TD>', '<TD></TD> ');
		content = content.replace('look1_table', 'look1_tablePrint');
		content = content.replace('look1_imgTd', 'nix style="visibility:hidden;display:none;" ');
		content = content.replace('look1_titleTd', 'look1_titleTdPrint');
		
		
	}

	if (document.getElementById("css")){
		css = document.getElementById('css').getAttribute('href');
	}
	newWindow=window.open('','','toolbar=no,location=no,status=no,scrollbars=yes,menubar=no,resizable=no,width=730,height=500');
	newWindow.document.write('<html><head><title></title><link rel="stylesheet" href="'+css+'" type="text/css" />');
	newWindow.document.write('</head><body class="printbody" style="margin-left:5px; margin-right:5px; margin-top:5px; margin-bottom:5px;">');
	//newWindow.document.write('<div id="footer" class="printfooter">');
	newWindow.document.write(content);
	//newWindow.document.write('</div>');
	newWindow.document.write(' ');
	
	newWindow.document.write('</body>');
	
	newWindow.document.write('</html>');
	newWindow.document.close();
	newWindow.focus();
	newWindow.print();

}


function info(id) {
	var content;
	var css;
	var newWindow;

	if (document.getElementById(id)){
		content= document.getElementById(id).innerHTML;

	}	


	if (document.getElementById("css")){
		css = document.getElementById('css').getAttribute('href');
	}
	
	newWindow=window.open('','','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=400,height=600');
	newWindow.document.write('<html><head><title></title><link rel="stylesheet" href="'+css+'" type="text/css" /></head><body>');
	newWindow.document.write('<div id="footer">');
	newWindow.document.write(content);
	newWindow.document.write('</div>');
	newWindow.document.write('</body>');
	newWindow.resizeTo(400,600);

}



function info(id, width, height) {

	var content;
	var css;
	var newWindow;
	if (document.getElementById(id)){
		content= document.getElementById(id).innerHTML;
	}	


	if (document.getElementById("css")){
		css = document.getElementById('css').getAttribute('href');
	}
	
	newWindow=window.open('','','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width='+width+',height=' + height);
	newWindow.document.write('<html><head><title></title><link rel="stylesheet" href="'+css+'" type="text/css" /></head><body>');
	newWindow.document.write('<div id="footer">');
	newWindow.document.write(content);
	newWindow.document.write('</div>');
	newWindow.document.write('</body>');
}

function productinfo(name){

	if (document.getElementById('productlist_all')){

		document.getElementById('productlist_all').style.visibility ='hidden';
		document.getElementById('productlist_all').style.display = 'none';
	}
	
	if (document.getElementById(name)){
			document.getElementById(name).style.visibility ='visible';
			document.getElementById(name).style.display = 'block';
	}

}

function look3info(name){

	if (document.getElementById('look3_all')){

		document.getElementById('look3_all').style.visibility ='hidden';
		document.getElementById('look3_all').style.display = 'none';
	}
	
	if (document.getElementById(name)){
			document.getElementById(name).style.visibility ='visible';
			document.getElementById(name).style.display = 'block';
	}

}
	
function show(name){
	var liste = document.getElementsByTagName("div");

	for (var i = 0; i < liste.length; i++) {
		var temp = liste[i].getAttribute('id');

		if ((temp !=null) && (temp != '') && ((temp.indexOf('location_') > -1) || (temp.indexOf('productpreviewdiv_') > -1))){
			document.getElementById(temp).style.visibility ='hidden';
			document.getElementById(temp).style.display = '';

		}
	}



	var visible  = document.getElementById(name).style.visibility;
	
	if (visible == 'hidden'){
		document.getElementById(name).style.visibility ='visible';
		document.getElementById(name).style.display = 'block';

	}else{
		document.getElementById(name).style.visibility ='hidden';
		document.getElementById(name).style.display = '';
	}
}

function callNav(id, url, max){
	
	for (i=0; i < max; i++){
		document.getElementById('cube_'+i).style.visibility ='visible';
		document.getElementById('cube_act_' +i).style.visibility ='hidden';
		document.getElementById('cube_' +i).style.display ='block';
		document.getElementById('cube_act_' +i).style.display= 'none';
	}
	
	document.getElementById('cube_' +id).style.visibility ='hidden';
	document.getElementById('cube_act_' +id).style.visibility ='visible';
	document.getElementById('cube_' +id).style.display ='none';
	document.getElementById('cube_act_' +id).style.display= 'block';
	
	document.location.href=url;

}

function openMailTo(index){

	if (index == '') index ='1';
	var a = '';
	var b = '';
	var c = '';
	
	if (document.getElementById("abc_"+index)){
		a = document.getElementById("abc_"+index).value;
	}
	
	if (document.getElementById("ups_"+index)){
		b = document.getElementById("ups_"+index).value;
	}
	
	if (document.getElementById("ist_"+index)){
		c = document.getElementById("ist_"+index).value;
	}
	
	
	var mail = a +'@'+ b + '.' + c;
	win = window.open('mailto:' + mail,''); 
	if (win && win.open &&!win.closed) win.close(); 

}

function openMailToLeftCol(index){

	if (index == '') index ='1';
	var a = '';
	var b = '';
	var c = '';
	
	if (document.getElementById("lCa_"+index)){
		a = document.getElementById("lCa_"+index).value;
	}
	
	if (document.getElementById("lCc_"+index)){
		b = document.getElementById("lCc_"+index).value;
	}
	
	if (document.getElementById("lCe_"+index)){
		c = document.getElementById("lCe_"+index).value;
	}
	
	
	var mail = a +'@'+ b + '.' + c;
	win = window.open('mailto:' + mail,''); 
	if (win && win.open &&!win.closed) win.close(); 

}



