﻿function mmLoadMenus() {
  if (window.mm_menu_1_0) return;
  
        
    window.mm_menu_9_0_1 = new Menu("اداره رفاه دانشجويي",200,20,"Tahoma",11,"#333333","#ffffff","#e8f4f5","#0199CA","right","middle",3,0,1000,-240,5,true,true,true,0,true,true);
    mm_menu_9_0_1.addMenuItem("شرایط استفاده از تسهیلات و وامها","window.open('refah.aspx', '_self');");
    mm_menu_9_0_1.addMenuItem("شرايط بازپرداخت تسهیلات و وامها","window.open('bazpardakhtevam.aspx', '_self');");
    mm_menu_9_0_1.addMenuItem("صندوق رفاه دانشجويان","window.open('http://www.srd.ir', '_self');");
	mm_menu_9_0_1.addMenuItem("وام تحصيلي ومسكن","window.open('vamemaskan.aspx', '_self');");
    mm_menu_9_0_1.addMenuItem("وام ضروري وازدواج","window.open('vameezdevaj.aspx', '_self');");
	mm_menu_9_0_1.addMenuItem("وام بيمه دانشجويي","window.open('vamebimeh.aspx', '_self');");
	mm_menu_9_0_1.addMenuItem("وام تبصره 2-شهریه دانشجویان شبانه","window.open('vame-t2.aspx', '_self');");
	mm_menu_9_0_1.addMenuItem("وام خريد كالا و گردشگري","window.open('vamekharidekala.aspx', '_self');");
	mm_menu_9_0_1.addMenuItem("كمك خاص به دانشجويان","window.open('komakekhas.aspx', '_self');");
    mm_menu_9_0_1.addMenuItem("وديعه مسكن ","window.open('vadiehmaskan.aspx', '_self');");
	mm_menu_9_0_1.addMenuItem("کار دانشجویی","window.open('karedaneshjoee.aspx', '_self');");
    mm_menu_9_0_1.hideOnMouseOut=true;
    mm_menu_9_0_1.bgColor='#ffffff';
    mm_menu_9_0_1.menuBorder=1;
    mm_menu_9_0_1.menuLiteBgColor='#FFFFFF';
    mm_menu_9_0_1.menuBorderBgColor='#cccccc';
  
    window.mm_menu_7_0 = new Menu("root",190,20,"Tahoma",11,"#333333","#ffffff","#e8f4f5","#0199CA","right","middle",3,0,1000,-240,5,true,true,true,0,true,true);
    mm_menu_7_0.addMenuItem("اداره امور فرهنگي و تبليغات ","window.open('tablighat.aspx', '_self');");
    mm_menu_7_0.addMenuItem("اداره فوق برنامه","window.open('foghebarnameh.aspx', '_self');");
	mm_menu_7_0.addMenuItem("اداره تربيت بدني ","window.open('tarbiatbadani.aspx', '_self');");
	mm_menu_7_0.addMenuItem("تشكلها، كانونها وكميته هاي دانشجويي","window.open('kanonha.aspx', '_self');");
	mm_menu_7_0.addMenuItem("کميته ناظر بر نشريات دانشجويي","window.open('nashriat.aspx', '_self');");
	mm_menu_7_0.addMenuItem("فرم ها","window.open('farhangi-form.aspx', '_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_9_0 = new Menu("root",130,20,"Tahoma",11,"#333333","#ffffff","#e8f4f5","#0199CA","right","middle",3,0,1000,-240,5,true,true,true,0,true,true);
	mm_menu_9_0.addMenuItem(mm_menu_9_0_1,"window.open('#', '_self');");
    mm_menu_9_0.addMenuItem("اداره  امور خوابگاهها","window.open('khabgaha.aspx', '_self');");
	mm_menu_9_0.addMenuItem("اداره تغذيه وسلف سرويس","window.open('selfservice.aspx', '_self');");
	mm_menu_9_0.addMenuItem("فرم ها","window.open('daneshjoee-form.aspx', '_self');");
	mm_menu_9_0.hideOnMouseOut=true;
    mm_menu_9_0.bgColor='#ffffff';
    mm_menu_9_0.menuBorder=1;
    mm_menu_9_0.menuLiteBgColor='#FFFFFF';
    mm_menu_9_0.menuBorderBgColor='#cccccc'; 
	
   window.mm_menu_8_0 = new Menu("root",270,20,"Tahoma",11,"#333333","#ffffff","#e8f4f5","#0199CA","right","middle",3,0,1000,-240,5,true,true,true,0,true,true);
   mm_menu_8_0.addMenuItem("معرفي","window.open('shora-1.aspx', '_self');");
   mm_menu_8_0.addMenuItem("ترکیب اعضای شورا","window.open('shora-2.aspx', '_self');");
   mm_menu_8_0.addMenuItem("وظائف شورای فرهنگی","window.open('shora-3.aspx', '_self');");
   mm_menu_8_0.addMenuItem("شورای آموزشی – پژوهشی دانشکده ها و آموزشکده ها","window.open('shora-4.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'; 

    window.mm_menu_6_0 = new Menu("root",130,20,"Tahoma",11,"#333333","#ffffff","#e8f4f5","#0199CA","right","middle",3,0,1000,-240,5,true,true,true,0,true,true);
   mm_menu_6_0.addMenuItem("معرفي","window.open('moshavereh.aspx', '_self');");
   mm_menu_6_0.addMenuItem("مطالب آموزشی","window.open('amoozesh.aspx', '_self');");
   mm_menu_6_0.addMenuItem("سایت مشاوره امید","window.open('http://www.moshaverehomid.blogfa.com','_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_11_0 = new Menu("root",210,20,"Tahoma",11,"#333333","#ffffff","#e8f4f5","#0199CA","right","middle",3,0,1000,-240,5,true,true,true,0,true,true);
    //mm_menu_11_0.addMenuItem("معرفي","window.open('shora-pezeshki1.htm', '_self');");
	//mm_menu_11_0.addMenuItem("مدارک مورد نیاز جهت معرفی به کمیسیون ","window.open('shora-pezeshki2.htm', '_self');");
	//mm_menu_11_0.addMenuItem("تاریخ و محل تشکیل کمیسیون پزشکی","window.open('shora-pezeshki3.htm', '_self');");
    //mm_menu_11_0.hideOnMouseOut=true;
    //mm_menu_11_0.bgColor='#ffffff';
    //mm_menu_11_0.menuBorder=1;
    //mm_menu_11_0.menuLiteBgColor='#FFFFFF';
    //mm_menu_11_0.menuBorderBgColor='#cccccc'; 
  

mm_menu_7_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();
}