﻿startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;   

function ContentSize(size)
{
	var obj=document.all.ContentBody;
	obj.style.fontSize=size+"px";
}

function submit_search(){
    var keyword = document.getElementById("keyword").value;
    var sort1id = document.getElementById("sort1id").value;
    top.location.href = "search.aspx?sort1id="+sort1id+"&keyword=" + escape(keyword);
}

function getvalue(name) //取得地址栏的值
{
 var str=window.location.search;
 if (str.indexOf(name)!=-1)
 {
  var pos_start=str.indexOf(name)+name.length+1;
  var pos_end=str.indexOf("&",pos_start);
  if (pos_end==-1)
  {
   return str.substring(pos_start);
  }
  else
  {
   return str.substring(pos_start,pos_end)
  }
 }
 else
 {
  return "没有这个name值";
 }
}

//ddsmoothmenu.init({
// mainmenuid: "smoothmenu1", //menu DIV id
// orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
// classname: 'ddsmoothmenu', //class added to menu's outer DIV
// customtheme: ["#FFFFFF", "#FFFFFF"], //菜单默认颜色和鼠标悬停颜色
// contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
//})
