
// allblur


//gotop
var mover = null
var object = "gotop"


if (navigator.appName.indexOf("Netscape") != -1) {
        var mover = "document.gotop.top = window.pageYOffset"
}
else {
        var mover = "gotop.style.pixelTop = document.body.scrollTop+152"
}

function check() {
        object = "gotop"
        eval(mover)
        setTimeout("check()", 100)
}
//layer

var enablepersist="off"
if (document.getElementById){
	document.write('<st'+'yle>');
	document.write('td {font-size:12px; font-family:µ¸¿ò; text-decoration:none; }');
	document.write('A:link,A:active,A:visited{text-decoration:none;font-size:12PX;color:#333333;}');
	document.write('A:hover {text-decoration:none; color:ff9900}');
	//document.write('font { font-size: 9pt; }');
	document.write('.cnj_input{display:none;}')
	document.write('</st'+'yle>');
}

function getElementbyClass(classname){
	ccollect=new Array()
	var inc=0
	var alltags=document.all? document.all : document.getElementsByTagName("*")
	for (i=0; i<alltags.length; i++){
		if (alltags[i].className==classname)
			ccollect[inc++]=alltags[i]
	}
}

function contractcontent(omit){
	var inc=0
	while (ccollect[inc]){
		if (ccollect[inc].id!=omit && ccollect[inc].id.substring(0,2)==omit.substring(0,2))
			ccollect[inc].style.display="none"
		inc++
	}
}

function expandcontent(cid){
if (typeof ccollect!="undefined"){
//alert(cid);
contractcontent(cid)
document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="block")? "block" : "none"
selectedItem=cid+"|"+document.getElementById(cid).style.display
}
}

function revivecontent(){
selectedItem=getselectedItem()
selectedComponents=selectedItem.split("|")
contractcontent(selectedComponents[0])
document.getElementById(selectedComponents[0]).style.display=selectedComponents[1]
}

function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function getselectedItem(){
if (get_cookie(window.location.pathname) != ""){
selectedItem=get_cookie(window.location.pathname)
return selectedItem
}
else
return ""
}

function saveswitchstate(){
if (typeof selectedItem!="undefined")
document.cookie=window.location.pathname+"="+selectedItem
}

function do_onload(){
getElementbyClass("cnj_input")
if (enablepersist=="on" && getselectedItem()!="")
revivecontent()
}


if (window.addEventListener)
window.addEventListener("load", do_onload, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onload)
else if (document.getElementById)
window.onload=do_onload

if (enablepersist=="on" && document.getElementById)
window.onunload=saveswitchstate

//
 function ShowHide(obj)
 {
  if (obj.style.display == "")
   obj.style.display = "none";
  else
   obj.style.display = "";
 }

 function ShowHideMain(obj)
 {
   obj.style.display = "";
 }

//////////COPYRIGHT
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
	//¸¶ÄÉÆÃ»ç¾÷Á¦ÈÞÆË¾÷
function popbank()
{
	window.open('/mall/comm/include/popbank.html', 'BankNum', 'width=200 height=200 scrollbars=no top=500 left=500')
}




