banServerTF = 'http://ad.glossymedia.pl/ad/';
banServerFileTF = 'http://adp.glossymedia.pl/ad/';
var banServerTFJS = 'http://ad.glossymedia.pl/';
var banViewedXxByPozTF = '';


function putBanGM(typR){
	var typ=typR;
	if (typR==481) typ=48;
	
	var isRotType = false;
	if (typeof banRotXxByPozTF != "undefined") {
                if (typeof banRotXxByPozTF[typ] != "undefined") {
                        isRotType = true;
                }
        }
	
	if (!isRotType) {
		
		if (typeof banXxByPozTF[typ] != "undefined"){
			document.write('<scr'+'ipt type="text/javascript" src="'+banServerFileTF+'GetBanFile?bxx='+banXxByPozTF[typ]+'"><\/script>');
			banViewedXxByPozTF+=banXxByPozTF[typ]+',';
		} else if(typR==48) {
			document.write('<div class="bb2" align="right"><a class="bb48r" href="http://serwisy.gazeta.pl/linki/0,52960.html" >+ dodaj swoją reklamę </a></div>');
		}
	} else {
	            if (getBanObj("banP" + typ)) getBanObj("banP" + typ).style.display="block";  

                document.write('<div id="rot' + banXxByPozTF[typ] + '"></div>'); 
                document.write('<div id="rotBottom' + banXxByPozTF[typ] + '" style="text-align:right; margin-bottom:5px; "><img src="/i/reklama/rot/strzalki_napis.gif" style="border:0;vertical-align:middle;padding-right:5px;"/><a href="javascript:backBanGM(' + typ + ');"><img src="/i/reklama/rot/strzalki_left.gif" style="border:0;vertical-align:middle;"/></a><a href="javascript:forwardBanGM(' + typ + ')"><img src="/i/reklama/rot/strzalki_right.gif" style="border:0;vertical-align:middle;"/></a></div>');
                if (banXxByPozTF[typ]){
                        banViewedXxByPozTF+=banXxByPozTF[typ]+',';
                }
                drawBannerGM(typ);
                startRotateGM(typ);
	}
}


function countBanGM(dx){ 

	if (banViewedXxByPozTF!=''){
		document.write('<scr'+'ipt type="text/javascript" src="'+banServerTF+'CountBan?dx='+dx+'&bxx='+banViewedXxByPozTF+'&banKey='+banKeyTF+'"><\/script>');
	}
}
function getBanObj(obj) {
if (document.all) return eval('document.all.'+obj); else if (document.getElementById) return eval("document.getElementById('"+obj+"')"); 
}

function banDoIt(txt) { 
eval(unescape(eval(txt))); 
	// eval(unescape(txt)); 
}

if (typeof banRotXxByPozTF != "undefined") {
    document.write('<scr'+'ipt type="text/javascript" src="'+banServerTFJS+'info/ban/silnikRotGM.js"><\/script>');
}