<!--

    function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(52.916148,-1.448779), 15);
		map.addControl(new GSmallMapControl());
		var point = new GLatLng(52.916148,-1.448779);
		map.addOverlay(createMarker(point,1));
      }
    }

	// Creates a marker at the given point with the given number label
	function createMarker(point, number) {
		var marker = new GMarker(point);
		GEvent.addListener(marker,"click",function() { marker.openInfoWindowHtml("<b>Iogen Limited</b><br />10 Melbourne Business Court<br />Millennium Way<br />Pride Park<br />Derby, DE24 8LZ"); });
		return marker;
	}

	function showemail(server, name, text)
	{
		
		if ((text.length == 0) || (text.indexOf('@')+1))
		{
			document.write("<a href=" + "'mai" + "lto:" + name + "@" + server + "'>" + name + "@" + server + "</a>"); 
		}
		else
		{
			document.write("<a href=" + "'mai" + "lto:" + name + "@" + server + "'>" + text + "</a>"); 
		}
	}


	function openExternalLink()
	{
		if (!document.getElementsByTagName) return;
		var anchors = document.getElementsByTagName("a");
		
		for (var i=0; i<anchors.length; i++)
		{
		   var anchor = anchors[i];
		   if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
		   anchor.target = "_blank";
		}
	}


	function showPortfolioLinks()
	{
		aPortfolioLinks = new Array ();
		aPortfolioLinks[0] = new Array ("www.derbyshire.org","Derbyshire.org","derbyshire.gif");
		aPortfolioLinks[1] = new Array ("www.businesslinkderbyshire.com","Business Link Derbyshire","businesslink.gif");
		aPortfolioLinks[2] = new Array ("www.nottinghamema.com","Nottingham East Midlands Airport","nema.gif");
		aPortfolioLinks[3] = new Array ("www.humberside-airport.co.uk/","Humberside Airport","humberside.gif");

		for (x=0;x<aPortfolioLinks.length;x++)
		{
			document.write ("<a href=\"http://"+aPortfolioLinks[x][0]+"\" target=\"_blank\"><img class=\"portfolio\" src=\"/locations/images/"+aPortfolioLinks[x][2]+"\" alt=\""+aPortfolioLinks[x][1]+"\" /></a>");
		}
	}

	function showIntro() {
		document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"700\" height=\"240\" id=\"entry\" align=\"center\">");
		document.write("<param name=movie value=\"/images/flash/intro.swf\">");
		document.write("<param name=quality value=high>");
		document.write("<param name=menu value=false>");
		document.write("<param name=wmode value=transparent>");
		document.write("<embed src=\"/images/flash/intro.swf\" quality=high menu=false width=\"700\" height=\"240\" wmode=transparent name=\"entry\" align=\"center\" type=\"application/x-shockwave-flash\" pluginspace=\"http://www.macromedia.com/go/getflashplayer\"></embed>");
		document.write("</object>");
	}

	function showFlashHeader(file) {
		document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"700\" height=\"180\" id=\"entry\" align=\"center\">");
		document.write("<param name=movie value=\"/images/flash/"+file+".swf\">");
		document.write("<param name=quality value=high>");
		document.write("<param name=menu value=false>");
		document.write("<param name=wmode value=transparent>");
		document.write("<embed src=\"/images/flash/"+file+".swf\" quality=high menu=false width=\"700\" height=\"180\" wmode=transparent name=\"entry\" align=\"center\" type=\"application/x-shockwave-flash\" pluginspace=\"http://www.macromedia.com/go/getflashplayer\"></embed>");
		document.write("</object>");
	}

	function funcCFC(checksum) {
		formChkDiv = document.getElementById('formChk');
		formChkDiv.innerHTML = '<input '+'type="hidden" '+'value="'+checksum+'" name="'+'cfc'+'" />';
	}

	window.onload = openExternalLink;

//-->