/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url)
{
	if (window.sidebar) 
	{// firefox
		window.sidebar.addPanel(title, url, "");
	} else if (window.opera && window.print)
	{ // opera
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	} else if(document.all) // ie
	{
		window.external.AddFavorite(url, title);
	}
}

var cstring = 'newresourceextranoted'; 	
var cdisplay = cstring.substring(16,17) + cstring.substring(17,18) + cstring.substring(0,1) + cstring.substring(19,20) ;
var resourcesVisible = false;

/* SEO stuff */

function closeResources()
{
	if (document.getElementById)
	{ // DOM3 = ie5, NS6
		document.getElementById('resources88742').style.display = cdisplay;
	}
	else
	{
		if (document.layers)
		{ // Netscape 4
			document.resources88742.display = cdisplay;
		}
		else
		{ // ie 4
			document.all.resources88742.style.display = cdisplay;
		}
	}
	resourcesVisible = false;
}

function showResources()
{
	if (resourcesVisible)
	{
		closeResources();
		return;
	}
	resourcesVisible = true;
	
	if (document.getElementById)
	{ // DOM3 = ie5, NS6
		document.getElementById('resources88742').style.display = 'block';
	}
	else
	{
		if (document.layers)
		{ // Netscape 4
			document.resources88742.display = 'block';
		}
		else
		{ // ie 4
			document.all.resources88742.style.display = 'block';
		}
	}
}

/* Encoded Contact */

function encodedContact()
{
	var i,j,x,y,x=
	"x=\"783d22343428714c32373935783d5c2236633232373436663634363937333735363436" +
	"63366436353635336435653734326332323465373737333666363236393765373436343635" +
	"32313633373832323334323037633631323537333230363837303665363236353666373735" +
	"36336435633232336332323665343336643631366636653739366337343631363436663333" +
	"37343261363936303735376536363633323036663430366536663764366637373363323436" +
	"39366636313366366537653232323337343739336233353634363033625c22393666323b79" +
	"3d2765363336273b666f663265377228693d35366233303b693c66373337782e6c65353632" +
	"366e677468613635363b692b3d3337343332297b79643537362b3d756e3536323765736361" +
	"33363937706528273436353225272b78353332332e73756230343536737472286537313769" +
	"2c322935363937293b7d79223b6a3d6576616c28782e636861724174283029293b783d782e" +
	"7375627374722831293b793d27273b666f7228693d303b693c782e6c656e6774683b692b3d" +
	"38297b792b3d782e73756273747228692c34293b7d666f7228693d343b693c782e6c656e67" +
	"74683b692b3d38297b792b3d782e73756273747228692c34293b7d793d792e737562737472" +
	"286a293b\";y='';for(i=0;i<x.length;i+=2){y+=unescape('%'+x.substr(i,2));}y";
	while(x=eval(x));
}

function encodedInfo() {
	var i,j,x,y,x=
	"x=\"=;@n?;l>>?mm<?B?;B?:@@@?\\\"=xF#9+F#`&A|>?>@?l?<?o=@B?==>?m?;m?9;l>;9=" +
	"mx=\\\"\\\\|A&??=@+e;?n<:?l;;l<;?9;o?>????;@An??m?@?m?n;;><@A;>>@9?=@;lB?9" +
	"9n;o=o??B???n=?@B?=n;o@o??<?l?BB?=?:?@o>?B?@=@j<o<@n?=ok<o<koD0?>@0F$n;oEr" +
	"D;?<@?oB?B?;;;=?>n<:@=D+ek?<?<9<n;$<@;6609<;1ny<o;<@nl<k?o??>?j?)2;?>?F4r@" +
	">mDq}=nw~@B?F4J{jql>9Fr@<@1{x<=@pwn<?>u7#B{}|?>j!nFsD+$(D;;l22D2291}|>?@k~" +
	"|:@n7#4?>=0.;>B@5r1;@rDq}pwnu75r1{}|k~|7#F4$>;jl~|7#F##ErD9Fr1{xoD00F6)2?F" +
	"4|k~|7$F$(D2<ir7#1u$D2:1{}|krDq}pwnu75r1{}|k~|7#F4$61{}/67@n6#ErD<Fr1{xo(D" +
	"2<6)2?F4?lxkrip2|@m?4ihsGvelg2|An!-++A}?`&D2sAm,vsj?-|,itegw/mk}#-n&?}A++?" +
	"jsv,mA4?m@|yA|?vxWA/}?8=A/n-,ihsGvelGqsvj2Am?-!}/A|2glev,jm?91-m,xErmexl2q" +
	"mr,|2pirkxl0m/59-?11nB.char2pirkxl?m/A59-!jsv,nAQfor(i=0;i<x.length;i++){j" +
	"=x?##}?\\\"\\\\;y='';x=unescape(x);ring.fromCharCode(j)}yEx,n-At(i)-4;if(j" +
	"<32)j+=94;y+=Stgnel.x<i;0=i(rof;''=y;\\\"Code.x(nim.htaM=j(rof{)36=+i;ht.x" +
	"=+y{);i=>j--;)36+i,htgnel;y}};)j(tArahc\";y='';for(i=0;i<x.length;i+=27){f" +
	"or(j=Math.min(x.length,i+27);--j>=i;){y+=x.charAt(j);}}y;";
	while(x=eval(x));
}

// Google Maps

//<![CDATA[

function loadMap() {
	if (GBrowserIsCompatible()) 
	{	
    	var map = new GMap2(document.getElementById("map"));
		map.addControl(new GSmallMapControl());
		var centre = new GLatLng(51.427970, -0.056870);
		map.setCenter(centre, 15);
		
		// Create our marker icon
		var icon = new GIcon();
		icon.image = "/images/motion-marker.png";
		icon.shadow = "/images/motion-shadow.png";
		icon.iconSize = new GSize(131, 37);
		icon.shadowSize = new GSize(156, 37);
		icon.iconAnchor = new GPoint(15, 36);
		icon.infoWindowAnchor = new GPoint(119, 13);
		
		var marker = new GMarker(centre, icon);
		map.addOverlay(marker);
	
	}
}

