﻿function mmLoadMenus() {
  if (window.mm_menu_1_0) return;  
   
	window.mm_menu_3_0_1 = new Menu("root",150,20,"Tahoma",11,"#333333","#000000","#EEEEEE","#86C7CB","right","middle",3,0,1000,-240,5,true,true,true,0,true,true);

	mm_menu_3_0_1.hideOnMouseOut=true;
    mm_menu_3_0_1.bgColor='#FFFFFF';
    mm_menu_3_0_1.menuBorder=1;
    mm_menu_3_0_1.menuLiteBgColor='#FFFFFF';
    mm_menu_3_0_1.menuBorderBgColor='#cccccc';
	
    window.mm_menu_3_0 = new Menu("root",180,20,"Tahoma",11,"#333333","#000000","#EEEEEE","#86C7CB","right","middle",3,0,1000,-300,5,true,true,true,0,true,true);
    mm_menu_3_0.addMenuItem("تاريخچه","window.open('tarikhche.aspx', '_self');");
    mm_menu_3_0.addMenuItem("رياست","window.open('riyasat.aspx', '_self');");
    mm_menu_3_0.hideOnMouseOut=true;
    mm_menu_3_0.bgColor='#FFFFFF';
    mm_menu_3_0.menuBorder=1;
    mm_menu_3_0.menuLiteBgColor='#FFFFFF';
    mm_menu_3_0.menuBorderBgColor='#cccccc';
	
	window.mm_menu_4_0_1 = new Menu("معاونت آموزشی علوم پایه",265,20,"Tahoma",11,"#333333","#000000","#EEEEEE","#86C7CB","right","middle",3,0,1000,-240,5,true,true,true,0,true,true);
    mm_menu_4_0_1.addMenuItem("معاون آموزشي","window.open('moavenataolompaye.aspx', '_self');");
    mm_menu_4_0_1.addMenuItem("گروه هاي آموزشي","window.open('Gamozeship.aspx', '_self');");
   	mm_menu_4_0_1.hideOnMouseOut=true;
    mm_menu_4_0_1.bgColor='#FFFFFF';
    mm_menu_4_0_1.menuBorder=1;
    mm_menu_4_0_1.menuLiteBgColor='#FFFFFF';
    mm_menu_4_0_1.menuBorderBgColor='#cccccc';
	
	window.mm_menu_4_0_2 = new Menu("معاونت آموزشی علوم بالینی",265,20,"Tahoma",11,"#333333","#000000","#EEEEEE","#86C7CB","right","middle",3,0,1000,-240,5,true,true,true,0,true,true);
    mm_menu_4_0_2.addMenuItem("معاون آموزشي","window.open('MOAVENAMOZBALINI.aspx', '_self');");
    mm_menu_4_0_2.addMenuItem("گروه هاي آموزشي","window.open('Gamozeshibalini.aspx', '_self');");
   	mm_menu_4_0_2.hideOnMouseOut=true;
    mm_menu_4_0_2.bgColor='#FFFFFF';
    mm_menu_4_0_2.menuBorder=1;
    mm_menu_4_0_2.menuLiteBgColor='#FFFFFF';
    mm_menu_4_0_2.menuBorderBgColor='#cccccc';
	
	window.mm_menu_4_0 = new Menu("root",200,20,"Tahoma",11,"#333333","#000000","#EEEEEE","#8BCCD0","right","middle",3,0,1000,-300,5,true,true,true,0,true,true);
    
    mm_menu_4_0.addMenuItem(mm_menu_4_0_1,"window.open('#', '_self');");

    mm_menu_4_0.addMenuItem(mm_menu_4_0_2,"window.open('#', '_self');");
    mm_menu_4_0.hideOnMouseOut=true;
    mm_menu_4_0.bgColor='#FFFFFF';
    mm_menu_4_0.menuBorder=1;
    mm_menu_4_0.menuLiteBgColor='#FFFFFF';
    mm_menu_4_0.menuBorderBgColor='#cccccc';
	
		
		
	window.mm_menu_5_0_1 = new Menu("اداره امور عمومي",265,20,"Tahoma",11,"#333333","#000000","#EEEEEE","#86C7CB","right","middle",3,0,1000,-240,5,true,true,true,0,true,true);
	mm_menu_5_0_1.addMenuItem("كارگزيني","window.open('kargozinieoo.aspx', '_self');");
   	mm_menu_5_0_1.addMenuItem("امور مالي","window.open('vazayefomormali.aspx', '_self');");
    mm_menu_5_0_1.addMenuItem("خدمات اداري","window.open('khadamateedari.aspx', '_self');");
   	mm_menu_5_0_1.addMenuItem("انبار","window.open('#', '_self');");
	mm_menu_5_0_1.hideOnMouseOut=true;
    mm_menu_5_0_1.bgColor='#FFFFFF';
    mm_menu_5_0_1.menuBorder=1;
    mm_menu_5_0_1.menuLiteBgColor='#FFFFFF';
    mm_menu_5_0_1.menuBorderBgColor='#cccccc';
	
		
		
	window.mm_menu_5_0 = new Menu("root",200,20,"Tahoma",11,"#333333","#000000","#EEEEEE","#8BCCD0","right","middle",3,0,1000,-300,5,true,true,true,0,true,true);
    mm_menu_5_0.addMenuItem("معاون اداري مالي","window.open('medarimali.aspx', '_self');");
	 mm_menu_5_0.addMenuItem(mm_menu_5_0_1,"window.open('#', '_self');");
	mm_menu_5_0.hideOnMouseOut=true;
    mm_menu_5_0.bgColor='#FFFFFF';
    mm_menu_5_0.menuBorder=1;
    mm_menu_5_0.menuLiteBgColor='#FFFFFF';
    mm_menu_5_0.menuBorderBgColor='#cccccc';

    window.mm_menu_6_0 = new Menu("root",210,20,"Tahoma",11,"#333333","#000000","#EEEEEE","#8BCCD0","right","middle",3,0,1000,-350,5,true,true,true,0,true,true);
    mm_menu_6_0.addMenuItem("معاون پژوهشي","window.open('moavenpazhoheshi.aspx', '_self');");
	mm_menu_6_0.addMenuItem("دفتر پژوهشي","window.open('daftarepazhohesh.aspx', '_self');");
    mm_menu_6_0.addMenuItem("پايان نامه هاي دانشجويي","window.open('payannameha.aspx', '_self');");
    mm_menu_6_0.hideOnMouseOut=true;
    mm_menu_6_0.bgColor='#FFFFFF';
    mm_menu_6_0.menuBorder=1;
    mm_menu_6_0.menuLiteBgColor='#FFFFFF';
    mm_menu_6_0.menuBorderBgColor='#cccccc';
	
	window.mm_menu_7_0_1 = new Menu("برنامه هاي آموزشي",265,20,"Tahoma",11,"#333333","#000000","#EEEEEE","#86C7CB","right","middle",3,0,1000,-240,5,true,true,true,0,true,true);
    mm_menu_7_0_1.addMenuItem("كارشناسي ارشد","window.open('karshenasiarshad.aspx', '_self');");
   	mm_menu_7_0_1.addMenuItem("پزشكي عمومي","window.open('pezeshkeomomi.aspx', '_self');");
		mm_menu_7_0_1.addMenuItem("دستياري","window.open('barnameadastyari.aspx', '_self');");
		mm_menu_7_0_1.hideOnMouseOut=true;
    mm_menu_7_0_1.bgColor='#FFFFFF';
    mm_menu_7_0_1.menuBorder=1;
    mm_menu_7_0_1.menuLiteBgColor='#FFFFFF';
    mm_menu_7_0_1.menuBorderBgColor='#cccccc';
	
	 window.mm_menu_7_0 = new Menu("root",210,20,"Tahoma",11,"#333333","#000000","#EEEEEE","#8BCCD0","right","middle",3,0,1000,-350,5,true,true,true,0,true,true);
    mm_menu_7_0.addMenuItem("آئين نامه ها","window.open('aeennamehdastyari.aspx', '_self');");
	 mm_menu_7_0.addMenuItem(mm_menu_7_0_1,"window.open('#', '_self');");
	mm_menu_7_0.hideOnMouseOut=true;
    mm_menu_7_0.bgColor='#FFFFFF';
    mm_menu_7_0.menuBorder=1;
    mm_menu_7_0.menuLiteBgColor='#FFFFFF';
    mm_menu_7_0.menuBorderBgColor='#cccccc';
	
	 window.mm_menu_8_0 = new Menu("root",210,20,"Tahoma",11,"#333333","#000000","#EEEEEE","#8BCCD0","right","middle",3,0,1000,-350,5,true,true,true,0,true,true);
    mm_menu_8_0.addMenuItem("حوزه يك:رسالت و اهداف","window.open('resalat.aspx', '_self');");
	mm_menu_8_0.addMenuItem("حوزه دو:برنامه آموزشي دوره پزشكي عمومي","window.open('badpo.aspx', '_self');");
	mm_menu_8_0.addMenuItem("حوزه سه:هيئت علمي","window.open('heyat3.aspx', '_self');");
	mm_menu_8_0.addMenuItem("حوزه چهار:منابع آموزشي و پژوهشي","window.open('manabeavp.aspx', '_self');");
		mm_menu_8_0.addMenuItem("حوزه پنج:مديريت مالي و اجرايي","window.open('modiriyatmve.aspx', '_self');");
			mm_menu_8_0.addMenuItem("حوزه شش:دانشجو","window.open('daneshjo.aspx', '_self');");
			mm_menu_8_0.addMenuItem("حوزه هفت:ارزشيابي","window.open('arzeshyabi.aspx', '_self');");
	mm_menu_8_0.hideOnMouseOut=true;
    mm_menu_8_0.bgColor='#FFFFFF';
    mm_menu_8_0.menuBorder=1;
    mm_menu_8_0.menuLiteBgColor='#FFFFFF';
    mm_menu_8_0.menuBorderBgColor='#cccccc';
	

mm_menu_5_0.writeMenus();
} // mmLoadMenus()

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_showMenu(menu, x, y, child, imgname) {
	if (!window.mmWroteMenu) return;
	MM_clearTimeout();
	if (menu) {
		var obj = FIND(imgname) || document.images[imgname] || document.links[imgname] || document.anchors[imgname];
		x = moveXbySlicePos (x, obj);
		y = moveYbySlicePos (y, obj);
	}
	if (document.layers) {
		if (menu) {
			var l = menu.menuLayer || menu;
			l.top = l.left = 1;
			hideActiveMenus();
			if (this.visibility) l = this;
			window.ActiveMenu = l;
		} else {
			var l = child;
		}
		if (!l) return;
		for (var i=0; i<l.layers.length; i++) { 			   
			if (!l.layers[i].isHilite) l.layers[i].visibility = "inherit";
			if (l.layers[i].document.layers.length > 0) MM_showMenu(null, "relative", "relative", l.layers[i]);
		}
		if (l.parentLayer) {
			if (x != "relative") l.parentLayer.left = x || window.pageX || 0;
			if (l.parentLayer.left + l.clip.width > window.innerWidth) l.parentLayer.left -= (l.parentLayer.left + l.clip.width - window.innerWidth);
			if (y != "relative") l.parentLayer.top = y || window.pageY || 0;
			if (l.parentLayer.isContainer) {
				l.Menu.xOffset = window.pageXOffset;
				l.Menu.yOffset = window.pageYOffset;
				l.parentLayer.clip.width = window.ActiveMenu.clip.width +2;
				l.parentLayer.clip.height = window.ActiveMenu.clip.height +2;
				if (l.parentLayer.menuContainerBgColor && l.Menu.menuBgOpaque ) l.parentLayer.document.bgColor = l.parentLayer.menuContainerBgColor;
			}
		}
		l.visibility = "inherit";
		if (l.Menu) l.Menu.container.visibility = "inherit";
	} else if (FIND("menuItem0")) {
		var l = menu.menuLayer || menu;	
		hideActiveMenus();
		if (typeof(l) == "string") l = FIND(l);
		window.ActiveMenu = l;
		var s = l.style;
		s.visibility = "inherit";
		if (x != "relative") {
			s.pixelLeft = x || (window.pageX + document.body.scrollLeft) || 0;
			s.left = s.pixelLeft + 'px';
		}
		if (y != "relative") {
			s.pixelTop = y || (window.pageY + document.body.scrollTop) || 0;
			s.top = s.pixelTop + 'px';
		}
		l.Menu.xOffset = document.body.scrollLeft;
		l.Menu.yOffset = document.body.scrollTop;
	}
	if (menu) window.activeMenus[window.activeMenus.length] = l;
	MM_clearTimeout();
}