﻿// GeoPop Javascript Ad Injector
// AdultAdworld.com
// Written by Joe 5/23/2008
// joe@adworldmedia.com
<!-- Begin
var perfban_uri = "http://cluster.adultadworld.com/geopop/geopop.aspx";

function displayBan(pid, loc, data, freq)
{
    var myStr='';
    var strOut = '';
    var myRandom=parseInt(Math.random()*99999999);
    var screenWidth = pageWidth() - 50;
    var screenHeight = pageHeight() - 50;
    //Check screen width and height to ensure its a certain size
    if(screenWidth >= 590 && screenHeight >= 390)
    {
        //var sender = new Image();
        //sender.src = "http://cluster.adultadworld.com/logging/logging.aspx?f=" + pid + "&u=" + window.location + "&m=GEOPOP window size: " + pageWidth() + "x" + pageHeight() + "&ref=" + document.referrer + "&ua=" + navigator.userAgent;
	    //strOut = '<script language="javascript">window.location="http://friends.dormitory.com/1/welcome9.html"</script>';
        //document.write(strOut);
            
        strOut = '<link rel="stylesheet" href="http://cluster.adultadworld.com/geopop/windowfiles/dhtmlwindow.css" type="text/css" />';
        document.write(strOut);
        strOut = '<script type="text/javascript" src="http://cluster.adultadworld.com/geopop/windowfiles/dhtmlwindow.js"></script>';
        document.write(strOut);
        myStr += perfban_uri + '?bust=' + myRandom + '&pid=' + pid + '&cname=' + loc + '&ch=' + data + '&w=' + screenWidth + '&h=' + screenHeight + '&fr=' + freq;
        strOut = '<script language="javascript" src="' + myStr + '"></script>';
        document.write(strOut);
    }
    else
    {
        //var sender = new Image();
        //sender.src = "http://cluster.adultadworld.com/logging/logging.aspx?p=" + pid + "&u=" + window.location + "&m=GEOPOP window size: " + pageWidth() + "x" + pageHeight() + "&ref=" + document.referrer + "&ua=" + navigator.userAgent;
	    //strOut = '<script language="javascript">window.location="http://friends.dormitory.com/1/welcome9.html"</script>';
        //document.write(strOut);
        
        strOut = '<link rel="stylesheet" href="http://cluster.adultadworld.com/geopop/windowfiles/dhtmlwindow.css" type="text/css" />';
        document.write(strOut);
        strOut = '<script type="text/javascript" src="http://cluster.adultadworld.com/geopop/windowfiles/dhtmlwindow.js"></script>';
        document.write(strOut);
        myStr += 'http://cluster.adultadworld.com/geopop/geopop_default.aspx';
        strOut = '<script language="javascript" src="' + myStr + '"></script>';
        document.write(strOut);        
    }
}

// Browser Window Size and Position
// copyright Stephen Chapman, 3rd Jan 2005, 8th Dec 2005
// you may copy these functions but please keep the copyright notice as well
function pageWidth() {return window.innerWidth != null? window.innerWidth : document.documentElement && document.documentElement.clientWidth ?       document.documentElement.clientWidth : document.body != null ? document.body.clientWidth : null;} function pageHeight() {return  window.innerHeight != null? window.innerHeight : document.documentElement && document.documentElement.clientHeight ?  document.documentElement.clientHeight : document.body != null? document.body.clientHeight : null;} function posLeft() {return typeof window.pageXOffset != 'undefined' ? window.pageXOffset :document.documentElement && document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ? document.body.scrollLeft : 0;} function posTop() {return typeof window.pageYOffset != 'undefined' ?  window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ? document.body.scrollTop : 0;} function posRight() {return posLeft()+pageWidth();} function posBottom() {return posTop()+pageHeight();}
                    
// End-->
