var winW=0;
var winH=0;
var lpos=0;
var tpos=0;
var op=0;
var bgoundcol="";

var mons = new Array();
mons[0]="Jan";
mons[1]="Feb";
mons[2]="Mar";
mons[3]="Apr";
mons[4]="May";
mons[5]="June";
mons[6]="July";
mons[7]="Aug";
mons[8]="Sep";
mons[9]="Oct";
mons[10]="Nov";
mons[11]="Dec";

var is_ie6=null;

function mousover(oBj){
	browsersniff();
	if(!is_ie6)oBj.style.backgroundColor='#FBF1F9';
}

function mousout(oBj){
	browsersniff();
	if(!is_ie6)oBj.style.backgroundColor='#ffffff';
}

function browsersniff(){
	// This script is a simplified adaptation from the
	// JavaScript Browser Sniffer
	// Eric Krok, Andy King, Michel Plungjan
	// see http://www.webreference.com/ for more information
	
	var agt=navigator.userAgent.toLowerCase();
	var appVer = navigator.appVersion.toLowerCase();
	var is_minor = parseFloat(appVer);
	var is_major = parseInt(is_minor);
	var iePos = appVer.indexOf('msie');
	if (iePos !=-1) {
	is_minor = parseFloat(appVer.substring(iePos+5,appVer.indexOf(';',iePos)))
	is_major = parseInt(is_minor);
	}
	var is_getElementById = (document.getElementById) ? "true" : "false"; 
	var is_getElementsByTagName = (document.getElementsByTagName) ? "true" : "false";
	var is_documentElement = (document.documentElement) ? "true" : "false"; 
	var is_ie = ((iePos!=-1));
	var is_ie3 = (is_ie && (is_major < 4));
	var is_ie4 = (is_ie && is_major == 4);
	var is_ie4up = (is_ie && is_minor >= 4);
	var is_ie5 = (is_ie && is_major == 5);
	var is_ie5up = (is_ie && is_minor >= 5);
	var is_ie5_5 = (is_ie && (agt.indexOf("msie 5.5") !=-1)); 
	var is_ie5_5up =(is_ie && is_minor >= 5.5); 
	is_ie6 = (is_ie && is_major == 6);
	var is_ie6up = (is_ie && is_minor >= 6);
}

function vidreveal(){
	document.getElementById('videoPlayer').style.display='none';
	document.getElementById('videoText').style.display='none';
	document.getElementById('allvids').style.display='block';
	//document.getElementById('closebox').style.display='block';
	document.getElementById('featured').innerHTML='<div class=alltitlevids>all videos</div><div class=morevids onClick=\"vidunreveal()\">< to featured video</div>';
	document.getElementById('featured1').innerHTML='<div class=morevids1 onClick=\"vidunreveal()\">< to featured video</div>';
	document.title='Star Temple - The UKs most respected Psychics';
}

function vidunreveal(param){
	document.getElementById('videoPlayer').style.display='block';
	document.getElementById('videoText').style.display='block';
	document.getElementById('allvids').style.display='none';
	//document.getElementById('closebox').style.display='none';
	document.getElementById('featured').innerHTML='<div class=alltitlevids>featured in <span style="font-weight: bold">video</span></div><div class=morevids onClick=\"vidreveal()\">see all videos ></div>';
	document.getElementById('featured1').innerHTML='<div class=morevids1 onClick=\"vidreveal()\">see all videos ></div>';
	document.title=vtitle[param]+' : Star Temple - The UKs most respected psychics';
}

function changemovie(param){
		
		vidunreveal();
		document.getElementById('videoPlayer').innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="425" height="344"><param name="movie" value='+vlink[param]+'></param></param><param name="allowscriptaccess" value="always"></param><embed src="'+vlink[param]+'" type="application/x-shockwave-flash" allowscriptaccess="always" width="425" height="344"></embed></object>';
		document.getElementById('videotitle').innerHTML=vtitle[param];
		
		document.getElementById('videodesc').innerHTML=descr[param];
		document.getElementById('forumlinktitle').innerHTML='related discussion';
		document.getElementById('forumlinktext').innerHTML=discussion[param];
		document.title=vtitle[param]+' : Star Temple - The UKs most respected psychics';
}

function changemovie1(param){
		document.getElementById('videoPlayer').innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="425" height="344"><param name="movie" value='+vlink[param]+'></param></param><param name="allowscriptaccess" value="always"></param><embed src="'+vlink[param]+'" type="application/x-shockwave-flash" allowscriptaccess="always" width="425" height="344"></embed></object>';
		document.getElementById('videotitle').innerHTML=vtitle[param];
		
		document.getElementById('videodesc').innerHTML=descr[param];
		document.getElementById('forumlinktitle').innerHTML='discussion on '+subject[param];
		document.getElementById('forumlinktext').innerHTML=discussion[param];
		document.title=vtitle[param]+' : Star Temple - The UKs most respected psychics';
}

function relocate(place){
	location=place;
}

function getDocHeight() {
    var D = document;
    return Math.max(
        Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
        Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
        Math.max(D.body.clientHeight, D.documentElement.clientHeight)
    );
}

function getDocWidth() {
    var D = document;
    return Math.max(
        Math.max(D.body.scrollWidth, D.documentElement.scrollWidth),
        Math.max(D.body.offsetWidth, D.documentElement.offsetWidth),
        Math.max(D.body.clientWidth, D.documentElement.clientWidth)
    );
}

function winsize(){
			winW = getDocWidth();
			winH = getDocHeight();
}

function findcenter(sizestring){
	var myReg= new RegExp("width=(.*) height=(.*)");
	var results= sizestring.match(myReg);
		
	//lpos=Math.round(parseFloat((winW-results[1])/2));
	lpos=20;
	tpos=Math.round(parseFloat((winH-results[2])/2));
}

function xmlmore(prpos, mode,id,aka,prem,blurb,reading,shiftstring,fp){
	switch(reading){
		case '1':
			readservice="Credit Card";
			break;
		case '2':
			readservice="Premium Rate";
			break;
		case '3':
			readservice="Premium Rate & Credit Card";
			break;
	}
	switch(mode){
		case 'live':
			if(prpos==1){
				document.getElementById('psychicreader').innerHTML="<table cellpadding=0 cellspacing=5 width=390px><tr><td colspan=3><div id=boximage><img src=\"newimages/logo2009white.jpg\" style=\"margin-left: 40px\"/></div><div class=rlink title=\"click for a full profile on this reader\">"+fp+"</div><div id=divclosed >CLICK TO CLOSE</div></td></tr><tr><td style=\"font-size: 18px;font-weight: bold;color: #851F82\">"+aka+"</td><td style=\"width: 80%\"><div style=\"width: 100%;height: 5px;border-bottom: 2px #cccccc solid\">&nbsp;</div></td><td style=\"text-align: right;font-size: 11px;font-weight: bold;color: #851F82;white-space: nowrap\">Pin: "+prem+"</td></tr><tr><td colspan=3><div style=\"clear: both;font-size: 11px;line-height: 1.3;color: #666666;margin: 0px 0 10px 30px;min-height: 150px\"><div style=\"width: 340px;float: left;margin-top: 8px;margin-bottom: 10px\"><img src=\"newimages/noimage.jpg\" width=\"130px\" min-height=\"140px\" alt=\"Star Temple Psychic Reader\" align=\"left\" style=\"margin-right: 20px;margin-bottom: 10px\">"+blurb+"</div></div></td></tr></table><table cellpadding=0 cellspacing=5 width=390px><tr><td style=\"width: 45%\"><div style=\"width: 100%;height: 5px;border-bottom: 2px #cccccc solid\">&nbsp;</div></td><td style=\"text-align: right;font-size: 11px;font-weight: bold;color: #851F82;;white-space: nowrap\">"+readservice+"</td><td style=\"width: 45%\"><div style=\"width: 100%;height: 5px;border-bottom: 2px #cccccc solid\">&nbsp;</div></td></tr></table>";
			}else
			{
				document.getElementById('psychicreader').innerHTML="<table cellpadding=0 cellspacing=5 width=390px><tr><td colspan=3><div id=boximage><img src=\"newimages/logo2009white.jpg\" style=\"margin-left: 40px\"/></div><div class=rlink title=\"click for a full profile on this reader\">"+fp+"</div><div id=divclosed >CLICK TO CLOSE</div></td></tr><tr><td style=\"font-size: 18px;font-weight: bold;color: #851F82\">"+aka+"</td><td style=\"width: 80%\"><div style=\"width: 100%;height: 5px;border-bottom: 2px #cccccc solid\">&nbsp;</div></td><td style=\"text-align: right;font-size: 11px;font-weight: bold;color: #851F82;white-space: nowrap\">Pin: "+prem+"</td></tr><tr><td colspan=3><div style=\"clear: both;font-size: 11px;line-height: 1.3;color: #666666;margin: 0px 0 10px 30px;min-height: 150px\"><div style=\"width: 340px;float: left;margin-top: 8px;margin-bottom: 10px\"><img src=\"newpinimages/"+id+".jpg\" width=\"130px\" min-height=\"140px\" alt=\"Star Temple Psychic Reader\" align=\"left\" style=\"margin-right: 20px;margin-bottom: 10px\">"+blurb+"</div></div></td></tr></table><table cellpadding=0 cellspacing=5 width=390px><tr><td style=\"width: 45%\"><div style=\"width: 100%;height: 5px;border-bottom: 2px #cccccc solid\">&nbsp;</div></td><td style=\"text-align: right;font-size: 11px;font-weight: bold;color: #851F82;white-space: nowrap\">"+readservice+"</td><td style=\"width: 45%\"><div style=\"width: 100%;height: 5px;border-bottom: 2px #cccccc solid\">&nbsp;</div></td></tr></table>";
			}
			
			winsize();
			findcenter('width=390 height=550');
			if(!document.getElementById('psychicreader').style.posLeft){
				document.getElementById('psychicreader').style.left=lpos+'px';
				document.getElementById('psychicreader').style.top=tpos+'px';
			}
			else{
				document.getElementById('psychicreader').style.posLeft=lpos;
				document.getElementById('psychicreader').style.posTop=tpos;
			}
			document.getElementById('psychicreader').style.display='block';
			
			break;
		case 'psychics':
			new_window = window.open('','mywindow','width=390,height=600,left=20,top=150,screenX=20,screenY=150');
			new_window.close();
			new_window = window.open('','mywindow','width=390,height=600,left=20,top=150,screenX=20,screenY=150');
			new_window.document.open();
			if (window.focus) {new_window.focus()}
			new_window.document.write("<html><head><title>Psychic</title><script>setTimeout(\"self.close();\",100000);function gup(oBj){oBj.style.color='#715A9F';}function gdown(oBj){oBj.style.color='#A89BC6';}</script><style>TD{font-size: 10px;font-weight: normal; font-size: 10px; color: #666666}</style></head><body onClick=\"window.close()\" title=\"click to close\"  onMouseOver=\"gup(c2c)\" onMouseOut=\"gdown(c2c)\" style=\"font-family: Verdana, Arial, Helvetica, sans-serif;cursor: pointer\">");
			//new_window.document.write("<div ><div id=c2c style=\"padding-top: 10px;padding-right: 10px;font-weight: bold;font-size: 11px;color: #A89BC6;width: 50px;text-align: center;float: right\">CLICK TO CLOSE</div>");
			if(prpos==1){
				new_window.document.write("<table cellpadding=0 cellspacing=5 width=380px><tr><td colspan=3><div id=boximage><img src=\"../images/logo_black2.jpg\" style=\"margin-left: 20px;float: left\"/></div><div id=divclosed style=\"padding-top: 10px;padding-right: 10px;font-weight: bold;font-size: 11px;color: #A89BC6;width: 50px;text-align: center;float: right\">CLICK TO CLOSE</div></td></tr><tr><td style=\"font-size: 18px;font-weight: bold;color: #851F82\">"+aka+"</td><td style=\"width: 75%\" valign=top><div style=\"width: 100%;height: 5px;border-bottom: 2px #cccccc solid\">&nbsp;</div></td><td style=\"text-align: right;font-size: 11px;font-weight: bold;color: #851F82;white-space: nowrap\">Pin: "+prem+"</td></tr><tr><td colspan=3><div style=\"clear: both;font-size: 11px;line-height: 1.3;color: #666666;margin: 0px 0 10px 30px;height: 150px\"><div style=\"float: left;margin-top: 8px;margin-bottom: 10px\"><img src=\"../images/noimage.jpg\" width=\"130px\" height=\"140px\" alt=\"Star Temple Psychic Reader\" align=\"left\" style=\"margin-right: 20px;margin-bottom: 10px\"><div style=\"height: 150px;padding-top: 40px;margin-left: auto;margin-right: auto\">"+shiftstring+"</div>"+blurb+"</div></div></td></tr></table><table cellpadding=0 cellspacing=5 width=380px><tr><td style=\"width: 45%\"><div style=\"width: 100%;height: 5px;border-bottom: 2px #cccccc solid\">&nbsp;</div></td><td style=\"text-align: right;font-size: 11px;font-weight: bold;color: #851F82;white-space: nowrap\">"+readservice+"</td><td style=\"width: 45%\" valign=top><div style=\"width: 100%;height: 5px;border-bottom: 2px #cccccc solid\">&nbsp;</div></td></tr></table></body></html>");
			}else
			{
				new_window.document.write("<table cellpadding=0 cellspacing=5 width=380px><tr><td colspan=3><div id=boximage><img src=\"../images/logo_black2.jpg\" style=\"margin-left: 20px;float: left\"/></div><div id=divclosed style=\"padding-top: 10px;padding-right: 10px;font-weight: bold;font-size: 11px;color: #A89BC6;width: 50px;text-align: center;float: right\">CLICK TO CLOSE</div></td></tr><tr><td style=\"font-family: Arial, Helvetica, sans-serif;font-size: 18px;font-weight: bold;color: #851F82\">"+aka+"</td><td style=\"width: 75%\" valign=top><div style=\"width: 100%;height: 5px;border-bottom: 2px #cccccc solid\">&nbsp;</div></td><td style=\"font-family: Arial, Helvetica, sans-serif;text-align: right;font-size: 11px;font-weight: bold;color: #851F82;white-space: nowrap\">Pin: "+prem+"</td></tr><tr><td colspan=3><div style=\"clear: both;font-size: 11px;line-height: 1.3;color: #666666;margin: 0px 0 10px 30px;height: 150px\"><div style=\"float: left;margin-top: 8px;margin-bottom: 10px\"><img src=\"pinimages/"+id+".jpg\" width=\"130px\" height=\"140px\" alt=\"Star Temple Psychic Reader\" align=\"left\" style=\"font-family: Arial, Helvetica, sans-serif;margin-right: 20px;margin-bottom: 10px\"><div style=\"height: 150px;padding-top: 40px;margin-left: auto;margin-right: auto\">"+shiftstring+"</div>"+blurb+"</div></div></td></tr></table><table cellpadding=0 cellspacing=5 width=380px><tr><td style=\"width: 45%;padding-bottom: 4px\"><div style=\"width: 100%;height: 5px;border-bottom: 2px #cccccc solid\">&nbsp;</div></td><td valign=bottom style=\"font-family: Arial, Helvetica, sans-serif;padding-top: 3px;text-align: right;font-size: 11px;font-weight: bold;color: #851F82;white-space: nowrap\">"+readservice+"</td><td style=\"width: 45%;padding-bottom: 4px\"><div style=\"width: 100%;height: 5px;border-bottom: 2px #cccccc solid\">&nbsp;</div></td></tr></table></body></html>");
				}
			
			break;
	}
}

function gup(oBj){
	document.getElementById('divclosed').style.color='#851F82';
	document.getElementById('divclosed').style.fontWeight='bold';
}

function gdown(oBj){
	document.getElementById('divclosed').style.color='#A89BC6';
	document.getElementById('divclosed').style.fontWeight='normal';
}

function less(){
	document.getElementById('psychicreader').style.display='none';
}

function cellhover(oBj){
	oBj.style.filter='alpha(opacity=70)';
	oBj.style.MozOpacity='.70';
	oBj.style.filter='opacity:.70';
}

function uncellhover(oBj){
	oBj.style.filter='alpha(opacity=100)';
	oBj.style.MozOpacity='1';
	oBj.style.filter='opacity:1';
}



var dates = [[4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5],[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,1]]
var mons = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
function getWeek(day,mon){
	
	var curdate=dates[0][day];
	if(curdate==7){
		day=day+1;
		var curdate=dates[0][day];
	}
	
	var diff = parseInt(day-curdate);
	
	var sunday=dates[1][diff];
	var saturday=dates[1][diff+6];
	var nowday=dates[1][day];
	var month1=mons[mon];
	var month2="";
	if(saturday<sunday){
		if(nowday<sunday){
			month2=' '+mons[mon]+' ';month1=mons[mon-1]+' ';
			document.getElementById('astrodate').innerHTML="<div class=astromonth>"+month1+"</div><div class=astroweek>&nbsp;"+sunday+" -&nbsp;</div><div class=astromonth>"+month2+"</div><div class=astroweek>&nbsp;"+saturday+"</div>";
		}
		else{
			month2=mons[mon+1]+' ';
			document.getElementById('astrodate').innerHTML="<div class=astromonth>"+month1+"</div><div class=astroweek>&nbsp;"+sunday+" -&nbsp;</div><div class=astromonth>"+month2+"</div><div class=astroweek>&nbsp;"+saturday+"</div>";
			}
	}
	else{
		document.getElementById('astrodate').innerHTML="<div class=astromonth>"+month1+"</div><div class=astroweek>&nbsp;"+sunday+" - "+saturday+"</div>";
	}
}
function sendchoice(){
	document.astro.sign.value=document.getElementById('starsign').innerHTML;
	document.astro.parent.value=document.getElementById('parents').innerHTML;
	document.astro.submit();
}

function showmenu(){
	//document.getElementById('optionbox2').style.display='none';
	document.getElementById('optionbox').style.display='block';
	ctime=setTimeout("closeit()",15000)
	op=1;
}
function showmenu2(){
	document.getElementById('optionbox').style.display='none';
	document.getElementById('optionbox2').style.display='block';
	ctime=setTimeout("closeit()",15000)
	op=1;
}

function hidemenu(){
	document.getElementById('optionbox').style.display='none';
	op=0;
}

function hidemenu2(){
	document.getElementById('optionbox2').style.display='none';
	op=0;
}

function mhov(oBj){
	oBj.style.color='#cccccc';
}

function munhov(oBj){
	oBj.style.color='#636363';
}

function selectstar(oBj){
	op=0;
	document.astro.sign.value=oBj.innerHTML;
	document.getElementById('starsign').innerHTML=oBj.innerHTML;
	clearTimeout(ctime);
	hidemenu();
}

function selectpar(oBj){
	document.astro.parent.value=oBj.innerHTML;
	document.getElementById('parents').innerHTML=oBj.innerHTML;
	clearTimeout(ctime);
	hidemenu2();
}

function closeit(){
	if(op==1){
		document.getElementById('optionbox').style.display='none';
	//	document.getElementById('optionbox2').style.display='none';
		op=0;
		}
}

function psycards(query){
	random_num = (Math.round((Math.random()*39)+1))
	location="newpsycards/psycards"+random_num+".html";
}
function psycards2(query){
	random_num = (Math.round((Math.random()*39)+1));
	location="psycards"+random_num+".html";
}

function checkEnter(e){
	var characterCode;
	
	if(e && e.which){ //if which property of event object is supported (NN4)
		e = e
		characterCode = e.which //character code is contained in NN4's which property
	}
	else{
		e = event
		characterCode = e.keyCode //character code is contained in IE's keyCode property
	}

	
	if(characterCode == 13){ //if character code is equal to ascii 13 (if enter key)
		psycards('x') //return false to the event handler
	}
	else{
		return true //return true to the event handler
	} 

}

function checkEnter2(e){
	var characterCode;
	
	if(e && e.which){ //if which property of event object is supported (NN4)
		e = e
		characterCode = e.which //character code is contained in NN4's which property
	}
	else{
		e = event
		characterCode = e.keyCode //character code is contained in IE's keyCode property
	}

	
	if(characterCode == 13){ //if character code is equal to ascii 13 (if enter key)
		psycards2('x') //return false to the event handler
	}
	else{
		return true //return true to the event handler
	} 

}

function boxlinkhover(oBj){
	bgroundcol=oBj.style.backgroundColor;
	oBj.style.backgroundColor='#FBF3FB';
}

function boxlinkunhover(oBj){
	oBj.style.backgroundColor=bgroundcol;
}


function boxlink(loc){
		location=loc;
}

function nextpage(inc){
	document.getElementById('lovearticle2').innerHTML=chapter[inc];
	document.getElementById('leftarrow').innerHTML=lendtag[inc];
	document.getElementById('rightarrow').innerHTML=rendtag[inc];
}

function nextinspage(inc){
	document.getElementById('mainarticle2').innerHTML=chapter[inc];
	document.getElementById('leftarrow').innerHTML=lendtag[inc];
	document.getElementById('rightarrow').innerHTML=rendtag[inc];
}

function allastroarticles(){
	document.getElementById('astro').style.display='none';
	document.getElementById('allarticles').style.display='block';
	
}

function astroehome(){
	document.getElementById('allarticles').style.display='none';
	document.getElementById('astro').style.display='block';
}

function alllovearticles(){
	document.getElementById('love').style.display='none';
	document.getElementById('allarticles').style.display='block';
	
}

function lovehome(){
	document.getElementById('allarticles').style.display='none';
	document.getElementById('love').style.display='block';
}

function getreader(readerid){
	location='profiles.php?readerid='+readerid;
}