// window.onunload=GUnload();function addLoadEvent(func) {    var oldonload = window.onload;    if (typeof window.onload != 'function') { window.onload = func; }    else {    	window.onload = function() {			if (oldonload) {				oldonload();            	}			func();        	}    	}	}function newWindow(opener,width,height) {	var thisWin	thisWin = window.open(opener,'popup','toolbar=no,location=no,scrollbars=yes,resizable=yes,width=' + width + ',height=' + height)	thisWin.focus();	}addLoadEvent(function() {		function createIcon() {		var Icon = new GIcon();		Icon.image = "bus.png";		Icon.iconSize = new GSize(58, 50);		Icon.shadow = "bus_shadow.png";		Icon.shadowSize = new GSize(80, 50);		Icon.iconAnchor = new GPoint(14, 47);		Icon.infoWindowAnchor = new GPoint(14, 3);		Icon.transparent = "bus.png";		Icon.printImage = "bus.gif";		Icon.mozPrintImage = "bus.gif";		Icon.printShadow = "bus_shadow.gif";		Icon.imageMap=[4,8,14,2,55,16,55,38,14,48,4,42];		return Icon		}		if (document.getElementById("location") || document.getElementById("rccLocation") || document.getElementById("bvLocation")) {		if (document.getElementById("location")) var myWeb = 'lwt';		else if(document.getElementById("rccLocation")) var myWeb = 'rafflescc';		else if(document.getElementById("bvLocation")) var myWeb = 'bellevuecon';		var map = new GMap2(		document.getElementById("googlemap"));		map.setCenter(		new GLatLng(54.890061, -2.966781), 15);		map.addControl(new GLargeMapControl());		map.addControl(new GMapTypeControl());		var lsc = new google.maps.LocalSearch();		map.addControl(new google.maps.LocalSearch());				if (myWeb == 'rafflescc') {			var WINDOW_HTML = '<div style="width: 300px; height: 100px; font-size: 90%;"><img src="images/rccBubble.jpg" style="float:left;margin-right:5px;"><b>Raffles Community Church</b><br>Shady Grove Road,<br>Carlisle, Cumbria CA2 7LU<br><br><b>Services</b><br>Every Sunday 11.30am<br>Family Service every 1st Sunday</div>';			var location = new GLatLng(54.890061, -2.966781);			var marker = new GMarker(location);			map.addOverlay(marker);			GEvent.addListener(marker, "click", function() {				marker.openInfoWindowHtml(WINDOW_HTML);	  			});			marker.openInfoWindowHtml(WINDOW_HTML);			}				if (myWeb == 'bellevuecon') {			var WINDOW_HTML = '<div style="width: 300px; height: 220px; font-size: 90%;"><img src="images/bvvBubble.jpg" style="float:left;margin-right:10px;"><b>Belle Vue Church of the Nazarene</b><br>51 Moorhouse Road,<br>Carlisle, Cumbria CA2 7LN<br><br><b>Services</b><br>Every Sunday 10.00am - 6.00pm<hr style="width:290px;position:relative;left:-6px;clear:left"><img src="images/bvvBubble2.jpg" style="float:left;margin-right:10px;"><br><b>The Vue Caf&eacute;</b><br>Tuesday 10am - 2pm<br>Wednesday 11.30am - 3.30pm<br>Thursday 10am - 2pm</div>';			var location = new GLatLng(54.895602, -2.977150);			var marker = new GMarker(location);			map.addOverlay(marker);			GEvent.addListener(marker, "click", function() {				marker.openInfoWindowHtml(WINDOW_HTML);	  			});			marker.openInfoWindowHtml(WINDOW_HTML);			}		function createMarker(point, text, title, iconType) {			var myIcon = createIcon()			if (iconType == 1) var marker = new GMarker(point,myIcon);			else var marker = new GMarker(point,{title:title});			GEvent.addListener(				marker, "click", function() {					marker.openInfoWindowHtml(text);					});			return marker;			}                if (myWeb == 'lwt') {			var marker = createMarker(				new GLatLng(54.889963, -2.967509),        		'<div style="width: 300px; height: 100px; font-size: 90%;"><img src="images/rfcBubble.jpg" style="float:left;margin-right:5px;"><b>Raffles Family Centre</b><br>The Living Well Trust,<br>19-23 Shady Grove Road,<br>Carlisle, Cumbria CA2 7LE<br><br><b>Opening Hours</b><br>Monday to Friday 9.00am - 5.00pm</div>',        		'Raffles Family Centre',0);			map.addOverlay(marker);        /*			var marker = createMarker(				new GLatLng(54.888165, -2.978993),        		'<div style="width: 300px; height: 100px; font-size: 90%;"><img src="images/busBubble.jpg" style="float:left;margin-right:5px;"><b>The Bus</b><br>Holmrook Road<br><br><b>Every Tuesday</b><br>7.00pm - 9.00pm</div>',        		'The Bus, Holmrook Road',1);			map.addOverlay(marker);        			var marker = createMarker(				new GLatLng(54.888608, -2.953198),        		'<div style="width: 300px; height: 100px; font-size: 90%;"><img src="images/busBubble.jpg" style="float:left;margin-right:5px;"><b>The Bus</b><br>Greta Avenue<br><br><b>To be confirmed</b></div>',        		'The Bus, Greta Avenue',1);			map.addOverlay(marker);        			var marker = createMarker(				new GLatLng(54.890972, -2.967466),        		'<div style="width: 300px; height: 100px; font-size: 90%;"><img src="images/busBubble.jpg" style="float:left;margin-right:5px;"><b>The Bus</b><br>Shady Grove Road<br><br><b>Every Thursday</b><br>7.00pm - 9.00pm</div>',        		'The Bus, Shady Grove Road',1);			map.addOverlay(marker);	*/						var marker = createMarker(				new GLatLng(54.895602, -2.977150),        		'<div style="width: 300px; height: 100px; font-size: 90%;"><img src="images/bvcBubble.jpg" style="float:left;margin-right:5px;"><b>Belle Vue Church of the Nazarene</b><br>51 Moorhouse Road,<br>Carlisle, Cumbria CA2 7LN<br><br><b>Services</b><br>Every Sunday 10.00am - 6.00pm</div>',        		'Belle Vue Church of the Nazarene',0);			map.addOverlay(marker);						var marker = createMarker(				new GLatLng(54.890061, -2.966781),        		'<div style="width: 300px; height: 100px; font-size: 90%;"><img src="images/rccBubble.jpg" style="float:left;margin-right:5px;"><b>Raffles Community Church</b><br>Shady Grove Road,<br>Carlisle, Cumbria CA2 7LU<br><br><b>Services</b><br>Every Sunday 11.30am<br>Family Service every 1st Sunday</div>',        		'Raffles Community Church',0);			map.addOverlay(marker);						var marker = createMarker(				new GLatLng(54.892601, -2.963032),        		'<div style="width: 300px; height: 100px; font-size: 90%;"><img src="images/chBubble.jpg" style="float:left;margin-right:5px;"><b>Community House</b><br>226-228 Raffles Avenue<br>Carlisle, Cumbria CA2 7EG</div>',        		'Community House',0);			map.addOverlay(marker);			}		}			})	addLoadEvent(function() {	if (window.attachEvent) {		var sfEls = document.getElementById("navigation").getElementsByTagName("li");		for (var i=0; i<sfEls.length; i++) {			sfEls[i].onmouseover=function() {				this.className+=" sfhover";				}			sfEls[i].onmouseout=function() {				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");				}			}		}	})/*addLoadEvent(function() {        var myParent = document.getElementById('superContent');    var getPara;        if (getPara = document.getElementById('scFore')) {		var MyPara = {}		MyPara = getPara.childNodes		var scShadow = document.createElement('p')		for (i in MyPara) {			var thisNodeType = MyPara[i].nodeType			if (thisNodeType == 1) { scShadow.appendChild(document.createElement('br')) }			else if (thisNodeType == 3) { scShadow.appendChild(document.createTextNode(MyPara[i].nodeValue)) }			}		scShadow.style.position = 'relative'		scShadow.style.top = '-11.3em'		scShadow.style.left = '0.05em'		scShadow.style.zIndex = '100'		scShadow.style.color = '#666'				if (navigator.appName == 'Opera') { scShadow.style.top = '-11.3em' }				myParent.appendChild(scShadow)		}			})*/addLoadEvent(function() {        if (document.getElementById('home') && document.getElementById('quote')) {        	var myParent = document.getElementById('quote');    	var getPara = document.getElementById('quotequote');		var MyPara = {}		MyPara = getPara.childNodes		var qShadow = document.createElement('q')		qShadow.appendChild(document.createTextNode(MyPara[1].nodeValue))		qShadow.style.position = 'absolute'		qShadow.style.top = '0.05em'		qShadow.style.left = '0.05em'		qShadow.style.zIndex = '100'		qShadow.style.color = '#666'				if (navigator.appName == 'Opera') { qShadow.style.top = '0.1em' }				myParent.appendChild(qShadow)				}			})function isInteger(s) {	return (s.toString().search(/^-?[0-9]+$/) == 0);	}addLoadEvent(function() {		var movie1	var movie2	if (movie1 = document.getElementById('movie1')) movie1.onclick = function () { newWindow('movie.html','340','340'); return false }	if (movie2 = document.getElementById('movie2')) movie2.onclick = function () { newWindow('movie.html','340','340'); return false }	})