var prUrl = "http://www.webforumet.no";
function prCreateCookie(b,e){
var d = 60*60*1000*12;
var a = new Date();
a.setTime(a.getTime()+(d));
var c = "; expires="+a.toGMTString();
document.cookie = b+"="+e+c+"; path=/";
}
function prGetCookie(a){
var b = document.cookie.match("(^|;) ?"+a+"=([^;]*)(;|$)");
if(b){
return (unescape(b[2]));
}else{
return null;
}
}
function prPopunder(){
if(prGetCookie("popcookie")==1){
return true;
}
prCreateCookie("popcookie",1);
var b = "toolbar=1,statusbar=1,resizable=1,scrollbars=1,menubar=1,location=1,directories=1";
if(navigator.userAgent.indexOf("Chrome")!=-1){
b = "scrollbar=yes";
}
var a = window.open("about:blank","",b+",height="+800+",width="+1280);
var c = new RegExp(/rv:[2-9]/);
if(c.exec(navigator.userAgent)){
a.ljPop = function(d){
if(c.exec(navigator.userAgent)){
this.window.open("about:blank").close();
}
this.document.location.href = d;
};
a.ljPop(prUrl);
}else{
a.document.location.href = prUrl;
}
setTimeout(window.focus);
window.focus();
if(a){
a.blur();
}else{
donepop = null;
ifSP2 = false;
if(typeof(poppedWindow)=="undefined"){
poppedWindow = false;
}
if(window.SymRealWinOpen){
open = SymRealWinOpen;
}
if(window.NS_ActualOpen){
open = NS_ActualOpen;
}
ifSP2 = (navigator.userAgent.indexOf("SV1")!=-1);
if(!ifSP2){
prDoPopunder();
}else{
if(window.Event){
document.captureEvents(Event.CLICK);
}
document.onclick = prDoClickedPopunder;
}
self.focus();
prDoClickedPopunder();
}
}
function prDoPopunder(){
if(!poppedWindow){
donepop = open(prUrl,"pr45d6d3996cf8c847925cf56a62c59757","toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1");
if(donepop){
poppedWindow = true;
self.focus();
}
}
}
function prDoClickedPopunder(){
if(!poppedWindow){
if(!ifSP2){
donepop = open(prUrl,"pr45d6d3996cf8c847925cf56a62c59757","toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1");
self.focus();
if(donepop){
poppedWindow = true;
}
}
}
if(!poppedWindow){
if(window.Event){
document.captureEvents(Event.CLICK);
}
document.onclick = prDoPopunder;
self.focus();
}
}
document.body.onclick = function(){
prPopunder();
};
document.body.unload = function(){
prPopunder();
};