document.onkeydown = makenav;
adv_cnt=0;

var wpx_value=(typeof(screen)=='undefined')?'':screen.width*1;
scookie('wpx',wpx_value,60);
scookie('hits',gcookie('hits')*1+1,0);

function makenav(event) {
	if (!document.getElementById) return;
	if (window.event) event = window.event;
	if (event.ctrlKey) {
		var link = null;
		switch (event.keyCode ? event.keyCode : event.which ? event.which : null) {
			case 0x25: link=document.getElementById('PL'); break;
			case 0x27: link=document.getElementById('NL'); break;
		}
		if (link && link.href) document.location = link.href;
	}
}

function sms(p) { 
	sowind=window.open('http://zz.smsonline.ru/s/zz.cgi?id=369&f=http://img.desktopwallpapers.ru/'+p, 'smsonline'+parseInt(Math.random()*10000),'width=780,height=560,status=1,resize=0');
	sowind.focus(); 
}

function showcard() {
	if (document.getElementById('card_id')) {
		var cd = document.getElementById('card_id').value;
		if (cd.length != 16) { alert("Введен неверный код для получения открытки"); }
		else { window.open('/cards/show.php?q='+cd,'','width=450,height=500,scrollbars=yes,toolbars=no,resize=no'); }
	}
}

function fav(nav,br,sr) {
	var res,def_txt,r,a1,a2;
	if (sr==1) {
		r=(typeof(screen)=='undefined')?'':screen.width+'x'+screen.height;
		if (r=='1280x800' || r=='1440x900' || r=='1680x1050' || r=='1366x768') { a1='<a href="/'+r+'/">'; a2='</a>'; } else { a1=''; a2=''; }
		res=(r=='')?'&nbsp;':'<span>Ваше разрешение: '+a1+r+a2+'</span>';
	} else {
		if (sr==0) { def_txt='"введите код" onclick=\'if (this.value=="введите код") { this.value=""; }\' onblur=\'if (this.value=="") { this.value="введите код"; }\''; }
		else { def_txt='"'+sr+'"'; }
		res='<nobr><input type=text id=card_id maxlength=16 value='+def_txt+'><input type=button value="получить открытку" class=sub_mp onclick="showcard();"></nobr>';
	}
	if (nav=="Netscape" || nav=="Opera") {
		document.write('<div class=fav><div class=fav_left><nobr><span>Добавить в избранное (Ctrl+D)</span></nobr>'+br+'<a href="/oops!/start_no_js.html" rel="nofollow" target="_blank" onclick="window.open(\'/oops!/'+nav+'.html\',\'\',\'width=400,height=230\',\'scrollbars=no,toolbars=no,resize=no\');return false">Сделать&nbsp;стартовой</a></div><div class=fav_right>'+res+'</div></div>');
	} else {
		document.write('<div class=fav><div class=fav_left><nobr><a class=hand onclick="window.external.AddFavorite(\'http://www.desktopwallpapers.ru/\',\'DesktopWallpapers.ru - Обои для рабочего стола\');">Добавить в избранное</a>'+br+'<a class=hand onclick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.desktopwallpapers.ru/\');">Сделать&nbsp;стартовой</a></nobr></div><div class=fav_right>'+res+'</div></div>');
	}
}

function getExpDate(d, h, m) {
	var expDate=new Date();
	expDate.setDate(expDate.getDate() + parseInt(d));
	expDate.setHours(expDate.getHours() + parseInt(h));
	expDate.setMinutes(expDate.getMinutes() + parseInt(m));
	return expDate.toGMTString();
}

function getsec() {
	var x=new Date();
	return parseInt((x.getTime()-x.getTime()%1000)/1000);
}

function scookie(cn, yn, days) {
	var ex;
	if (days==0) { ex=getExpDate(0,6,0); } /* 6 hour */
	else { ex=getExpDate(days,0,0); }
	document.cookie = cn + "=" + escape(yn) + "; expires=" + ex + "; path=/; domain=www.desktopwallpapers.ru;";
}

function gcookie(n){
	n+='='; c=document.cookie;
	if (c.length > 0){
		o=c.indexOf(n);
		if (o!=-1){
			o+=n.length;e=c.indexOf(';',o);
			if (e==-1) e=c.length;
			return unescape(c.substring(o,e))
		}
	}
	return '';
}

function showban_r_x() {
	var c_count,c_time,t_int;
	c_count=gcookie('adv_b1');
	if (c_count=='') { c_count=0; }
	c_count=parseInt(c_count);
	if (c_count<8) {
		c_count+=1;
		c_time=getsec(); 
		t_int=gcookie('adv_b1_t'); if (t_int=='') { t_int=0; }
		t_int=parseInt(t_int);
		if (gcookie('adv_b1_t')=='' || c_time-t_int>20) {
			scookie('adv_b1',c_count,0);
			scookie('adv_b1_t',c_time,0);
			document.write('<center><iframe src="/adv/iframe.php?cmp=2&rand='+Math.random()+'" frameborder=0 vspace=0 hspace=0 width=120 height=244 marginwidth=0 marginheight=0 scrolling=no></iframe></center>');
		} else {
			get_txt_adv('');
		}
	} else {
		get_txt_adv('');
	}
}

function go_to(razd,page,sort) {
	var lh;
	if (page=='1' && sort=='number') { lh='/'+razd+'/'; scookie('nru_sort','number','15'); }
	else { lh='/'+razd+'/?part='+page+'&sort='+sort; }
	window.location.href=lh;
}

function pages_and_sorts(razd,sort,part,num_pages) {
	document.write('<tr><td class=\'l l2\'>страница: <select onchange=\"go_to(\''+razd+'\',this.value,\''+sort+'\');\">');
	for (i=1; i<=num_pages; i++) {
		document.write('<option value='+i);
		if (i==part) { document.write(' selected'); }
		document.write('>'+i);
	}
	document.write('</select></td><td class=\'r2 l2\' colspan=2>сортируем: ');
	if (sort=='number') {
		document.write('по дате добавления &#149; <a href="/'+razd+'/?part='+part+'&sort=mark" rel="nofollow">по популярности</a>');
	} else {
		if (part=='1') {
			document.write('<a href="/'+razd+'/" onclick="scookie(\'nru_sort\',\'number\',\'15\');" rel="nofollow">по дате добавления</a>');
		} else {
			document.write('<a href="/'+razd+'/?part='+part+'&sort=number" rel="nofollow">по дате добавления</a>');
		}
		document.write(' &#149; по популярности');
	}
	document.write('</td></tr>');
}

function nw(a,b,c,d) { 
	window.open(a,'','height='+c+',width='+d+',resizable=0,scrollbars='+b+',location=no,menubar=no,status=no'); 
}

function imageresize(img, w1, h1, w2, h2) {
	if (img.width > w2+1) { img.width=w2; img.height=h2; } 
	else { img.width=w1; img.height=h1; } 
}

function get_liru() {
	document.write('<img src="http://counter.yadro.ru/hit?r'+escape(document.referrer)+((typeof(screen)=='undefined')?'':';s'+screen.width+'*'+screen.height+'*'+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+';u'+escape(document.URL)+';'+Math.random()+'" width=1 height=1 border=0>');
}

function get_voting(rzd,pic,fname) {
	base='<a onclick=av("'+rzd+'",'+pic+',';
	li='</a>&nbsp;&#150;&nbsp;';
	document.write('<tr><td colspan=2><div id=vt><div class=dx1>оцените&nbsp;картинку:</div><div class=dx2>'+base+'2);>ужасно'+li+base+'4);>плохо'+li+base+'6);>средне'+li+base+'8);>хорошо'+li+base+'10);>супер</a></div><br clear=all style=line-height:0;></div><table class=\'like no_border\'><tr><td><div id=vk_like></div></td>'+
	'<td style=padding-top:3px;><g:plusone href="http://www.desktopwallpapers.ru/'+rzd+'/download/?pic='+pic+'"></g:plusone></td>'+
	'<td><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.desktopwallpapers.ru%2F'+rzd+'%2Fdownload%2F%3Fpic%3D'+pic+'&amp;layout=standard&amp;show_faces=false&amp;width=300&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=27" scrolling="no" frameborder="0" id="fb_iframe" allowTransparency="true" style=width:300px;height:27px;></iframe></td></tr></table></td></tr>'+
	'<tr><td colspan=2><table class=\'tw no_border\'><tr><td nowrap><ul class=m><li><a onclick=nw("/cards/?cat='+rzd+'&pic='+pic+'",0,340,500); class=n1>отправить открытку</a></li></ul></td><td nowrap><ul class=m><li><a onclick=sms("'+rzd+'/pics/'+fname+'.jpg"); class=n2>на мобильный</a></li></ul></td>'+
	'<td nowrap><ul class=m><li><a onclick=nw("/friends.php?cat='+rzd+'&pic='+pic+'",0,200,500); class=n3>ссылку другу</a></li></ul></td>'+
	'<td nowrap><ul class=m><li><a onclick=nw("/inst.html",0,300,360); class=n4>как поставить?</a></li></ul></td></table></td></tr>');
}

function setresizelink(width) {
	if (document.body.clientWidth && document.body.clientWidth-390<width) {
		document.write('<div id="descr"></div><a class=hand onclick=res();>');
	}
}

function sview(razd,pic,name,reso,author) {
	var links=new Array(0,800,1024,1152,1280,1600);
	var names=new Array('0','800x600','1024x768','1152x864','1280x1024','1600x1200');
	var wide_links=new Array(1280,1366,1440,1680);
	var wide_names=new Array('1280x800','1366x768','1440x900','1680x1050');
	var r=(typeof(screen)=='undefined')?'':screen.width+'x'+screen.height;
	var curr_res, c, c2, c3, st, fn, cl, tc='', _class=' class=nb', stop=0;
	var img_alt='', img_title='', wide_code='';
	var default_link='<a href="/'+razd+'/download/?pic='+pic+'&res=';
	var default_wide_link='<a rel="nofollow" href="/resize/?cat='+razd+'&pic='+pic+'&reso=';
	var link_name='в разрешении ';
	var title='" title="загрузить обои ';
	var o_t='<div class=rb id=view><div class=cr><div class=t><div class=r><div class=b><div class=l><table class=\'no_border vr\' width=100%>';
	var c_t='</table></div></div></div></div></div></div>';
	var hk=(typeof(screen)=='undefined')?5000:screen.width*1;
	if (hk<1150) { var btr='</tr><tr>'; } else { var btr=''; }
	
	if (name!='') {
		link_name='&laquo;'+name+'&raquo; '+link_name;
		img_alt=' alt="'+name+'"';
		img_title=' title="'+name+'"';
	}
	for (var i=1;i<names.length;i++) {
		if (reso[i]!=0) {
			if (stop==0) { curr_res=links[i]; }
			if (names[i]==r) { stop=1; }
			if (r==names[i]) { c='<td class=rec_res>'; c2=c; c3='<td class=c3>'+default_link+links[i]+'"><img src=http://img.desktopwallpapers.ru/i/leftarr.gif border=0 title="Ваше разрешение экрана"></a></td>'; }
			else { c='<td>'; c2='<td colspan=2>'; c3=''; }
			tc=tc+'<tr'+_class+'>'+c+default_link+links[i]+title+link_name+names[i]+'">'+names[i]+'</a></td>'+c+reso[i]+' Кб</td>'+c2+default_link+links[i]+title+link_name+names[i]+'">загрузить обои</a></td>'+c3+'</tr>';
			_class='';
		}
	}
	document.write('<table class=\'sr no_border\'><tr><td class=img>'+default_link+curr_res+'"'+img_title+'><img '+
	'src="http://img.desktopwallpapers.ru/'+razd+'/pics/'+pic+'-200.jpg" width=200 height=150 border=0'+img_alt+'></a></td>'+btr+
	'<td class=res>доступные разрешения '+o_t+tc+c_t);
	
	if (reso[4]+reso[5]!=0) {
		if (reso[4]!=0 && reso[5]!=0) { st=0; fn=4; }
		else {
			if (reso[4]!=0) { st=0; fn=1; } 
			else { st=1; fn=4; }
		}
		
		for (var i=st;i<fn;i++) {
			if (r==wide_names[i]) { cl=' class=rec_res_w'; } else { cl=' class=res_w'; }
			wide_code=wide_code+'<td'+cl+'>'+default_wide_link+wide_links[i]+'">'+wide_names[i]+'</a></td>';
		}
		document.write('<br>создание широкоформатной версии '+o_t+'<tr class=nb>'+wide_code+'</tr>'+c_t);
	}
	document.write('<div class=aut>'+author+'</div></td></tr></table>');
}

function resizewp(awidth,aheight,small_width,small_height) {
	var ob=document.getElementById('wallpaper');
	var ds=document.getElementById('descr');
	if (ob.width==awidth) { 
		if (document.body.clientWidth) { 
			small_width=document.body.clientWidth-390; 
			if (small_width<600) { small_width=600; }
			small_height=Math.round(aheight*small_width/awidth);
		}
		if (small_width<awidth) {
			ob.width=small_width;
			ob.height=small_height; 
			ds.innerHTML='нажмите на картинку, чтобы посмотреть ее в реальном разрешении ('+awidth+'x'+aheight+' пикселей)';
			ds.style.display='inline';descr.style.display='block';
		}
	} else { 
		ob.width=awidth;
		ob.height=aheight;
		ds.innerHTML='';
		ds.style.display='none';
	}
	return ob.width;
}

function rich_kavanga() {
	if (typeof(pr) == 'undefined') { var pr = Math.floor(Math.random() * 1000000); }
	if (typeof(document.referrer) != 'undefined') {
		if (typeof(afReferrer) == 'undefined') { afReferrer = escape(document.referrer); }
	} else { 
		afReferrer = ''; 
	}
	var addate = new Date();
	document.write('<scr'+'ipt type="text/javascript" src="http://a.kavanga.ru/3604/prepareCode?p1=ssz&p2=p&pucn=a&pfc=a&pfb=a&plp=b&pli=b&pop=a&pr='+pr+'&pt=b&pd='+addate.getDate()+'&pw='+addate.getDay()+'&pv='+addate.getHours()+'&py=a&prr='+afReferrer+'"><\/scr'+'ipt>');
}

function rich_soloway() {
	var no_cache = Math.round(Math.random()*1000000000);
	var ref='unknown'; if (document.referrer) ref=escape(document.referrer);
	document.write('<sc'+'ript language="JavaScript" src="http://ad.adriver.ru/cgi-bin/erle.cgi?sid=162713&bt=16&target=blank&rnd='+no_cache+'&tail256='+ref+'"></sc'+'ript>');
}

function view_bline(razd,pic,fname) {
	var r=(typeof(screen)=='undefined')?0:screen.width;
	document.write('<div class=rb id=view2><div class=cr><div class=t><div class=r><div class=b><div class=l>'+
	'<center><table class=\'vr no_border\'><tr><td class=bot><a class=hand onclick=nw("/cards/?cat='+razd+'&pic='+pic+'",0,340,500);><img class=rv src="http://img.desktopwallpapers.ru/pc.gif" width=33 height=30 border=0><br>отправить как открытку</a></td>'+
	'<td class=bot><a class=hand onclick=sms("'+razd+'/pics/'+fname+'.jpg");><img class=tm src="http://img.desktopwallpapers.ru/tomob.gif" width=60 height=28 border=0><br>поставить на мобильник</a></td>');
	if (r<1100) { document.write('</tr><tr><td class=bot colspan=2>'); }
	else { document.write('<td class=bot>'); }
	document.write('<a class=hand onclick=nw("/friends.php?cat='+razd+'&pic='+pic+'",0,200,500);><img class=rv src="http://img.desktopwallpapers.ru/tf.gif" width=30 height=30 border=0><br>отправить ссылку другу</a></td></tr></table></center></div></div></div></div></div></div>');
}

function get_txt_adv(yn) {
	if (typeof(adv_cnt)=='undefined' || adv_cnt<10) {
		if (yn=='mp') {
			yandex_stat_id=41125;yandex_direct_type='horizontal';
			yandex_site_bg_color='6E78AB';yandex_direct_title_color='D7FFFF';yandex_direct_url_color='B9FFFF';yandex_direct_all_color='EEFFFF';
			yandex_direct_text_color='EEFFFF'; yandex_direct_bg_color='6E78AB';
			yandex_direct_limit=4;
		} else {
			yandex_stat_id=1;yandex_direct_type='vertical';
			yandex_site_bg_color='6A789F';yandex_direct_title_color='FFEADA';yandex_direct_url_color='FFFFFF';yandex_direct_all_color='FFFFFF';
			yandex_direct_text_color='FFFFFF'; yandex_direct_bg_color='6A789F';
			yandex_direct_limit=3;
		}
		yandex_font_size=1;
		yandex_font_family='arial';
		yandex_direct_border_color='6e78ab';
		yandex_direct_place='yd';
		yandex_partner_id=35971;
		yandex_site_charset='windows-1251';
		yandex_ad_format='direct';
		yandex_direct_border_type='ad';
		yandex_direct_header_bg_color='FFFAFA';
		yandex_direct_hover_color='FFFFFF';
		yandex_direct_favicon=true;
		document.write('<sc'+'ript type="text/javascript" src="http://an.yandex.ru/system/context.js"></sc'+'ript>');
	}
}

function show_240x400_adv() {
	if (document.URL.indexOf('/view/')!=-1 || document.URL.indexOf('part=4')!=-1 || document.URL.indexOf('part=5')!=-1 || document.URL.indexOf('part=6')!=-1 || document.URL.indexOf('part=7')!=-1 || document.URL.indexOf('part=8')!=-1 || document.URL.indexOf('part=9')!=-1 || document.URL.indexOf('1280x800')!=-1 || document.URL.indexOf('1366x768')!=-1 || document.URL.indexOf('1440x900')!=-1 || document.URL.indexOf('1680x1050')!=-1 || document.URL.indexOf('online')!=-1 || document.URL.indexOf('widescreen')!=-1) {
		if(typeof(ar_cn)=="undefined") { var ar_cn=2; } else { var ar_cn=3; }
		var ar_Tail=document.referrer ? escape(document.referrer) : 'unknown';
		var ar_link="http://ad.adriver.ru/cgi-bin/erle.cgi?sid=162713&bt=49&target=blank&tail256=" + ar_Tail;
		document.write('<div style="visibility:hidden;height:0px;"><iframe id="ar_container_'+ar_cn+'" width=1 height=1 marginwidth=0 marginheight=0 scrolling=no frameborder=0><\/iframe><\/div><div style=margin-bottom:15px; id="ad_ph_'+ar_cn+'"><\/div>');
		function ar_getDoc(t,n,l){var doc;if(t<100){if(document.all && !window.opera){doc = window.frames['ar_container_'+n].document}
		else if(document.getElementById){doc=document.getElementById('ar_container_'+n).contentDocument}
		if(!doc){setTimeout('ar_getDoc('+(++t)+','+n+',"'+l+'")', 100)}else {var RndNum4NoCash = Math.round(Math.random() * 1000000000);
		doc.write ('<sc'+'ript language="JavaScript" type="text/javascript">var ar_bnum='+n+';<\/sc'+'ript>');
		doc.write ('<sc'+'ript language="JavaScript" type="text/javascript" src="'+l+'&rnd='+RndNum4NoCash+'"><\/sc'+'ript>');}}}
		(function(num,link){function addEvent(e,t,f){if(e.addEventListener)e.addEventListener(t,f,false);else if(e.attachEvent)e.attachEvent('on'+t,f)}
		function removeEvent(e,t,f){if(e.removeEventListener)e.removeEventListener(t,f,false);else if(e.detachEvent)e.detachEvent('on'+t,f)}
		var BannerLoader={top:0,height:400,cm:document.compatMode=="CSS1Compat",
		scroll:function(){var ch=self.innerHeight||this.cm&&document.documentElement.clientHeight||document.body.clientHeight;
		var st=self.pageYOffset||this.cm&&document.documentElement.scrollTop||document.body.scrollTop;
		var sh=self.scrollHeight||this.cm&&document.documentElement.scrollHeight||document.body.scrollHeight;
		if((st-this.top<=this.height*0.2&&st+ch-this.top>=this.height*0.8)||(sh-this.top<=this.height*0.8&&(sh-st-ch<1||sh<ch))){
		removeEvent(window,'scroll',this.sfunc);ar_getDoc(0,num,link)}},
		sfunc: function(){BannerLoader.scroll()},init:function(){var t=this,obj=document.getElementById('ad_ph_'+num);
		if(obj){while(obj.offsetParent){t.top += obj.offsetTop; obj = obj.offsetParent}
		addEvent(window,'scroll',this.sfunc);t.scroll()}}};addEvent(window, 'load', function(){BannerLoader.init()})})(ar_cn++,ar_link);
		
		if (document.URL.indexOf('1280x800')!=-1 || document.URL.indexOf('1366x768')!=-1 || document.URL.indexOf('1440x900')!=-1 || document.URL.indexOf('1680x1050')!=-1 || document.URL.indexOf('widescreen')!=-1) {
			adv_cnt=0;
		} else {
			adv_cnt=11;
		}
	}
}

function export_links(title,link,image) {
	var ii=0;
	link='http://www.desktopwallpapers.ru'+link;
	var ln = encodeURI(link);
	var tt = escape(title);
	var links = {
	'facebook': 'http://www.facebook.com/share.php?u='+link.replace('=','%3d').replace('view','download'),
	'lj': 'http://www.livejournal.com/update.bml?subject='+encodeURIComponent(title)+'&event='+link.replace('=','%3d'),
	'twitter': 'http://twitter.com/home?status='+encodeURIComponent(title+ ' '+link),
	'yandex': 'http://my.ya.ru/posts_add_link.xml?title='+title+'&URL='+link,
	'liru': 'http://www.liveinternet.ru/journal_post.php?action=n_add&cntitle='+tt+'&cnurl='+ln,
	'myspace': 'https://secure.myspace.com/index.cfm?fuseaction=login.simpleform&featureName=postToV3&dest='+ln,
	'googlebuzz': 'http://www.google.com/buzz/post?message='+tt+'&url='+ln,
	'mailru': 'http://connect.mail.ru/share?share_url='+ln,
	'blogger': 'http://www.blogger.com/blog_this.pyra?t&a=ADD_SERVICE_FLAG&alinsu=0&aplinsu=0&alwf=true&passive=true&hl=ru&skipvpage=true&rm=false&showra=1&fpui=2&naui=8&u='+ln+'&n='+tt
	};
	var alts = {
	'facebook': 'Facebook',
	'lj': 'LiveJournal',
	'twitter': 'Twitter',
	'yandex': 'Я.ру (Мой Яндекс)',
	'liru': 'Liveinternet',
	'myspace': 'MySpace',
	'googlebuzz': 'Google Buzz',
	'mailru': 'Мой Мир',
	'blogger': 'Blogger.com'
	};
	
	document.write('<noindex><div id=exp>'+
	'<table class=no_border><tr><td nowrap class=ps>Поделитесь ссылкой</td><td><scr'+'ipt type=\'text/javascript\'>'+
	'docum'+'ent.wr'+'ite(VK.Share.button({ url: \''+link+'\', '+
  	'title: \''+title+'\', image: \'http://www.desktopwallpapers.ru'+image+'\', '+
  	'noparse: true},{type: \'round_nocount\', text:\'Вконтакте\' }))'+
	'</scr'+'ipt></td>');

	for(var v in links){
		document.write('<td><div class=de style=\'background-position:-'+Math.floor(ii*16)+' 0\'><a rel=\'nofollow\' title=\'Опубликовать в '+alts[v]+'\' href=\''+links[v]+'\' target=\'_blank\'><img src=http://img.desktopwallpapers.ru/i/null.gif></a></div></td>');
		ii++;
	}
	
	document.write('</tr></table></div></noindex>');
}

function get_rub_like(vk_num,fb_url) {
	document.write('<table class=\'like no_border\' style=\'margin:-2px 0px 1px 2px;\'><tr><td><div id=vk_like></div></td><td style=padding-top:5px;><g:plusone></g:plusone></td><td><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.desktopwallpapers.ru'+fb_url+'&amp;layout=standard&amp;show_faces=false&amp;width=270&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=25" scrolling="no" frameborder="0" id="fb_iframe2" allowTransparency="true"></iframe>');
	document.write('</td></tr></table>');
	window.onload = function() {
		VK.init({apiId: 2007514, onlyWidgets: true});
		VK.Widgets.Like('vk_like', {type: 'button'}, vk_num);
	}
}

function page_update() {
	window.location.href=window.location.href;
}

function kulichki_468x60_adv() {
	var rra = Math.round(Math.random()*100000);
	document.write('<iframe src="http://rotabanner.kulichki.com/cgi-bin/iframe/desktopwallpapers?'+rra+'" width=468 height=60 marginwidth=0 marginheight=0 scrolling=no frameborder=0><a href="http://rotabanner.kulichki.com/cgi-bin/href/desktopwallpapers?'+rra +'" target=_blank><img src="http://rotabanner.kulichki.com/cgi-bin/banner/desktopwallpapers?'+rra+'" alt="Kulichki Networks" width=468 height=60 border=0 ismap></a></iframe>');
}
