
//var ns4,ie4,ver4;
//ns4 = (document.layers)? true:false;
//ie4 = (document.all)? true:false;
//ver4 = (ns4 || ie4)? true:false;

//TAB_ID = new Array(3);
//TAB_ID[0] = "BOOM0";
//TAB_ID[1] = "BOOM1";
//TAB_ID[2] = "BOOM2";



var CUR_NUM_BOOM = 0;
   
function Slide(num)
		 {
		 id = TAB_ID[num];
		 next_id = TAB_ID[num+1];
		 
		 if (ie4)
		 if (document.all[id])
			 {
			 document.all[id].style.visibility = "visible";
			 
			 tmp = document.all[id].style.left;
		 	 newPosX = tmp.substring(0,tmp.length-2)-6;
			 //newPosX = parseInt(-0.00095*newPosX*newPosX+1.0026*newPosX+4);
			 newPosX = parseInt(newPosX);
			 //alert(newPosX);
					 
			 document.all[id].style.left =  newPosX;
			 
			 param = "Slide(" + num +")";
			 //alert(param);
			 if (newPosX > -200) setTimeout(param,2);
			 	else 
					 {
					 //alert("stop");
					 document.all[id].style.left = INIT_POS_X;
					 document.all[id].style.visibility = "hidden";
					 CUR_NUM_BOOM = CUR_NUM_BOOM + 1;
					 if (document.all[next_id]) document.all[next_id].style.visibility = "visible";
					 	else 	{
					 		CUR_NUM_BOOM=0;
					 		alert("No more Boomerangs in the slide for today !\n Visit Boomerang-shop tomorrow to see another category is the slide show !");
					 		Slide(0);
					 		}
					 }
			 }
			 
		if (ns4)
			 {
			 document.layers[id].visibility = "show";
			 
			 tmp = document.layers[id].left;
			 
		 	 newPosX = tmp-6;
			 
			 newPosX = parseInt(newPosX);
			 
					 
			 document.layers[id].left =  newPosX;
			 
			 param = "Slide(" + num +")";
			 
			 if (newPosX > -200) setTimeout(param,2);
			 	else 
					 {
					 //alert("stop");
					 document.layers[id].left = INIT_POS_X;
					 document.layers[id].visibility = "hidden";
					 CUR_NUM_BOOM = CUR_NUM_BOOM + 1;
					 if (document.layers[next_id]) document.layers[next_id].visibility = "show";
					 	else {
					 		CUR_NUM_BOOM=0;
					 		alert("No more Boomerangs in the slide for today !\n Visit Boomerang-shop tomorrow to see another category is the slide show !");
					 		Slide(0);
					 		}
					 }			
			 }		 	
		 }   
