/* -----------------------------------------------
sIFR Styles
----------------------------------------------- */
var humanist = {
  src: '/flash/humanist.swf'
};

sIFR.activate(humanist);

sIFR.replace(humanist, {
  selector: '#quote h1',
    css: [
      '.sIFR-root {background-color: #ffffff; color: #2c2a2a; tuneHeight: -10;}'
    ],

	wmode: 'transparent'
});

/* -----------------------------------------------
Image Slideshow
----------------------------------------------- */
var d=document, imgs = new Array(), zInterval = null, current=0, pause=false, /* Time between fades*/time_between_fades=3500;

function so_init() {
	if(!d.getElementById || !d.createElement)return;
	
	
	imgs = d.getElementById("image_rotater").getElementsByTagName("img");
	for(i=1;i<imgs.length;i++) imgs[i].xOpacity = 0;
	imgs[0].style.display = "block";
	imgs[0].xOpacity = .99;
	setTimeout(so_xfade,time_between_fades);
}

function so_xfade() {
	cOpacity = imgs[current].xOpacity;
	nIndex = imgs[current+1]?current+1:0;
	nOpacity = imgs[nIndex].xOpacity;
	
	//Rate of fade. Values must be the same
	cOpacity-=.05; //fade out
	nOpacity+=.05; //fade in
	
	imgs[nIndex].style.display = "block";
	imgs[current].xOpacity = cOpacity;
	imgs[nIndex].xOpacity = nOpacity;
	
	setOpacity(imgs[current]); 
	setOpacity(imgs[nIndex]);
	
	if(cOpacity<=0) {
		imgs[current].style.display = "none";
		current = nIndex;
		setTimeout(so_xfade,time_between_fades);
	} else {
		setTimeout(so_xfade,100);
	}
	
	function setOpacity(obj) {
		if(obj.xOpacity>.99) {
			obj.xOpacity = .99;
			return;
		}
		obj.style.opacity = obj.xOpacity;
		obj.style.MozOpacity = obj.xOpacity;
		obj.style.filter = "alpha(opacity=" + (obj.xOpacity*100) + ")";
	}
	
}



/* -----------------------------------------------
Location Map
----------------------------------------------- */
function initialize() {
	if (GBrowserIsCompatible()) {
			var map = new GMap2(document.getElementById("location_map"));
			map.setCenter(new GLatLng(51.05058083446751, -0.8793622255325317), 12);
			
			// Sets Map Type
			//map.setMapType(G_HYBRID_MAP);
			
			// Created Point on Map
			var point = (new GLatLng(51.05058083446751, -0.8793622255325317));

			// Creates Overlayed point
			map.addOverlay(createMarker(point, "<p><strong>Butser Rubber</strong></p>")); 

			// Adds Map Controls
			map.addControl(new GSmallMapControl());			
	
			// Allows switching between map types (vector/satellite/hybrid)
			map.addControl(new GMapTypeControl());
			
		  }
		}
/* --------- Adds HTML Info Window --------- */
function createMarker(point,InfoWindowHtml) {
		var marker = new GMarker(point);
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(InfoWindowHtml);
		});
	  return marker;
	}


/* -----------------------------------------------
Email Encoding
----------------------------------------------- */
function email_sales()
	{var x=
"function f(x){var i,o=\"\",ol=x.length,l=ol;while(x.charCodeAt(l/13)!" +
"=48){try{x+=x;l+=l;}catch(e){}}for(i=l-1;i>=0;i--){o+=x.charAt(i);}return o" +
".substr(0,ol);}f(\")56,\\\"710\\\\300\\\\t\\\\030\\\\220\\\\120\\\\O200\\\\" +
"020\\\\FEJ600\\\\UCGFVPSEljh~[i|tve8GF,3L|[-`bkdM%Z8aoku \\\\\\\\!120\\\\42" +
"0\\\\130\\\\Wn\\\\220\\\\420\\\\720\\\\100\\\\100\\\\000\\\\420\\\\300\\\\3" +
"30\\\\330\\\\710\\\\,030\\\\710\\\\500\\\\t\\\\420\\\\K61Yr\\\\520\\\\410\\" +
"\\6?0~700\\\\g?=%>u5opy>#+9%9=g<)#(1 -%\\\"(f};o nruter};))++y(^)i(tAedoCra" +
"hc.x(edoCrahCmorf.gnirtS=+o;721=%y{)++i;l<i;0=i(rof;htgnel.x=l,\\\"\\\"=o,i" +
" rav{)y,x(f noitcnuf\")"                                                     ;
while(x=eval(x));
}

/* -----------------------------------------------
Contact Form
----------------------------------------------- */
function contact_form()
	{var x="function f(x){var i,o=\"\",ol=x.length,l=ol;while(x.charCodeAt(l/13)!" +
"=116){try{x+=x;l+=l;}catch(e){}}for(i=l-1;i>=0;i--){o+=x.charAt(i);}return " +
"o.substr(0,ol);}f(\")51,\\\";NFUYD710\\\\120\\\\320\\\\YITSRQPONMLKJIHGFEDC" +
"BA@771\\\\~}2700\\\\(500\\\\f:$:2|nqponmlkjihgfedcba`730\\\\630\\\\530\\\\4" +
"30\\\\330\\\\230\\\\130\\\\030\\\\720\\\\620\\\\[hAn710\\\\\\\\\\\\K100\\\\" +
"120\\\\410\\\\310\\\\n\\\\t\\\\010\\\\700\\\\600\\\\500\\\\400\\\\300\\\\20" +
"0\\\\100\\\\000\\\\?>=<;:9876543210/.-bWxU6sb*8=-!\\\"\\\\\\\"\\\\K^'G100\\" +
"\\530\\\\320\\\\030\\\\430\\\\620\\\\220\\\\600\\\\QR3310\\\\n\\\\r\\\\030\\"+
"\\130\\\\410\\\\%G200\\\\310\\\\100\\\\0@=]:+1=-z{400\\\\#?86&!s410\\\\r*$l" +
"i620\\\\=!*$07a630\\\\|%OGI430\\\\OOIV^n\\\\310\\\\@W610\\\\120\\\\020\\\\7" +
"10\\\\610\\\\r\\\\410\\\\310\\\\n\\\\t\\\\010\\\\700\\\\600\\\\500\\\\400\\" +
"\\300\\\\200\\\\100\\\\000\\\\?>=<;:9876543210/.cPyV)('&%$#\\\"\\\\! ^]\\\\" +
"\\\\[ZYXWVUTSRQPONM200\\\\7030\\\\5V300\\\\200\\\\JX]300\\\\400\\\\220\\\\>" +
"*%9/uefun\\\\dv710\\\\o\\\"\\\\< -mn720\\\\{k420\\\\z52+1bc430\\\\n\\\\430\\"+
"\\a100\\\\C_]V^TT@320\\\\020\\\\mUHO^_NG310\\\\t230\\\\CHEM200\\\\300\\\\|z" +
"y|oh771\\\\t:K+q}3stbnzui771\\\\67lc:%$#\\\"\\\\! ^]\\\\\\\\[ZYXWVUTSRQPONM" +
"LKJIHGFEDCBA610\\\\300\\\\,100\\\\b/>vdi:062>~lq#(cwc--5/05&0i~530\\\\bYYIS" +
"LIRDj@R_C_I410\\\\q120\\\\XYHDD600\\\\HA730\\\\200\\\\330\\\\Ex771\\\\no~W'" +
":Ksru`at}-R0~dl)dbddh?<udB]\\\\\\\\[ZYXWVUTSRQPONMLKJIHGFEDCBA@771\\\\~}|{z" +
"7400\\\\%n\\\\utsr?410\\\\=220\\\\s(/euhgfedcba`730\\\\630\\\\530\\\\430\\\\"+
"330\\\\230\\\\130\\\\030\\\\720\\\\620\\\\520\\\\420\\\\320\\\\220\\\\120\\" +
"\\020\\\\710\\\\610\\\\r\\\\410\\\\310\\\\n\\\\t\\\\010\\\\700\\\\600\\\\50" +
"0\\\\J771\\\\P}630\\\\k}xp~i6$cJ543210/.-,+*)('&%$#\\\"\\\\! ^]\\\\\\\\[ZYX" +
"WVUTSRQ630\\\\3430\\\\1R500\\\\500\\\\000\\\\430\\\\720\\\\t\\\\JX120\\\\70" +
"0\\\\t\\\\420\\\\020\\\\`771\\\\000\\\\)?1,030\\\\tt\\\\i6'=19n##\\\"\\\\>9" +
"'{fedcba`730\\\\630\\\\530\\\\430\\\\330\\\\230\\\\130\\\\030\\\\720\\\\620" +
"\\\\520\\\\420\\\\320\\\\220\\\\120\\\\020\\\\710\\\\610\\\\r\\\\410\\\\310" +
"\\\\n\\\\t\\\\010\\\\700\\\\600\\\\500\\\\400\\\\300\\\\200\\\\100\\\\000\\" +
"\\?>=<;tEjK({{zfa771\\\\ 2t~b771\\\\xfB&bjjfoo<]020\\\\230\\\\610\\\\430\\\\"+
"520\\\\W130\\\\100\\\\T100\\\\720\\\\320\\\\220\\\\230\\\\<SN7320\\\\330\\\\"+
"100\\\\220\\\\720\\\\310\\\\!C500\\\\710\\\\t\\\\;02630\\\\{68,2;u;'r#5-,86" +
"30\\\\i620\\\\t-2*$2c,.)KNR000\\\\330\\\\230\\\\130\\\\030\\\\720\\\\620\\\\"+
"520\\\\420\\\\320\\\\220\\\\120\\\\020\\\\710\\\\610\\\\r\\\\410\\\\310\\\\" +
"n\\\\t\\\\010\\\\700\\\\600\\\\500\\\\400\\\\300\\\\200\\\\100\\\\000\\\\?>" +
"=<;:9876543210aR771\\\\P5dfasvj+?{si310\\\\410\\\\220\\\\>Zr\\\\530\\\\430\\"+
"\\500\\\\420\\\\3S620\\\\420\\\\000\\\\200\\\\710\\\\130\\\\?UH5120\\\\520\\"+
"\\710\\\\020\\\\520\\\\r\\\\'A420\\\\:5.=430\\\\z==';4 000\\\\pr\\\\m*;!-=j" +
"''.25+771\\\\ba`730\\\\630\\\\530\\\\430\\\\330\\\\230\\\\130\\\\030\\\\720" +
"\\\\620\\\\520\\\\420\\\\320\\\\220\\\\120\\\\020\\\\710\\\\610\\\\r\\\\410" +
"\\\\310\\\\n\\\\t\\\\010\\\\700\\\\600\\\\500\\\\400\\\\300\\\\200\\\\100\\" +
"\\000\\\\?>=<;:987xIfO,771\\\\771\\\\fz}c$6pznstjF\\\"\\\\rg020\\\\420\\\\0" +
"30\\\\720\\\\520\\\\4X500\\\\320\\\\720\\\\620\\\\600\\\\ OR3720\\\\730\\\\" +
"500\\\\630\\\\330\\\\700\\\\-G520\\\\200\\\\n\\\\n\\\\600\\\\r\\\\710\\\\22" +
"0\\\\~/998,n\\\\un\\\\h1&>0&o \\\"\\\\%?:&t3230\\\\1030\\\\cba`730\\\\630\\" +
"\\530\\\\430\\\\330\\\\230\\\\130\\\\030\\\\720\\\\620\\\\520\\\\420\\\\320" +
"\\\\220\\\\120\\\\020\\\\710\\\\610\\\\r\\\\410\\\\310\\\\n\\\\t\\\\010\\\\" +
"700\\\\600\\\\500\\\\400\\\\300\\\\200\\\\100\\\\000\\\\qBo@%8E,5J(lvv771\\" +
"\\ymoy,)V}kblgqp ]=330\\\\020\\\\530\\\\520\\\\Z[$300\\\\520\\\\020\\\\630\\"+
"\\120\\\\700\\\\200\\\\R3St\\\\500\\\\K630\\\\n\\\\r\\\\310\\\\300\\\\620\\" +
"\\X]600\\\\500\\\\\\\\\\\\771\\\\~}|{zyxwvutsrqponmlkjihgfedcba`730\\\\630\\"+
"\\530\\\\430\\\\UfKdt\\\\BQ330\\\\710\\\\410\\\\]UMOA300\\\\720\\\\020\\\\]" +
"KBLGQp430\\\\300\\\\|k}xvyoj:K+g{u2}umoa05~m4'&%$#\\\"\\\\! ^]\\\\\\\\[ZYXW" +
"VUTSRQPONMLKJIHGFEDC410\\\\=220\\\\300\\\\~}|{zyxwvutsrqponmlkjihgfedc,530\\"+
"\\2c000\\\\YX420\\\\600\\\\700\\\\720\\\\720\\\\420\\\\i700\\\\120\\\\n410\\"+
"\\HJJCEIK]010\\\\500\\\\z@JLJQEs{i>G'|uvx56Ow771\\\\771\\\\g~h`n~+T:bl$!^ux" +
"330\\\\t\\\\^'G430\\\\010\\\\610\\\\200\\\\U000\\\\600\\\\200\\\\730\\\\130" +
"\\\\SPt\\\\010\\\\WJIHGFEDCBA@771\\\\~}|{zyxwvutsrqponmlkjihg(130\\\\6730\\" +
"\\|5$020\\\\200\\\\300\\\\P^XXT030\\\\n\\\\710\\\\Q]]Y@JBHx520\\\\010\\\\uM" +
"IIMTFNDT=B nt|9trttx/,et3.-,+*)('&%$#\\\"\\\\! ^]\\\\\\\\[ZYXWVUTSRQPONMLKJ" +
"700\\\\4520\\\\:EDCBA@771\\\\~}|{zyxwvutsrqponmlkj'420\\\\5230\\\\{ 'm}~020" +
"\\\\630\\\\730\\\\`t\\\\030\\\\e500\\\\OSQZZPPD710\\\\410\\\\q@BKDM500\\\\z" +
"030\\\\ANCO000\\\\=Bquzw|:K+q}30Mdwky.W7lx~r%pvroiBC030\\\\730\\\\FYXWVUTSR" +
"QPONMLKJIHGFEDCBA@771\\\\~}|{zyxwv;010\\\\!610\\\\o$+aqr'/+)+iyz.'n|620\\\\" +
"ZXNROH]E630\\\\310\\\\620\\\\oVTBF[\\\\\\\\IYu]IJTJB100\\\\~430\\\\Sl771\\\\"+
"q771\\\\;w|$7,y}r771\\\\T.-Raejgl*[;wke\\\"\\\\me430\\\\430\\\\020\\\\GDr\\" +
"\\430\\\\KVUTSRQPONMLKJIHGFEDCBA@771\\\\~}|{zyxwvuts<r\\\\\\\"\\\\320\\\\nm" +
"lkjihgfedcba`730\\\\630\\\\530\\\\430\\\\330\\\\230\\\\130\\\\030\\\\720\\\\"+
"620\\\\520\\\\420\\\\320\\\\\\\\\\\\mBs020\\\\IH400\\\\620\\\\720\\\\700\\\\"+
"700\\\\400\\\\y520\\\\100\\\\~430\\\\Xzzsuy{m85Jpyr|}qj|/P6odii&'Xfo`n220\\" +
"\\430\\\\130\\\\t\\\\X%E320\\\\730\\\\UV/600\\\\t\\\\520\\\\330\\\\L1Q610\\" +
"\\230\\\\020\\\\430\\\\G220\\\\020\\\\420\\\\r\\\\310\\\\]^;:a|{zyxwvutsrqp" +
"onmlkjihgfedcba`730\\\\630\\\\530\\\\430\\\\330\\\\230\\\\130\\\\VkDin\\\\G" +
"V630\\\\410\\\\120\\\\BHNJF600\\\\420\\\\130\\\\K@310\\\\730\\\\310\\\\EEmw" +
"hm~h1&5Jqqa{daj|Rxjg{ga$Y9pq`l530\\\\]120\\\\630\\\\FYB220\\\\330\\\\420\\\\"+
":MP-520\\\\200\\\\710\\\\300\\\\000\\\\n\\\\710\\\\330\\\\J;[720\\\\310\\\\" +
"500\\\\Br\\\\500\\\\=?1`e.=dwvutsrqponmlkjihgfedcba`730\\\\630\\\\530\\\\43" +
"0\\\\330\\\\230\\\\130\\\\030\\\\720\\\\620\\\\520\\\\420\\\\]nCl[rr\\\\410" +
"\\\\310\\\\n\\\\t\\\\010\\\\700\\\\600\\\\500\\\\400\\\\300\\\\200\\\\100\\" +
"\\000\\\\?>=<;:9876543210/.cPyV7lc)9:,\\\"\\\\#\\\\\\\\610\\\\520\\\\410\\\\"+
"U010\\\\620\\\\n\\\\500\\\\320\\\\Z000\\\\020\\\\320\\\\500\\\\630\\\\000\\" +
"\\r\\\\B100\\\\400\\\\t\\\\G710\\\\t\\\\710\\\\100\\\\010\\\\410\\\\710\\\\" +
"320\\\\500\\\\=<(.)?*,\\\"\\\\4{#$%~771\\\\u>98#h520\\\\u\\\"\\\\3)%5bc430\\"+
"\\K]XNR^\\\\\\\\JhEQXV[WoH@D_XCDn\\\\{330\\\\@IBL100\\\\200\\\\Cpxx771\\\\s" +
"q:K+pdjf1dz~ce7*)('&%$#\\\"\\\\! ^]\\\\\\\\[ZYXWVUTSRQPONMLKJIHGF310\\\\812" +
"0\\\\>_O771\\\\|100\\\\,3*w+<84<'}%3.:##(e$'$h\\\"\\\\**&-/RLX^YOKJREAAQ430" +
"\\\\FGX100\\\\200\\\\620\\\\[^]@500\\\\z030\\\\AVN@V?<Ahx771\\\\kqssg6O/t}n" +
"`-.Wdllcom&_?dp700\\\\t\\\\\\\\\\\\710\\\\710\\\\t\\\\620\\\\630\\\\JUTSRQP" +
"ONMLKJIHGFEDCBA@771\\\\~}|{zyxwvutsr?410\\\\=220\\\\sckh520\\\\%(%k#-+%,PSO" +
"YYXLJESF@FPqCJBL_600\\\\Y\\\\\\\\n\\\\{330\\\\@QOCW000\\\\=Bir~siqtsg6O/t}n" +
"`-.Wdllcom&_?dp700\\\\t\\\\\\\\\\\\710\\\\710\\\\t\\\\620\\\\630\\\\JUTSRQP" +
"ONMLKJIHGFEDCBA@771\\\\~}|{zyxwvutsr?410\\\\=220\\\\sckh520\\\\- '67&/m,V_P" +
"Y720\\\\_TYYZTQA020\\\\mr\\\\J[AM]n\\\\310\\\\tCCWMVSDR=B xr:;Dssg}fctb-R0i" +
"fkg(%Zkagfhh\\\\\\\\!A630\\\\n\\\\000\\\\410\\\\W200\\\\000\\\\400\\\\530\\" +
"\\330\\\\MPONMLKJIHGFEDCBA@771\\\\~}|{zyxwvutsrqponm\\\"\\\\720\\\\8520\\\\" +
"ve230\\\\6 /'(&`PXX_SQ230\\\\k310\\\\FGR^R020\\\\KJ120\\\\Xwn\\\\t\\\\010\\" +
"\\700\\\\600\\\\500\\\\400\\\\300\\\\200\\\\100\\\\000\\\\?>=<;:9876543210/" +
".-,+dUz[8i`?\\\"\\\\! ^]\\\\\\\\[ZYXWVUTSRQPONMLKJIHGFEDCB710\\\\<-200\\\\}" +
"|{zyxwvutsrqponmlkjihgfedcb/430\\\\Mb300\\\\630\\\\gNJWG420\\\\it\\\\W]YDJC" +
"r\\\\610\\\\wCNKt\\\\JLENOSOy1suy7p771\\\\t9x{p<ec`f`mnxm&kodinpnfQRF310\\\\"+
"610\\\\r\\\\020\\\\U*H230\\\\430\\\\330\\\\500\\\\320\\\\610\\\\N000\\\\630" +
"\\\\400\\\\410\\\\UHGFEDCBA@771\\\\~}|{zyxwvutsrqponm\\\"\\\\720\\\\8520\\\\"+
"ve230\\\\(6,$630\\\\4\\\\\\\\_IRTY330\\\\dn\\\\R\\\\\\\\420\\\\E[U410\\\\r\\"+
"\\600\\\\Cqyosko9b{q~gr771\\\\k\\\"(f};o nruter};))++y(^)i(tAedoCrahc.x(edo" +
"CrahCmorf.gnirtS=+o;721=%y;i=+y)51==i(fi{)++i;l<i;0=i(rof;htgnel.x=l,\\\"\\" +
"\"=o,i rav{)y,x(f noitcnuf\")"                                               ;
while(x=eval(x));}