function displaySelect(isDisplay){
  var allselect = document.getElementsByTagName("select");
  if(isDisplay=="0"){
    for(i=0;i<allselect.length;i++){
      allselect[i].style.visibility = "hidden";
    }
  }else{
    for(i=0;i<allselect.length;i++){
      allselect[i].style.visibility = "visible";
    }
  }
}


function getObj(objName){return(document.getElementById(objName));}

function ChangeChannel(module,orderid,count){
for(var i=1;i<=count;i++)
{
	getObj("channel"+module+i).className="curTab2";
	getObj("list_"+module+i).className="show1";
}

getObj("channel"+module+orderid).className="curTab";
getObj("list_"+module+orderid).className="show2";
}


/*scroll_var*/
var stopscroll=false;
var currentTop=0; 
var preTop=0;
var stoptime=0;

//��λ
function getPos(el,sTOp) {
	var iPos = 0;
	while (el!=null) {
		iPos+=el["offset" + sTOp];
		el = el.offsetParent;
	}
	return iPos;
}
var price_arr1 = new Array("Head1_HeadMenu2","Head1_HeadMenu3","Head1_HeadMenu4","Head1_HeadMenu5","Head1_HeadMenu6","Head1_HeadMenu7","Head1_HeadMenu8","Head1_HeadMenu9");
var content_arr = new Array();
var price_arr_con = new Array();

content_arr["Head1_HeadMenu2"] = "content_price1";
content_arr["Head1_HeadMenu3"] = "content_price2";
content_arr["Head1_HeadMenu4"] = "content_price3";
content_arr["Head1_HeadMenu5"] = "content_price4";
content_arr["Head1_HeadMenu6"] = "content_price5";
content_arr["Head1_HeadMenu7"] = "content_price6";
content_arr["Head1_HeadMenu8"] = "content_price7";
content_arr["Head1_HeadMenu9"] = "content_price8";

price_arr_con["content_price1"] = "Head1_HeadMenu2";
price_arr_con["content_price2"] = "Head1_HeadMenu3";
price_arr_con["content_price3"] = "Head1_HeadMenu4";
price_arr_con["content_price4"] = "Head1_HeadMenu5";
price_arr_con["content_price5"] = "Head1_HeadMenu6";
price_arr_con["content_price6"] = "Head1_HeadMenu7";
price_arr_con["content_price7"] = "Head1_HeadMenu8";
price_arr_con["content_price8"] = "Head1_HeadMenu9";



var num_arr =new Array(0,1,2,3,4,5,6,7);
function get_in_content(){
	//for (var j= 0;j<3;j++){
	for (s in num_arr){
		j =num_arr[s];
		document.getElementById(price_arr1[j]).onmouseover=function (){
			var obj = this;
			document.getElementById(content_arr[this.id]).style.left=getPos(obj,"Left")+5+"px";
			document.getElementById(content_arr[this.id]).style.top=getPos(obj,"Top")+obj.offsetHeight+"px";
			document.getElementById(content_arr[this.id]).style.display="";
			document.getElementById(this.id).className="";
		}
		document.getElementById(price_arr1[j]).onmouseout=function (){
			document.getElementById(content_arr[this.id]).style.display="none";
			document.getElementById(this.id).className="";
		}
		document.getElementById(content_arr[document.getElementById(price_arr1[j]).id]).onmouseover=function (){
			var obj = document.getElementById(price_arr_con[this.id]);
			this.style.left=getPos(obj,"Left")+5+"px";
			this.style.top=getPos(obj,"Top")+obj.offsetHeight+"px";
			this.style.display="";
			document.getElementById(price_arr_con[this.id]).className="navhover";
		}
		document.getElementById(content_arr[document.getElementById(price_arr1[j]).id]).onmouseout=function (){
			this.style.display="none";
			document.getElementById(price_arr_con[this.id]).className="";
			
			//alert(this.id);
		}
	}
}
get_in_content();//��ʼ��



	function putSwfOrImg(type,divId,imgSrc,width,height,src,target){
		if(divId == '' || divId == 'undefind' || divId == 'null'){
			return ;
		}
		if(imgSrc!=''&&imgSrc!=null&&imgSrc!='undefind'){
			if(imgSrc.indexOf(".swf")!=-1){
				//alert(imgSrc.indexOf(".swf"));
				//alert(imgSrc.length);
				type = "swf";
			}
		}else{
			return ;
		}
		var imgBody="";
		var swfBody="";
		if(src!=''&&src!='undefind'&&src!='null'){
			swfBody="<a href='"+src+"' target='"+target+"'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0' width='"+width+"' height='"+height+"'><param name='movie' value='"+imgSrc+"' /><param name='quality' value='high' /><param name='wmode' value='opaque' /><embed src='"+imgSrc+"' quality='high' pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed></object></a>";
			imgBody="<a href='"+src+"' target='"+target+"'><img src='"+imgSrc+"' width='"+width+"' height='"+height+"'/></a>";
		}else{
			swfBody="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0' width='"+width+"' height='"+height+"'><param name='movie' value='"+imgSrc+"' /><param name='quality' value='high' /><param name='wmode' value='opaque' /><embed src='"+imgSrc+"' quality='high' pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed></object>";
			imgBody="<img src='"+imgSrc+"' width='"+width+"' height='"+height+"'/>";
		}
		var divObject = document.getElementById(divId);
		if(divObject!=null&&divObject!='undefind'&&divObject.tagName=="DIV"){
			if(type == "swf"){
				divObject.innerHTML=swfBody;
			}else{
				divObject.innerHTML=imgBody;
			}
		}
	}
	
	
	

	