//<![CDATA[
var getElementsByClassName=function(className,tag,elm){if(document.getElementsByClassName){getElementsByClassName=function(className,tag,elm){elm=elm||document;var elements=elm.getElementsByClassName(className),nodeName=(tag)?new RegExp("\\b"+tag+"\\b","i"):null,returnElements=[],current;for(var i=0,il=elements.length;i<il;i+=1){current=elements[i];if(!nodeName||nodeName.test(current.nodeName)){returnElements.push(current);}}
return returnElements;};}
else if(document.evaluate){getElementsByClassName=function(className,tag,elm){tag=tag||"*";elm=elm||document;var classes=className.split(" "),classesToCheck="",xhtmlNamespace="http://www.w3.org/1999/xhtml",namespaceResolver=(document.documentElement.namespaceURI===xhtmlNamespace)?xhtmlNamespace:null,returnElements=[],elements,node;for(var j=0,jl=classes.length;j<jl;j+=1){classesToCheck+="[contains(concat(' ', @class, ' '), ' "+classes[j]+" ')]";}
try{elements=document.evaluate(".//"+tag+classesToCheck,elm,namespaceResolver,0,null);}
catch(e){elements=document.evaluate(".//"+tag+classesToCheck,elm,null,0,null);}
while((node=elements.iterateNext())){returnElements.push(node);}
return returnElements;};}
else{getElementsByClassName=function(className,tag,elm){tag=tag||"*";elm=elm||document;var classes=className.split(" "),classesToCheck=[],elements=(tag==="*"&&elm.all)?elm.all:elm.getElementsByTagName(tag),current,returnElements=[],match;for(var k=0,kl=classes.length;k<kl;k+=1){classesToCheck.push(new RegExp("(^|\\s)"+classes[k]+"(\\s|$)"));}
for(var l=0,ll=elements.length;l<ll;l+=1){current=elements[l];match=false;for(var m=0,ml=classesToCheck.length;m<ml;m+=1){match=classesToCheck[m].test(current.className);if(!match){break;}}
if(match){returnElements.push(current);}}
return returnElements;};}
return getElementsByClassName(className,tag,elm);};function delay_loop(){};function dofindpage(){var srchelm=_eid('myfrm').t1.value;if(srchelm!=null&&srchelm!='')findString(srchelm)};function _eid(id){return document.getElementById(id)};function cleanup_gmaps(){if(typeof _mJavascriptVersion!='undefined')google.maps.Unload()};function do_ads(slot,width,height){google_ad_client="pub-8978265878657298";google_ad_slot=slot;google_ad_width=width;google_ad_height=height};if(typeof _mJavascriptVersion!='undefined'){function LogoControl(a){};LogoControl.prototype=new google.maps.Control();LogoControl.prototype.initialize=function(_map){this.map=_map;var size=new google.maps.Size(202,38);var contents=_createElement("div",_map.getContainer(),null,size);var map_name=_map.getContainer().id.toString();logo_html='<div class="gmaplogo"><div class="gbanner"><a href="http://www.secret-bases.co.uk">www.secret-bases.co.uk<\/a><\/div><div class="reset"';logo_html+=' onMouseOver="this.style.background=';logo_html+="'#ffff00'";logo_html+='" onMouseOut="this.style.background=';logo_html+="'#ffffcc'";logo_html+='" onClick="javascript:reset_';logo_html+=map_name.substr(map_name.length-4,4)+'()"';logo_html+='>Reset to the initial view<\/div><\/div>';contents.innerHTML=logo_html;return contents};LogoControl.prototype.getDefaultPosition=function(){return new google.maps.ControlPosition(google.maps.ANCHOR_TOP_LEFT,new google.maps.Size(100,8))};function build_gmap(gmap_id,init,z,typ){var elm=_eid(gmap_id);elm.style.overflow='hidden';var mapOptions={googleBarOptions:{style:"new",adsOptions:{client:"partner-pub-8978265878657298",channel:"1266111819",adsafe:"off",language:"en"}}};var gmap=new google.maps.Map(elm,mapOptions);gmap.setCenter(init,z,typ);gmap.addControl(new google.maps.MenuMapTypeControl(),new google.maps.ControlPosition(google.maps.ANCHOR_TOP_RIGHT,new google.maps.Size(8,8)));gmap.addMapType(google.maps.PHYSICAL_MAP);gmap.addMapType(google.maps.SATELLITE_3D_MAP);gmap.addMapType(google.maps.HYBRID_3D_MAP);gmap.addMapType(google.maps.AERIAL_MAP);gmap.addControl(new LogoControl(),new google.maps.ControlPosition(google.maps.ANCHOR_TOP_LEFT,new google.maps.Size(100,8)));gmap.enableContinuousZoom();gmap.enableRotation();gmap.enableGoogleBar();return gmap}};domReady=(function(){var load_events=[],load_timer,script,done,exec,old_onload,init=function(){done=true;clearInterval(load_timer);while(exec=load_events.shift())exec();if(script)script.onreadystatechange=''};return function(func){if(done)return func();if(!load_events[0]){if(document.addEventListener)
document.addEventListener("DOMContentLoaded",init,false);
/*@cc_on @*/
/*@if (@_win32)
document.write("<script id=__ie_onload defer src=//0><\/scr"+"ipt>");
script=_eid("__ie_onload");
script.onreadystatechange=function() {
if (this.readyState == "complete") init();
};
/*@end @*/
if(/WebKit/i.test(navigator.userAgent)){load_timer=setInterval(function(){if(/loaded|complete/.test(document.readyState))
init()},10)};old_onload=window.onload;window.onload=function(){init();if(old_onload)old_onload()}};load_events.push(func)}})();if(typeof deconcept=="undefined"){var deconcept=new Object()};if(typeof deconcept.util=="undefined"){deconcept.util=new Object()};if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()};deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){if(!document.createElement||!document.getElementById){return};this.DETECT_KEY=_b?_b:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1)};if(id){this.setAttribute("id",id)};if(w){this.setAttribute("width",w)};if(h){this.setAttribute("height",h)};if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")))};this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion(this.getAttribute("version"),_7);if(c){this.addParam("bgcolor",c)};var q=_8?_8:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",_7);this.setAttribute("doExpressInstall",false);var _d=(_9)?_9:window.location;this.setAttribute("xiRedirectUrl",_d);this.setAttribute("redirectUrl","");if(_a){this.setAttribute("redirectUrl",_a)}};deconcept.SWFObject.prototype={setAttribute:function(_e,_f){this.attributes[_e]=_f},getAttribute:function(_10){return this.attributes[_10]},addParam:function(_11,_12){this.params[_11]=_12},getParams:function(){return this.params},addVariable:function(_13,_14){this.variables[_13]=_14},getVariable:function(_15){return this.variables[_15]},getVariables:function(){return this.variables},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16.push(key+"="+_18[key])};return _16},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn")};_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" "};var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\""};_19+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX")};_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />"};var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />"};_19+="</object>"};return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version")))
{var n=(typeof _20=="string")?_eid(_20):_20;n.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}
return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(_23,_24){var _25=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_25=new deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");for(var i=3;axo!=null;i++){axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);_25=new deconcept.PlayerVersion([i,0,0]);}}
catch(e){}
if(_23&&_25.major>_23.major){return _25;}
if(!_23||((_23.minor!=0||_23.rev!=0)&&_25.major==_23.major)||_25.major!=6||_24){try{_25=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}
catch(e){}}}
return _25;};deconcept.PlayerVersion=function(_29){this.major=parseInt(_29[0])!=null?parseInt(_29[0]):0;this.minor=parseInt(_29[1])||0;this.rev=parseInt(_29[2])||0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}
if(this.major>fv.major){return true;}
if(this.minor<fv.minor){return false;}
if(this.minor>fv.minor){return true;}
if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(q){var _2d=q.indexOf(_2b+"=");var _2e=(q.indexOf("&",_2d)>-1)?q.indexOf("&",_2d):q.length;if(q.length>1&&_2d>-1){return q.substring(q.indexOf("=",_2d)+1,_2e);}}return"";}};if(Array.prototype.push==null){Array.prototype.push=function(_2f){this[this.length]=_2f;return this.length}};var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;function do_flash(swf,id){var path=swf+'.swf';var so=new SWFObject(path,swf,"475","90","7","#ffffff");so.write(id);};function do_tagcloud(){var cache=Math.random();var path="tagcloud.swf?cache="+cache;var so=new SWFObject(path,"tagcloud","500","250","7","#ffffff");so.addParam("wmode","transparent");so.addVariable("tcolor","0xdddddd");so.addVariable("tcolor2","0xdddddd");so.addVariable("hicolor","0xffffff");cache=Math.random();path="tagcloud.xml?cache="+cache;so.addVariable("xmlpath",path);so.addVariable("distr","true");so.addVariable("tspeed","100");so.write("flashcontent");};function externalLinks(){if(!document.getElementsByTagName)return;var anchors=document.getElementsByTagName("a");for(var i=0;i<anchors.length;i++){var anch=anchors[i];var anchor=anch.href;if(((anchor.indexOf('http://www.secret-bases.co.uk')!=0)&&(anchor.indexOf('http://www.alan-turnbull.co.uk')!=0)&&(anchor.indexOf('http://www.emmerdale.me.uk')!=0))||(anchor.indexOf('http://www.secret-bases.co.uk/IMG/')==0)||(anchor.indexOf('http://www.secret-bases.co.uk/downloads/')==0)||(anchor.indexOf('http://www.secret-bases.co.uk/docs/')==0)||(anchor.indexOf('http://www.emmerdale.uk/IMG/')==0)||(anchor.indexOf('http://www.emmerdale.uk/downloads/')==0)||(anchor.indexOf('http://www.emmerdale.me.uk/docs/')==0) || (anchor.indexOf('emmerdale-news-soaps.php')>=0) || (anchor.indexOf('emmerdale-news.php')>=0)||(anchor.indexOf('emmerdale-gossip.php')>=0) || (anchor.indexOf('ext.php?uri=')>=0)){anch.target="_blank"}};var anchors=document.getElementsByTagName("area");for(var i=0;i<anchors.length;i++){var anch=anchors[i];var anchor=anch.href;if(((anchor.indexOf('http://www.secret-bases.co.uk')!=0)&&(anchor.indexOf('http://www.alan-turnbull.co.uk')!=0)&&(anchor.indexOf('http://www.emmerdale.me.uk')!=0))||(anchor.indexOf('http://www.secret-bases.co.uk/IMG/')==0)||(anchor.indexOf('http://www.secret-bases.co.uk/docs/')==0)||(anchor.indexOf('http://www.secret-bases.co.uk/downloads/')==0)||(anchor.indexOf('http://www.emmerdale.uk/IMG/')==0)||(anchor.indexOf('http://www.emmerdale.uk/downloads/')==0)||(anchor.indexOf('http://www.emmerdale.me.uk/docs/')==0)|| (anchor.indexOf('ext.php?uri=')>=0)){anch.target="_blank"}}};function findString(str){var strFound;if(typeof document.body.createTextRange!='undefined'){if(typeof TRange=='undefined')TRange=null;if(TRange!=null){TRange.collapse(false);strFound=TRange.findText(str);if(strFound)TRange.select();};if(TRange==null||strFound==0){TRange=self.document.body.createTextRange();strFound=TRange.findText(str);if(strFound)TRange.select()}}
else{alert("Please use CTRL-F in this browser");return;};if(!strFound)alert("String '"+str+"' not found!");return;};function remove_holding_frame(){var ntl='http://homepage.ntlworld.com/alan-turnbull/';if(document.referrer.indexOf(ntl)>=0)return;if(top!=self){if(!isOpera()){top.location.replace(self.location.href)}else{top.location=self.location}}};function current_base(){return'/IMG/';};function list_images(){var ctr,num,nm,ln,i;var img_list=document.getElementsByTagName('img');num=img_list.length;open_popup();for(ctr=0;ctr<num;ctr++){nm=img_list[ctr].src;ln=nm.length;i=ln;do{i--}while(nm.charAt(i)!='/');mypopup.document.write(nm.substring(i+1,ln),'<br />');}};function clearloading(){var id=_eid("divload1");if(typeof(id)!='undefined')id.style.visibility='hidden';id=_eid("divload2");if(id)id.style.visibility='hidden';};function getBrowserParams(){var scrX=0;var scrY=0;var scrW=0;if(typeof(window.innerWidth)=='number'){scrW=window.innerWidth}else if(document.body&&document.body.clientWidth){scrW=document.body.clientWidth}else if(document.documentElement&&document.documentElement.clientWidth){scrW=document.documentElement.clientWidth;};if(typeof(window.pageXOffset)=='number'){scrX=window.pageXOffset}else if(document.body&&document.body.scrollLeft){scrX=document.body.scrollLeft}else if(document.documentElement&&document.documentElement.scrollLeft){scrX=document.documentElement.scrollLeft;};if(typeof(window.pageYOffset)=='number'){scrY=window.pageYOffset}else if(document.body&&document.body.scrollTop){scrY=document.body.scrollTop}else if(document.documentElement&&document.documentElement.scrollTop){scrY=document.documentElement.scrollTop;};return[scrX,scrY,scrW];};function isOpera(){return(navigator.userAgent.toLowerCase().indexOf("opera")!=-1)};function Floatdiv(){var pA=new Array(3);function Setup(){var pX,pY,pW,el=null;while(el==null){el=_eid("divMenu");setTimeout("delay_loop()",100)};el.y=0;el.c=390;el.x=0;if(isOpera()){el.style.position='absolute';pA=getBrowserParams();pX=pA[0];pY=el.y;pW=pA[2];if(pW>1024){el.x=896+(pW-1000)/2}else{el.x=pX+896}};return el};window.Monitor=function(){var pX,pY,pW;pA=getBrowserParams();pX=pA[0];pY=pA[1];pW=pA[2];if(pY>bubble.c){bubble.y+=((pY-bubble.y-bubble.c)/2.0)}else{bubble.y=0;};var pxx=document.layers?"":"px";if(isOpera()){if(pW>=1024){bubble.x=908+(pW-1024)/2}else{bubble.x=898};bubble.style.left=bubble.x+pxx};if(isOpera()){if(pY>bubble.c){bubble.style.top=pY+10+pxx}else{bubble.style.top=bubble.c}}else{bubble.style.top=bubble.y+pxx};setTimeout("Monitor()",100);};bubble=Setup();while(typeof bubble!='object'){setTimeout("delay_loop()",100)};Monitor();};function open_popup(){mypopup=window.open("","mypop");};function close_popup(){mypopup.close();};function close_link(){document.write('<\/A>');};function dcd(str){var i,res='';for(i=str.length-1;i>=0;i--){res+=str.charAt(i)};return(res);};function maddress(opt){var madd;madd=dcd(':otliam');switch(opt){case 1:madd+=dcd('seiriuqne');break;case 2:madd+=dcd('seiriuqne');break;case 3:madd+=dcd('seiriuqne');break;case 4:madd+=dcd('hcraeserifa');break;};madd+='@';if(opt==1){madd+=dcd('ku.oc.llubnrut-nala')};if(opt==2){madd+=dcd('ku.em.eladremme')};if(opt==3){madd+=dcd('ku.oc.sesab-terces')};if(opt==4){madd+=dcd('moc.tenretnitb')};return(madd);};function swp_elem(elem1,elem2){domReady(function dummy(){_eid(elem2).src=elem1.src})};function swp_over(item){if(typeof(item)!='undefined')item.style.fontSize='11px';};function swp_out(item){if(typeof(item)!='undefined')item.style.fontSize='12px';};function addMyBookmark(url,title){var brws;brws=navigator.userAgent.toLowerCase();if((brws.indexOf("firefox")!=-1)&&window.sidebar&&window.sidebar.addPanel){window.sidebar.addPanel(title,url,"")}else if(brws.indexOf("opera")!=-1){alert("Please add a bookmark in your Opera browser manually using Ctrl + T")}else if(brws.indexOf("msie")!=-1){window.external.AddFavorite(url,title)}else alert("Please add a bookmark manually using your browser's method (e.g., Ctrl + D)");};function _toPixel(a){return Math.round(a)+"px";};function _setAbsPosition(a,b){var c=a.style;c.position="absolute";c.left=_toPixel(b.x);c.top=_toPixel(b.y);};function _setWidthHeightStyle(a,b){var c=a.style;c.width=_toPixel(b.width);c.height=_toPixel(b.height);};function _getOwnerDocument(a){return(a?a.ownerDocument:null)||document;};function _appendChild(a,b){a.appendChild(b);};function _createElement(a,b,c,d){var e=_getOwnerDocument(b).createElement(a);if(b)_appendChild(b,e);if(c)_setAbsPosition(e,c);if(d)_setWidthHeightStyle(e,d);return e;};function getCookie(varName){var cookieFound=0;var start=0;var end=0;var CookieString=document.cookie;var i=0;while(i<=CookieString.length){start=i;end=start+varName.length;if(CookieString.substring(start,end)==varName){cookieFound=true;break;}i++;}if(cookieFound){start=end+1;end=document.cookie.indexOf(";",start);if(end<start)end=document.cookie.length;return document.cookie.substring(start,end);}return"";};function setCookie(varName,varValue){document.cookie=varName+"="+varValue+"; expires=Sat, 31 Dec 2011 23:59:59 GMT;";};function getmapparamsEmmerdale(){var mapsource,mapsize,maptype,chkval;mapsource=getCookie("EmmSrc");mapsize=getCookie("EmmSize");maptype=getCookie("EmmTyp");if(mapsource!=""){chkval=parseInt(mapsource);if((chkval<1)||(chkval>16))mapsource='15';_eid('myform').mapsrc.value=mapsource};if(mapsize!="")_eid('myform').mapsize.value=mapsize;if(maptype!="")_eid('myform').maptyp.value=maptype;};function setmapparamsEmmerdale(){setCookie("EmmSrc",_eid('myform').mapsrc.value);setCookie("EmmSize",_eid('myform').mapsize.value);setCookie("EmmTyp",_eid('myform').maptyp.value);};function getmapparamsSecret(){var mapsource,mapsize,maptype,chkval;mapsource=getCookie("SecSrc");mapsize=getCookie("SecSize");maptype=getCookie("SecTyp");if(mapsource!=""){chkval=parseInt(mapsource);if((chkval<1)||(chkval>16))mapsource='15';_eid('myform').mapsrc.value=mapsource};if(mapsize!="")_eid('myform').mapsize.value=mapsize;if(maptype!="")_eid('myform').maptyp.value=maptype;};function setmapparamsSecret(){setCookie("SecSrc",_eid('myform').mapsrc.value);setCookie("SecSize",_eid('myform').mapsize.value);setCookie("SecTyp",_eid('myform').maptyp.value);};function setsearchengine(){setCookie("SecSE",_eid('cse-search-box').cx.value);setCookie("SecQ",_eid('cse-search-box').q.value);};function getsearchengine(){var se=getCookie("SecSE");var sq=getCookie("SecQ");if(se!="")_eid('cse-search-box').cx.value=se;if(sq.toLowerCase().indexOf('_utm')!=(-1))return;if(sq!="")_eid('cse-search-box').q.value=sq;};function setosmapparams(x,y,z,t){setCookie("SecOSMap",'SecOSMap');setCookie("SecOSx",x);setCookie("SecOSy",y);setCookie("SecOSz",z);setCookie("SecOSt",t)};function setosmapparamsemm(x,y,z,t){setCookie("EmmOSMap",'EmmOSMap');setCookie("EmmOSx",x);setCookie("EmmOSy",y);setCookie("EmmOSz",z);setCookie("EmmOSt",t)};function getosmapparams(){var c,x,y,z,t;c=getCookie('SecOSMap');x=parseFloat(getCookie('SecOSx'));y=parseFloat(getCookie('SecOSy'));z=parseInt(getCookie('SecOSz'));t=parseInt(getCookie('SecOSt'));if(x.toString()=='NaN')return;if(typeof x!='number')return;if(y.toString()=='NaN')return;if(typeof y!='number')return;if(c=='SecOSMap'){_eid('os-lon').value=x;_eid('os-lat').value=y;_eid('os-zm').value=z;_eid('os-ty').value=t}};function getosmapparamsemm(){var c,x,y,z,t;c=getCookie('EmmOSMap');x=parseFloat(getCookie('EmmOSx'));y=parseFloat(getCookie('EmmOSy'));z=parseInt(getCookie('EmmOSz'));t=parseInt(getCookie('EmmOSt'));if(x.toString()=='NaN')return;if(typeof x!='number')return;if(y.toString()=='NaN')return;if(typeof y!='number')return;if(c=='EmmOSMap'){_eid('os-lon').value=x;_eid('os-lat').value=y;_eid('os-zm').value=z;_eid('os-ty').value=t}};
//]]>