/*************TradeAds Script Code **************
*** Copyright 2009  tradeads.eu  All Rights Reserved.**/
tAdsSd = "ads.tradeads.eu"; 
if (typeof (tAdsUcs) == 'undefined') {tAdsUcs = 1 };
if(typeof(tAdsObj)=='undefined') tAdsObj = new TAdsCls();
else tAdsObj.p = null;
function TAdsCls()
{
    this.rnd = parseInt(Math.random() * Math.pow(10, 17));

    this.env = '&tz=' + ((new Date()).getTimezoneOffset()).toString() + '&__url=' + escape(document.URL) + '&__ref=' + escape(document.referrer) + '&domain=' + document.domain + ((screen.width) ? '&sw=' + screen.width : '') + ((screen.height) ? '&sh=' + screen.height : '');
	this.other=function(){var otP = "";otP=((this.p.size)?'&size='+this.p.size:'');return otP; }
	this.par =function(){return "z="+this.p.adzone;}	
	this.ck=function(){if(this.rnd && this.p && this.p.adzone) return true;else return false;}
	this.vP=function(){if(this.p.vP) return "&vP=" + this.p.vP; else return "";}
	this.prof = function() { var pV = (this.p.age) ? '&age=' + escape(this.p.age) : ''; pV += (this.p.gender) ? '&gender=' + escape(this.p.gender) : ''; pV += (this.p.married) ? '&married=' + escape(this.p.married) : ''; pV += (this.p.children) ? '&children=' + escape(this.p.children) : ''; pV += (this.p.income_per_month) ? '&income_per_month=' + escape(this.p.income_per_month) : ''; pV += (this.p.education) ? '&education=' + escape(this.p.education) : ''; pV += (this.p.occupation) ? '&occupation=' + escape(this.p.occupation) : ''; pV += (this.p.industry) ? '&industry=' + escape(this.p.industry) : ''; return pV; }
        this.GetBnr = function() { if (this.ck()) { document.write('<scrip' + 't SRC="http://' + tAdsSd + '/ads.aspx?' + this.par() + this.prof() + this.env + this.other() + '&tAdsUcs=' + tAdsUcs + '&rnd=' + this.rnd + this.vP() + '"></scr' + 'ipt>'); } }    
}
if (typeof(_tradeAdsP_)=='object') tAdsObj.p =_tradeAdsP_; 
tAdsObj.GetBnr();_tradeAdsP_ =null;


