uagent = window.navigator.userAgent.toLowerCase();IEB=(uagent.indexOf('msie') != -1)?true:false;var scompat = document.compatMode;Indextitarr=new Array();Indexdesarr=new Array();Indextitarr[0]="";Indexdesarr[0]="";Indextitarr[1]="";Indexdesarr[1]="";Indextitarr[2]="X Factor";Indexdesarr[2]="Longslade has decided to host its very own version of the X Factor. This is to raise money for charity (House charities).... <a class=\"topmenu\" target=\"_blank\" href=\"http://www.longslade.leics.sch.uk/LOL/Events/XFactor.htm\">Read More</a>";var Indexstepcount=10;var Indexcurrstep=10;var Indextimeo=null;var Indexhorvert=0;var Indexgorun_imgwidth=0;var Indexgorun_blockwidth=0;var Indexgorun_overblock_width=0;var Indeximgid=new Array();var Indexdscid=new Array();var Indexyeniposx=new Array();var Indexstartposx=new Array();var Indexcurrposx=new Array();var i=0;var Indexlastover=0;var IndexDescCalcLeft=0;var IndexDescCalcWidth=0;var IndexDescCalcHeight=0;var IndexDescCalcIcWidth=0;var IndexDescCalcIcHeight=0;var Indexhpiece='';var Indexds="";function Indexinit_doc(fstr){	IndexDescCalcLeft=1;	if(0==0)	{		IndexDescCalcWidth=518-1-0;	}	else	{		IndexDescCalcWidth=753-1-0;	}		if((Indexhorvert==1)&&(0==1))	{		IndexDescCalcHeight=277-202-0;	}	else	{		IndexDescCalcHeight=277-202-0;	}	if((IEB==true)&&(scompat == "BackCompat" ))	{		IndexDescCalcIcWidth=IndexDescCalcWidth;		IndexDescCalcIcHeight=IndexDescCalcHeight;	}	else	{		IndexDescCalcIcWidth=IndexDescCalcWidth-2*(0)-2*(5);		IndexDescCalcIcHeight=IndexDescCalcHeight-2*(0)-2*(5);	}	Indexfolderset=fstr;	Indexhpiece=Indexhpiece+'<div style="position:relative;width:'+753+'px;height:'+277+'px;overflow:hidden;border-style:solid;border-width:0px;border-color:#FFFFFF;cursor:default;" onMouseOver="Indexoutall()" onMouseOut="Indexmouse_divout()">';	Indexhpiece=Indexhpiece+'<div id="Indexpo1" style="position:absolute;left:0px;top:0px;" onMouseOver="Indexmouse_over(1)"><div style="background-color:#FFFFFF;padding-left:0px;padding-top:0px;"><a href="http://www.longslade.leics.sch.uk/LOL/Events/FamilyLearningDay.htm" target="_blank"><img width="518" height="277" src="'+Indexfolderset+'FamilyLearningDay.png" style="border-style:solid;border-width:0px;" TITLE=""></img></a></div></div>';Indexhpiece=Indexhpiece+'<div id="Indexpo2" style="position:absolute;left:0px;top:0px;" onMouseOver="Indexmouse_over(2)"><div style="background-color:#FFFFFF;padding-left:1px;padding-top:0px;"><a href="http://www.longslade.leics.sch.uk/LOL/Events/XFactor.htm" target="_blank"><img width="518" height="277" src="'+Indexfolderset+'XFactor.png" style="border-style:solid;border-width:0px;" TITLE=""></img></a></div></div>';	for(i=1;i<=2;i++)	{		Indexds=Indexds+'<div id="adesc'+i+'" style="position:absolute;top:'+202+'px;left:0px;width:'+IndexDescCalcWidth+'px;height:'+IndexDescCalcHeight+'px;visibility:hidden;overflow:hidden;cursor:pointer;z-index:20;" onMouseOut="Indexoutall()">';		Indexds=Indexds+'<div style="position:absolute;left:0px;top:0px;width:'+IndexDescCalcWidth+'px;height:'+IndexDescCalcHeight+'px;border-style:solid;border-width:0px;border-color:#000000;background-color:#'+'000000'+';opacity: '+0.50+';filter:alpha(opacity='+50+');" onMouseOut="Indexoutall()"></div>';		Indexds=Indexds+'<div style="position:relative;left:0px;top:0px;width:'+IndexDescCalcIcWidth+';height:'+IndexDescCalcIcHeight+'px;text-align:'+'left'+';overflow:hidden;padding:'+5+'px;border-style:'+'solid'+';border-width:'+0+'px;border-color:#'+'FFFFFF'+';color:#'+'FFFFFF'+';font-family:'+'verdana, sans-serif'+';font-style:'+'normal'+';font-size: '+11+';font-weight:'+'normal'+';text-decoration:'+'none'+';opacity: 1.0;filter:alpha(opacity=100);" onMouseOut="Indexoutall()">';		Indexds=Indexds+'<span style="color:#'+'FFFFFF'+';font-family:'+'verdana, sans-serif'+';font-style:'+'normal'+';font-size: '+11+';font-weight:'+'bold'+';text-decoration:'+'none'+';" onMouseOut="Indexoutall()">'+Indextitarr[i]+'</span>';		if(Indextitarr[i].length>0){Indexds=Indexds+'<br />';}				Indexds=Indexds+''+Indexdesarr[i];		Indexds=Indexds+'</div>';		Indexds=Indexds+'</div>';	}	Indexhpiece=Indexhpiece+Indexds;	Indexhpiece=Indexhpiece+'</div>';	document.write(''+Indexhpiece);}function Indexinit_position(hv){	Indexhorvert=hv;	for(i=1;i<=2;i++)	{		Indeximgid[i]=document.getElementById('Indexpo'+i);		Indexdscid[i]=document.getElementById('adesc'+i);		if((Indeximgid[i]==null)||(Indexdscid[i]==null))		{		    setTimeout("Indexinit_position("+parseInt(hv)+")",200);		    return;		}	}		if(Indexhorvert==0)	{		Indexgorun_imgwidth=parseInt(     (753-((2-1)*1))     /(2));		Indexgorun_blockwidth=Indexgorun_imgwidth+1;		Indexgorun_overblock_width=parseInt(((753-518)/(2-1)));	}	else	{		Indexgorun_imgwidth=parseInt(     (280-((2-1)*1))     /(2));		Indexgorun_blockwidth=Indexgorun_imgwidth+1;		Indexgorun_overblock_width=parseInt(((280-277)/(2-1)));	}	for(i=1;i<=2;i++)	{		Indeximgid[i]=document.getElementById('Indexpo'+i);		sx=(Indexgorun_blockwidth*(i-1))-1;		if(Indexhorvert==0)		{			if(i==1)			{				Indeximgid[i].style.left="0px";			}			else			{				Indeximgid[i].style.left=""+sx+"px";			}		}		else		{			if(i==1)			{				Indeximgid[i].style.top="0px";			}			else			{				Indeximgid[i].style.top=""+sx+"px";			}		}		Indexstartposx[i]=sx;		Indexcurrposx[i]=Indexstartposx[i];	}}function Indexdo_anim(){	if(Indexcurrstep<=0)	{		if(Indexlastover>=1)		{			if(Indexhorvert==0)			{				if(0==0)				{					Indexdscid[Indexlastover].style.left=""+(IndexDescCalcLeft+parseInt(Indeximgid[Indexlastover].style.left))+"px";				}				else				{					Indexdscid[Indexlastover].style.left=""+(IndexDescCalcLeft)+"px";				}			}			else			{				if(0==0)				{					Indexdscid[Indexlastover].style.left=""+(IndexDescCalcLeft+parseInt(Indeximgid[Indexlastover].style.left))+"px";					Indexdscid[Indexlastover].style.top=""+(202+parseInt(Indeximgid[Indexlastover].style.top))+"px";				}				else				{					Indexdscid[Indexlastover].style.left=""+(IndexDescCalcLeft)+"px";					Indexdscid[Indexlastover].style.top=""+202+"px";				}			}			if((Indextitarr[Indexlastover].length>0)||(Indexdesarr[Indexlastover].length>0))			{				Indexdscid[Indexlastover].style.visibility="visible";			}			else			{				Indexdscid[Indexlastover].style.visibility="hidden";			}		}		return;	}	for(i=2;i<=2;i++)	{		Indexcurrposx[i] = parseInt(Indexcurrposx[i])+parseInt((Indexyeniposx[i]-Indexcurrposx[i])/Indexcurrstep);		if(Indexhorvert==0)		{			Indeximgid[i].style.left=""+Indexcurrposx[i]+"px";		}		else		{			Indeximgid[i].style.top=""+Indexcurrposx[i]+"px";		}	}	Indexcurrstep--;	setTimeout("Indexdo_anim()",40);}function Indexreposition(g){	for(i=1;i<=2;i++)	{		if(i<=g)		{			if(i==1)			{				Indexyeniposx[i]=0;			}			else			{				Indexyeniposx[i]=parseInt(((i-1)*Indexgorun_overblock_width)-1);			}		}		else		{			oncekix=0;			for(j=1;j<(i-1);j++)			{				oncekix=oncekix+Indexgorun_overblock_width;			}			if(Indexhorvert==0)			{				Indexyeniposx[i]=parseInt(((518)+(oncekix)));			}			else			{				Indexyeniposx[i]=parseInt(((277)+(oncekix)));			}		}			}	Indexcurrstep=Indexstepcount;	Indexdo_anim();}function Indexmouse_over(g){	clearTimeout(Indextimeo);	Indexlastover=g;	for(i=1;i<=2;i++)	{		if(i!=g){Indexdscid[i].style.visibility="hidden";}	}	Indexreposition(g);}function Indexoutall(){	clearTimeout(Indextimeo);}function Indexmouse_divout2(){	clearTimeout(Indextimeo);	for(i=1;i<=2;i++)	{		Indexdscid[i].style.visibility="hidden";	}	for(i=1;i<=2;i++)	{		sx=(Indexgorun_blockwidth*(i-1))-1;		if(i==1)		{			Indexyeniposx[i]=0;		}		else		{			Indexyeniposx[i]=sx;		}			}	Indexlastover=-1;	Indexcurrstep=Indexstepcount;	Indexdo_anim();}function Indexmouse_divout(){	clearTimeout(Indextimeo);	Indextimeo=setTimeout("Indexmouse_divout2()",300);}