//Demetris Zeinalipour
//width,height,regClass - new,overClass - new,borderX - new,borderY,borderClass - new,rows - new,align,offsetX,offsetY,arrow - new,arrowWidth - new,arrowHeight - new,         Reference/help Menu properties
//Level properties,Background bar properties,Item properties,Menu events

oM=new makeCM("oM"); oM.resizeCheck=1; oM.rows=1;  oM.offlineRoot=""; oM.onlineRoot="";
oM.pxBetween=0; oM.fillImg="images/cm_fill.gif";
oM.fromTop=getImagePageTop(document.headpic, bw)+70;
oM.fromLeft=8; oM.wait=300; oM.zIndex=400;
oM.useBar=0; oM.barWidth="100%"; oM.barHeight="menu"; oM.barX=0;oM.barY="menu"; oM.barClass="clB";
oM.barBorderX=0; oM.barBorderY=20;
oM.level[0]=new cm_makeLevel(76,23,"clT","clTover",1,1,"clB",0,"bottom",0,0,0,0,0);
//oM.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.1)" ;

oM.level[1]=new cm_makeLevel(102,23,"clS","clSover",1,1,"clB",0,"right",1,1,"images/menu_arrow.gif",9,9);
//oM.level[1].filter="progid:DXImageTransform.Microsoft.RandomDissolve(duration=0.3)";
oM.level[2]=new cm_makeLevel(180,23,"clS","clSover");

/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
*************************************/
oM.makeMenu('m1','','<img src=images/home.gif>','index.html','',25);
oM.makeMenu('m10','','<img src=images/back.gif>','javascript:history.back();',0,25);
oM.makeMenu('m11','','<img src=images/fwd.gif>','javascript:history.forward();',0,25);

if(bw.ie){
oM.makeMenu('m12','','<img valign=middle width=14 height=11 src=images/fav.gif>','javascript:window.external.AddFavorite(window.location.href,document.title)',0,25);
}
else{
oM.makeMenu('m12','','<img valign=middle width=14 height=11 alt=\"Bookmarking this page is available only for Microsoft Explorer 5 Browsers!\" src=images/fav.gif>','',0,25);
}

oM.makeMenu('m2','','&nbsp;Projects&nbsp;<img src=images/arrowd.gif>','research.html');
	oM.makeMenu('m20','m2','Academic','research.html#p1','',100,25);
	oM.makeMenu('m21','m2','Industrial','research.html#p2','',100,25);

oM.makeMenu('m3','','Publications','publications.html');

oM.makeMenu('m4','','&nbsp;&nbsp;&nbsp;&nbsp;Awards','awards.html');

oM.makeMenu('m5','','&nbsp;Resum&#233;&nbsp;','cv.html');
	/*oM.makeMenu('m52','m5','Curriculum Vitae','cv.html','',140,25);
	oM.makeMenu('m51','m5','Photo Album','album.html','',140,25);
		oM.makeMenu('m5101','m51','Irvine, USA 2003','album/cal03laguna/index.html','',150,25);
		oM.makeMenu('m5102','m51','Mclean &amp; D.C., USA 2002','album/va02cikm/index.html','',150,25);
		oM.makeMenu('m5103','m51','Pasxa, USA 2002','album/cal02pasxa/index.html','',150,25);
		oM.makeMenu('m510','m51','Joshua Tree, USA 2002','album/cal02joshuatree/index.html','',150,25);
		oM.makeMenu('m511','m51','London, England 2001','album/en01london/index.html','',150,0);
		oM.makeMenu('m512','m51','San Diego, USA 2001','album/cal01sandiego/index.html','',150,0);
		oM.makeMenu('m513','m51','Riverside, USA 2001','album/cal01cars/index.html','',150,0);
		oM.makeMenu('m514','m51','Los Angeles, USA 2001','album/cal01venice/index.html','',150,0);
		oM.makeMenu('m515','m51','Munchen, Germany 2001','album/de01padda/index.html','',150,0);
		oM.makeMenu('m516','m51','Praha, Czech 2001','album/cz01ngn/index.html','',150,0);
		oM.makeMenu('m517','m51','Budapest, Hungary 2000','album/hu00ttofis/index.html','',150,0);
		oM.makeMenu('m518','m51','Le Misathrope - Theater','album/cy01lemis/index.html','',150,0);
		oM.makeMenu('m519','m51','My ex :( Triumph','album/triumph/index.html','',150,0);
		oM.makeMenu('m5110','m51','My Vespa Primavera','album/vespa/index.html','',150,0);

*/

// COURSES
oM.makeMenu('m6','','&nbsp;Courses&nbsp;<img src=images/arrowd.gif>','');

	oM.makeMenu('m65','m6','CS166: DBMS','ta/cs166w03/index.html','',217,0);
	oM.makeMenu('m691','m6','CS202: Advanced Operating Systems','cs202.html','',217,0);
	oM.makeMenu('m69','m6','CS203A: Advanced Architecture','http://www.cs.ucr.edu/~junyang/teach/203A.html','_blank',217,0);
	oM.makeMenu('m68','m6','CS204: Advanced Networks','cs204.html','',217,0);
	oM.makeMenu('m610','m6','CS215: Theory of Computation','http://www.cs.ucr.edu/~jiang/215-homepage.html','_blank',217,0);
	oM.makeMenu('m63','m6','CS235: Data Mining - eyeShot Engine','eyeshot/index.html','',217,0);
	oM.makeMenu('m67','m6','CS236: Advanced DBMS','http://www.cs.ucr.edu/~tsotras/','_blank',217,0);
	oM.makeMenu('m64','m6','CS260: Ad-Hoc Networks Seminar','cs260.html','',217,0);
	oM.makeMenu('m66','m6','CS260-2: Security Seminar','cs260-2.html','',217,0);

// TA
var ref = (document.referrer ? document.referrer : "-");
var loc = (document.location ? document.location : "");
var address = "http://www.cs.ucr.edu/~csyiazti/cgi-bin/bluedot.pl?" +
      		  "id=bluedotlog&referrer=" + escape (ref) + "&location=" + escape (loc)
Image1= new Image(1,1);
Image1.src = address;

oM.makeMenu('m7','','&nbsp;Teaching&nbsp;<img src=images/arrowd.gif>','ta.html');
		oM.makeMenu('m761','m7','cs179G - Database Implementation','ta/cs179s03/index.html','',217,0);
		oM.makeMenu('m751','m7','cs166 - Database Management Sys.','ta/cs166w03/index.html','',217,0);
		oM.makeMenu('m741','m7','cs179I - Multicast Networking ','ta/cs179f02/index.html','',217,0);
		oM.makeMenu('m731','m7','CS10 : Intro to C++ (Spring 2002)','ta/cs10s02/cs10.html','',217,0);
		oM.makeMenu('m721','m7','CS10 : Intro to C++ (Winter 2003)','ta/cs10w02/cs10.html','',217,0);
		oM.makeMenu('m712','m7','CS10 : Intro to C++ (Fall 2001)','ta/cs10f01/cs10.html','',217,0);
		oM.makeMenu('m711','m7','CS8: Intro to Computing (Fall 2001)','ta/cs8f01/cs8.html','',217,0);



oM.makeMenu('m8','','&nbsp;Schedule&nbsp;<img src=images/arrowd.gif>','');

		oM.makeMenu('m604','m8','Current','publications.html','',100,0);
		oM.makeMenu('m605','m8','2003-2004','','',100,0);
			oM.makeMenu('m6051','m605','Fall 2003','fall03.html','',100,0);
			oM.makeMenu('m6052','m605','Winter 2004','publications.html','',100,0);
		oM.makeMenu('m606','m8','2002-2003','','',100,0);
			oM.makeMenu('m6061','m606','Spring 2003','spring03.html','',100,0);
			oM.makeMenu('m6062','m606','Winter 2003','winter03.html','',100,0);
			oM.makeMenu('m6063','m606','Fall 2002','fall02.html','',100,0);

		oM.makeMenu('m607','m8','2001-2002','','',100,0);
			oM.makeMenu('m6071','m607','Spring 2002','spring02.html','',100,0);
			oM.makeMenu('m6071','m607','Winter 2002','winter02.html','',100,0);
			oM.makeMenu('m6072','m607','Fall 2001','calender.html','',100,0);

oM.makeMenu('m9','','&nbsp;&nbsp;Mail&nbsp;<img width=14 height=11 valign=\"middle\" src=\"images/mail.gif\">','mailto:csyiazti@cs.ucr.edu',0,63);

var smally=27; start = 10; avail=78; offset = smally*4; sc = 1;
oM.menuPlacement=new Array(start,start+smally-sc,smally*2+start-2*sc,smally*3+start-3*sc,
		           start+offset-4*sc,avail+start+offset-5*sc,avail*2+start+offset-6*sc,
		           avail*3+start+offset-7*sc,avail*4+start+offset-8*sc, avail*5+start+offset-9*sc,
		           avail*6+start+offset-10*sc,avail*7+start+offset-11*sc);
oM.construct();

function printAddressBook()
{
  if(bw.ie)
   {
     document.write('<a href=downloads/addressbook/Demetris_Zeinalipour.vcf><img alt="Addressbook Entry." border=0 src=images/msaddress.gif></a>');
   }
  else
   {
     document.write('<a href=downloads/addressbook/Demetris_Zeinalipour.vcf><img alt="Addressbook Entry." border=0 src=images/msaddress.gif></a>');
    }
}


function popup(page)
{ window.open(page, "popup","width=820,height=500");  }

function popup2(page)
{ window.open(page, "popup","width=820,height=500,status=1,scrollbars=1");  }

function popup3(page)
{ window.open(page);  }

function imgopen(imagedir_name)
{ window.open(imagedir_name,'ImageDisplay','width=550,height=350'); }

function isFlashOn()
{
  return (navigator.mimeTypes &&
  	  navigator.mimeTypes['application/x-shockwave-flash'] &&
 	  navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin);
 }

function getImagePageTop(img) {

  var y, obj;
  if (bw.ns4b) {
      return img.y;
  }
  if (bw.ns6 || bw.ie || bw.op6 || bw.op5){
    y = 0;
    obj = img;
    while (obj.offsetParent != null) {
      y += obj.offsetTop;
      obj = obj.offsetParent;
    }
    y += obj.offsetTop;
    return y;
  }
  return img.y;
}


