/*  Will have one general function that will be called from onload() and that will add all clickhandlers.
      This is mainly because the "target" attribute is deprecated in xhtml */
	  
	  
function setNonobtrusiveClickhandlers() {
	var link = document.getElementById("robotHostingMainpage");
//	link.onclick = openLinkBlank;
	link.href="javascript:window.open('http://www.google.no', 'BKwindow');";
}

function openLinkBlank(urlName) {
	// The purpose of this function is to open a new window as in target="blank". This attribute is deprecated in xhtml strict.
	var url = "";
	var windowName = "";
	var specialWindowHandling = false;
	
	if (urlName == "Robot-Hosting") {
		url = "http://www.robot-hosting.com";
		windowName = "RobotHosting";
	}
	else if (urlName == "Inn") {
		url = "http://www.inn.no";
		windowName = "Inn";
	}
	else if (urlName == "Imagevue") {
		url = "http://www.imagevuex.com";
		windowName = "Imagevue";
	}
	else if (urlName == "ImagevueDemo") {
		javascript:window.open('http://www.imagevuex.com/imagevue/slideshow.php?configfile=slideshowpopupconfig.ini','popslideshow','width=400,height=250,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top='+Math.round(screen.height/2-125)+',left='+Math.round(screen.width/2-200)+'');void(0);
		specialWindowHandling = true;
	}
	else if (urlName == "Genie") {
		url = "http://www.genie.no";
		windowName = "Genie";
	}
	else if (urlName == "Witberg") {
		url = "http://www.witberg.no";
		windowName = "Witberg";
	}
	else if (urlName == "JamesTandy") {
		url = "http://www.jamesdavidtandy.com";
		windowName = "JamesTandy";
	}
	else if (urlName == "JamesTandyReel") {
		url = "http://www.jamesdavidtandy.com/reel.html";
		windowName = "JamesTandyReel";
	}

	if (!specialWindowHandling)
		window.open(url, windowName,'left=0,top=0,resizable=yes,scrollbars=yes,toolbar=yes,status=yes,menubar=yes,location=yes');
}
