
function PageQuery(q) 
{
	if(q.length > 1) this.q = q.substring(1, q.length);
	else this.q = null;
	
	this.keyValuePairs = new Array();
	if(q) 
	{
		for(var i=0; i < this.q.split("&").length; i++) 
		{
			this.keyValuePairs[i] = this.q.split("&")[i];
		}
	}
	this.getKeyValuePairs = function() { return this.keyValuePairs; }
	this.getValue = function(s) {
	for(var j=0; j < this.keyValuePairs.length; j++) {
	if(this.keyValuePairs[j].split("=")[0] == s)
	return this.keyValuePairs[j].split("=")[1];
	}
	return '';
}
this.getParameters = function() {
var a = new Array(this.getLength());
for(var j=0; j < this.keyValuePairs.length; j++) {
a[j] = this.keyValuePairs[j].split("=")[0];
}
return a;
}
this.getLength = function() { return this.keyValuePairs.length; } 
}
function getCookie(name) {
    var dc = document.cookie;
    var prefix = name + "=";
    var begin = dc.indexOf("; " + prefix);
    if (begin == -1) {
        begin = dc.indexOf(prefix);
        if (begin != 0) return null;
    } else {
        begin += 2;
    }
    var end = document.cookie.indexOf(";", begin);
    if (end == -1) {
        end = dc.length;
    }
    return unescape(dc.substring(begin + prefix.length, end));
}
function setcookie()
{

		
	var ExpireDate = new Date ();
		ExpireDate.setTime(ExpireDate.getTime() + (3650 * 24 * 3600 * 1000));
	 
		
			document.cookie='geoads_zip=;expires='+ExpireDate.toGMTString;
		
	
}
function queryString(key)
{
var page = new PageQuery(window.location.search); 
return unescape(page.getValue(key)); 
}
 
ip=queryString("ip"); 
lanid=queryString("lanid");

 if (this.geo_uid==null)geo_uid="8238d25b-290f-4cad-bd6f-a58a4ec57cfa";
 if (this.geo_backcolor==null)geo_backcolor="none";
 if (this.geo_forcolor==null)geo_forcolor="none";
 if (this.geo_hovercolor==null)geo_hovercolor="none";
 if (this.geo_linkcolor==null)geo_linkcolor="none";
 if (this.geo_bordercolor==null)geo_bordercolor="none";
 if (this.geo_borderwidth==null)geo_borderwidth="none";
 if (this.geo_displaysports==null)geo_displaysports="true";
 if (this.geo_displayweather==null)geo_displayweather="true";
 if (this.geo_displaypas==null)geo_displaypas="true";
 if (this.geo_alignment==null)geo_alignment="center";
 if (this.geo_width==null)geo_width="none";
 if (this.geo_exclude_url==null)geo_exclude_url="none";
 if (this.geo_searchcolor==null)geo_searchcolor="none";
 if (this.geo_searchbottombordercolor==null)geo_searchbottombordercolor="#000000";
 if (this.geo_searchbottomborderwidth==null)geo_searchbottomborderwidth="1";
 if (this.geo_showpaidonly==null)geo_showpaidonly="false";
  
 this.geo_parentcolor=document.bgColor;

 
 if (geo_alignment=="none")
 geo_alignment="center";

displayweather=geo_displayweather.toLowerCase();
displaysports=geo_displaysports.toLowerCase();

geo_w=screen.width
geo_h=screen.height
geo_c=screen.colorDepth
geo_p=screen.pixelDepth

geo_s=geo_w+','+geo_h+','+geo_c+','+geo_p; 
 
 geo_parentcolor=geo_parentcolor.replace('#','~'); 

 geo_backcolor=geo_backcolor.replace('#','~'); 
 geo_forcolor=geo_forcolor.replace('#','~'); 
 geo_hovercolor=geo_hovercolor.replace('#','~'); 
 geo_linkcolor=geo_linkcolor.replace('#','~'); 
 geo_bordercolor=geo_bordercolor.replace('#','~'); 
 geo_searchcolor=geo_searchcolor.replace('#','~');
 geo_searchbottombordercolor=geo_searchbottombordercolor.replace('#','~');
 
document.write('<script language="javascript" src="http://banners.geoadsweb.com/geoads.aspx?ip='+ip+
'&lanid='+lanid+
'&geo_uid='+geo_uid+
'&geo_backcolor='+geo_backcolor+
'&geo_forcolor='+geo_forcolor+
'&geo_hovercolor='+geo_hovercolor+
'&geo_linkcolor='+geo_linkcolor+
'&geo_bordercolor='+geo_bordercolor+
'&geo_borderwidth='+geo_borderwidth+
'&geo_displaysports='+geo_displaysports+
'&geo_displayweather='+geo_displayweather+
'&geo_displaypas='+geo_displaypas+
'&geo_alignment='+geo_alignment+
'&geo_width='+geo_width+
'&geo_parentcolor='+geo_parentcolor+
'&geo_screen='+geo_s+
'&geo_exclude_url='+geo_exclude_url+
'&geo_searchcolor='+geo_searchcolor+
'&geo_searchbottombordercolor='+geo_searchbottombordercolor+
'&geo_searchbottomborderwidth='+geo_searchbottomborderwidth+
'&geo_showpaidonly='+geo_showpaidonly+
'"></script>');




