// dummy code by arslanm@bilkent.edu.tr
var bcnt = 25;
function spwin(n, u, w, h, x) {
	var fstr = "width="+w+",height="+h+",resizable=1,status=0,scrollbars=1,toolbar=1,status=1";
	var spw = window.open(u, n, fstr);
	if(spw != null) {
	   if(spw.opener == null)
		spw.opener = self;
	}
	if(x == 1) {
		return spw;
	}
}
function _grand() {
	idx = Math.floor(100000 * Math.random()) % bcnt;
	url = "sp.php?u=" + idx;	
}

function _gs() {
	_grand();
	document.spb.src = "sp.php?j=" + idx;
	setTimeout('_gs()', 10000);
}
function jump() {
	var spn = "spon_url_" + idx;
	spwin(spn, url, 800, 600, 0);
}
_grand();
document.onload = setTimeout('_gs()', 10000);
// --
var xx = false;
if(xx == true) {
	document.write('<table border="0" cellpadding="2" cellspacing="0" width="478" height="60">');
	document.write('<tr><td width="468" height="60">');
}
document.write('<a href="#sp" onClick="jump()"><img name="spb" src="sp.php?j=' + idx + '" border="1" alt="(Sponsor adresine gitmek icin tiklayiniz)"></a>');
if(xx == true) {
	document.write('</td><td width="10" height="60" valign="center" align="left" nowrap>');
	document.write('<font face="verdana, arial, helvetica" size="-3" style="font: 9px/7px;">&#171;&nbsp;s<br>&#171;&nbsp;p<br>&#171&nbsp;o<br>&#171;&nbsp;n<br>&#171;&nbsp;s<br>&#171;&nbsp;o<br>&#171;&nbsp;r<br></font>');
	document.write('&nbsp;');
	document.write('</td></tr></table>');
}
