		// Can modify
		var imgWidth=528;  //
		var imgHeight=110; //
		var _timeOut_=2000;
		var show_text = true; //
		var timeOut=_timeOut_;
		var timeOut2=_timeOut_/2;//
		var now=0;              //
		var target="_blank";   //
		var button_on ='on'; //
		var button_off ='';
		
		// Don't change
		var imgUrl = new Array();
		var imgText = new Array();
		var imgLink = new Array();
		var imgAlt= new Array();
		//var menuList = new Array();
		var ver=2; 
		var firstTime=true;
		var n =-1;


//imgUrl[++n]='images/slide_show/ss-2011-12.jpg';
//imgText[n]='Holiday Promotion for Hair Care Products - Buy 2 Get 1 Free!';
//imgLink[n]='http://www.deityusa.com/offers.php?mode=product&productid=16184';
//imgAlt[n]='Thanksgiving Hair Care Product Sale - Buy 2 Get 1 Free!'; 

//imgUrl[++n]='images/slide_show/ss-01-01c.jpg';
//imgText[n]='Father&#039;s Day Speical for Hair Care Products - Buy 3 Get 1 Free!';
//imgLink[n]='http://www.deityusa.com/offers.php?mode=product&productid=16184';
//imgAlt[n]='Father&#039;s Day for Hair Care Product - Buy 3 Get 1 Free!'; 

//imgUrl[++n]='images/slide_show/ss-01-04.jpg';
//imgText[n]='February Special - Black History Month Sale';
//imgLink[n]='http://www.deityusa.com/offers.php?mode=offer&offerid=11';
//imgAlt[n]='February Special - Black History Month Sale';

//imgUrl[++n]='images/slide_show/ss-01-07.jpg';
//imgText[n]='Valentine&#039;s Day Special - Buy 3 Get 1 Free!';
//imgLink[n]='http://www.deityusa.com/offers.php';
//imgAlt[n]='Valentine&#039;s Day Special - Buy 3 Get 1 Free!';


//imgUrl[++n]='images/slide_show/ss-01-04a.jpg';
//imgText[n]='Back To School - Buy 3 Get 1 Free';
//imgLink[n]='http://www.deityusa.com/offers.php?mode=product&productid=16187';
//imgAlt[n]='Back To School - Buy 3 Get 1 Free';

imgUrl[++n]='images/slide_show/ss-12-01a.jpg';
imgText[n]='Buy 1 Get 1 Free! 2012 New Arrivals';
imgLink[n]='http://www.deityusa.com/offers.php';
imgAlt[n]='Buy 1 Get 1 Free! 2012 New Arrivals';

imgUrl[++n]='images/slide_show/ss-12-01a.jpg';
imgText[n]='Buy 1 Get 1 Free! 2012 New Arrivals';
imgLink[n]='http://www.deityusa.com/offers.php';
imgAlt[n]='Buy 1 Get 1 Free! 2012 New Arrivals';

imgUrl[++n]='images/slide_show/ss-01-05.jpg';
imgText[n]='Our new hair care product - Camellia Silk Serum Shine';
imgLink[n]='http://www.deityusa.com/product.php?productid=16184';
imgAlt[n]='Our new hair care product - Camellia Silk Serum Shine';

imgUrl[++n]='images/slide_show/ss-01-09.jpg';
imgText[n]='Natural Edge Tamer Pomade';
imgLink[n]='http://www.deityusa.com/product.php?productid=16187&cat=0&page=1';
imgAlt[n]='Natural Edge Tamer Pomade';

imgUrl[++n]='images/slide_show/ss-CVS_DR.jpg';
imgText[n]='Available at your local CVS and Duane Reade Pharmacy';
imgLink[n]='http://www.deityusa.com/pages.php?pageid=12';
imgAlt[n]='See Available Store list of CVS Pharmacy';

imgUrl[++n]='images/slide_show/ss-01-02.jpg';
imgText[n]='Hair Care Products Line Up...';
imgLink[n]='http://www.deityusa.com/home.php?cat=249';
imgAlt[n]='Hair Care Products Line Up...';

imgUrl[++n]='images/slide_show/ss-01-01.jpg';
imgText[n]='Hot white Skin Care';
imgLink[n]='http://www.deityusa.com/manufacturers.php?manufacturerid=5';
imgAlt[n]='Hot white Skin Care';

//imgUrl[++n]='images/slide_show/ss-01-06a.jpg';
//imgText[n]='Unveil more our new product in June, 2010';
//imgLink[n]=' ';
//imgAlt[n]='Unveil more our new product in June, 2010';

imgUrl[++n]='images/slide_show/ss-01-11.jpg';
imgText[n]='Interview with CEO Glenn Silverstein on OTC Beauty Magazine';
imgLink[n]='http://www.deityusa.com/pages.php?pageid=10';
imgAlt[n]='Interview with CEO Glenn Silverstein on OTC Beauty Magazine';

imgUrl[++n]='images/slide_show/ss-01-19.jpg';
imgText[n]='Become a fan of us on Facebook.';
imgLink[n]='http://www.facebook.com/pages/Deity-America/404305765032';
imgAlt[n]='Become a fan of us on Facebook.';
		
			
		var count=0;
		for (i=0;i<imgUrl.length;i++) {
			if( (imgUrl[i]!="") && (imgText[i]!="")&& (imgLink[i]!="")&& (imgAlt[i]!="")) {
				count++;
			} else {
				break;
			}
		}

		function p$(string){
			document.write(string);
		}
		function $(id){
			return document.getElementById(id);
		}
		//img size
		p$("<style> #f_img { width:"+imgWidth+"px;height:"+imgHeight+"px;</style>");
		function change(){
			if (ver==1){
				with($('f_img').filters[0]){
					Transition=1;
					apply();
					play(); 
				}
			}
			if (firstTime){ firstTime=false;timeOut=_timeOut_/900;}
			else{	 
				 $('f_img').src=imgUrl[now];
				 $('f_img').alt=imgAlt[now];
				 $('f_imgLink').href=imgLink[now];
				 if (show_text) $('f_text').innerHTML=imgText[now];		
				 for (var i=0;i<count;i++) {
					$('b'+i).className="button";
					//$('f_menu'+i).className="";
				 }
				 $('b'+now).className="on";	
				 //$('f_menu'+now).className="on";	 
				 now=(now>=imgUrl.length-1)?0:now+1;
				 timeOut=_timeOut_;		 
			}
			theTimer=setTimeout("change()", timeOut);
		}
		function b_change(num){
		  window.clearInterval(theTimer); 
		  now=num;
		  firstTime=false;
		  change();
		}
		//draw line ( css:f_line)
		function draw_line(){
			var div = document.createElement("div");	
			div.id = 'f_line';
			$('f_infoDiv').insertBefore(div,$('f_infoDiv').childNodes.item(0));			
		}
		//Layers start		
			//img
			var a = document.createElement("a");		
			a.id="f_imgLink";
			a.target=target;
			a.href=imgLink[now];	
			$('f_imgDiv').appendChild(a);
			
			var img = document.createElement("img");	
			img.id="f_img";
			img.width=imgWidth;
			img.height=imgHeight;
			img.src=imgUrl[now];
			img.alt=imgAlt[now];
			a.appendChild(img);
			
			// number button
			for (var i=count-1;i>=0;i--){
				var div_bg = document.createElement("div");		
				div_bg.id = 'div_bg'+i;
				div_bg.className='bg';
				$('f_buttonDiv').appendChild(div_bg);	
				var a = document.createElement("a");		
				a.id = 'b'+i;
				a.className = (i==now+1)?"button_on":"button_off";		
				a.title=imgAlt[i];
				a.innerHTML=i+1;
				a.href='javascript:b_change('+i+')';		
				$('div_bg'+i).appendChild(a);	
				var div= document.createElement("div");
				$('f_buttonDiv').appendChild(div);			
			}	    
			if (show_text) $('f_text').innerHTML = imgText[now];
		//layer end
		$('f_img').onmouseover=function(){window.clearInterval(theTimer);}
		$('f_img').onmouseout=function(){theTimer=setTimeout("change()", timeOut2);}
		try{  // filter
			  new ActiveXObject("DXImageTransform.Microsoft.Fade");
			  $('f_img').filters[0].play();	  
			  ver=1;
			  draw_line(); 
			  }
		catch (e){ver=2;}
		var theTimer = setTimeout("change()", _timeOut_/900);
