uagent = window.navigator.userAgent.toLowerCase();IEB=(uagent.indexOf('msie') != -1)?true:false;var 
scompat = document.compatMode;

var autopintcomplate=0;
autopimgarr=new Array();
autopaltarr=new Array();
autoplinkarr=new Array();
autoptargetarr=new Array();
autoptitarr=new Array();
autopdesarr=new Array();

autopimgarr[0]="";
autopaltarr[0]="";
autoplinkarr[0]="";
autoptargetarr[0]="";
autoptitarr[0]="";
autopdesarr[0]="";

//Picture 1//
autopimgarr[1]="http://www.comtec-connect.com/images/comtec_connect_team.jpg"; //image source//
autopaltarr[1]="";
autoplinkarr[1]="#"; //image link//
autoptargetarr[1]="_top"; //link target//
autoptitarr[1]="Comtec Connect"; //title//
autopdesarr[1]="Our sales and marketing team provide cost effective solutions for a range of events - from Infection Control conferences to Ice Hockey fixtures."; //description//

//Picture 2//
autopimgarr[2]="http://www.comtec-connect.com/images/manchester_phoenix.jpg";
autopaltarr[2]="";
autoplinkarr[2]="#";
autoptargetarr[2]="_top";
autoptitarr[2]="Generating Growth";
autopdesarr[2]="We have a proven track record in generating year on year growth and increased profit for our self-generating accounts.";

//Picture 3//
autopimgarr[3]="http://www.comtec-connect.com/images/exhibition_delegate.jpg";
autopaltarr[3]="";
autoplinkarr[3]="#";
autoptargetarr[3]="_top";
autoptitarr[3]="Marketing Communications";
autopdesarr[3]="We can work with you to design your marketing strategy and plan and implement your campaigns. ";

//Picture 4//
autopimgarr[4]="http://www.comtec-connect.com/images/delegate_management.jpg";
autopaltarr[4]="";
autoplinkarr[4]="#";
autoptargetarr[4]="_top";
autoptitarr[4]="Delegate &amp; Exhibitor Management";
autopdesarr[4]="No matter what the content; be it sales, medical, political or business we have a wealth of experience in all styles of conference or exhibition management and production.";

//Picture 5//
autopimgarr[5]="http://www.comtec-connect.com/images/client_venue_liaison.jpg";
autopaltarr[5]="";
autoplinkarr[5]="#";
autoptargetarr[5]="_top";
autoptitarr[5]="Liaison";
autopdesarr[5]="Your Project Manager will liaise between yourself, the venue and Comtec&rsquo;s internal Departments. Ensuring delivery of our promises and exceeding expectations.";

//Picture 6//
autopimgarr[6]="http://www.comtec-connect.com/images/telesales.jpg";
autopaltarr[6]="";
autoplinkarr[6]="#";
autoptargetarr[6]="_top";
autoptitarr[6]="Operations";
autopdesarr[6]="Our Operations team carefully direct how each department operates and integrates into becoming one entity, providing more economic and effective solutions. ";


var gnrated='';
var autopstepcount=20; //animation step count - increse number for smoother transition//
var autopcurrstep=10;
var autoptimeo=null;
var autophorvert=0;
var autopllllll=0;
var autoplllllll=0;
var autopllllllll=0;
var autopll=new Array();
var autoplll=new Array();
var autopllll=new Array();
var autopstartposx=new Array();
var autoplllll=new Array();
var i=0;var autoplllllllll=0;
var autopDescCalcLeftBir=0;
var autopDescCalcLeft=0;
var autopDescCalcWidth=0;
var autopDescCalcHeight=0;
var autopDescCalcIcWidth=0;
var autopDescCalcIcHeight=0;
var autophpiece='';
var autopds="";
var autopIEDescOpacity=100;
var autopFFOpacity=1.0;
var autopDescFadeEffectTimer=null;
var autopAutoPlayTimer=null;
var autopAutoPlayCurrent=1;
var autopicerdemi=0;

//top:135px = top space (margin on the top of the desciption boxes)//
//top:135px = top space (margin on the top of the desciption boxes)//

function autopWriteDesc(){	
	if(autoplinkarr[i].length>2){
	autopds=autopds+'<a href="'+autoplinkarr[i]+'" target="'+autoptargetarr[i]+'" style="text-decoration:none;">';
	}	
	
	autopds=autopds+'<div id="adesc'+i+'" style="position:absolute;top:'+178+'px;left:0px;width:'+autopDescCalcWidth+'px;height:'+autopDescCalcHeight+'px;visibility:hidden;overflow:hidden;cursor:pointer;filter:alpha(opacity=100);opacity:1.00;" onMouseOut="autopoutall()">';
	
	//style for picture caption background//
	autopds=autopds+'<div style="position:absolute;left:0px;top:0px;width:'+autopDescCalcWidth+'px;height:'+autopDescCalcHeight+'px;border-style:solid;border-width:0px;border-color:#'+'000000'+';background-color:#'+'000000'+';" onMouseOut="autopoutall()"></div>';	
	
	//style for picture description text//
	autopds=autopds+'<div style="position:relative;left:5px;top:5px;bottom:5px;right:5px;width:'+autopDescCalcIcWidth+';height:'+autopDescCalcIcHeight+'px;text-align:'+'left'+';overflow:hidden;padding:'+3+'px;border-style:'+'solid'+';border-width:'+1+'px;border-color:#'+'000000'+';color:#'+'FFFFFF'+';font-family:'+'Arial'+';font-style:'+'normal'+';font-size: '+12+'px;font-weight:'+'bold'+';text-decoration:'+'none'+';" onMouseOut="autopoutall()">';	
	
	//style for picture titles//
	autopds=autopds+'<span style="color:#'+'008fd4'+';font-family:'+'arial'+';font-style:'+'normal'+';font-size: '+12+'px;font-weight:'+'bold'+';text-decoration:'+'none'+';" onMouseOut="autopoutall()">'+autoptitarr[i]+'</span>';	
	
	if(autoptitarr[i].length>0){autopds=autopds+'<br />';
	}			
	
	autopds=autopds+''+autopdesarr[i];	
	autopds=autopds+'</div>';	
	autopds=autopds+'</div>';	
	
	if(autoplinkarr[i].length>2){
		autopds=autopds+'</a>';}}
		function autopinit_doc(fstr,hormuvertmi){	
		autopDescCalcLeftBir=5;		
		
		if((0==0)&&(autophorvert==0)){		
		autopDescCalcLeft=5+2;	
		}	
		
		else{		
		autopDescCalcLeft=5;	
		}	
		
		if(0==0){		
		autopDescCalcWidth=347-5-5;	//image width - padding - margin//
		}	
		
		else{		
		autopDescCalcWidth=760-5-5;	//menu width - padding - margin//
		}	
		
		if((autophorvert==1)&&(0==1)){		
		autopDescCalcHeight=260-178-5;	 //image height - padding of top space - margin//
		}	
		
		else{		
		autopDescCalcHeight=260-178-5;	//menu height - padding of top space - margin// 
		}	
		
		if((IEB==true)&&(scompat == "BackCompat" )){		
		autopDescCalcIcWidth=autopDescCalcWidth;		
		autopDescCalcIcHeight=autopDescCalcHeight;	
		}	
		
		else{		
		autopDescCalcIcWidth=autopDescCalcWidth-2*(2)-2*(3);		
		autopDescCalcIcHeight=autopDescCalcHeight-2*(2)-2*(3);	
		}	
		
		autopfolderset=fstr;	
		var tmpleftpad=0;	
		var tmptoppad=0;	
		
		autophpiece=autophpiece+'<div style="position:relative;width:'+760+'px;height:'+260+'px;border-style:solid;border-width:'+0+'px;border-color:#'+'666666'+';">';	
		
		autophpiece=autophpiece+'<div style="position:relative;width:'+760+'px;height:'+260+'px;overflow:hidden;border-style:solid;border-width:0px;border-color:#FFFFFF;cursor:default;" onMouseOver="autopoutall()" onMouseOut="autopmouse_divout()">';	
		
		if(0==1){
			
		for(i=1;i<=6;i++){			
		autopWriteDesc();		
		}	
		}	
		
		for(i=1;i<=6;i++){		
		
		if(autophorvert==0){			
		
		if(i==1){tmpleftpad=0;
		}
		
		else{tmpleftpad=2;
		}			
		tmptoppad=0;		
		}		
		
		else{			
		tmpleftpad=2;			
		
		if(i==1){
			tmptoppad=0;
			}
			
			else{
				tmptoppad=2;
				}
				}
				
				//set style for background and container of the whole accordian//
				gnrated=gnrated+'<div id="autoppo'+i+'" style="position:absolute;left:0px;top:0px;" onMouseOver="autopmouse_over('+i+')" onMouseOut="autopoutall()"><div style="background-color:#16181A;padding-left:'+tmpleftpad+'px;padding-top:'+tmptoppad+'px;"><a href="'+autoplinkarr[i]+'" target="'+autoptargetarr[i]+'"><img width="'+347+'" height="'+260+'" src="'+autopfolderset+autopimgarr[i]+'" style="border-style:solid;border-width:0px;" TITLE="'+autopaltarr[i]+'"></img></a>';		
				
				if(0==0){			
				autopds="";			
				autopWriteDesc();			
				gnrated=gnrated+autopds;		
				}		
				gnrated=gnrated+'</div></div>';	
				}	
				autophpiece=autophpiece+gnrated;	
				if(0==1)	{		
				autophpiece=autophpiece+autopds;	
				}	
				autophpiece=autophpiece+'</div>';	
				autophpiece=autophpiece+'</div>';	document.write(''+autophpiece);	setTimeout("autopinit_position("+parseInt(hormuvertmi)+")",50);
				}
				
				function autopinit_position(hv){	
				autophorvert=hv;	
				
				for(i=1;i<=6;i++){		
				autopll[i]=document.getElementById('autoppo'+i);		
				autoplll[i]=document.getElementById('adesc'+i);		
				
				if((autopll[i]==null)||(autoplll[i]==null)){		    
				setTimeout("autopinit_position("+parseInt(hv)+")",260);		    
				return;		
				}	
				}		
				
				if(autophorvert==0){		
				autopllllll=parseInt(     (760-((6-1)*2))     /(6));		
				autoplllllll=autopllllll+2;		
				autopllllllll=parseInt(((760-347)/(6-1)));	
				}	
				
				else	
				{		
				autopllllll=parseInt(     (280-((6-1)*2))     /(6));		
				autoplllllll=autopllllll+2;		
				autopllllllll=parseInt(((280-200)/(6-1)));	
				}	
				
				for(i=1;i<=6;i++)	
				{		
				autopll[i]=document.getElementById('autoppo'+i);		
				sx=(autoplllllll*(i-1))-2;		
				
				if(autophorvert==0){			
				
				if(i==1){				
				autopll[i].style.left="0px";			
				}			
				
				else{				
				autopll[i].style.left=""+sx+"px";			
				}		
				}		
				
				else{			
				
				if(i==1)			
				{				
				autopll[i].style.top="0px";			
				}			
				
				else{				
				autopll[i].style.top=""+sx+"px";			
				}	
				}		
				autopstartposx[i]=sx;		
				autoplllll[i]=autopstartposx[i];		
				
				if(i==1){			
				autoplll[i].style.left=""+autopDescCalcLeftBir+"px";		
				}		
				
				else{			
				autoplll[i].style.left=""+autopDescCalcLeft+"px";		
				}			
				}	
				
				if(1==1){		
				autopDoAutoPlay();	
				}
				}
				function autopDoAutoPlay(){	
				autopmouse_over(autopAutoPlayCurrent);	
				autopAutoPlayCurrent=autopAutoPlayCurrent+1;	
				if(autopAutoPlayCurrent>6){		
				autopAutoPlayCurrent=1;	
				}	

autopAutoPlayTimer=setTimeout("autopDoAutoPlay()",5000); //autoplay timer - animation pause//
} 
function autopdo_FadeAnim(){	
if(autoplllllllll<1){		
return;	
}	

autopIEDescOpacity=autopIEDescOpacity+5;	
autopFFOpacity=autopFFOpacity+0.05;	
if(IEB==true){		
if(autopIEDescOpacity>100){			
autopIEDescOpacity=100;			
return;		
}	
}	

else{		
if(autopFFOpacity>1.00){			
autopFFOpacity=1.00;			
return;		
}	
}	

if(IEB==true){		
autoplll[autoplllllllll].filters.item(0).opacity=autopIEDescOpacity;	
}	

else{		
autoplll[autoplllllllll].style.opacity = autopFFOpacity;	
}	
autopDescFadeEffectTimer=setTimeout("autopdo_FadeAnim()",20);
}
function autopdo_anim()
{	
if(autopcurrstep<=0){		
if(autoplllllllll>=1){			
if(autophorvert==0){				
if(autoplllllllll==1){					
autoplll[autoplllllllll].style.left=""+autopDescCalcLeftBir+"px";				
}		

else{					
autoplll[autoplllllllll].style.left=""+autopDescCalcLeft+"px";				
}			
}		

else{				
if(0==0){					
autoplll[autoplllllllll].style.left=""+(autopDescCalcLeft+parseInt(autopll[autoplllllllll].style.left))+"px";					
var DesvertTop=0;					

if((autoplllllllll>1) &&(autoplllllllll!=6)){DesvertTop=178+2;}else{DesvertTop=178;
}					
autoplll[autoplllllllll].style.top=""+(DesvertTop)+"px";				
}	

else{	
autoplll[autoplllllllll].style.left=""+(autopDescCalcLeft)+"px";					
autoplll[autoplllllllll].style.top=""+178+"px";				
}			
}		

if((autoptitarr[autoplllllllll].length>0)||(autopdesarr[autoplllllllll].length>0)){				
if(2==2){					
autopIEDescOpacity=0;					
autopFFOpacity=0.00;					
autopdo_FadeAnim();					
autoplll[autoplllllllll].style.visibility="visible";				
}		

else{					
autoplll[autoplllllllll].style.visibility="visible";				
}			
}	

else{				
autoplll[autoplllllllll].style.visibility="hidden";			
}		
}		
return;	
}	
for(i=2;i<=6;i++){		
autoplllll[i] = parseInt(autoplllll[i])+parseInt((autopllll[i]-autoplllll[i])/autopcurrstep);		

if(autophorvert==0){			
autopll[i].style.left=""+autoplllll[i]+"px";		
}		

else{			
autopll[i].style.top=""+autoplllll[i]+"px";		
}	
}	

if((2==1)&&(autoplllllllll>=1)){		
var dtop=0;		
autoplll[autoplllllllll].style.visibility="visible";		
dtop= 178+parseInt(autopDescCalcHeight-((autopDescCalcHeight/autopstepcount)*(autopstepcount-(autopcurrstep-1))));		
autoplll[autoplllllllll].style.top=""+dtop+"px";	
}	

autopcurrstep--;	
setTimeout("autopdo_anim()",45); //animation delay - higher number is smoother//
}
function autopreposition(g){	
for(i=1;i<=6;i++){		
if(i<=g){			
if(i==1){				
autopllll[i]=0;			
}			

else{						
autopllll[i]=parseInt(((i-1)*autopllllllll)-2);			
}		
}		

else{			
oncekix=0;			
for(j=1;j<(i-1);j++){				
oncekix=oncekix+autopllllllll;			
}			
if(autophorvert==0){				
autopllll[i]=parseInt(((347)+(oncekix)));			
}			

else{				
autopllll[i]=parseInt(((260)+(oncekix)));			
}		
}			
}	

if((autophorvert==0)&&(6==g)){		
var bul1=autopllll[6]+2+347;		
var bul2=760-bul1;		
autopllll[6]=autopllll[6]+bul2;	
}	

if((autophorvert==1)&&(6==g)){		
var bul1=autopllll[6]+2+260;		
var bul2=260-bul1;		
autopllll[6]=autopllll[6]+bul2;	
}	
autopcurrstep=autopstepcount;	
autopdo_anim();}
function autopmouse_over(g){	

if(g==autoplllllllll){
	return;
	}	
	autoplllllllll=g;	
	clearTimeout(autoptimeo);	
	if(1==1){if(autopicerdemi==1){
		clearTimeout(autopAutoPlayTimer);
		}
		}	
		for(i=1;i<=6;i++){		
		if(i!=g){			
		autoplll[i].style.visibility="hidden";			
		
		if(IEB==true){				
		autoplll[i].filters.item(0).opacity=100;			
		}			
		
		else{				
		autoplll[i].style.opacity = 1.0;			
		}		
		}	
		}	
		autopreposition(g);
		}
		
		function autopoutall(){	
		autopicerdemi=1;	
		clearTimeout(autopAutoPlayTimer);	
		clearTimeout(autoptimeo);
		}
		function autopmouse_divout2(){	
		autopicerdemi=0;	
		clearTimeout(autoptimeo);	
		
		if(1==1){		
		clearTimeout(autopAutoPlayTimer);		
		autopAutoPlayCurrent=1;		
		autopDoAutoPlay();	
		}	
		
		else{	
		for(i=1;i<=6;i++){		
		autoplll[i].style.visibility="hidden";	
		}	
		for(i=1;i<=6;i++){		
		sx=(autoplllllll*(i-1))-2;		
		if(i==1){			
		autopllll[i]=0;		
		}		
		
		else{			
		autopllll[i]=sx;		
		}			
		}	
		autoplllllllll=-1;	
		autopcurrstep=autopstepcount;	
		autopdo_anim();	
		}
		}
		function autopmouse_divout(){	
		clearTimeout(autoptimeo);	
		autoptimeo=setTimeout("autopmouse_divout2()",300);
		}
