
    function showLocal(t){
        var thisAlt = t.getAttribute("alt");
        var acted = $('txtactive').value;
        $(acted).className = "";
        $(t.id).className = "active";
        $('cen_local_blocks').cleanWhitespace();
        for(var i = 0 ; i< $('cen_local_blocks').childNodes.length; i++) {
            var subId = $('cen_local_blocks').childNodes[i].id;
            var altAtt = $('cen_local_blocks').childNodes[i].getAttribute("alt");
            if(altAtt != null) {
                var get_alt = altAtt.split('_');
                var getaltVal = get_alt[1].substring(0,3);
                if(thisAlt.toLowerCase() == getaltVal.toLowerCase())
                    $(subId).style.display="";
                else
                    $(subId).style.display="none";
            }
        }
        $('txtactive').value = t.id;
    }
   
function showH(theid){     
    var thearray= new Array("news_art","news_different"); 
    for(i=0; i<thearray.length; i++){ 
          if(thearray[i] == theid){ 
                document.getElementById(theid).style.display="block";                 
                if(theid == "news_art") {
                    $('idnews_art').className = "cenv3_bg_spac1 cenv3_bg_spac1_active";
                    $('idnews_different').className = "cenv3_bg_spac1";
                }
                else if (theid == "news_different") {
                    $('idnews_different').className = "cenv3_bg_spac1 cenv3_bg_spac1_active";
                    $('idnews_art').className = "cenv3_bg_spac1";
                }
          }else{ 
                document.getElementById(thearray[i]).style.display="none"; 
                
          } 
       }   
    
}
function setType(t) {
    $('ftype').value = t.value;
    if(t.value == 'h')
        $('fortune_note').innerHTML = '<font color="#ff0000">&#6047;&#6076;&#6040;&#6036;&#6025;&#6098;&#6023;&#6070;&#6016;&#6091;&#8203;&#6032;&#6070;&#6088;</font> &#6026;&#6078;&#6040;&#6098;&#6036;&#6072;&#8203;&#6033;&#6070;&#6041;&#8203;&#6065;&#6098;&#6041;&#8203;&#6031;&#6098;&#6042;&#6076;&#6044;&#8203;&#6021;&#6098;&#6036;&#6070;&#6047;&#6091; &#6047;&#6076;&#6040;&#6041;&#6016;&#6031;&#6082;&#6043;&#6081;&#6017; &#6016;&#6075;&#6086;&#8203;&#6041;&#6016;&#8203;&#6050;&#6016;&#6098;&#6047;&#6042;&#6021;&#6075;&#6020;&#6016;&#6098;&#6042;&#6084;&#6041;&#6100;';
    else if (t.value == 'n')
        $('fortune_note').innerHTML = '<font color="#ff0000">&#6047;&#6076;&#6040;&#6036;&#6025;&#6098;&#6023;&#6070;&#6016;&#6091;&#8203;&#6032;&#6070;&#6088;</font> &#6026;&#6078;&#6040;&#6098;&#6036;&#6072;&#8203;&#6033;&#6070;&#6041;&#8203;&#6065;&#6098;&#6041;&#8203;&#6031;&#6098;&#6042;&#6076;&#6044;&#8203;&#6021;&#6098;&#6036;&#6070;&#6047;&#6091; &#6047;&#6076;&#6040;&#8203;&#6041;&#6016;&#8203;&#6024;&#6098;&#6040;&#6084;&#6087;&#8203;&#6033;&#6070;&#6086;&#6020;&#6050;&#6047;&#6091;&#8203;&#6040;&#6016;&#8203;&#6047;&#6042;&#6047;&#6081;&#6042;&#8203;&#6023;&#6070;&#8203;&#6050;&#6016;&#6098;&#6047;&#6042;&#8203;&#6049;&#6070;&#6031;&#6070;&#6086;&#6020; &#6016;&#6075;&#6086;&#8203;&#6041;&#6016;&#8203;&#6031;&#6082;&#8203;&#6024;&#6098;&#6040;&#6084;&#6087;&#8203;&#6021;&#6075;&#6020;&#6016;&#6098;&#6042;&#6084;&#6041;&#8203;&#6065;&#6098;&#6041;&#6047;&#6084;&#6087; &#6036;&#6070;&#6035;&#6035;&#6096;&#6041;&#6032;&#6070; &#6031;&#6098;&#6042;&#6076;&#6044;&#8203;&#6041;&#6016;&#8203;&#6033;&#6070;&#6086;&#6020;&#8203;&#6018;&#6084;&#6031;&#6098;&#6031;&#6035;&#6070;&#6040; &#6033;&#6070;&#6086;&#6020;&#8203;&#6035;&#6070;&#6040;&#6017;&#6098;&#6043;&#6077;&#6035;&#8203;&#6040;&#6016;&#8203;&#6036;&#6076;&#6016;&#8203;&#6037;&#6020; &#6100;';
    else if (t.value == 'p')
        $('fortune_note').innerHTML ='<font color="#ff0000">&#6047;&#6076;&#6040;&#6036;&#6025;&#6098;&#6023;&#6070;&#6016;&#6091;&#8203;&#6032;&#6070;&#6088;</font> &#8203;&#6047;&#6076;&#6040;&#8203;&#6041;&#6016;&#8203;&#6043;&#6081;&#6017;&#8203;&#6033;&#6076;&#6042;&#8203;&#6047;&#6038;&#6098;&#6033;&#6096;&#6118;&#8203;&#6017;&#6098;&#6033;&#6020;&#6091;&#8203;&#6021;&#6075;&#6020;&#8203;&#6043;&#6081;&#6017;&#6040;&#6016;&#6034;&#6098;&#6044;&#6078;&#8203;&#6016;&#6070;&#6042;&#6033;&#6047;&#6098;&#6047;&#6035;&#6093;&#6033;&#6070;&#6041;&#8203;&#6100;';
    else if (t.value == 'c')
        $('fortune_note').innerHTML ='<font color="#ff0000">&#6047;&#6076;&#6040;&#6036;&#6025;&#6098;&#6023;&#6070;&#6016;&#6091;&#8203;&#6032;&#6070;&#6088;</font> &#6026;&#6078;&#6040;&#6098;&#6036;&#6072;&#6033;&#6070;&#6041;&#6066;&#6098;&#6041;&#6031;&#6098;&#6042;&#6076;&#6044;&#6021;&#6098;&#6036;&#6070;&#6047;&#6091; &#6047;&#6076;&#6040;&#6036;&#6025;&#6098;&#6021;&#6076;&#6043;&#6032;&#6098;&#6020;&#6083;&#6016;&#6086;&#6030;&#6078;&#6031;&#6031;&#6070;&#6040;&#6033;&#6086;&#6042;&#6020;&#6091; &#6032;&#6098;&#6020;&#6083; &#6017;&#6082; &#6022;&#6098;&#6035;&#6070;&#6086; &#6102; 20 8 1986';
}


function fortunename() {
    var ftype = $('ftype').value;
    var txtbox = $('pre_name').value;
    if( txtbox !="") {
        if(ftype == 'h') {
            var chknum = IsNumeric(txtbox)
            if(chknum) {
                window.location='horoscope/formulas/MGIyZmVhOWUwYmE?ftype=h&name='+txtbox;    
            }            
        }
        else if(ftype == 'n') {
            window.location='horoscope/formulas/MGFlYTczMDkwNDJ?ftype=n&name='+txtbox;    
        }
        else if(ftype == 'p') {
            var chknum = IsNumeric(txtbox)
            if(chknum) {
                window.location='horoscope/formulas/NDFhZWVlYzg2NWU?ftype=p&name='+txtbox;    
            }
        }
        else if(ftype == 'c') {
            var chknum = IsNumeric(txtbox)
            if(chknum) {
                window.location='horoscope/formulas/MzFhNzU1MTJhYmE?ftype=c&name='+txtbox;    
            }
        }
    }
}

/*================Code Marquee=======*/

var oMarquees = [],
	oMrunning,
	oMInterv =        1,     //interval between increments
	oMStep =          1,      //number of pixels to move between increments
	oStopMAfter =     1,     //how many seconds should marquees run (0 for no limit)
	oResetMWhenStop = false,  //set to true to allow linewrapping when stopping
	oMDirection =     'left'; //'left' for LTR text, 'right' for RTL text

/***     Do not edit anything after here     ***/

function doMStop() {
	clearInterval(oMrunning);
	for( var i = 0; i < oMarquees.length; i++ ) {
		oDiv = oMarquees[i];
		//oDiv.mchild.style[oMDirection] = '0px';
		oDiv.mchild.style[oMDirection] = oDiv.mchild.style[oMDirection];
		if( oResetMWhenStop ) {
			oDiv.mchild.style.cssText = oDiv.mchild.style.cssText.replace(/;white-space:nowrap;/g,'');
			oDiv.mchild.style.whiteSpace = '';
			oDiv.style.height = '';
			oDiv.style.overflow = '';
			oDiv.style.position = '';
			oDiv.mchild.style.position = '';
			oDiv.mchild.style.top = '';
		}
	}
	oMarquees = [];
}
function doDMarquee() {
	if( oMarquees.length || !document.getElementsByTagName ) { return; }
	var oDivs = document.getElementsByTagName('div');
	for( var i = 0, oDiv; i < oDivs.length; i++ ) {
		oDiv = oDivs[i];
		if( oDiv.className && oDiv.className.match(/\bdmarquee\b/) ) {
			if( !( oDiv = oDiv.getElementsByTagName('div')[0] ) ) { continue; }
			if( !( oDiv.mchild = oDiv.getElementsByTagName('div')[0] ) ) { continue; }
			oDiv.mchild.style.cssText += ';white-space:nowrap;';
			oDiv.mchild.style.whiteSpace = 'nowrap';
			oDiv.style.height = oDiv.offsetHeight + 'px';
			oDiv.style.overflow = 'hidden';
			oDiv.style.position = 'relative';
			oDiv.mchild.style.position = 'absolute';
			oDiv.mchild.style.top = '0px';
			if(oDiv.mchild.style[oMDirection] == '')
				oDiv.mchild.style[oMDirection] = oDiv.offsetWidth + 'px';
			else
				oDiv.mchild.style[oMDirection] = oDiv.mchild.style[oMDirection];
			oMarquees[oMarquees.length] = oDiv;
			i += 2;
		}
	}
	oMrunning = setInterval('aniMarquee()',oMInterv);
	//if( oStopMAfter ) { setTimeout('doMStop()',oStopMAfter*1000); }
}
function aniMarquee() {
	var oDiv, oPos;
	for( var i = 0; i < oMarquees.length; i++ ) {
		oDiv = oMarquees[i].mchild;
		oPos = parseInt(oDiv.style[oMDirection]);
		if( oPos <= -1 * oDiv.offsetWidth ) {
			oDiv.style[oMDirection] = oMarquees[i].offsetWidth + 'px';
		} else {
			oDiv.style[oMDirection] = ( oPos - oMStep ) + 'px';
		}
	}
}
if( window.addEventListener ) {
	window.addEventListener('load',doDMarquee,false);
} else if( document.addEventListener ) {
	document.addEventListener('load',doDMarquee,false);
} else if( window.attachEvent ) {
	window.attachEvent('onload',doDMarquee);
}
/*===========End code Marquee=========*/
