var p = window.location.pathname;
		var h = location.href;
		if (p != "/" && p.indexOf("") == -1 && p.charAt(p.length - 1) != '/')
			h += '/';

		if (location.hostname == "pageonesearch.com")
			h = h.replace("pageonesearch.com", "www.pageonesearch.com");

		if (h != location.href)
			location.replace(h);
			
var p2 = window.location.pathname;
		var h2 = location.href;
		if (p2 != "/" && p2.indexOf("") == -1 && p2.charAt(p2.length - 1) != '/')
			h2 += '/';

		if (location.hostname == "pageonesearch.co.uk")
			h2 = h2.replace("pageonesearch.co.uk", "www.pageonesearch.co.uk");

		if (h2 != location.href)
			location.replace(h2);		
			
var p3 = window.location.pathname;
		var h3 = location.href;
		if (p3 != "/" && p3.indexOf("") == -1 && p3.charAt(p3.length - 1) != '/')
			h3 += '/';

		if (location.hostname == "uk.pageonesearch.com")
			h3 = h3.replace("uk.pageonesearch.com", "www.pageonesearch.co.uk");

		if (h3 != location.href)
			location.replace(h3);
			
var p4 = window.location.pathname;
		var h4 = location.href;
		if (p4 != "/" && p4.indexOf("") == -1 && p4.charAt(p4.length - 1) != '/')
			h4 += '/';

		if (location.hostname == "www.uk.pageonesearch.com")
			h4 = h4.replace("www.uk.pageonesearch.com", "www.pageonesearch.co.uk");

		if (h4 != location.href)
			location.replace(h4);
			
var p5 = window.location.pathname;
		var h5 = location.href;
		if (p5 != "/" && p5.indexOf("") == -1 && p5.charAt(p5.length - 1) != '/')
			h5 += '/';

		if (location.hostname == "pageonesearch.weekendrush.com")
			h5 = h5.replace("pageonesearch.weekendrush.com", "www.pageonesearch.com");

		if (h5 != location.href)
			location.replace(h5);
			
// this is the worldwide dropdown			
			
<!--
//function qs(el){if(window.RegExp&&window.encodeURIComponent){var ue=el.href,qe=encodeURIComponent(document.search.q.value);if(ue.indexOf("q=")!=-1){el.href=ue.replace(new RegExp("q=[^&$]*"),"q="+qe);}else{el.href=ue+"?"+qe;}}return 1;}
function togDisp(e){stopB(e);var elems=document.getElementsByName('more');for(var i=0;i<elems.length;i++){var obj=elems[i],dp="";if(obj.style.display==""){dp="none";}obj.style.display=dp;}return false;}
function stopB(e){if(!e)e=window.event;e.cancelBubble=true;}
document.onclick=function(event){var elems=document.getElementsByName('more');if(elems[0].style.display==""){togDisp(event);}}
//-->

function addEngine(name,ext,cat,type)
{
    if ((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function")) { 
        window.sidebar.addSearchEngine(
            "http://assets.pageonesearch.com/"+name+".src",
            "http://assets.pageonesearch.com/"+name+"."+ext, name, cat
        );
    } else {
        alert("Sorry, you need a Mozilla-based browser to install a search plugin.");
    } 
}


function disableSelection(target){
if (typeof target.onselectstart!="undefined") //IE route
	target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
	target.style.MozUserSelect="none"
else //All other route (ie: Opera)
	target.onmousedown=function(){return false}
target.style.cursor = "default"
}

//Sample usages
//disableSelection(document.body) //Disable text selection on entire body
//disableSelection(document.getElementById("mydiv")) //Disable text selection on element with id="mydiv"