uagent = window.navigator.userAgent.toLowerCase();IEB=(uagent.indexOf('msie') != -1)?true:false;var scompat = document.compatMode;locationtitarr=new Array();locationdesarr=new Array();locationtitarr[0]="";locationdesarr[0]="";locationtitarr[1]="Sound Proofing";locationdesarr[1]="All our studios have passed fire safety standards.";locationtitarr[2]="The Lounge";locationdesarr[2]="A waiting area for parents and friends to hangout.";locationtitarr[3]="Studio 3";locationdesarr[3]="We cater up to four students for our group sessions.";locationtitarr[4]="Studio 2";locationdesarr[4]="Individual sessions for adults and teens are conducted here.";locationtitarr[5]="Mapex Orion";locationdesarr[5]="The most prestigous drum set in our school.";locationtitarr[6]="Metronome";locationdesarr[6]="A metronome is a drummer's best friend!";locationtitarr[7]="Washroom";locationdesarr[7]="Our luxurious 5-star washroom.";locationtitarr[8]="Mapex Drum";locationdesarr[8]="MDS students are entitled to a special 15% discount.";locationtitarr[9]="Drum Sticks & Drum Pads";locationdesarr[9]="We sell them at affordable prices.";locationtitarr[10]="Black Panther Snare";locationdesarr[10]="Order yours today!";var locationstepcount=10;var locationcurrstep=10;var locationtimeo=null;var locationhorvert=0;var locationgorun_imgwidth=0;var locationgorun_blockwidth=0;var locationgorun_overblock_width=0;var locationimgid=new Array();var locationdscid=new Array();var locationyeniposx=new Array();var locationstartposx=new Array();var locationcurrposx=new Array();var i=0;var locationlastover=0;var locationDescCalcLeft=0;var locationDescCalcWidth=0;var locationDescCalcHeight=0;var locationDescCalcIcWidth=0;var locationDescCalcIcHeight=0;var locationhpiece='';var locationds="";function locationinit_doc(fstr){	locationDescCalcLeft=5;	if(0==0)	{		locationDescCalcWidth=250-5-5;	}	else	{		locationDescCalcWidth=550-5-5;	}		if((locationhorvert==1)&&(0==1))	{		locationDescCalcHeight=200-150-5;	}	else	{		locationDescCalcHeight=200-150-5;	}	if((IEB==true)&&(scompat == "BackCompat" ))	{		locationDescCalcIcWidth=locationDescCalcWidth;		locationDescCalcIcHeight=locationDescCalcHeight;	}	else	{		locationDescCalcIcWidth=locationDescCalcWidth-2*(2)-2*(1);		locationDescCalcIcHeight=locationDescCalcHeight-2*(2)-2*(1);	}	locationfolderset=fstr;	locationhpiece=locationhpiece+'<div style="position:relative;width:'+550+'px;height:'+200+'px;overflow:hidden;border-style:solid;border-width:0px;border-color:#FFFFFF;cursor:default;" onMouseOver="locationoutall()" onMouseOut="locationmouse_divout()">';	locationhpiece=locationhpiece+'<div id="locationpo1" style="position:absolute;left:0px;top:0px;" onMouseOver="locationmouse_over(1)"><div style="background-color:#FFFFFF;padding-left:0px;padding-top:0px;"><a href="" target=""><img width="250" height="200" src="'+locationfolderset+'j.jpg" style="border-style:solid;border-width:0px;" TITLE=""></img></a></div></div>';locationhpiece=locationhpiece+'<div id="locationpo2" style="position:absolute;left:0px;top:0px;" onMouseOver="locationmouse_over(2)"><div style="background-color:#FFFFFF;padding-left:2px;padding-top:0px;"><a href="" target=""><img width="250" height="200" src="'+locationfolderset+'g.jpg" style="border-style:solid;border-width:0px;" TITLE=""></img></a></div></div>';locationhpiece=locationhpiece+'<div id="locationpo3" style="position:absolute;left:0px;top:0px;" onMouseOver="locationmouse_over(3)"><div style="background-color:#FFFFFF;padding-left:2px;padding-top:0px;"><a href="" target=""><img width="250" height="200" src="'+locationfolderset+'b.jpg" style="border-style:solid;border-width:0px;" TITLE=""></img></a></div></div>';locationhpiece=locationhpiece+'<div id="locationpo4" style="position:absolute;left:0px;top:0px;" onMouseOver="locationmouse_over(4)"><div style="background-color:#FFFFFF;padding-left:2px;padding-top:0px;"><a href="" target=""><img width="250" height="200" src="'+locationfolderset+'d.jpg" style="border-style:solid;border-width:0px;" TITLE=""></img></a></div></div>';locationhpiece=locationhpiece+'<div id="locationpo5" style="position:absolute;left:0px;top:0px;" onMouseOver="locationmouse_over(5)"><div style="background-color:#FFFFFF;padding-left:2px;padding-top:0px;"><a href="" target=""><img width="250" height="200" src="'+locationfolderset+'a.jpg" style="border-style:solid;border-width:0px;" TITLE=""></img></a></div></div>';locationhpiece=locationhpiece+'<div id="locationpo6" style="position:absolute;left:0px;top:0px;" onMouseOver="locationmouse_over(6)"><div style="background-color:#FFFFFF;padding-left:2px;padding-top:0px;"><a href="" target=""><img width="250" height="200" src="'+locationfolderset+'c.jpg" style="border-style:solid;border-width:0px;" TITLE=""></img></a></div></div>';locationhpiece=locationhpiece+'<div id="locationpo7" style="position:absolute;left:0px;top:0px;" onMouseOver="locationmouse_over(7)"><div style="background-color:#FFFFFF;padding-left:2px;padding-top:0px;"><a href="" target=""><img width="250" height="200" src="'+locationfolderset+'f.jpg" style="border-style:solid;border-width:0px;" TITLE=""></img></a></div></div>';locationhpiece=locationhpiece+'<div id="locationpo8" style="position:absolute;left:0px;top:0px;" onMouseOver="locationmouse_over(8)"><div style="background-color:#FFFFFF;padding-left:2px;padding-top:0px;"><a href="" target=""><img width="250" height="200" src="'+locationfolderset+'h.jpg" style="border-style:solid;border-width:0px;" TITLE=""></img></a></div></div>';locationhpiece=locationhpiece+'<div id="locationpo9" style="position:absolute;left:0px;top:0px;" onMouseOver="locationmouse_over(9)"><div style="background-color:#FFFFFF;padding-left:2px;padding-top:0px;"><a href="" target=""><img width="250" height="200" src="'+locationfolderset+'i.jpg" style="border-style:solid;border-width:0px;" TITLE=""></img></a></div></div>';locationhpiece=locationhpiece+'<div id="locationpo10" style="position:absolute;left:0px;top:0px;" onMouseOver="locationmouse_over(10)"><div style="background-color:#FFFFFF;padding-left:2px;padding-top:0px;"><a href="" target=""><img width="250" height="200" src="'+locationfolderset+'e.jpg" style="border-style:solid;border-width:0px;" TITLE=""></img></a></div></div>';	for(i=1;i<=10;i++)	{		locationds=locationds+'<div id="adesc'+i+'" style="position:absolute;top:'+150+'px;left:0px;width:'+locationDescCalcWidth+'px;height:'+locationDescCalcHeight+'px;visibility:hidden;overflow:hidden;cursor:pointer;z-index:20;" onMouseOut="locationoutall()">';		locationds=locationds+'<div style="position:absolute;left:0px;top:0px;width:'+locationDescCalcWidth+'px;height:'+locationDescCalcHeight+'px;border-style:solid;border-width:0px;border-color:#000000;background-color:#'+'000000'+';opacity: '+0.30+';filter:alpha(opacity='+30+');" onMouseOut="locationoutall()"></div>';		locationds=locationds+'<div style="position:relative;left:0px;top:0px;width:'+locationDescCalcIcWidth+';height:'+locationDescCalcIcHeight+'px;text-align:'+'left'+';overflow:hidden;padding:'+1+'px;border-style:'+'solid'+';border-width:'+2+'px;border-color:#'+'8C0000'+';color:#'+'FFFFFF'+';font-family:'+'arial'+';font-style:'+'normal'+';font-size: '+10+';font-weight:'+'normal'+';text-decoration:'+'none'+';opacity: 1.0;filter:alpha(opacity=100);" onMouseOut="locationoutall()">';		locationds=locationds+'<span style="color:#'+'FF962D'+';font-family:'+'arial'+';font-style:'+'normal'+';font-size: '+11+';font-weight:'+'bold'+';text-decoration:'+'none'+';" onMouseOut="locationoutall()">'+locationtitarr[i]+'</span>';		if(locationtitarr[i].length>0){locationds=locationds+'<br />';}				locationds=locationds+''+locationdesarr[i];		locationds=locationds+'</div>';		locationds=locationds+'</div>';	}	locationhpiece=locationhpiece+locationds;	locationhpiece=locationhpiece+'</div>';	document.write(''+locationhpiece);}function locationinit_position(hv){	locationhorvert=hv;	for(i=1;i<=10;i++)	{		locationimgid[i]=document.getElementById('locationpo'+i);		locationdscid[i]=document.getElementById('adesc'+i);		if((locationimgid[i]==null)||(locationdscid[i]==null))		{		    setTimeout("locationinit_position("+parseInt(hv)+")",200);		    return;		}	}		if(locationhorvert==0)	{		locationgorun_imgwidth=parseInt(     (550-((10-1)*2))     /(10));		locationgorun_blockwidth=locationgorun_imgwidth+2;		locationgorun_overblock_width=parseInt(((550-250)/(10-1)));	}	else	{		locationgorun_imgwidth=parseInt(     (280-((10-1)*2))     /(10));		locationgorun_blockwidth=locationgorun_imgwidth+2;		locationgorun_overblock_width=parseInt(((280-200)/(10-1)));	}	for(i=1;i<=10;i++)	{		locationimgid[i]=document.getElementById('locationpo'+i);		sx=(locationgorun_blockwidth*(i-1))-2;		if(locationhorvert==0)		{			if(i==1)			{				locationimgid[i].style.left="0px";			}			else			{				locationimgid[i].style.left=""+sx+"px";			}		}		else		{			if(i==1)			{				locationimgid[i].style.top="0px";			}			else			{				locationimgid[i].style.top=""+sx+"px";			}		}		locationstartposx[i]=sx;		locationcurrposx[i]=locationstartposx[i];	}}function locationdo_anim(){	if(locationcurrstep<=0)	{		if(locationlastover>=1)		{			if(locationhorvert==0)			{				if(0==0)				{					locationdscid[locationlastover].style.left=""+(locationDescCalcLeft+parseInt(locationimgid[locationlastover].style.left))+"px";				}				else				{					locationdscid[locationlastover].style.left=""+(locationDescCalcLeft)+"px";				}			}			else			{				if(0==0)				{					locationdscid[locationlastover].style.left=""+(locationDescCalcLeft+parseInt(locationimgid[locationlastover].style.left))+"px";					locationdscid[locationlastover].style.top=""+(150+parseInt(locationimgid[locationlastover].style.top))+"px";				}				else				{					locationdscid[locationlastover].style.left=""+(locationDescCalcLeft)+"px";					locationdscid[locationlastover].style.top=""+150+"px";				}			}			if((locationtitarr[locationlastover].length>0)||(locationdesarr[locationlastover].length>0))			{				locationdscid[locationlastover].style.visibility="visible";			}			else			{				locationdscid[locationlastover].style.visibility="hidden";			}		}		return;	}	for(i=2;i<=10;i++)	{		locationcurrposx[i] = parseInt(locationcurrposx[i])+parseInt((locationyeniposx[i]-locationcurrposx[i])/locationcurrstep);		if(locationhorvert==0)		{			locationimgid[i].style.left=""+locationcurrposx[i]+"px";		}		else		{			locationimgid[i].style.top=""+locationcurrposx[i]+"px";		}	}	locationcurrstep--;	setTimeout("locationdo_anim()",40);}function locationreposition(g){	for(i=1;i<=10;i++)	{		if(i<=g)		{			if(i==1)			{				locationyeniposx[i]=0;			}			else			{				locationyeniposx[i]=parseInt(((i-1)*locationgorun_overblock_width)-2);			}		}		else		{			oncekix=0;			for(j=1;j<(i-1);j++)			{				oncekix=oncekix+locationgorun_overblock_width;			}			if(locationhorvert==0)			{				locationyeniposx[i]=parseInt(((250)+(oncekix)));			}			else			{				locationyeniposx[i]=parseInt(((200)+(oncekix)));			}		}			}	locationcurrstep=locationstepcount;	locationdo_anim();}function locationmouse_over(g){	clearTimeout(locationtimeo);	locationlastover=g;	for(i=1;i<=10;i++)	{		if(i!=g){locationdscid[i].style.visibility="hidden";}	}	locationreposition(g);}function locationoutall(){	clearTimeout(locationtimeo);}function locationmouse_divout2(){	clearTimeout(locationtimeo);	for(i=1;i<=10;i++)	{		locationdscid[i].style.visibility="hidden";	}	for(i=1;i<=10;i++)	{		sx=(locationgorun_blockwidth*(i-1))-2;		if(i==1)		{			locationyeniposx[i]=0;		}		else		{			locationyeniposx[i]=sx;		}			}	locationlastover=-1;	locationcurrstep=locationstepcount;	locationdo_anim();}function locationmouse_divout(){	clearTimeout(locationtimeo);	locationtimeo=setTimeout("locationmouse_divout2()",300);}
