// break out of frames
if(top.location != location) {
    top.location.href = document.location.href ;
}

//hide content when not needed
var ns6=document.getElementById&&!document.all?1:0
var head="display:''"
var folder=''

function enlarge(oject){
folder=ns6?oject.nextSibling.nextSibling.style:document.all[oject.sourceIndex+1].style
if (folder.display=="none")
folder.display=""
else
folder.display="none"
}
			function thisBrowser(){ //Browsercheck (essential!)
				this.ver=navigator.appVersion
				this.agent=navigator.userAgent
				this.dom=document.getElementById?1:0
				this.opera5=(navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?1:0
				this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;
				this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
				this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
				this.ie=this.ie4||this.ie5||this.ie6
				this.mac=this.agent.indexOf("Mac")>-1
				this.ns6=(this.dom && parseInt(this.ver) >= 5)?1:0;
				this.ns4=(document.layers && !this.dom)?1:0;
				this.bRwser=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
				return this
			}
		
			var bRwser=thisBrowser()
			if(document.layers){
				// ns4 layer correction
				scrX= innerWidth; scrY= innerHeight;
				onresize= function(){if(scrX!= innerWidth || scrY!= innerHeight){history.go(0)} }
			}
			// SubMenu object creator.
			function makeSubmenuObj(obj){
			   	this.css = bRwser.dom?document.getElementById(obj).style:bRwser.ie4?document.all[obj].style:bRwser.ns4?document.layers[obj]:0;
			   	this.writeref = bRwser.dom?document.getElementById(obj):bRwser.ie4?document.all[obj]:bRwser.ns4?document.layers[obj].document:0;
				this.writeIt = writeSubmenu;
			}
			// Writeout submenu
			function writeSubmenu(text,num){
				if (bRwser.ns4){
					this.writeref.write(text)
					this.writeref.close()
				}
				else this.writeref.innerHTML = "<table class=submenu><tr><td width=" + document.getElementById('sub' + num).offsetLeft + "></td>" + subMenu[num] + "</tr></table>"
			}

			// The mouseover function. Calls the writeIt method to write the text to the div.
			function ShowSub(num){
			if(bRwser.bRwser) objSubmenu.writeIt(subMenu[num], num)
				clearTimer();
			}

			// The initiatal function.
			function initMenu(){
				// Opera
				bRwser.opera5 = (navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?true:false
				if (bRwser.opera5) bRwser.ns6 = 0
				objSubmenu = new makeSubmenuObj('divSubmenu')
				//layer is hidden by default to prevent users from mousing over them and creating errors while the page loads.
				objSubmenu.css.visibility= "visible"
			}
			// Return the current page's menu with timer delay
			var returnCurrmenu
			function setTimer(){
				returnCurrmenu = window.setTimeout("ShowSub(currMenu)",1024);
			}
			// Reset timer
			function clearTimer(){
				clearTimeout(returnCurrmenu);
			}
			
function popup(){
var params = document.title;
if(params == "Sikkens Joinery UK and Eire - Sikkens Wood protection ..."){
var neuesfenster = window.open
("http://www.sikkens-joinery.co.uk/NR/exeres/DF1A0BF9-4E48-45D0-B140-A109EE7A8B93.htm",
"Sikkens","scrollbars=no,status=no,resizable=no,height=400,width=349");
}
}

function ExecOnload(func) {
  var PrefOnload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      PrefOnload();
      func();
    }
  }
}
ExecOnload(popup);
ExecOnload(function() {
});