//browsererkennung
var isMinNS4 = (navigator.appName.indexOf("Netscape") >= 0 && parseFloat(navigator.appVersion) >= 4&&parseFloat(navigator.appVersion) < 5) ? 1 : 0;
var isMinNS6 = (isMinNS4 && navigator.userAgent.indexOf("Gecko")>=0) ? 1 : 0;
var isMinIE4 = (document.all) ? 1 : 0;
var isMinIE5 = (isMinIE4 && navigator.appVersion.indexOf("5.")) >= 0 ? 1 : 0;
var isDOM = (document.getElementById) ? 1 : 0;
var isMac = (navigator.appVersion.indexOf("Mac",0) >= 0) ? 1 : 0;
var isOpera = (navigator.userAgent.toLowerCase().indexOf('opera') >= 0) ? 1 : 0;

function changer(imgid, imgurl)
{
	eval('document.images.' + imgid + '.src = "' + imgurl + '"');
}




//   ******* BILDER AKTIVIEREN
function imgOn(imgName) {
	if (isDOM) {
		//alert('dom');
		document.getElementById(imgName).src = eval(imgName+"on.src");
		} else {
		//alert('nodom');
		document[imgName].src=eval(imgName+"on.src");
		}
	}
	
//   ******* BILDER DEAKTIVIEREN
function imgOff(imgName) {
	if (isDOM) {
		document.getElementById(imgName).src = eval(imgName+"off.src");
		} else {
		document[imgName].src=eval(imgName+"off.src");
		}
	}

//   ******* BILDERWECHSEL
function changer(imgid, imgurl)
{
	eval('document.images.' + imgid + '.src = "' + imgurl + '"');
}
	



//   ******* BILDER ANZEIGEN
function ShowLayer(LayerName)
 {  if ((ns6)||(ie5)||(ie6)||(opera))
       { document.getElementById(LayerName).style.visibility="visible"; 
       }
    if (ns4)
       { document.layers[ LayerName ].visibility="visible";
       }
    if (ie4)
       { document.all[ LayerName ].style.visibility="visible";
       }
 }

//   ******* BILDER AUSBLENDEN
function HideLayer(LayerName)
 {  if ((ns6)||(ie5)||(ie6)||(opera))
       { document.getElementById(LayerName).style.visibility="hidden";
       }
    if (ns4)
       { document.layers[ LayerName ].visibility="hidden";
       }
    if (ie4)
       { document.all[ LayerName ].style.visibility="hidden";
       }
 }
		

// ******PORTFOLIO HIGH RES
function portfolioHIGH()
{
	//breite = (screen.availWidth);
   	//hoehe = (screen.availHeight);
   	//fensterProps = "top=0,left=0,width="+breite+",height="+hoehe+",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1";
	//window.open("../portfolio/highRes.html","ILAN HAMRA PORTFOLIO HIGH RES",fensterProps);
	window.open('../portfolio/lowRes.html', 'winhigh','width='+screen.width+',height='+screen.height+',left=0,top=0,directories=0,status=0,scrollbars=1,resizable=1,menubar=0,locationbar=0');

}
	

// ******PORTFOLIO LOW RES
function portfolioLOW()
{
	//breite = (screen.availWidth);
   //	hoehe = (screen.availHeight);
   	//fensterProps = "top=0,left=0,width="+breite+",height="+hoehe+",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1";
	//window.open('../portfolio/lowRes.html','ILAN HAMRA PORTFOLIO HIGH RES',fensterProps);
	window.open('../portfolioLOW/index.html', 'winlow', 'width='+screen.width+',height='+screen.height+',left=0,top=0,directories=0,status=0,scrollbars=1,resizable=1,menubar=0,locationbar=0');

}
