uagent = window.navigator.userAgent.toLowerCase();IEB=(uagent.indexOf('msie') != -1)?true:false;var scompat = document.compatMode;var homeintcomplate=0;homeimgarr=new Array();homealtarr=new Array();homelinkarr=new Array();hometargetarr=new Array();hometitarr=new Array();homedesarr=new Array();homeimgarr[0]="";homealtarr[0]="";homelinkarr[0]="";hometargetarr[0]="";hometitarr[0]="";homedesarr[0]="";homeimgarr[1]="02.jpg";homealtarr[1]="Want to talk?";homelinkarr[1]="?page_id=18";hometargetarr[1]="_self";hometitarr[1]="Want to talk?";homedesarr[1]="We're always happy to talk so why not drop us a line?";homeimgarr[2]="iStock_000007898173Small.jpg";homealtarr[2]="What can we do for you?";homelinkarr[2]="?page_id=4";hometargetarr[2]="_self";hometitarr[2]="What can we do for you?";homedesarr[2]="Paperspace Design offers a wide range of services covering all aspects of your project. Find out how we can help you.";homeimgarr[3]="01.jpg";homealtarr[3]="What have we done for other clients?";homelinkarr[3]="?page_id=90";hometargetarr[3]="_self";hometitarr[3]="What have we done for other clients?";homedesarr[3]="Paperspace Design has experience in a wide range of projects. Have a look at some examples of our work.";homeimgarr[4]="download.jpg";homealtarr[4]="Want more information?";homelinkarr[4]="?page_id=13";hometargetarr[4]="_self";hometitarr[4]="Want more information?";homedesarr[4]="We've provided some downloadable documents we hope you will find useful.";var gnrated='';var homestepcount=20;var homecurrstep=10;var hometimeo=null;var homehorvert=0;var homellllll=0;var homelllllll=0;var homellllllll=0;var homell=new Array();var homelll=new Array();var homellll=new Array();var homestartposx=new Array();var homelllll=new Array();var i=0;var homelllllllll=0;var homeDescCalcLeftBir=0;var homeDescCalcLeft=0;var homeDescCalcWidth=0;var homeDescCalcHeight=0;var homeDescCalcIcWidth=0;var homeDescCalcIcHeight=0;var homehpiece='';var homeds="";var homeIEDescOpacity=100;var homeFFOpacity=1.0;var homeDescFadeEffectTimer=null;var homeAutoPlayTimer=null;var homeAutoPlayCurrent=1;var homeicerdemi=0;function homeWriteDesc(){	if(homelinkarr[i].length>2){homeds=homeds+'<a href="'+homelinkarr[i]+'" target="'+hometargetarr[i]+'" style="text-decoration:none;">';}	homeds=homeds+'<div id="homeadesc'+i+'" style="position:absolute;top:'+235+'px;left:0px;width:'+homeDescCalcWidth+'px;height:'+homeDescCalcHeight+'px;visibility:hidden;overflow:hidden;cursor:pointer;filter:alpha(opacity=100);opacity:1.00;" onMouseOut="homeoutall()">';	homeds=homeds+'<div style="position:absolute;left:0px;top:0px;width:'+homeDescCalcWidth+'px;height:'+homeDescCalcHeight+'px;border-style:solid;border-width:0px;border-color:#000000;background-color:#'+'000000'+';opacity: '+0.50+';filter:alpha(opacity='+50+');" onMouseOut="homeoutall()"></div>';	homeds=homeds+'<div style="position:relative;left:0px;top:0px;width:'+homeDescCalcIcWidth+';height:'+homeDescCalcIcHeight+'px;text-align:'+'left'+';overflow:hidden;padding:'+3+'px;border-style:'+'solid'+';border-width:'+2+'px;border-color:#'+'EE3D37'+';color:#'+'FFFFFF'+';font-family:'+'arial'+';font-style:'+'normal'+';font-size: '+13+';font-weight:'+'normal'+';text-decoration:'+'none'+';opacity: 1.0;filter:alpha(opacity=100);" onMouseOut="homeoutall()">';	homeds=homeds+'<span style="color:#'+'EEE9BF'+';font-family:'+'arial'+';font-style:'+'normal'+';font-size: '+14+';font-weight:'+'bold'+';text-decoration:'+'none'+';" onMouseOut="homeoutall()">'+hometitarr[i]+'</span>';	if(hometitarr[i].length>0){homeds=homeds+'<br />';}			homeds=homeds+''+homedesarr[i];	homeds=homeds+'</div>';	homeds=homeds+'</div>';	if(homelinkarr[i].length>2){homeds=homeds+'</a>';}}function homeinit_doc(fstr,hormuvertmi){	homeDescCalcLeftBir=5;		if((0==0)&&(homehorvert==0))	{		homeDescCalcLeft=5+2;	}	else	{		homeDescCalcLeft=5;	}	if(0==0)	{		homeDescCalcWidth=400-5-5;	}	else	{		homeDescCalcWidth=750-5-5;	}	if((homehorvert==1)&&(0==1))	{		homeDescCalcHeight=300-235-5;	}	else	{		homeDescCalcHeight=300-235-5;	}	if((IEB==true)&&(scompat == "BackCompat" ))	{		homeDescCalcIcWidth=homeDescCalcWidth;		homeDescCalcIcHeight=homeDescCalcHeight;	}	else	{		homeDescCalcIcWidth=homeDescCalcWidth-2*(2)-2*(3);		homeDescCalcIcHeight=homeDescCalcHeight-2*(2)-2*(3);	}	homefolderset=fstr;	var tmpleftpad=0;	var tmptoppad=0;	homehpiece=homehpiece+'<div style="position:relative;width:'+750+'px;height:'+300+'px;border-style:solid;border-width:'+0+'px;border-color:#'+'FFFFFF'+';">';	homehpiece=homehpiece+'<div style="position:relative;width:'+750+'px;height:'+300+'px;overflow:hidden;border-style:solid;border-width:0px;border-color:#FFFFFF;cursor:default;" onMouseOver="homeoutall()" onMouseOut="homemouse_divout()">';	if(0==1)	{		for(i=1;i<=4;i++) 		{			homeWriteDesc();		}	}	for(i=1;i<=4;i++)	{		if(homehorvert==0)		{			if(i==1){tmpleftpad=0;}else{tmpleftpad=2;}			tmptoppad=0;		}		else		{			tmpleftpad=0;			if(i==1){tmptoppad=0;}else{tmptoppad=2;}		}		gnrated=gnrated+'<div id="homepo'+i+'" style="position:absolute;left:0px;top:0px;" onMouseOver="homemouse_over('+i+')" onMouseOut="homeoutall()"><div style="background-color:#FFFFFF;padding-left:'+tmpleftpad+'px;padding-top:'+tmptoppad+'px;"><a href="'+homelinkarr[i]+'" target="'+hometargetarr[i]+'"><img width="'+400+'" height="'+300+'" src="'+homefolderset+homeimgarr[i]+'" style="border-style:solid;border-width:0px;" TITLE="'+homealtarr[i]+'"></img></a>';		if(0==0)		{			homeds="";			homeWriteDesc();			gnrated=gnrated+homeds;		}		gnrated=gnrated+'</div></div>';	}	homehpiece=homehpiece+gnrated;	if(0==1)	{		homehpiece=homehpiece+homeds;	}	homehpiece=homehpiece+'</div>';	homehpiece=homehpiece+'</div>';	document.write(''+homehpiece);	setTimeout("homeinit_position("+parseInt(hormuvertmi)+")",50);}function homeinit_position(hv){	homehorvert=hv;	for(i=1;i<=4;i++)	{		homell[i]=document.getElementById('homepo'+i);		homelll[i]=document.getElementById('homeadesc'+i);		if((homell[i]==null)||(homelll[i]==null))		{		    setTimeout("homeinit_position("+parseInt(hv)+")",200);		    return;		}	}		if(homehorvert==0)	{		homellllll=parseInt(     (750-((4-1)*2))     /(4));		homelllllll=homellllll+2;		homellllllll=parseInt(((750-400)/(4-1)));	}	else	{		homellllll=parseInt(     (280-((4-1)*2))     /(4));		homelllllll=homellllll+2;		homellllllll=parseInt(((280-300)/(4-1)));	}	for(i=1;i<=4;i++)	{		homell[i]=document.getElementById('homepo'+i);		sx=(homelllllll*(i-1))-2;		if(homehorvert==0)		{			if(i==1)			{				homell[i].style.left="0px";			}			else			{				homell[i].style.left=""+sx+"px";			}		}		else		{			if(i==1)			{				homell[i].style.top="0px";			}			else			{				homell[i].style.top=""+sx+"px";			}		}		homestartposx[i]=sx;		homelllll[i]=homestartposx[i];		if(i==1)		{			homelll[i].style.left=""+homeDescCalcLeftBir+"px";		}		else		{			homelll[i].style.left=""+homeDescCalcLeft+"px";		}			}	homeintcomplate=1;	if(1==1)	{		homeDoAutoPlay();	}}function homeDoAutoPlay(){	homemouse_over(homeAutoPlayCurrent);	homeAutoPlayCurrent=homeAutoPlayCurrent+1;	if(homeAutoPlayCurrent>4)	{		homeAutoPlayCurrent=1;	}	homeAutoPlayTimer=setTimeout("homeDoAutoPlay()",4000);}function homedo_FadeAnim(){	if(homelllllllll<1)	{		return;	}	homeIEDescOpacity=homeIEDescOpacity+5;	homeFFOpacity=homeFFOpacity+0.05;	if(IEB==true)	{		if(homeIEDescOpacity>100)		{			homeIEDescOpacity=100;			return;		}	}	else	{		if(homeFFOpacity>1.00)		{			homeFFOpacity=1.00;			return;		}	}	if(IEB==true)	{		homelll[homelllllllll].filters.item(0).opacity=homeIEDescOpacity;	}	else	{		homelll[homelllllllll].style.opacity = homeFFOpacity;	}	homeDescFadeEffectTimer=setTimeout("homedo_FadeAnim()",20);}function homedo_anim(){	if(homecurrstep<=0)	{		if(homelllllllll>=1)		{			if(homehorvert==0)			{				if(homelllllllll==1)				{					homelll[homelllllllll].style.left=""+homeDescCalcLeftBir+"px";				}				else				{					homelll[homelllllllll].style.left=""+homeDescCalcLeft+"px";				}			}			else			{				if(0==0)				{					homelll[homelllllllll].style.left=""+(homeDescCalcLeft+parseInt(homell[homelllllllll].style.left))+"px";					var DesvertTop=0;					if((homelllllllll>1) &&(homelllllllll!=4)){DesvertTop=235+2;}else{DesvertTop=235;}					homelll[homelllllllll].style.top=""+(DesvertTop)+"px";				}				else				{					homelll[homelllllllll].style.left=""+(homeDescCalcLeft)+"px";					homelll[homelllllllll].style.top=""+235+"px";				}			}			if((hometitarr[homelllllllll].length>0)||(homedesarr[homelllllllll].length>0))			{				if(2==2)				{					homeIEDescOpacity=0;					homeFFOpacity=0.00;					homedo_FadeAnim();					homelll[homelllllllll].style.visibility="visible";				}				else				{					homelll[homelllllllll].style.visibility="visible";				}			}			else			{				homelll[homelllllllll].style.visibility="hidden";			}		}		return;	}	for(i=2;i<=4;i++)	{		homelllll[i] = parseInt(homelllll[i])+parseInt((homellll[i]-homelllll[i])/homecurrstep);		if(homehorvert==0)		{			homell[i].style.left=""+homelllll[i]+"px";		}		else		{			homell[i].style.top=""+homelllll[i]+"px";		}	}	if((2==1)&&(homelllllllll>=1))	{		var dtop=0;		if((hometitarr[homelllllllll].length>0)||(homedesarr[homelllllllll].length>0))		{    		homelll[homelllllllll].style.visibility="visible";        }        else        {            homelll[homelllllllll].style.visibility="hidden";        }		dtop= 235+        parseInt(homeDescCalcHeight-      ((homeDescCalcHeight/homestepcount)*(homestepcount-(homecurrstep-1)))         );		homelll[homelllllllll].style.top=""+dtop+"px";	}	homecurrstep--;	setTimeout("homedo_anim()",20);}function homereposition(g){	for(i=1;i<=4;i++)	{		if(i<=g)		{			if(i==1)			{				homellll[i]=0;			}			else			{				homellll[i]=parseInt(((i-1)*homellllllll)-2);			}		}		else		{			oncekix=0;			for(j=1;j<(i-1);j++)			{				oncekix=oncekix+homellllllll;			}			if(homehorvert==0)			{				homellll[i]=parseInt(((400)+(oncekix)));			}			else			{				homellll[i]=parseInt(((300)+(oncekix)));			}		}			}	if((homehorvert==0)&&(4==g))	{		var bul1=homellll[4]+2+400;		var bul2=750-bul1;		homellll[4]=homellll[4]+bul2;	}	if((homehorvert==1)&&(4==g))	{		var bul1=homellll[4]+2+300;		var bul2=300-bul1;		homellll[4]=homellll[4]+bul2;	}	homecurrstep=homestepcount;	homedo_anim();}function homemouse_over(g){	if(homeintcomplate==0){return;}	if(g==homelllllllll){return;}	homelllllllll=g;	clearTimeout(hometimeo);	if(1==1){if(homeicerdemi==1){clearTimeout(homeAutoPlayTimer);}}	for(i=1;i<=4;i++)	{		if(i!=g)		{			homelll[i].style.visibility="hidden";			if(IEB==true)			{				homelll[i].filters.item(0).opacity=100;			}			else			{				homelll[i].style.opacity = 1.0;			}		}	}	homereposition(g);}function homeoutall(){	homeicerdemi=1;	clearTimeout(homeAutoPlayTimer);	clearTimeout(hometimeo);}function homemouse_divout2(){	homeicerdemi=0;	clearTimeout(hometimeo);	if(1==1)	{		clearTimeout(homeAutoPlayTimer);		homeAutoPlayCurrent=1;		homeDoAutoPlay();	}	else	{	for(i=1;i<=4;i++)	{		homelll[i].style.visibility="hidden";	}	for(i=1;i<=4;i++)	{		sx=(homelllllll*(i-1))-2;		if(i==1)		{			homellll[i]=0;		}		else		{			homellll[i]=sx;		}			}	homelllllllll=-1;	homecurrstep=homestepcount;	homedo_anim();	}}function homemouse_divout(){	clearTimeout(hometimeo);	hometimeo=setTimeout("homemouse_divout2()",300);}
