
function toggleIn(id,s) {	
	if (document.getElementById(id)) {
		document.getElementById(id).style.display ='block';
	}
	if (document.getElementById(id+'a')) {
		document.getElementById(id+'a').className = s ;
	}
}

function toggleOut(id,s) {
	if (document.getElementById(id)) {
		document.getElementById(id).style.display ='none';
	}
	if (document.getElementById(id+'a')) {
		document.getElementById(id+'a').className = s ;
	}
}

function toogleInPict (txt,id,s,b,r) {

	//zoomOut();

	for (var i=0; i<=6; i++ ) {
		if (document.getElementById('mini'+i)) {
			//document.getElementById('mini'+i).style.border = '1px solid #c5c5c5';
			document.getElementById('mini'+i).className = "prodpictklein";
		}
	}

	if (document.getElementById('mini'+r)) {
		//document.getElementById('mini'+r).style.border="1px solid #777777";
		document.getElementById('mini'+r).className = "prodpictklein aktiv";
	}

	if (document.getElementById('pict'+id)) {
			document.getElementById('pict'+id).src='media/'+s;
	}

	if (document.getElementById('txt'+id)) {
		document.getElementById('txt'+id).innerHTML=txt;
	}
	if (document.getElementById('bigclock')) {
	//if (document.getElementById('big'+id)) {
		//document.getElementById('big'+id).innerHTML=b;
		document.getElementById('bigclock').href='media/'+b;
		document.getElementById('bigclock1').href='media/'+b;
	}



}

function makewinpict(w,h,pict,name) {

	var opts = 'width=' + w + ',height=' + h + ',scrollbars=no,directories=no,status=no,location=no,toolbar=no';
	var sourcewin = window.open('','source',opts)

	sourcewin.document.write('<HTML>')
	sourcewin.document.write('<HEAD>')
	sourcewin.document.write('<TITLE>Ansicht '+document.getElementById('txt'+pict).innerHTML+'</TITLE>')
	sourcewin.document.write('<link href="style.css" rel="stylesheet" type="text/css"  />');
	sourcewin.document.write('<meta http-equiv="imagetoolbar" content="no" />');
	sourcewin.document.write('</HEAD>')
	sourcewin.document.write('<BODY class="winbody" onload="self.focus();">')
	sourcewin.document.write('<center>')
	sourcewin.document.write('<div style="margin-top:20px;height:550px;">')
	sourcewin.document.write('<img height="550" src="')
	sourcewin.document.write('media/')
	sourcewin.document.write(document.getElementById('big'+pict).innerHTML)
	sourcewin.document.write('"></img>')
	sourcewin.document.write('</div>')
	sourcewin.document.write('<p style="font-size:16px;margin-top:10px;">'+document.getElementById('txt'+pict).innerHTML+'</p>')
	sourcewin.document.write('<p><a href="javascript:self.close();">Fenster schliessen</a></p>')
	sourcewin.document.write('</center>')
	sourcewin.document.write('</BODY>')
	sourcewin.document.write('</html>')
	sourcewin.document.close()
}

function nlWindow(url,winName,features) {
   loc = url+'?email='+document.nl.email.value+'&name='+document.nl.name.value+'&cat='+document.nl.cat.value+'&action='+document.nl.action.value;
   sourcewin = window.open(loc,winName,features);
}

var browserName = navigator.appName;
var browserVer = parseInt(navigator.appVersion);
var version = "";
var msie4 = (browserName == "Microsoft Internet Explorer" && browserVer >= 4);
//if ((browserName == "Netscape" && browserVer >= 3) || msie4 || browserName=="Konqueror" || browserName=="Opera") {
//	version = "n3";
//} else {
//	version = "n2";
//}
// Blurring links:
function blurLink(theObject)	{	//
	if (msie4)	{theObject.blur();}
}


