///////////////////////////////////////////////// JavaScript Library                        //// (c) 2002 Attila Sirman Digital Consulting //// last modified 18.01.2006                  /////////////////////////////////////////////////// window positionself.moveTo(0,0);self.resizeTo(screen.availWidth,screen.availHeight);// load images in navigationif (document.images) {//on images  artists_on = new Image();  artists_on.src = "./img/menu/artists_on.gif";  about_on = new Image();  about_on.src = "./img/menu/about_on.gif";  books_on = new Image();  books_on.src = "./img/menu/books_on.gif";          consulting_on = new Image();  consulting_on.src = "./img/menu/consulting_on.gif";          contact_on = new Image();  contact_on.src = "./img/menu/contact_on.gif";          einzel_on = new Image();  einzel_on.src = "./img/menu/einzel_on.gif";          faq_on = new Image();  faq_on.src = "./img/menu/faq_on.gif";          press_on = new Image();  press_on.src = "./img/menu/press_on.gif";          projects_on = new Image();  projects_on.src = "./img/menu/projects_on.gif";          services_on = new Image();  services_on.src = "./img/menu/services_on.gif";          link_on = new Image();  link_on.src = "./img/menu/link_on.gif";          //off images  artists_off = new Image();  artists_off.src = "./img/menu/artists_off.gif";  about_off = new Image();  about_off.src = "./img/menu/about_off.gif";  books_off = new Image();  books_off.src = "./img/menu/books_off.gif";  consulting_off = new Image();  consulting_off.src = "./img/menu/consulting_off.gif";  contact_off = new Image();  contact_off.src = "./img/menu/contact_off.gif";  einzel_off = new Image();  einzel_off.src = "./img/menu/einzel_off.gif";  faq_off = new Image();  faq_off.src = "./img/menu/faq_off.gif";  press_off = new Image();  press_off.src = "./img/menu/press_off.gif";  projects_off = new Image();  projects_off.src = "./img/menu/projects_off.gif";  services_off = new Image();  services_off.src = "./img/menu/services_off.gif";  link_off = new Image();  link_off.src = "./img/menu/link_off.gif";}//swap imagesfunction turnOn(imageName) {  if (document.images) {    document[imageName].src = eval(imageName + "_on.src");  }}function turnOff(imageName) {  if (document.images) {    document[imageName].src = eval(imageName + "_off.src");  }}//determine stylesheetif (navigator.appName == "Microsoft Internet Explorer")document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://www.r-h-p.com/lib/styles_ie.css">');elsedocument.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://www.r-h-p.com/lib/styles_ns.css">');// hideLayerfunction hideLayer(layer)	{	document.getElementById(layer).style.visibility = "hidden";	}// no info availablefunction noInfo()	{	alert('details coming soon');	}// vitafunction vita(dir)	{	window.open(dir + 'vita.htm','vita','toolbars=0,location=0,scrollbars=1,statusbars=0,menubars=0,resizable=0,width=800,height=400,left=50,top=50');	}// book informationfunction bookInfo(book, image)	{	var book, image;	var page = new String("./book.php?book=" + book + "&image=" + image);	window.open(page,'info','toolbars=0,location=0,scrollbars=1,statusbars=0,menubars=0,resizable=0,width=300,height=500,left=100,top=100');	}// project detailsfunction proDet(project, w, h)	{	var page = new String("./projects.php?project=" + project);	window.open(page,'info','toolbars=0,location=0,scrollbars=1,statusbars=0,menubars=0,resizable=0,width=' + w + ',height=' + h + ',left=10,top=10');	}// press clippingsfunction pressDet(clip, w, h)	{	var page = new String("./press.php?clip=" + clip);	window.open(page,'info','toolbars=0,location=0,scrollbars=1,statusbars=0,menubars=0,resizable=0,width=' + w + ',height=' + h + ',left=10,top=10');	}// extra page in new windowfunction infoPage(addr)	{	window.open(addr,'info','toolbars=0,location=0,scrollbars=1,statusbars=0,menubars=0,resizable=0,width=700,height=600,left=10,top=10');	}// temp show big image functionfunction showBig(img,iID)	{	oEle = document.getElementById("big");	bigsrc = "<img src=" + img + " alt=" + img + " border=\"0\" align=\"middle\"/>";	infolink = "<div style=\"width:250px; padding:10px; color:#ffffff; text-align:left;\"><a href=\"javascript:bigHid();\">close</a> | <a href=\"javascript:artInfo('" + iID + "')\">info</a></div>";	oEle.innerHTML = bigsrc + infolink;	oEle.style.left = document.body.scrollLeft+100;	document.getElementById("blend").style.width = document.body.scrollWidth;	bigVis();	}function bigVis()	{	bldlay = document.getElementById("blend");	bldlay.style.display = "block";	biglay = document.getElementById("big");	biglay.style.display = "block";	}function bigHid()	{	biglay = document.getElementById("big");	biglay.style.display = "none";	bldlay = document.getElementById("blend");	bldlay.style.display = "none";	}// ajax description requestfunction artInfo(img) // description zum bild aus db holen	{ 	var strURL = 'detail.php';	var xmlHttpReq = false;	var self = this;	// Mozilla/Safari	if (window.XMLHttpRequest) 		{		self.xmlHttpReq = new XMLHttpRequest();		}			// IE			else if (window.ActiveXObject) 			{			self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");			}	self.xmlHttpReq.open('POST', strURL, true);	self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');	self.xmlHttpReq.setRequestHeader("Pragma", "no-cache");	self.xmlHttpReq.setRequestHeader("Cache-Control", "must-revalidate");	self.xmlHttpReq.setRequestHeader("If-Modified-Since", document.lastModified);	self.xmlHttpReq.onreadystatechange = showDescription;	self.xmlHttpReq.send('imgID=' + img);	}function showDescription() // description im layer anzeigen	{	if (self.xmlHttpReq.readyState == 4) 		{		//var data = eval('(' + self.xmlHttpReq.responseText + ')');		var data = self.xmlHttpReq.responseText;		document.getElementById("desc").innerHTML = data;		document.getElementById("info").style.left = document.body.scrollLeft+100;		document.getElementById("info").style.display = "block";		}	}function hideDescription() // description layer ausblenden	{	document.getElementById("info").style.display = "none";	}	function adjustEle() // description layer mitnehmen	{	for (i=0; i<arguments.length; i++)		{		oObj = arguments[i];		document.getElementById(oObj).style.left = document.body.scrollLeft+100;		}	}
