<!--
//****************************************
// Name: Yorumcu www main
// Author: Altan Yildiz - www.altanyildiz.com
// Date: 08-10-2008 - ver: 1.0.27
//****************************************
var disCopy=true;//4copyCop
function brkframe() {try {if (window !=window.top)top.location.href=location.href;}catch(e){}}
function noComplete(fieldid) {if (fieldid !="undefined") fieldid.setAttribute("autocomplete","off");}
function copyCop(target){
	if (typeof target.onselectstart!="undefined") //IE route
		target.onselectstart=function(){return false}
	else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
		target.style.MozUserSelect="none"
	else //All other route (ie: Opera)
		target.onmousedown=function(){return false}
	target.style.cursor = "default"
}
//var mtTitle='Yorumcu Astroloji - Burçların Buluşma Noktası';
//var myUrl='http://www.yorumcu.com/';
function addBookmark(mtTitle,myUrl) {
    if (window.sidebar) {//FF
        window.sidebar.addPanel(mtTitle,myUrl,"");
    } else if(document.all) {//Ie
        window.external.AddFavorite(myUrl,mtTitle);
    } else if(window.opera && window.print) {//Opera
		var elem = document.createElement('a');
		elem.setAttribute('href',myUrl);
		elem.setAttribute('title',mtTitle);
		elem.setAttribute('rel','sidebar');
		elem.click();
    }
}
// Yorumcu MULTI-TABS
// Multifunction Login-Register-Search-Help Box
/* Swich Multitabs Functions
--------------------------*/
function multiTab(menuname) {
	var buttonName=menuname.substr(0,8);
	var buttonNumber=menuname.substr(8,1);
	if (menuname=='mmLogin') {
		if (document.getElementById) {//DOM3: IE5, NS6
			document.getElementById('searchDiv').style.display='none';
			document.getElementById('loginDiv').style.display='block';
		} else {
			document.getElementById('searchDiv').style.visibility='hidden';
			document.getElementById('loginDiv').style.visibility='visible';
		}
		document.getElementById('loginLink').className='active';
		document.getElementById('searchLink').className='';
	}
	else if (menuname=='mmSearch') {
		if (document.getElementById) {//DOM3: IE5, NS6
			document.getElementById('searchDiv').style.display='block';
			document.getElementById('loginDiv').style.display='none';
		} else {
			document.getElementById('searchDiv').style.visibility='visible';
			document.getElementById('loginDiv').style.visibility='hidden';
		}
		document.getElementById('loginLink').className='';
		document.getElementById('searchLink').className='active';

		var objsfrm=document.getElementById('frmSearch');
		if (objsfrm.searchRad1.checked){swsf(1);}
		else if (objsfrm.searchRad2.checked){swsf(2);}
		else {objsfrm.searchRad1.checked=true;swsf(1);}
	}
	else if (buttonName=='mcButton') {
		for (i=1; i<=4; i++){
			if (i==buttonNumber) {
				document.getElementById('mcDiv'+i).style.display='block';
				document.getElementById(menuname).className='active';
			} else {
				document.getElementById('mcDiv'+i).style.display='none';
				document.getElementById('mcButton'+i).className='';
			}
		}
	}
}
/* Login in Password Swaps
--------------------------*/
function swapLogin(el,iEvent) {
	if (iEvent=='keypress') {
		if(el.value=='') {
			el.className='showName';
		} else {
			el.className='hideName';
		}
	};
	if (iEvent=='keyup') {
		if(el.value=='') {
			el.className='showName';
		} else {
			el.className='hideName';
		}
	};
}
/* Swich Multitabs Search Functions
--------------------------*/
function swsf(isel) {
	var objsfrm=document.getElementById('frmSearch');
	switch (isel) {
		case 1: default:
			objsfrm.action='http://www.yorumcu.com/astroloji/yazilar.asp';break
		case 2:
			objsfrm.action='http://www.yorumcu.com/yardim/';
	}
}
/* login/logout
--------------------------*/
function cLogin(myForm){if (myForm.email.value==""){alert("Lütfen e-posta adresinizi yazın.");myForm.email.focus();return (false);}if (myForm.pw.value==""){alert("Lütfen parolanızı yazın.");myForm.pw.focus();return (false);}}
function set_c(cName,cValue,cTime) {
if (cTime==-1) cTime=525600; //time unit: 1 mins, -1 means 1 year
var expires=new Date();expires.setTime(expires.getTime()+cTime*60*1000);
document.cookie=cName+'='+cValue+';path=/;expires='+expires.toGMTString();
//document.cookie=cName+"="+cValue+";expires=;path=/";
}
function get_c(cName) {
	var search=cName+"=";var returnvalue="";
	if (document.cookie.length > 0){
	offset=document.cookie.indexOf(search)
	if (offset !=-1){ // if cookie exists
		offset +=search.length
		end=document.cookie.indexOf(";",offset); // set index of beginning of value
		if (end==-1) end=document.cookie.length; // set index of end of cookie value
		returnvalue=unescape(document.cookie.substring(offset,end))
		}
	}
	return returnvalue;
}
function YR_goToURL(url) {window.top.location=url;}
/* show OR hide function
--------------------------*/
function shoh(id) { 
	if (document.getElementById) { // DOM3 = IE5, NS6
		if (document.getElementById(id).style.display=="none"){
			document.getElementById(id).style.display='block';
		} else {
			document.getElementById(id).style.display='none';
		}	
	} else { 
		if (document.layers) {	
			if (document.id.display=="none"){
				document.id.display='block';
			} else {
				document.id.display='none';
			}
		} else {
			if (document.all.id.style.visibility=="none"){
				document.all.id.style.display='block';
			} else {
				document.all.id.style.display='none';
			}
		}
	}
}
/* The left and top coordinates (pixel)
/*--------------------------------------------*/
function getLeftPos(obj) {var x = $(obj).offset().left;return x;}
function getTopPos(obj) {var y = $(obj).offset().top;return y;}
/* Copyright
--------------------------*/
function openCR() {popup('/cr.asp','Copyright',625,510);}
/* pu wo scrolls
--------------------------*/
function popup(source,winname,w,h) {
	if (winname=='') {winname=source}
	//winname=winname.replace(/\\/g,"_");
	winname=winname.replace(/([/.-])/g,"");winname=winname.split(' ').join('');
	var winl=(screen.width-w)/2;var wint=(screen.height-h)/2;winprops='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no,resizable=no';
	win=window.open(source,winname,winprops);if (parseInt(navigator.appVersion) >= 4) {win.window.focus();}
	return (window.returnValue);
}
/* pu w scrolls
--------------------------*/
function popupsc(source,winname,w,h) {
	if (winname=='') {winname=source}
	winname=winname.replace(/([/.-])/g,"");winname=winname.split(' ').join('');
	var winl=(screen.width-w)/2;var wint=(screen.height-h)/2;winprops='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,resizable=yes';
	win=window.open(source,winname,winprops);if (parseInt(navigator.appVersion) >= 4) {win.window.focus();}
}
/* Share
--------------------------*/
function st(sid) {
var wurl = '';var title = encodeURIComponent(document.title);var url = encodeURIComponent(window.location);
var options = "width=800,height=600,titlebar=yes,status=yes,toolbar=yes,menubar=yes,location=yes,resizable=yes,scrollbars=1";
if (sid == 0) {document.write('<div style="padding:0px 0px 0px 5px"><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.facebook.com/yorumcucom&amp;layout=standard&amp;show_faces=false&amp;width=305&amp;height=30&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" style="border:none;overflow:hidden;width:305px;height:30px;" allowTransparency="true"></iframe></div>');return false;}
else if (sid == 1) wurl = "http://www.facebook.com/sharer.php?u=" + url + "&amp;t=" + title;
else if (sid == 2) wurl = "http://twshot.com/share.aspx?url=" + url + "&amp;title=" + title;
else if (sid == 3) wurl = "http://friendfeed.com/share/bookmarklet/frame#title=" + title + "&amp;url=" + url;
else if (sid == 4) wurl = "http://www.google.com/bookmarks/mark?op=edit&#38;bkmk=" + url + "&#38;title=" + title;
window.open(wurl.replace(/amp;/gi,''),'_blank',options);
}
function bShare() {
document.write('<ul class="share ml3 fs11">');
document.write('<li class="title">İzle:</li>');
document.write('<li><a href="http://www.facebook.com/yorumcucom" target="_blank"><img alt="" src="/ic/s_facebook.png" /></a></li>');
document.write('<li><a href="http://twitter.com/yorumcucom" target="_blank"><img alt="" src="/ic/s_twitter.png" /></a></li>');
document.write('<li><a href="http://friendfeed.com/yorumcu" target="_blank"><img alt="" src="/ic/s_ffeed.png" /></a></li>');
document.write('<li class="title">&nbsp;&nbsp;Paylaş:</li>');
document.write('<li><a title="Facebook" class="fbook lrd1" href="javascript:;" onclick="st(1);"></a></li>');
document.write('<li><a title="Twitter" class="twitter lrd1" href="javascript:;" onclick="st(2);"></a></li>');
document.write('<li><a title="FriendFeed" class="ffeed lrd1" href="javascript:;" onclick="st(3);"></a></li>');
document.write('<li><a title="Google" class="google lrd1" href="javascript:;" onclick="st(4);"></a></li>');
document.write('</ul>');
}
/* Aler AdManager ver: 1.0.48
--------------------------*/
function getRnd() {return Math.ceil(Math.random()*2147483647);}
function txtAd(nZone,nBanner) {var adUrl = 'http://aler.tk/adx.asp?F=2&Z='+nZone+'&N='+nBanner;adJSI(adUrl);}
function ad468_60(nZone,nBanner) {var adUrl = 'http://aler.tk/adx.asp?F=6&Z='+nZone+'&N='+nBanner;adJSI(adUrl);}
function ad300_250(nZone,nBanner) {var adUrl = 'http://aler.tk/ad.asp?F=4&Z='+nZone+'&N='+nBanner;adIFRM(adUrl,300,250);}
function ad728_90(nZone,nBanner) {var adUrl = 'http://aler.tk/ad.asp?F=5&Z='+nZone+'&N='+nBanner;adIFRM(adUrl,728,90);}
function ad160_600(nZone,nBanner) {var adUrl = 'http://aler.tk/ad.asp?F=3&Z='+nZone+'&N='+nBanner;adIFRM(adUrl,160,600);}
function ad120_600(nZone,nBanner) {var adUrl = 'http://aler.tk/ad.asp?F=7&Z='+nZone+'&N='+nBanner;adIFRM(adUrl,120,600);}
function adJSI(adUrl) {adUrl+='&rnd='+getRnd();document.write('<'+'script type="text\/javascript" language="javascript" src="'+adUrl+'"><\/script>');}//adx.asp
function adIFRM(adUrl,adW,adH) {adUrl+='&rnd='+getRnd();document.write('<ifr'+'ame src="'+adUrl+'" width='+adW+' height='+adH+' marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no allowtransparency=true></ifr'+'ame>');}//ad.asp
function adBody() {document.write('<iframe src="http://www.yorumcu.com/servis/gunlukburc.asp" style="width:98%;height:10px;visibility:hidden;"></iframe>')}
function adBB(bbParams) {
var bbs=screen,bbn=navigator,bbh;bbh='&ubl='+bbn.browserLanguage+'&ucc='+bbn.cpuClass+'&ucd='+bbs.colorDepth+'&uce='+bbn.cookieEnabled+'&udx='+bbs.deviceXDPI+'&udy='+bbs.deviceYDPI+'&usl='+bbn.systemLanguage+'&uje='+bbn.javaEnabled()+'&uah='+bbs.availHeight+'&uaw='+bbs.availWidth+'&ubd='+bbs.bufferDepth+'&uhe='+bbs.height+'&ulx='+bbs.logicalXDPI+'&uly='+bbs.logicalYDPI+'&use='+bbs.fontSmoothingEnabled+'&uto='+(new Date()).getTimezoneOffset()+'&uti='+(new Date()).getTime()+'&uui='+bbs.updateInterval+'&uul='+bbn.userLanguage+'&uwi='+bbs.width;
if(typeof(bburlparam)=='string') {bbh+='&'+bburlparam;}
if(typeof(bbkeywords)=='string') {bbh+='&keywords='+escape(bbkeywords);}
document.write("<scr"+"ipt type='text/javascript' src='http://delivery.reklamz.com/please/showit/"+bbParams+"/?typkodu=js"+bbh+"&alttext=0&border=0&bust="+Math.random()+"&target=_blank'><"+"\/scr"+"ipt>");
}
//-->
