// JavaScript Document
var h_max=220, w_max=470 ,otep=4;
var obj,obj_l,obj_t,obj_w,obj_h,x,y,show_obj;
var str='<iframe src="classselect.asp" width="100%" height="100%" scrolling="no" frameborder="0" marginwidth="0" marginheight="0"></iframe>'
var sh=0
function  show_div(o_img,id){
obj=get_object(id);
obj_l=800;
obj_t=0;
obj_w=0;
obj_h=0;
x=obj_l+obj_w/2;
y=obj_t-5;
show_obj=get_object("shoe_box")
show_obj.style.display="block"
show_obj.style.left=x
show_obj.style.top=y
shou_div_do()
}

var n=0,obj_l_new,obj_t_new,obj_w_new,obj_h_new;
var timer1,timer
function shou_div_do(){
	sh=1
if (n>=otep){
	clearTimeout(timer1);
	sh=0;
	n=otep;
	show_obj.style.left=530;
	get_object("show_box_con").innerHTML=str;
	show_obj.style.height=310;
	show_obj.style.zIndex=800;
	get_object("show_box_con").onmouseout=function(){hid_me()}
}
else {
	n++;
	show_obj.style.left=x-n*(w_max/otep)/2;
	show_obj.style.width=n*(w_max/otep);
	show_obj.style.height=n*(h_max/otep);
	timer1=setTimeout("shou_div_do()",30);
}
}
function hid_me(){
if (sh==1)return;
if (n<1){
	clearTimeout(timer);
	n=1;
	show_obj.style.display="none";
}
else {
	n--;
	get_object("show_box_con").innerHTML="";
	show_obj.style.left=x-n*(w_max/otep)/2;
	show_obj.style.width=n*(w_max/otep);
	show_obj.style.height=n*(h_max/otep);
	timer=setTimeout("hid_me()",50);
}
}

function get_object(obj) {
	var elem;
	if (typeof obj == "string") elem = document.getElementById(obj);
	else elem = obj;
	return elem;
}
// 商标类别(2)
function AdvbuildDiv(obj){
	var htmlDiv = '<iframe border=0 frameborder=0 style=position:absolute;top:0px;left:0px;width:100%;height:100%;z-index:-1;border:0px></iframe>';
	var iframebb = '<iframe src="classselect.asp" scrolling="no" frameborder="0" marginwidth="0" marginheight="0" width="460" height="305"></iframe>'
	AdvShowDtl.style.display='';
	if (obj=="DivDay")
	{
		htmlDiv = htmlDiv + '<table width="460" border="0" cellspacing="0" cellpadding="0">';
		htmlDiv = htmlDiv + '<tr style="background:#FF8321 url(images/orangebg.gif)"><td align="left" width="395" height="27">&nbsp;&nbsp;<img src="images/orangearrow.gif" valign="middle" title="icon">&nbsp;商标类别</td><td width="60"><a onclick="javascript:AdvhiddenLayer()" style="color:#000000;cursor:hand;">[关闭]</a></td></tr>';
		htmlDiv = htmlDiv + '<tr><td colspan="2" bgcolor="#FFFFFF" align="left" width="460" style="border-right:2px #990000 solid;border-left:2px #990000 solid;border-bottom:2px #990000 solid;">';
		htmlDiv = htmlDiv + iframebb;
		htmlDiv=htmlDiv+'</td>'
		htmlDiv=htmlDiv+'</tr>';
		htmlDiv=htmlDiv+'</table>';
	}
	x = document.body.scrollLeft;
	y = document.body.scrollTop;
	availWidth = parseInt(window.screen.availWidth);
	availHeight = parseInt(window.screen.availHeight);
	//tblWidth = parseInt(ShowDtl.width);
	tblWidth=460;
	y = y + availHeight/4;
	x = (availWidth - tblWidth)/2;
	//alert(x);
	AdvShowDtl.style.top = y;
	AdvShowDtl.style.left = x;
	AdvShowDtl.innerHTML = htmlDiv;
}
function AdvhiddenLayer()
{	
	AdvShowDtl.style.display='none';
}