uagent = window.navigator.userAgent.toLowerCase();IEB=(uagent.indexOf('msie') != -1)?true:false;var scompat = document.compatMode;var gtsintcomplate=0;gtsimgarr=new Array();gtsaltarr=new Array();gtslinkarr=new Array();gtstargetarr=new Array();gtstitarr=new Array();gtsdesarr=new Array();gtsimgarr[0]="";gtsaltarr[0]="";gtslinkarr[0]="";gtstargetarr[0]="";gtstitarr[0]="";gtsdesarr[0]="";gtsimgarr[1]="http://www.gtsturism.ro/slide/pachete-turistice.jpg";gtsaltarr[1]="Pachete turistice";gtslinkarr[1]="http://www.gtsturism.ro/pachete-turistice/";gtstargetarr[1]="_self";gtstitarr[1]="";gtsdesarr[1]="Pachete turistice";gtsimgarr[2]="http://www.gtsturism.ro/slide/destiantii-europene.jpg";gtsaltarr[2]="Destinatii europene";gtslinkarr[2]="http://www.gtsturism.ro/oferte-speciale/destinatii-europene/";gtstargetarr[2]="_self";gtstitarr[2]="";gtsdesarr[2]="Destinatii europene";gtsimgarr[3]="http://www.gtsturism.ro/slide/destinatii-exotice.jpg";gtsaltarr[3]="Destinatii exotice";gtslinkarr[3]="http://www.gtsturism.ro/8897/destinatii-exotice/";gtstargetarr[3]="_self";gtstitarr[3]="";gtsdesarr[3]="Destinatii exotice";gtsimgarr[4]="http://www.gtsturism.ro/slide/Go-To-SUA.jpg";gtsaltarr[4]="Go To SUA";gtslinkarr[4]="http://www.gotosua.ro/";gtstargetarr[4]="_self";gtstitarr[4]="";gtsdesarr[4]="Go To SUA";gtsimgarr[5]="http://www.gtsturism.ro/slide/contact.jpg";gtsaltarr[5]="Contact";gtslinkarr[5]="http://www.gtsturism.ro/87/date-contact-sedii-gts-turism/";gtstargetarr[5]="_self";gtstitarr[5]="";gtsdesarr[5]="Contact";var gnrated='';var gtsstepcount=30;var gtscurrstep=10;var gtstimeo=null;var gtshorvert=0;var gtsllllll=0;var gtslllllll=0;var gtsllllllll=0;var gtsll=new Array();var gtslll=new Array();var gtsllll=new Array();var gtsstartposx=new Array();var gtslllll=new Array();var i=0;var gtslllllllll=0;var gtsDescCalcLeftBir=0;var gtsDescCalcLeft=0;var gtsDescCalcWidth=0;var gtsDescCalcHeight=0;var gtsDescCalcIcWidth=0;var gtsDescCalcIcHeight=0;var gtshpiece='';var gtsds="";var gtsIEDescOpacity=100;var gtsFFOpacity=1.0;var gtsDescFadeEffectTimer=null;var gtsAutoPlayTimer=null;var gtsAutoPlayCurrent=1;var gtsicerdemi=0;function gtsWriteDesc(){	if(gtslinkarr[i].length>2){gtsds=gtsds+'<a href="'+gtslinkarr[i]+'" target="'+gtstargetarr[i]+'" style="text-decoration:none;">';}	gtsds=gtsds+'<div id="gtsadesc'+i+'" style="position:absolute;top:'+168+'px;left:0px;width:'+gtsDescCalcWidth+'px;height:'+gtsDescCalcHeight+'px;visibility:hidden;overflow:hidden;cursor:pointer;filter:alpha(opacity=100);opacity:1.00;" onMouseOut="gtsoutall()">';	gtsds=gtsds+'<div style="position:absolute;left:0px;top:0px;width:'+gtsDescCalcWidth+'px;height:'+gtsDescCalcHeight+'px;border-style:solid;border-width:0px;border-color:#000000;background-color:#'+'000000'+';opacity: '+0.80+';filter:alpha(opacity='+80+');" onMouseOut="gtsoutall()"></div>';	gtsds=gtsds+'<div style="position:relative;left:0px;top:0px;width:'+gtsDescCalcIcWidth+';height:'+gtsDescCalcIcHeight+'px;text-align:'+'left'+';overflow:hidden;padding:'+3+'px;border-style:'+'solid'+';border-width:'+0+'px;border-color:#'+'000000'+';color:#'+'FFFFFF'+';font-family:'+'arial'+';font-style:'+'normal'+';font-size: '+18+';font-weight:'+'normal'+';text-decoration:'+'none'+';opacity: 1.0;filter:alpha(opacity=100);" onMouseOut="gtsoutall()">';	gtsds=gtsds+'<span style="color:#'+'FFFFFF'+';font-family:'+'arial'+';font-style:'+'normal'+';font-size: '+18+';font-weight:'+'normal'+';text-decoration:'+'none'+';" onMouseOut="gtsoutall()">'+gtstitarr[i]+'</span>';	if(gtstitarr[i].length>0){gtsds=gtsds+'<br />';}			gtsds=gtsds+''+gtsdesarr[i];	gtsds=gtsds+'</div>';	gtsds=gtsds+'</div>';	if(gtslinkarr[i].length>2){gtsds=gtsds+'</a>';}}function gtsinit_doc(fstr,hormuvertmi){	gtsDescCalcLeftBir=5;		if((0==0)&&(gtshorvert==0))	{		gtsDescCalcLeft=5+2;	}	else	{		gtsDescCalcLeft=5;	}	if(0==0)	{		gtsDescCalcWidth=283-5-5;	}	else	{		gtsDescCalcWidth=728-5-5;	}	if((gtshorvert==1)&&(0==1))	{		gtsDescCalcHeight=200-168-5;	}	else	{		gtsDescCalcHeight=200-168-5;	}	if((IEB==true)&&(scompat == "BackCompat" ))	{		gtsDescCalcIcWidth=gtsDescCalcWidth;		gtsDescCalcIcHeight=gtsDescCalcHeight;	}	else	{		gtsDescCalcIcWidth=gtsDescCalcWidth-2*(0)-2*(3);		gtsDescCalcIcHeight=gtsDescCalcHeight-2*(0)-2*(3);	}	gtsfolderset=fstr;	var tmpleftpad=0;	var tmptoppad=0;	gtshpiece=gtshpiece+'<div style="position:relative;width:'+728+'px;height:'+200+'px;border-style:solid;border-width:'+0+'px;border-color:#'+'666666'+';">';	gtshpiece=gtshpiece+'<div style="position:relative;width:'+728+'px;height:'+200+'px;overflow:hidden;border-style:solid;border-width:0px;border-color:#FFFFFF;cursor:default;" onMouseOver="gtsoutall()" onMouseOut="gtsmouse_divout()">';	if(0==1)	{		for(i=1;i<=5;i++) 		{			gtsWriteDesc();		}	}	for(i=1;i<=5;i++)	{		if(gtshorvert==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="gtspo'+i+'" style="position:absolute;left:0px;top:0px;" onMouseOver="gtsmouse_over('+i+')" onMouseOut="gtsoutall()"><div style="background-color:#FFFFFF;padding-left:'+tmpleftpad+'px;padding-top:'+tmptoppad+'px;"><a href="'+gtslinkarr[i]+'" target="'+gtstargetarr[i]+'"><img width="'+283+'" height="'+200+'" src="'+gtsfolderset+gtsimgarr[i]+'" style="border-style:solid;border-width:0px;" TITLE="'+gtsaltarr[i]+'"></img></a>';		if(0==0)		{			gtsds="";			gtsWriteDesc();			gnrated=gnrated+gtsds;		}		gnrated=gnrated+'</div></div>';	}	gtshpiece=gtshpiece+gnrated;	if(0==1)	{		gtshpiece=gtshpiece+gtsds;	}	gtshpiece=gtshpiece+'</div>';	gtshpiece=gtshpiece+'</div>';	document.write(''+gtshpiece);	setTimeout("gtsinit_position("+parseInt(hormuvertmi)+")",50);}function gtsinit_position(hv){	gtshorvert=hv;	for(i=1;i<=5;i++)	{		gtsll[i]=document.getElementById('gtspo'+i);		gtslll[i]=document.getElementById('gtsadesc'+i);		if((gtsll[i]==null)||(gtslll[i]==null))		{		    setTimeout("gtsinit_position("+parseInt(hv)+")",200);		    return;		}	}		if(gtshorvert==0)	{		gtsllllll=parseInt(     (728-((5-1)*2))     /(5));		gtslllllll=gtsllllll+2;		gtsllllllll=parseInt(((728-283)/(5-1)));	}	else	{		gtsllllll=parseInt(     (280-((5-1)*2))     /(5));		gtslllllll=gtsllllll+2;		gtsllllllll=parseInt(((280-200)/(5-1)));	}	for(i=1;i<=5;i++)	{		gtsll[i]=document.getElementById('gtspo'+i);		sx=(gtslllllll*(i-1))-2;		if(gtshorvert==0)		{			if(i==1)			{				gtsll[i].style.left="0px";			}			else			{				gtsll[i].style.left=""+sx+"px";			}		}		else		{			if(i==1)			{				gtsll[i].style.top="0px";			}			else			{				gtsll[i].style.top=""+sx+"px";			}		}		gtsstartposx[i]=sx;		gtslllll[i]=gtsstartposx[i];		if(i==1)		{			gtslll[i].style.left=""+gtsDescCalcLeftBir+"px";		}		else		{			gtslll[i].style.left=""+gtsDescCalcLeft+"px";		}			}	gtsintcomplate=1;	if(1==1)	{		gtsDoAutoPlay();	}}function gtsDoAutoPlay(){	gtsmouse_over(gtsAutoPlayCurrent);	gtsAutoPlayCurrent=gtsAutoPlayCurrent+1;	if(gtsAutoPlayCurrent>5)	{		gtsAutoPlayCurrent=1;	}	gtsAutoPlayTimer=setTimeout("gtsDoAutoPlay()",5000);}function gtsdo_FadeAnim(){	if(gtslllllllll<1)	{		return;	}	gtsIEDescOpacity=gtsIEDescOpacity+5;	gtsFFOpacity=gtsFFOpacity+0.05;	if(IEB==true)	{		if(gtsIEDescOpacity>100)		{			gtsIEDescOpacity=100;			return;		}	}	else	{		if(gtsFFOpacity>1.00)		{			gtsFFOpacity=1.00;			return;		}	}	if(IEB==true)	{		gtslll[gtslllllllll].filters.item(0).opacity=gtsIEDescOpacity;	}	else	{		gtslll[gtslllllllll].style.opacity = gtsFFOpacity;	}	gtsDescFadeEffectTimer=setTimeout("gtsdo_FadeAnim()",20);}function gtsdo_anim(){	if(gtscurrstep<=0)	{		if(gtslllllllll>=1)		{			if(gtshorvert==0)			{				if(gtslllllllll==1)				{					gtslll[gtslllllllll].style.left=""+gtsDescCalcLeftBir+"px";				}				else				{					gtslll[gtslllllllll].style.left=""+gtsDescCalcLeft+"px";				}			}			else			{				if(0==0)				{					gtslll[gtslllllllll].style.left=""+(gtsDescCalcLeft+parseInt(gtsll[gtslllllllll].style.left))+"px";					var DesvertTop=0;					if((gtslllllllll>1) &&(gtslllllllll!=5)){DesvertTop=168+2;}else{DesvertTop=168;}					gtslll[gtslllllllll].style.top=""+(DesvertTop)+"px";				}				else				{					gtslll[gtslllllllll].style.left=""+(gtsDescCalcLeft)+"px";					gtslll[gtslllllllll].style.top=""+168+"px";				}			}			if((gtstitarr[gtslllllllll].length>0)||(gtsdesarr[gtslllllllll].length>0))			{				if(2==2)				{					gtsIEDescOpacity=0;					gtsFFOpacity=0.00;					gtsdo_FadeAnim();					gtslll[gtslllllllll].style.visibility="visible";				}				else				{					gtslll[gtslllllllll].style.visibility="visible";				}			}			else			{				gtslll[gtslllllllll].style.visibility="hidden";			}		}		return;	}	for(i=2;i<=5;i++)	{		gtslllll[i] = parseInt(gtslllll[i])+parseInt((gtsllll[i]-gtslllll[i])/gtscurrstep);		if(gtshorvert==0)		{			gtsll[i].style.left=""+gtslllll[i]+"px";		}		else		{			gtsll[i].style.top=""+gtslllll[i]+"px";		}	}	if((2==1)&&(gtslllllllll>=1))	{		var dtop=0;		if((gtstitarr[gtslllllllll].length>0)||(gtsdesarr[gtslllllllll].length>0))		{    		gtslll[gtslllllllll].style.visibility="visible";        }        else        {            gtslll[gtslllllllll].style.visibility="hidden";        }		dtop= 168+        parseInt(gtsDescCalcHeight-      ((gtsDescCalcHeight/gtsstepcount)*(gtsstepcount-(gtscurrstep-1)))         );		gtslll[gtslllllllll].style.top=""+dtop+"px";	}	gtscurrstep--;	setTimeout("gtsdo_anim()",30);}function gtsreposition(g){	for(i=1;i<=5;i++)	{		if(i<=g)		{			if(i==1)			{				gtsllll[i]=0;			}			else			{				gtsllll[i]=parseInt(((i-1)*gtsllllllll)-2);			}		}		else		{			oncekix=0;			for(j=1;j<(i-1);j++)			{				oncekix=oncekix+gtsllllllll;			}			if(gtshorvert==0)			{				gtsllll[i]=parseInt(((283)+(oncekix)));			}			else			{				gtsllll[i]=parseInt(((200)+(oncekix)));			}		}			}	if((gtshorvert==0)&&(5==g))	{		var bul1=gtsllll[5]+2+283;		var bul2=728-bul1;		gtsllll[5]=gtsllll[5]+bul2;	}	if((gtshorvert==1)&&(5==g))	{		var bul1=gtsllll[5]+2+200;		var bul2=200-bul1;		gtsllll[5]=gtsllll[5]+bul2;	}	gtscurrstep=gtsstepcount;	gtsdo_anim();}function gtsmouse_over(g){	if(gtsintcomplate==0){return;}	if(g==gtslllllllll){return;}	gtslllllllll=g;	clearTimeout(gtstimeo);	if(1==1){if(gtsicerdemi==1){clearTimeout(gtsAutoPlayTimer);}}	for(i=1;i<=5;i++)	{		if(i!=g)		{			gtslll[i].style.visibility="hidden";			if(IEB==true)			{				gtslll[i].filters.item(0).opacity=100;			}			else			{				gtslll[i].style.opacity = 1.0;			}		}	}	gtsreposition(g);}function gtsoutall(){	gtsicerdemi=1;	clearTimeout(gtsAutoPlayTimer);	clearTimeout(gtstimeo);}function gtsmouse_divout2(){	gtsicerdemi=0;	clearTimeout(gtstimeo);	if(1==1)	{		clearTimeout(gtsAutoPlayTimer);		gtsAutoPlayCurrent=1;		gtsDoAutoPlay();	}	else	{	for(i=1;i<=5;i++)	{		gtslll[i].style.visibility="hidden";	}	for(i=1;i<=5;i++)	{		sx=(gtslllllll*(i-1))-2;		if(i==1)		{			gtsllll[i]=0;		}		else		{			gtsllll[i]=sx;		}			}	gtslllllllll=-1;	gtscurrstep=gtsstepcount;	gtsdo_anim();	}}function gtsmouse_divout(){	clearTimeout(gtstimeo);	gtstimeo=setTimeout("gtsmouse_divout2()",300);}
