if(cno==50)
{
  self.location.href='http://www.oneroom.com/';
}



var tailurl = '';

ref=document.referrer;
if( typeof("parent.document") != "unknown" ){
	eval("try{ url = parent.document.URL ;}catch(_e){ url='';}");
	if(url.indexOf('#') > 8 ){
		tailurl="#" + url.substring(url.indexOf('#')+1,url.length);
		url = url.substring(0,url.indexOf('#')) ;
	}
}
else{
	url = '' ;
}
if( document.referrer == url ){
	eval("try{ ref = parent.document.referrer ;}catch(_e){ ref = '';}");
}
else{
	ref = document.referrer ;
}
url=document.URL;
if( url.indexOf('#') < 5 ){
        url += tailurl ;
}

if(url.charAt(url.length)=='/') url=url.substring(0,url.length-1);
if(url.indexOf('://')) url=url.substring(url.indexOf('://')+3,url.length);
if(ref.charAt(ref.length)=='/') ref=ref.substring(0,ref.length-1);
if(ref.indexOf('://')) ref=ref.substring(ref.indexOf('://')+3,ref.length);
if((ref=='undefined')||( ref == '' )) ref = '' ;

 arg = "&ref=" + escape(ref) + "&url=" + escape(url) ;

 count = '<a href=http://www.thecounter.co.kr/new/index.php?part=ctmngspecial&no=' + cno + ' target=_blank>';
 count_img = '<img src=http://www.thecounter.co.kr/new/scounter.php?cno=' + cno + arg + ' border=0>';
 count2 = '</a>';

 if( cno != 46 && cno != 178){

    document.write(count + count_img + count2);
 }
 else{

    document.write(count_img);
 }