	//图片自动调整的模式，1为按比例调整 ，2 按大小调整。
	var resizemode=1
	function imgresize(o){
	 	if (resizemode==2 || o.onmousewheel){
	 	if(o.width > 600 ){
				o.style.width='600px';
			}
			if(o.height > 800){
				o.style.height='800px';
			}
		}else{
		var parentNode=o.parentNode.parentNode
		if (parentNode){
		if (o.offsetWidth>=parentNode.offsetWidth) o.style.width='90%';
		}else{
		var parentNode=o.parentNode
		if (parentNode){
			if (o.offsetWidth>=parentNode.offsetWidth) o.style.width='90%';
			}
		}
	}
	}
	
	
	function SameH(Div1,Div2) //左右高度
{
var a=document.getElementById("Div2")
var b=document.getElementById("Div1")
if (a.scrollHeight<b.scrollHeight)     
{
a.style.height=b.scrollHeight+"px"; 
}
else
{
b.style.height=a.scrollHeight+"px"; }
}



	
function fodc(obj) //标签
{
//var p = document.getElementById("Fod_list").getElementsByTagName("div");
var pc = obj.parentNode.parentNode.parentNode.parentNode;
//alert(p.innerHTML);
var pc1 = obj.parentNode.getElementsByTagName("div");
var tc = pc.getElementsByTagName("tr")[1].getElementsByTagName("div");
var nc = pc1.length;
for(i=0;i<nc;i++)
{
if(pc1[i] == obj)
{
pc1[i].className = "txsc";
tc[i].className = "dis";
}
else
{
pc1[i].className = "txcardc";
tc[i].className = "undis";				
}
}
}

function fodc1(obj) //标签
{
//var p = document.getElementById("Fod_list").getElementsByTagName("div");
var pc = obj.parentNode.parentNode.parentNode.parentNode;
//alert(p.innerHTML);
var pc1 = obj.parentNode.getElementsByTagName("div");
var tc = pc.getElementsByTagName("tr")[1].getElementsByTagName("div");
var nc = pc1.length;
for(i=0;i<nc;i++)
{
if(pc1[i] == obj)
{
pc1[i].className = "txsc1";
tc[i].className = "dis1";
}
else
{
pc1[i].className = "txcardc1";
tc[i].className = "undis1";				
}
}
}
function game_search(theForm)
{
  if (theForm.k.value == "")
  {
 alert("请输入要搜索的内容");
 theForm.k.focus();
 return (false);
  }
  return (true);
}


function $(id) {
    return document.getElementById(id);
}

function showMenu (baseID, divID) {
    baseID = $(baseID);
    divID  = $(divID);

    //var l = GetOffsetLeft(baseID);
    //var t = GetOffsetTop(baseID);

    //divID.style.left = l + 'px';
//    divID.style.top = t + baseID.offsetHeight + 'px';
    if (showMenu.timer) clearTimeout(showMenu.timer);
	hideCur();
    divID.style.display = 'block';
	showMenu.cur = divID;

    if (! divID.isCreate) {
        divID.isCreate = true;
        //divID.timer = 0;
        divID.onmouseover = function () {
            if (showMenu.timer) clearTimeout(showMenu.timer);
			hideCur();
            divID.style.display = 'block';
        };

        function hide () {
            showMenu.timer = setTimeout(function () {divID.style.display = 'none';}, 1000);
        }

        divID.onmouseout = hide;
        baseID.onmouseout = hide;
    }
	function hideCur () {
		showMenu.cur && (showMenu.cur.style.display = 'none');
	}
}
document.write("<script language='JavaScript' src='/inc/main.js'></script>");
document.write("<script language='JavaScript' src='inc_index.js'></script>");
