function Img(n,tog){eval("document.m"+n+".src=m"+n+"_"+tog+".src"); }


function home(){location.href="index.asp";}
function duowed(){location.href="/index.asp";}
function leehwa(){location.href="/branch/pusan/leehwa.jsp";} 
function dress(did){ location.href="/guide/consulting/mantoman.jsp?sseq=D&s_num="+did;}
function studio(sid){ location.href="/guide/consulting/mantoman.jsp?sseq=S&s_num="+sid;}
function makeup(mid){ location.href="/guide/consulting/mantoman.jsp?sseq=H&s_num="+mid;}
function bouquet(bid){ location.href="/guide/consulting/mantoman.jsp?sseq=C&s_num="+bid;}
function wear(wid){ location.href="/guide/consulting/mantoman.jsp?sseq=K&s_num="+wid;}
function brochure(){ location.href="http://www.hunyanw.com";}
function daegu(sseq,wid){ 
	location.href="/guide/consulting/mantoman.jsp?area=D&sseq="+sseq+"&s_num="+wid;
	//alert(sseq);
	//alert("___"+sseq+"++"+wid);
	}
function pusan(sseq,wid){ location.href="/guide/consulting/mantoman.jsp?area=B&sseq="+sseq+"&s_num="+wid;}

function join(){location.href="/book/index.asp";}


/*center*/
u1="jingying.asp"; // 精英之声
u11="jingying.asp";


u2="kecheng.asp"; // 全国课程
u21="kecheng.asp";


u3="jiangshi.asp"; // 志愿讲师
u31="jiangshi.asp";


u4="shangquan.asp"; // new商圈
u41="shangquan.asp"; 


u5="rencai.asp"; // 精英人才库
u51="rencai.asp";


u6="kehu.asp"; //荣誉客户
u61="kehu.asp"; 


u7="said.asp"; //孙说


u8="bbs"; // 中国大学生论坛
u81="bbs";
 


function link(){ //link(1,2)
	var url = "";
	var depth = arguments.length;
	try {
		if(depth==0) return;
/*
if (arguments[0]=="5" && arguments[1] =="5") {
			window.open('/cyberpr/mania/living/living.jsp','living','width=765,height=570,scrollbars=no');
			return;
		}
*/
		else if(depth==1) url = eval("u"+ arguments[0]);
		else if(depth==2) url = eval("u"+ arguments[0]+arguments[1]);
		else if(depth==3) url = eval("u"+ arguments[0]+arguments[1]+arguments[2]);
		else if(depth==4) url = eval("u"+ arguments[0]+arguments[1]+arguments[2]+arguments[3]);

		if(url=="") alert("霖厚吝涝聪促.");
		else location.href = url;

	}catch(e) { alert("霖厚吝涝聪促."); }
}

function marginB(){
document.write("<table cellpadding=0 cellspacing=0 border=0 width=500 height=40><tr><td></td></tr></table>");
}


//Select Box
function setSelectBox(selName){
	sel = eval("document.all."+selName);

	borderColor = sel.bordercolor;
	selWidth = parseInt(sel.width);
	bgColor = sel.bgcolor;
	rectLeft = selWidth-2;
	spanWidth = selWidth;

	//span tag
	header  = "<span style='position:relative;margin-right:0px;";
	header += "width:"+spanWidth+";height:20px;border:1px solid "+borderColor+";background-color:"+bgColor+";'>\n";
	header += "<span style='position: absolute;left:-1px;top:-1px;";
	header += "width:"+selWidth+";height:20px;clip:rect(2,"+rectLeft+",18,2);'>\n";
	footer = "</span></span>";

	sel.style.backgroundColor = bgColor;
	sel.style.width = selWidth;

	sel.outerHTML = header+sel.outerHTML+footer;
}


function roundTable(objID) {
       var obj = document.getElementById(objID);
       var Parent, objTmp, Table, TBody, TR, TD;
       var bdcolor, bgcolor, Space;
       var trIDX, tdIDX, MAX;
       var styleWidth, styleHeight;

       // get parent node
       Parent = obj.parentNode;
       objTmp = document.createElement('SPAN');
       Parent.insertBefore(objTmp, obj);
       Parent.removeChild(obj);

       // get attribute
       bdcolor = obj.getAttribute('rborder');
       bgcolor = obj.getAttribute('rbgcolor');
       radius = parseInt(obj.getAttribute('radius'));
       if (radius == null || radius < 1) radius = 1;
       else if (radius > 6) radius = 6;

       MAX = radius * 2 + 1;

       /*
              create table {{
       */
       Table = document.createElement('TABLE');
       TBody = document.createElement('TBODY');

       Table.cellSpacing = 0;
       Table.cellPadding = 0;

       for (trIDX=0; trIDX < MAX; trIDX++) {
              TR = document.createElement('TR');
              Space = Math.abs(trIDX - parseInt(radius));
              for (tdIDX=0; tdIDX < MAX; tdIDX++) {
                     TD = document.createElement('TD');

                     styleWidth = '1px'; styleHeight = '1px';
                     if (tdIDX == 0 || tdIDX == MAX - 1) styleHeight = null;
                     else if (trIDX == 0 || trIDX == MAX - 1) styleWidth = null;
                     else if (radius > 2) {
                            if (Math.abs(tdIDX - radius) == 1) styleWidth = '2px';
                            if (Math.abs(trIDX - radius) == 1) styleHeight = '2px';
                     }

                     if (styleWidth != null) TD.style.width = styleWidth;
                     if (styleHeight != null) TD.style.height = styleHeight;

                     if (Space == tdIDX || Space == MAX - tdIDX - 1) TD.style.backgroundColor = bdcolor;
                     else if (tdIDX > Space && Space < MAX - tdIDX - 1)  TD.style.backgroundColor = bgcolor;

                     if (Space == 0 && tdIDX == radius) TD.appendChild(obj);
                     TR.appendChild(TD);
              }
              TBody.appendChild(TR);
       }

       /*
              }}
       */

       Table.appendChild(TBody);

       // insert table and remove original table
       Parent.insertBefore(Table, objTmp);
}


function blur() {
for (i = 0; i < document.links.length; i++)
if(document.links[i].name!="focus")
document.links[i].onfocus = document.links[i].blur;
}
window.onload=blur;