/*-------------------------------------------------------------*/


function changesub(vname,vtotal,vaction) {
//document.write("文档有"+document.links.length+"个链接"+"<br>");
//document.write("文档有"+document.anchors.length+"个锚点"+"<br>");
//document.write("文档有"+document.forms.length+"个窗体");

	for (i=1; i<=vtotal; i++ ) {
		var obj=vname+i;
		var obj_subflag='subflag'+i;
		
//		var obj_link=vname+"link"+i;
		if (i==vaction) {
			if (document.all[obj].style.display=='none') {
				document.all[obj].style.display='';
				document.all[obj_subflag].innerText='-';
//				document.all[obj_link].style.color="#B6293A";
			} else {
				document.all[obj].style.display='none';
				document.all[obj_subflag].innerText='+';
//				document.all[obj_link].style.color="#444444";
			}
		} else {
			document.all[obj].style.display='none';
			document.all[obj_subflag].innerText='+';
//			document.all[obj_link].style.color="#444444";
		}
	}   
}


function changesub_bak(vname,vtotal,vaction) {
//document.write("文档有"+document.links.length+"个链接"+"<br>");
//document.write("文档有"+document.anchors.length+"个锚点"+"<br>");
//document.write("文档有"+document.forms.length+"个窗体");

	for (i=1; i<=vtotal; i++ ) {
		var obj=vname+i;
		var obj_pic=vname+"pic"+i;
//		var obj_link=vname+"link"+i;
		//document.write(links[obj_link].style.color);
		if (i==vaction) {
			if (document.all[obj].style.display=='none') {
				document.all[obj].style.display='';
				document.all[obj_pic].src="images/a.gif";
//				document.all[obj_link].style.color="#B6293A";
			} else {
				document.all[obj].style.display='none';
				document.all[obj_pic].src="images/b.gif";
//				document.all[obj_link].style.color="#444444";
			}
		} else {
			//document.write(obj);
			document.all[obj].style.display='none';
			document.all[obj_pic].src="images/b.gif";
//			document.all[obj_link].style.color="#444444";
		}
	}   
}

function changesub2(vname,vtotal,vaction) {

	for (i=1; i<=vtotal; i++ ) {
		obj=vname+i;
		if (i==vaction) {
			if (document.all[obj].style.display=='none') {
				document.all[obj].style.display='';
			} else {
				document.all[obj].style.display='none';
			}
		} else {
			document.all[obj].style.display='none';
		}
	}
	//alert(document.all[div1].style);
}

function changesub1(vname,vtotal,vaction) {
	for (i=1; i<=vtotal; i++ ) {
		obj=vname+i;
		if (i==vaction) {
			document.all[obj].style.display='';
		} else {
			document.all[obj].style.display='none';
		}
	}   
}

function changecolor(vname,vtotal,vaction) {
	for (i=1; i<=vtotal; i++ ) {
		obj=vname+i;
		if (i==vaction) {
			obj.style.color="#B6293A";
		} else {
			obj.style.color="#444444";
		}
	}   
}

function mmLoadMenus() {
  if (window.mm_menu_0304181328_0) return;
  window.mm_menu_0304181328_0 = new Menu("root",200,25,"Times New Roman, Times, serif",11,"#333333","#FFFFFF","#FFFFFF","#0072B0","left","middle",3,0,300,-5,7,true,true,true,4,false,false);
  mm_menu_0304181328_0.addMenuItem("工商管理硕士MBA","window.open('58-565.html', '_top');");
  //mm_menu_0304181328_0.addMenuItem("工商管理硕士MBA","window.open('1-1.html', '_top');");
  mm_menu_0304181328_0.addMenuItem("高级工商管理硕士EMBA","window.open('2-13.html', '_top');");
  mm_menu_0304181328_0.addMenuItem("高层管理培训EDP","window.open('5-49.html', '_top');");
  mm_menu_0304181328_0.hideOnMouseOut=true;
  mm_menu_0304181328_0.bgColor='#D6D7DB';
  mm_menu_0304181328_0.menuBorder=1;
  mm_menu_0304181328_0.menuLiteBgColor='#FFFFFF';
  mm_menu_0304181328_0.menuBorderBgColor='#D6D7DB';

mm_menu_0304181328_0.writeMenus();
}

function mmLoadMenus_en() {
  if (window.mm_menu_0304101550_0) return;
  window.mm_menu_0304101550_0 = new Menu("root",200,25,"Times New Roman, Times, serif",11,"#333333","#FFFFFF","#FFFFFF","#0072B0","left","middle",5,0,300,-5,7,true,true,true,4,false,false);
  mm_menu_0304101550_0.addMenuItem("MBA","window.open('1-1.html', '_top');");
  mm_menu_0304101550_0.addMenuItem("Executive&nbspMBA","window.open('39-679.html', '_top');");
  mm_menu_0304101550_0.addMenuItem("Executive&nbsp;Development&nbsp;Program","window.open('38-695.html', '_top');");
   mm_menu_0304101550_0.hideOnMouseOut=true;
   mm_menu_0304101550_0.bgColor='#D6D7DB';
   mm_menu_0304101550_0.menuBorder=1;
   mm_menu_0304101550_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0304101550_0.menuBorderBgColor='#D6D7DB';

mm_menu_0304101550_0.writeMenus();
} 

 // mmLoadMenus()
function fnShowHide(h_manager,hiddenbody,h_pic,showenbody,s_manager,s_pic){
	if (hiddenbody.style.display=="none")
	{
		h_manager.style.color="#B6293A";
		hiddenbody.style.display="block";
		h_pic.src="images/a.gif";
		if(showenbody.style.display=="block"){
		    showenbody.style.display="none";
		    s_manager.style.color="#444444"
			s_pic.src="images/b.gif"
		}
	}	
	else if(hiddenbody.style.display=="block")
	{	
		h_manager.style.color="#444444";
		hiddenbody.style.display="none";
		h_pic.src="images/b.gif";
	}
}
function chLinkColor(L1,L2,L3){
   L1.style.color="#B6293A";
   L2.style.color="#444444";
   L3.style.color="#444444";
}


function high(obj){
	theobject=obj
	highlighting=setInterval("highlightit(theobject)",20)
}
function low(which2){
	clearInterval(highlighting)
	which2.filters.alpha.opacity=40
}
function highlightit(cur2){
	if (cur2.filters.alpha.opacity<100)
		cur2.filters.alpha.opacity+=10
	else if (window.highlighting)
		clearInterval(highlighting)
}

function showDialog(theUrl, theWidth, theHeight, theCaption) 
{
	//alert("edpFrame.php?URL=" + theUrl);
	var posTop = ( screen.availHeight - theHeight ) / 2; 
	var posLeft = ( screen.availWidth - theWidth ) / 2;
	if(theCaption == null || theCaption == "")
	{
		theCaption = "CKGSB Dialog";
	}
	//alert("width=["+theWidth+"];height=["+theHeight+"];posTop=["+posTop+"];posLeft=["+posLeft+"];"); 
	var theFeatures = "dialogWidth=" + theWidth + "px;dialogHeight=" + theHeight + "px;dialogTop=" + posTop + "px;dialogLeft=" + posLeft + "px;scrollbars=no;resizable=no;help=no;status=no;"; 
	//alert(theFeatures); 
	//var rr = window.showModalDialog("http://www.ckgsb.edu.cn/web2005/ckFrame.php?URL=" + theUrl + "&CAPTION=" + theCaption + "&HEIGHT=" + theHeight*915/1000,"",theFeatures); 
	var rr = window.showModalDialog(theUrl,"",theFeatures); 
} 

	var ww = null; 
function showWindow(theUrl, theWidth, theHeight) 
{ 
	var posTop = ( screen.availHeight - theHeight ) / 2; 
	var posLeft = ( screen.availWidth - theWidth ) / 2; 
	//alert("width=["+theWidth+"];height=["+theHeight+"];posTop=["+posTop+"];posLeft=["+posLeft+"];"); 
	var theFeatures = "width=" + theWidth + "px,height=" + theHeight + "px,scrollbars=no,resizable=no,help=no,status=no,menubar=no,toolbar=no,location=no,directories=no,top=" + posTop + "px,left=" + posLeft + "px"; 
	//alert(theFeatures); 
	if(ww == null) 
	{ 
		ww = window.open(theUrl,"",theFeatures); 
	} 
	else 
	{ 
		//ww.alert("已经打开！"); 
		ww.focus(); 
	} 
} 

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  if(targ == "_blank")
  {
  window.open(selObj.options[selObj.selectedIndex].value);
  }
  else
  {
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  }
  if (restore) selObj.selectedIndex=0;
}
