function ProductList(F_PL){
	if (F_PL==0 && Is_PL>0){
		Is_PL=Is_PL-1;
		PL_Interval();
	}
	if (F_PL==1 && Is_PL+From_PL<Only_PL){
		Is_PL=Is_PL+1;
		PL_Interval();
	}
}
function PL_Interval(){
	Interval=setInterval("PL_DIV()",Speed_PL);
}
function PL_DIV(){
	F_Is=document.getElementById(ID_PL).offsetTop*1
	F_End=-(Is_PL*High_PL)
	if (F_Is-Step_PL>F_End){
		document.getElementById(ID_PL).style.marginTop=(F_Is-Step_PL)+"px"
	}else if(F_Is+Step_PL<F_End){
		document.getElementById(ID_PL).style.marginTop=(F_Is+Step_PL)+"px"
	}else{
		document.getElementById(ID_PL).style.marginTop=F_End+"px"
		clearTimeout(Interval)
	}
}

function F_Remove(F_right){
	if (F_right==0 && Is_right>0){
		Is_right=Is_right-1;
		Scroll_Interval();
	}
	if (F_right==1 && Is_right+From_right<Only_right){
		Is_right=Is_right+1;
		Scroll_Interval();
	}
}
function Scroll_Interval(){
	Interval=setInterval("Scroll_DIV()",Speed_right);
}
function Scroll_DIV(){
	F_Is=document.getElementById(ID_right).offsetTop*1
	F_End=-(Is_right*High_right)
	if (F_Is-Step_right>F_End){
		document.getElementById(ID_right).style.marginTop=(F_Is-Step_right)+"px"
	}else if(F_Is+Step_right<F_End){
		document.getElementById(ID_right).style.marginTop=(F_Is+Step_right)+"px"
	}else{
		document.getElementById(ID_right).style.marginTop=F_End+"px"
		clearTimeout(Interval)
	}
}


function DrawImage(ImgD,W,H){ 
  var flag=false; 
  var image=new Image(); 
  image.src=ImgD.src; 
  if(image.width>0 && image.height>0){ 
	flag=true; 
	if(image.width/image.height>= W/H){ 
	  if(image.width>W){
		ImgD.width=W; 
		ImgD.height=(image.height*H)/image.width; 
	  }
	  else{ 
		ImgD.width=image.width;
		ImgD.height=image.height; 
	  } 
	  ImgD.alt= ""; 
	} 
	else{ 
	  if(image.height>H){
		ImgD.height=H; 
		ImgD.width=(image.width*W)/image.height; 
	  }
	  else{ 
		ImgD.width=image.width;
		ImgD.height=image.height; 
	  } 
	  ImgD.alt=""; 
	} 
  }
}

function InFigure(img_url){
  document.getElementById("div_dt_id").style.display="";
  document.getElementById("img_dt_id").src=img_url;	
  
img_h=document.getElementById("img_dt_id").height;
document.getElementById("div_dt_id").style.marginTop=-(wind_Height-(wind_Height-img_h)/2);
}
function Closeimg(){document.getElementById("div_dt_id").style.display="none";}
