function overDivs(objid,class_1,class_2,event_){
	function over(thisobj){
		for(var i=0;i<divobj.childNodes.length;i++){
			divobj.childNodes[i].className=class_2;
		}
		thisobj.className=class_1;
	}
	var divobj=document.getElementById(objid);
	var functionObjs=new Array();
	for(var i=0;i<divobj.childNodes.length;i++){
		functionObjs[i]=divobj.childNodes[i][event_];
		if(typeof(functionObjs[i])=="function")
			eval("divobj.childNodes[i][event_]=function(){over(this);functionObjs["+i+"]();}");
		else
			divobj.childNodes[i][event_]=function(){over(this);}
	}
	
}

function showswf(url,vars,_width,_height,transparent){
var str=('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ');
str+=('codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+_width+'" height="'+_height+'" align="middle" id="play_flash">');
str+=('<param name="allowScriptAccess" value="sameDomain" />');
str+=('<param name="movie" value="'+url+'" />')
if(vars)str+=('<param name="FlashVars" value="'+vars+'" />');
if(transparent)str+=('<param name="WMode" value="transparent" />');
str+=('<param name="quality" value="high" />');
str+=('<param name="bgcolor" value="#000000" />');
str+=('<embed id=wave src="'+url+'" quality="high" bgcolor="#000000" width="'+_width+'" height="'+_height+'" align="middle" allowScriptAccess="sameDomain"');
if(vars)str+=('FlashVars="'+vars+'"');
if(transparent)str+=(' wmode="transparent"');
str+=('type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
document.write(str);
}


//领取切换

function user_goto(n){
	var divobj =document.getElementById("user_html_obj");
	divobj.innerHTML = temp_texts[n];
}
//已改为图片
function showad(flashsrc,flashwidth,flashheight,flashlink,style){
    var str="<a href=\""+flashlink+"\" target=\"_blank\"><img src="+ flashsrc +" border=0 width="+flashwidth+" height="+flashheight+" style=\"background:none;border\" class=\"png\"></a>";
    document.write(str);
}

function divgun(divid){
	var moveTop,divobj=document.getElementById(divid);
	if(document.documentElement.scrollTop+juli+divobj.scrollHeight<document.documentElement.scrollHeight)
		moveTop=(document.documentElement.scrollTop+juli);
	else
		moveTop=document.documentElement.scrollHeight-divobj.scrollHeight;
	divobj.style.top=divobj.offsetTop+(moveTop-divobj.offsetTop)/5+"px";
}
function showduiad(urlobj_Lefts,urlobj_Rights,flashwidth,bodywidth){
	var str=["<div id="," style=\"position:absolute;z-index:10;width:"+flashwidth+"px;left:50%;"];
	document.write(str[0]+"AdLeft"+str[1]+"margin-left:"+(-bodywidth/2-flashwidth)+"px;top:"+juli+"px;\">");
	for(var i=0;i<urlobj_Lefts.length;i++)
		showad(urlobj_Lefts[i].src,flashwidth,urlobj_Lefts[i].height,urlobj_Lefts[i].link,"margin-bottom:5px;");
	document.write("</div>"+str[0]+"AdRight"+str[1]+"margin-left:"+(bodywidth/2)+"px;top:"+juli+"px;\">")
	for(i=0;i<urlobj_Rights.length;i++)
		showad(urlobj_Rights[i].src,flashwidth,urlobj_Rights[i].height,urlobj_Rights[i].link,"margin-bottom:5px;");
	document.write("</div>");
	setInterval("divgun('AdRight');divgun('AdLeft');",20);
}
function showduiad_j(urlobj_Lefts,urlobj_Rights,flashwidth,bodywidth){
	var str="<div style=\"position:absolute;width:"+flashwidth+"px;left:50%;";
	document.write(str+"margin-left:"+(-bodywidth/2-flashwidth)+"px;\">");
	for(var i=0;i<urlobj_Lefts.length;i++)
		showad(urlobj_Lefts[i].src,flashwidth,urlobj_Lefts[i].height,urlobj_Lefts[i].link,"margin-bottom:5px;");
	document.write("</div>"+str+"margin-left:"+(bodywidth/2)+"px;\">")
	for(i=0;i<urlobj_Rights.length;i++)
		showad(urlobj_Rights[i].src,flashwidth,urlobj_Rights[i].height,urlobj_Rights[i].link,"margin-bottom:5px;");
	document.write("</div>");
}