uagent = window.navigator.userAgent.toLowerCase();

IEB=(uagent.indexOf('msie') != -1)?true:false;

var scompat = document.compatMode;

var ac2intcomplate=0;

ac2imgarr=new Array();

ac2altarr=new Array();

ac2linkarr=new Array();

ac2targetarr=new Array();

ac2titarr=new Array();

ac2desarr=new Array();

ac2imgarr[0]="";

ac2altarr[0]="";

ac2linkarr[0]="";

ac2targetarr[0]="";

ac2titarr[0]="";

ac2desarr[0]="";

ac2imgarr[1]="ic-health-goldG.jpg";

ac2altarr[1]="";

ac2linkarr[1]="gold-g.php";

ac2targetarr[1]="_self";

ac2titarr[1]="";

ac2desarr[1]="merupakan makanan kesehatan yang telah terbukti berkhasiat menjaga kesehatan dan kecantikan, digunakan sejak dahulu dalam pengobatan tradisional...";


ac2imgarr[2]="ic-health-goldmilk.jpg";

ac2altarr[2]="";

ac2linkarr[2]="igg_dha.php";

ac2targetarr[2]="_self";

ac2titarr[2]="";

ac2desarr[2]="susu bubuk berkolustrum yang berasal dari New Zealand, dilengkapi dengan DHA dan Inulin...";


var gnrated='';

var ac2stepcount=20;

var ac2currstep=10;

var ac2timeo=null;

var ac2horvert=0;

var ac2llllll=0;

var ac2lllllll=0;

var ac2llllllll=0;

var ac2ll=new Array();

var ac2lll=new Array();

var ac2llll=new Array();

var ac2startposx=new Array();

var ac2lllll=new Array();

var i=0;var ac2lllllllll=0;

var ac2DescCalcLeftBir=0;

var ac2DescCalcLeft=0;

var ac2DescCalcWidth=0;

var ac2DescCalcHeight=0;

var ac2DescCalcIcWidth=0;

var ac2DescCalcIcHeight=0;

var ac2hpiece='';

var ac2ds="";

var ac2IEDescOpacity=100;

var ac2FFOpacity=1.0;

var ac2DescFadeEffectTimer=null;

var ac2AutoPlayTimer=null;

var ac2AutoPlayCurrent=1;

var ac2icerdemi=0;

function ac2WriteDesc()

{	

if(ac2linkarr[i].length>2)

{

	ac2ds=ac2ds+'<a href="'+ac2linkarr[i]+'" target="'+ac2targetarr[i]+'" style="text-decoration:none;">';

}	

ac2ds=ac2ds+'<div id="ac2adesc'+i+'" style="position:absolute;top:'+177+'px;left:0px;width:'+ac2DescCalcWidth+'px;height:'+ac2DescCalcHeight+'px;visibility:hidden;overflow:hidden;cursor:pointer;filter:alpha(opacity=100);opacity:1.00;" onMouseOut="ac2outall()">';	

ac2ds=ac2ds+'<div style="position:absolute;left:0px;top:0px;width:'+ac2DescCalcWidth+'px;height:'+ac2DescCalcHeight+'px;border-style:solid;border-width:0px;border-color:#000000;background-color:#'+'FFFFFF'+';opacity: '+0.11+';filter:alpha(opacity='+11+');" onMouseOut="ac2outall()"></div>';	

ac2ds=ac2ds+'<div style="position:relative;left:0px;top:0px;width:'+ac2DescCalcIcWidth+';height:'+ac2DescCalcIcHeight+'px;text-align:'+'center'+';overflow:hidden;padding:'+3+'px;border-style:'+'solid'+';border-width:'+0+'px;border-color:#'+'008000'+';color:#'+'800000'+';font-family:'+'arial'+';font-style:'+'normal'+';font-size: '+13+';font-weight:'+'normal'+';text-decoration:'+'none'+';opacity: 1.0;filter:alpha(opacity=100);" onMouseOut="ac2outall()">';	

ac2ds=ac2ds+'<span style="color:#'+'FECE3F'+';font-family:'+'arial'+';font-style:'+'normal'+';font-size: '+14+';font-weight:'+'normal'+';text-decoration:'+'none'+';" onMouseOut="ac2outall()">'+ac2titarr[i]+'</span>';	

if(ac2titarr[i].length>0){ac2ds=ac2ds+'<br />';

}

ac2ds=ac2ds+''+ac2desarr[i];	

ac2ds=ac2ds+'</div>';	

ac2ds=ac2ds+'</div>';	

if(ac2linkarr[i].length>2)

{

	ac2ds=ac2ds+'</a>';

}

}

function ac2init_doc(fstr,hormuvertmi)

{	

ac2DescCalcLeftBir=0;		

if((0==0)&&(ac2horvert==0))	

{	

ac2DescCalcLeft=0+2;	

}

else	

{

	ac2DescCalcLeft=0;

}	

if(0==0)	

{	

ac2DescCalcWidth=199-0-0;	

}	

else	

{		

ac2DescCalcWidth=199-0-0;	

}	

if((ac2horvert==1)&&(0==1))	

{	

ac2DescCalcHeight=357-177-0;	

}	

else	

{	

ac2DescCalcHeight=357-177-0;	

}	

if((IEB==true)&&(scompat == "BackCompat" ))	

{

	ac2DescCalcIcWidth=ac2DescCalcWidth;		

	ac2DescCalcIcHeight=ac2DescCalcHeight;

	}	

	else

	{		

	ac2DescCalcIcWidth=ac2DescCalcWidth-2*(0)-2*(3);		

	ac2DescCalcIcHeight=ac2DescCalcHeight-2*(0)-2*(3);	

	}	

	ac2folderset=fstr;	

	var tmpleftpad=0;	

	var tmptoppad=0;	

	ac2hpiece=ac2hpiece+'<div style="position:relative;width:'+199+'px;height:'+357+'px;border-style:solid;border-width:'+0+'px;border-color:#'+'FFFFFF'+';">';	

	ac2hpiece=ac2hpiece+'<div style="position:relative;width:'+199+'px;height:'+357+'px;overflow:hidden;border-style:solid;border-width:0px;border-color:#FFFFFF;cursor:default;" onMouseOver="ac2outall()" onMouseOut="ac2mouse_divout()">';	

	if(0==1)	

	{	

	for(i=1;i<=2;i++) 		

	{		

	ac2WriteDesc();		

	}	

	}

	for(i=1;i<=2;i++)	

	{	

	if(ac2horvert==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="ac2po'+i+'" style="position:absolute;left:0px;top:0px;" onMouseOver="ac2mouse_over('+i+')" onMouseOut="ac2outall()"><div style="background-color:#FFFFFF;padding-left:'+tmpleftpad+'px;padding-top:'+tmptoppad+'px;"><a href="'+ac2linkarr[i]+'" target="'+ac2targetarr[i]+'"><img width="'+199+'" height="'+357+'" src="'+ac2folderset+ac2imgarr[i]+'" style="border-style:solid;border-width:0px;" TITLE="'+ac2altarr[i]+'"></img></a>';		

	if(0==0)		

	{		

	ac2ds="";			

	ac2WriteDesc();		

	gnrated=gnrated+ac2ds;		

	}

	gnrated=gnrated+'</div></div>';	

	}	

	ac2hpiece=ac2hpiece+gnrated;	

	if(0==1)	

	{		ac2hpiece=ac2hpiece+ac2ds;	

	}	

	ac2hpiece=ac2hpiece+'</div>';	

	ac2hpiece=ac2hpiece+'</div>';	

	document.write(''+ac2hpiece);	

	setTimeout("ac2init_position("+parseInt(hormuvertmi)+")",50);

	}

	function ac2init_position(hv)

	{	

	ac2horvert=hv;	

	for(i=1;i<=2;i++)	

	{	

	ac2ll[i]=document.getElementById('ac2po'+i);	

	ac2lll[i]=document.getElementById('ac2adesc'+i);	

	if((ac2ll[i]==null)||(ac2lll[i]==null))		

	{	

	setTimeout("ac2init_position("+parseInt(hv)+")",200);		 

	return;		

	}

	}

	if(ac2horvert==0)	

	{	

	ac2llllll=parseInt(     (199-((6-1)*2))     /(6));		

	ac2lllllll=ac2llllll+2;		

	ac2llllllll=parseInt(((199-199)/(6-1)));	

	}	

	else	

	{		

	ac2llllll=parseInt(     (280-((6-1)*2))     /(6));		

	ac2lllllll=ac2llllll+2;		

	ac2llllllll=parseInt(((280-357)/(6-1)));

	}	

	for(i=1;i<=2;i++)	

	{	

	ac2ll[i]=document.getElementById('ac2po'+i);		

	sx=(ac2lllllll*(i-1))-2;		

	if(ac2horvert==0)		

	{			

	if(i==1)		

	{	

	ac2ll[i].style.left="0px";		

	}		

	else			

	{	

	ac2ll[i].style.left=""+sx+"px";		

	}		

	}		

	else		

	{	

	if(i==1)			

	{			

	ac2ll[i].style.top="0px";		

	}		

	else			

	{	

	ac2ll[i].style.top=""+sx+"px";		

	}		

	}		

	ac2startposx[i]=sx;	

	ac2lllll[i]=ac2startposx[i];		

	if(i==1)		

	{			

	ac2lll[i].style.left=""+ac2DescCalcLeftBir+"px";		

	}		

	else		

	{	

	ac2lll[i].style.left=""+ac2DescCalcLeft+"px";	

	}			

	}	

	ac2intcomplate=1;	

	if(1==1)	

	{	

	ac2DoAutoPlay();	

	}

	}

	function ac2DoAutoPlay()

	{	

	ac2mouse_over(ac2AutoPlayCurrent);	

	ac2AutoPlayCurrent=ac2AutoPlayCurrent+1;	

	if(ac2AutoPlayCurrent>6)	

	{	

	ac2AutoPlayCurrent=1;	

	}	

	ac2AutoPlayTimer=setTimeout("ac2DoAutoPlay()",9000);

	}

	function ac2do_FadeAnim()

	{	

	if(ac2lllllllll<1)	

	{		

	return;	

	}	

	ac2IEDescOpacity=ac2IEDescOpacity+6;	

	ac2FFOpacity=ac2FFOpacity+0.05;	

	if(IEB==true)	

	{	

	if(ac2IEDescOpacity>100)		

	{		

	ac2IEDescOpacity=100;			

	return;		

	}	

	}	

	else	

	{		

	if(ac2FFOpacity>1.00)		

	{		

	ac2FFOpacity=1.00;			

	return;		

	}	

	}	

	if(IEB==true)	

	{		

	ac2lll[ac2lllllllll].filters.item(0).opacity=ac2IEDescOpacity;

	}

	else	

	{	

	ac2lll[ac2lllllllll].style.opacity = ac2FFOpacity;	

	}	

	ac2DescFadeEffectTimer=setTimeout("ac2do_FadeAnim()",20);

	}

	function ac2do_anim()

	{	

	if(ac2currstep<=0)	

	{		

	if(ac2lllllllll>=1)		

	{	

	if(ac2horvert==0)		

	{				

	if(ac2lllllllll==1)				

	{	

	ac2lll[ac2lllllllll].style.left=""+ac2DescCalcLeftBir+"px";				

	}	

	else				

	{					

	ac2lll[ac2lllllllll].style.left=""+ac2DescCalcLeft+"px";				

	}			

	}			

	else			

	{				

	if(0==0)				

	{	

	ac2lll[ac2lllllllll].style.left=""+(ac2DescCalcLeft+parseInt(ac2ll[ac2lllllllll].style.left))+"px";					

	var DesvertTop=0;				

	if((ac2lllllllll>1) &&(ac2lllllllll!=6)){DesvertTop=177+2;

	}

	else{DesvertTop=177;

	}					

	ac2lll[ac2lllllllll].style.top=""+(DesvertTop)+"px";			

	}			

	else		

	{	

	ac2lll[ac2lllllllll].style.left=""+(ac2DescCalcLeft)+"px";					

	ac2lll[ac2lllllllll].style.top=""+177+"px";			

	}			

	}			

	if((ac2titarr[ac2lllllllll].length>0)||(ac2desarr[ac2lllllllll].length>0))			

	{

	if(1==2)				

	{				

	ac2IEDescOpacity=0;				

	ac2FFOpacity=0.00;					

	ac2do_FadeAnim();				

	ac2lll[ac2lllllllll].style.visibility="visible";	

	}				

	else			

	{			

	ac2lll[ac2lllllllll].style.visibility="visible";				

	}			

	}		

	else			

	{	

	ac2lll[ac2lllllllll].style.visibility="hidden";		

	}		

	}	

	return;	

	}	

	for(i=2;

		i<=2;

		i++)	

	{	

	ac2lllll[i] = parseInt(ac2lllll[i])+parseInt((ac2llll[i]-ac2lllll[i])/ac2currstep);		

	if(ac2horvert==0)		

	{			

	ac2ll[i].style.left=""+ac2lllll[i]+"px";		

	}	

	else		

	{	

	ac2ll[i].style.top=""+ac2lllll[i]+"px";		

	}	

	}	

	if((1==1)&&(ac2lllllllll>=1))	

	{

		var dtop=0;		

		if((ac2titarr[ac2lllllllll].length>0)||(ac2desarr[ac2lllllllll].length>0))		

		{  

		ac2lll[ac2lllllllll].style.visibility="visible";       

	}      

	else    

	{           

	ac2lll[ac2lllllllll].style.visibility="hidden";     

	}		dtop= 177+        parseInt(ac2DescCalcHeight-      ((ac2DescCalcHeight/ac2stepcount)*(ac2stepcount-(ac2currstep-1)))         );	

	ac2lll[ac2lllllllll].style.top=""+dtop+"px";	

	}

	ac2currstep--;	

	setTimeout("ac2do_anim()",20);

	}

	function ac2reposition(g)

	{	

	for(i=1;i<=2;i++)	

	{

		if(i<=g)		

		{		

		if(i==1)			

		{			

		ac2llll[i]=0;		

		}		

		else			

	{	

	ac2llll[i]=parseInt(((i-1)*ac2llllllll)-2);			

	}	

	}		

	else		

	{			

	oncekix=0;			

	for(j=1;

		j<(i-1);

		j++)			

	{				

	oncekix=oncekix+ac2llllllll;			

	}		

	if(ac2horvert==0)		

	{				

	ac2llll[i]=parseInt(((199)+(oncekix)));		

	}			

	else			

	{	

	ac2llll[i]=parseInt(((357)+(oncekix)));			

	}		

	}			

	}	

	if((ac2horvert==0)&&(6==g))	

	{		

	var bul1=ac2llll[6]+2+199;		

	var bul2=199-bul1;		

	ac2llll[6]=ac2llll[6]+bul2;	

	}	

	if((ac2horvert==1)&&(6==g))	

	{	

	var bul1=ac2llll[6]+2+357;		

	var bul2=357-bul1;		

	ac2llll[6]=ac2llll[6]+bul2;	

	}	

	ac2currstep=ac2stepcount;	

	ac2do_anim();

	}

	function ac2mouse_over(g)

	{

		if(ac2intcomplate==0)

		{

			return;

		}	

		if(g==ac2lllllllll)

		{

			return;

		}	

		ac2lllllllll=g;	

		clearTimeout(ac2timeo);	

		if(1==1)

		{

			if(ac2icerdemi==1)

			{

				clearTimeout(ac2AutoPlayTimer);

		}

		}	

		for(i=1;

			i<=2;

			i++)	

		{		

		if(i!=g)		

		{	

		ac2lll[i].style.visibility="hidden";			

		if(IEB==true)			

	{				

	ac2lll[i].filters.item(0).opacity=100;			

	}			

	else		

	{	

	ac2lll[i].style.opacity = 1.0;			

	}		

	}	

	}	

	ac2reposition(g);

	}

	function ac2outall()

	{	

	ac2icerdemi=1;	

	clearTimeout(ac2AutoPlayTimer);	

	clearTimeout(ac2timeo);

	}

	function ac2mouse_divout2()

	{

		ac2icerdemi=0;	

		clearTimeout(ac2timeo);	

		if(1==1)	

	{		

	clearTimeout(ac2AutoPlayTimer);		

	ac2AutoPlayCurrent=1;		

	ac2DoAutoPlay();	

	}	

	else	

	{	

	for(i=1;i<=2;i++)	

	{	

	ac2lll[i].style.visibility="hidden";	

	}	

	for(i=1;i<=2;i++)	

	{	

	sx=(ac2lllllll*(i-1))-2;		

	if(i==1)		

	{	

	ac2llll[i]=0;		

	}		

	else		

	{

		ac2llll[i]=sx;	

		}		

		}	

		ac2lllllllll=-1;	

		ac2currstep=ac2stepcount;

		ac2do_anim();	

		}

		}

		function ac2mouse_divout()

		{	

		clearTimeout(ac2timeo);	

		ac2timeo=setTimeout("ac2mouse_divout2()",300);

		}
