
//dropdown menu java script
window.onerror = null;
var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var NS4 = (bName == "Netscape" && bVer >= 4);
var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
var NS3 = (bName == "Netscape" && bVer < 4);
var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
var menuActive = 0;
var menuOn = 0;
var onLayer;
var timeOn = null;

function showLayer(layerName,aa){
var x =document.getElementById(aa);
var tt =findPosX(x); 
var ww =findPosY(x)+20; 

if (NS4 || IE4) {
if (timeOn != null) {
clearTimeout(timeOn);
hideLayer(onLayer);
}
if (IE4) {
var layers = eval('document.all["'+layerName+'"].style');
layers.left = tt;
eval('document.all["'+layerName+'"].style.visibility="visible"');
}
if (NS4) {
if(document.getElementById){
var elementRef = document.getElementById(layerName);
if((elementRef.style)&& (elementRef.style.visibility!=null)){
elementRef.style.visibility = 'visible';
elementRef.style.left = tt;
elementRef.style.top = ww;
}
}
}
}
onLayer = layerName
}

function hideLayer(layerName){
if (menuActive == 0)
{
if (IE4){
eval('document.all["'+layerName+'"].style.visibility="hidden"');
} 
if (NS4){
if(document.getElementById){
var elementRef = document.getElementById(layerName);
if((elementRef.style)&& (elementRef.style.visibility!=null)){
elementRef.style.visibility = 'hidden';
}
}
}
}
}

function btnTimer() {
timeOn = setTimeout("btnOut()",600)
}

function btnOut(layerName){
if (menuActive == 0){
hideLayer(onLayer)
}
}

var item;
function menuOver(itemName,ocolor){
item=itemName;
itemName.style.backgroundColor = ocolor; //background color change on mouse over 
clearTimeout(timeOn);
menuActive = 1
}

function menuOut(itemName,ocolor){
if(item)
itemName.style.backgroundColor = ocolor;
menuActive = 0
timeOn = setTimeout("hideLayer(onLayer)", 100)
}

function findPosX(obj)
{
var curleft = 0;
if (obj.offsetParent)
{
while (obj.offsetParent)
{
curleft += obj.offsetLeft
obj = obj.offsetParent;
}
}
else if (obj.x)
curleft += obj.x;
return curleft;
}

function findPosY(obj)
{
var curtop = 0;
if (obj.offsetParent)
{
while (obj.offsetParent)
{
curtop += obj.offsetTop
obj = obj.offsetParent;
}
}
else if (obj.y)
curtop += obj.y;
return curtop;
}

//end dropdown menu java script


/*
//welcome java script
// Your messages. Add as many as you like
var message=new Array()
message[0]="Welcome to Meiwa International !"
message[1]="The right company where you can get ATM parts,financial equipments and bank equipments."
//message[2]="We can supply various ATM parts."

// the URLs of your messages
var messageurl=new Array()
messageurl[0]="http://www.meiwainternational.com"
messageurl[1]="http://www.meiwainternational.com"
//messageurl[2]="http://www.meiwainternational.com"

// the targets of the links
// accepted values are '_blank' or '_top' or '_parent' or '_self'
// or the name of your target-window (for instance 'main')
var messagetarget=new Array()
messagetarget[0]="_blank"
messagetarget[1]="_blank"
messagetarget[2]="_blank"

// distance of the ticker to the top margin of the browser-window (pixels)
var postop=30

// speed 1: lower means faster
var pause=50

// speed 2: higher means faster
var step=2

// font-size
var fntsize=20

// font-color
var fntcolor="cc3300"      //8b0000"

// font-family
var fntfamily="Helvetica"

// font-weight: 1 means bold, 0 means normal
var fntweight=1

// do not edit the variables below
var i_message=0
var timer
var textwidth
var textcontent=""
if (fntweight==1) {fntweight="700"}
else {fntweight="100"}

function init() {
	gettextcontent()
    if (document.all) {
		screenwidth=document.body.clientWidth
		text.innerHTML=textcontent
		document.all.text.style.posTop=postop
        document.all.text.style.posLeft=screenwidth
		textwidth=text.offsetWidth
        scrolltext()
    }
	if (document.layers) {
		screenwidth=window.innerWidth
		document.text.document.write(textcontent)
		document.text.document.close()
		document.text.top=postop
		document.text.left=screenwidth
		textwidth=document.text.document.width
        scrolltext()
    }
}

function scrolltext() {
    if (document.all) {
		if (document.all.text.style.posLeft>=textwidth*(-1)) {
			document.all.text.style.posLeft-=step
			var timer=setTimeout("scrolltext()",pause)
		}
		else {
			changetext()
		}
	}
   if (document.layers) {
		if (document.text.left>=textwidth*(-1)) {
			document.text.left-=step
			var timer=setTimeout("scrolltext()",pause)
		}
		else {
			changetext()
		}
	}
}

function changetext() {
    i_message++
	if (i_message>message.length-1) {i_message=0}
	gettextcontent()
	if (document.all) {
		text.innerHTML=textcontent
        document.all.text.style.posLeft=screenwidth
		textwidth=text.offsetWidth
        scrolltext()
	}

	if (document.layers) {
   		document.text.document.write(textcontent)
		document.text.document.close()
		document.text.left=screenwidth
		textwidth=document.text.document.width
        scrolltext()
	}
}

function gettextcontent() {
	textcontent="<span style='position:relative;font-size:"+fntsize+"pt;font-family:"+fntfamily+";font-weight:"+fntweight+"'>"
	textcontent+="<a href="+messageurl[i_message]+" target="+messagetarget[i_message]+">"
	textcontent+="<nobr><font color="+fntcolor+">"+message[i_message]+"</font></nobr></a></span>"
}

window.onresize=init;

//end welcome java script
*/

//moveout menu java script
// MakeTween Class
MakeTween = function (el, getter, setter) {
	this.el = el;
	this.getter = getter;
	this.setter = setter;
	this.callback = null;
	this.interval = null;
	this.obj = "MakeTweenInstance_" + (++ MakeTween.instance);
	eval (this.obj + "=this");
}
MakeTween.instance = 0;

MakeTween.prototype.tween = function (endpos, callback) {
	this.callback = callback;
	this.clearTween ();
	this.doTween (endpos);
	this.interval = setInterval (this.obj + ".doTween(" + endpos + ")", 100);
}
MakeTween.prototype.doTween = function (endpos) {
	var pos = this.getter ();
	if (Math.abs (pos - endpos) <= 1) {
		this.setter (endpos);
		this.clearTween ();
		if (this.callback) this.callback ();
	} else {
		this.setter (pos + (endpos - pos) / 2);
	}
}
MakeTween.prototype.clearTween = function () {
	clearInterval (this.interval);
	this.interval = null;
}

// Required:
// - MakeTween Class

MakeElement = function (idname) {
	this.el = document.getElementById (idname);
	this.css = this.el.style;
	this.obj = "MakeElementInstance_" + idname;
	eval (this.obj + "=this");
}
// event
MakeElement.prototype.addEvent = function (type, callback) {
	this.el["on" + type] = callback;
}
MakeElement.prototype.removeEvent = function (type) {
	this.addEvent (type, null);
}
// visibility
MakeElement.prototype.show = function () {
	this.css.visibility = "visible";
}
MakeElement.prototype.hide = function () {
	this.css.visibility = "hidden";
}
// background color
MakeElement.prototype.getBgColor = function () {
	return this.getCSSProp ("backgroundColor");
}
MakeElement.prototype.setBgColor = function (color) {
	this.css.backgroundColor = color || "";
}
// top
MakeElement.prototype.getTop = function () {
	return parseInt (this.getCSSProp ("top")) || this.el.offsetTop;
}
MakeElement.prototype.setTop = function (top) {
	this.css.top = top + "px";
}
// left
MakeElement.prototype.getLeft = function () {
	return parseInt (this.getCSSProp ("left")) || this.el.offsetLeft;
}
MakeElement.prototype.setLeft = function (left) {
	this.css.left = left + "px";
}
// width
MakeElement.prototype.getWidth = function () {
	return parseInt (this.getCSSProp ("width")) || this.el.offsetWidth;
}
MakeElement.prototype.setWidth = function (width) {
	this.css.width = width + "px";
}
// height
MakeElement.prototype.getHeight = function () {
	return parseInt (this.getCSSProp ("height")) || this.el.offsetHeight;
}
MakeElement.prototype.setHeight = function (height) {
	this.css.height = height + "px";
}
// z-index
MakeElement.prototype.getZindex = function () {
	return this.getCSSProp ("zIndex");
}
MakeElement.prototype.setZindex = function (z) {
	this.css.zIndex = z;
}
// tween
MakeElement.prototype.tweenTop = function (top, callback) {
	var self = this;
	if (!this.topTween) this.topTween = new MakeTween (this, function () {return self.getTop ()}, function (y) {self.setTop (y)});
	this.topTween.tween (top, callback);
}
MakeElement.prototype.tweenLeft = function (left, callback) {
	var self = this;
	if (!this.leftTween) this.leftTween = new MakeTween (this, function () {return self.getLeft ()}, function (x) {self.setLeft (x)});
	this.leftTween.tween (left, callback);
}
// css property
MakeElement.prototype.getCSSProp = function (prop) {
	if (this.css[prop]) {
		return this.css[prop];
	} else if (this.el.currentStyle) {
		return this.el.currentStyle[prop];
	} else if (document.defaultView && document.defaultView.getComputedStyle) {
		prop = prop.replace (/([A-Z])/g, function (match) {return "-" + match.toLowerCase ()});
		return document.defaultView.getComputedStyle (this.el, "").getPropertyValue (prop);
	} else {
		return null;
	}
}


// Required:
// - MakeElement Class

MakeSlideoutMenu = function () {
	this.menus = new Array ();
	this.timeout = null;
	this.active = null;
	this.activeBgColor = null;
	this.depth = 100;
	this.obj = "MakeSlideoutMenuInstance_" + (++ MakeSlideoutMenu.instance);
	eval (this.obj + "=this");
}
MakeSlideoutMenu.instance = 0;

// --- Public Methods ---
MakeSlideoutMenu.prototype.setActiveBgColor = function (color) {
	this.activeBgColor = color;
}
MakeSlideoutMenu.prototype.build = function (parent, mask, child) {
	var self = this;
	var index = this.menus.length;
	var menu = this.menus[index] = new Object ();
	// Build Objects
	menu.parent = new MakeElement (parent);
	menu.mask = mask ? new MakeElement (mask) : null;
	menu.child = child ? new MakeElement (child) : null;
	// Attach Events
	menu.parent.addEvent ("mouseover", function () {self.hide (); self.show (index)});
	menu.parent.addEvent ("mouseout", function () {self.out ()});
	if (menu.child) {
		//menu.parent.addEvent("click", function () {return false});
		menu.child.addEvent ("mouseover", function () {self.show (index)});
		menu.child.addEvent ("mouseout", function () {self.out ()});
	}
}

// --- Runtime Methods ---

MakeSlideoutMenu.prototype.show = function (index) {
	if (this.timeout) clearTimeout (this.timeout);
	var menu = this.menus[index];
	if (this.activeBgColor) menu.parent.setBgColor (this.activeBgColor);
	if (menu.child) {
		menu.mask.show ();
		menu.mask.setZindex (++ this.depth);
		menu.child.tweenLeft (0);
	}
	this.active = index;
}
MakeSlideoutMenu.prototype.hide = function () {
	if (this.active != null) {
		var menu = this.menus[this.active];
		if (this.activeBgColor) menu.parent.setBgColor (null);
		if (menu.child) menu.child.tweenLeft (-menu.child.getWidth (), function () {menu.mask.hide ()});
		this.active = null;
	}
}
MakeSlideoutMenu.prototype.out = function () {
	this.timeout = setTimeout (this.obj + ".hide()", 300);
}

// Build SlideoutMenu

function buildSlideoutMenu () {
        
        //alert('Welcome to my Web Site!'); 
	if (!document.getElementById) return;
	var menu = new MakeSlideoutMenu ();
	menu.setActiveBgColor ("#DDDDDD");
        menu.build ("menu0", "menu0Mask", "menu0Sub");
        menu.build ("menu1", "menu1Mask", "menu1Sub");
	menu.build ("menu2", "menu2Mask", "menu2Sub");
	menu.build ("menu3", "menu3Mask", "menu3Sub");
        menu.build ("menu4", "menu4Mask", "menu4Sub");
        menu.build ("menu5", "menu5Mask", "menu5Sub");
        menu.build ("menu6", "menu6Mask", "menu6Sub");
        menu.build ("menu7", "menu7Mask", "menu7Sub");
       
}

window.onload = function()
{
	buildSlideoutMenu();
       
}
//end moveout menu java script


<!-- 
 //slideshow2 
  var slideimages=new Array()
  var slidelinks=new Array()
  function slideshowimages(){
  for (i=0;i<slideshowimages.arguments.length;i++){
    slideimages[i]=new Image()
    slideimages[i].src=slideshowimages.arguments[i]
  }
 }

  function slideshowlinks(){
   for (i=0;i<slideshowlinks.arguments.length;i++)
    slidelinks[i]=slideshowlinks.arguments[i]
 }

 function gotoshow(){
 if (!window.winslide||winslide.closed)
   winslide=window.open(slidelinks[whichlink])
 else
   winslide.location=slidelinks[whichlink]
   winslide.focus()
 }
 //end slideshow 2

/* news scroller */
/* Variables, go nuts changing those! */
	// initial position 
	var dn_startpos=120; 			
	// end position
	var dn_endpos=-1200; 			
	// Speed of scroller higher number = slower scroller 
	var dn_speed=50;				
	// ID of the news box
	var dn_newsID='news';			
	// class to add when JS is available
	var dn_classAdd='hasJS';		
	// Message to stop scroller
	//var dn_stopMessage='Stop scroller';	
	// ID of the generated paragraph
	var dn_paraID='DOMnewsstopper';

	/* Initialise scroller when window loads */
	window.onload=function()
	{
		// check for DOM
		if(!document.getElementById || !document.createTextNode){return;}
                //init(); /* welcome javascription function */
		initDOMnews();
                fillup();

		// add more functions as needed
	}
	/* stop scroller when window is closed */
	/*window.onunload=function()
	{
	     init(); // welcome javascription function 	
             clearInterval(dn_interval);
	}*/

	var dn_scrollpos=dn_startpos;
	/* Initialise scroller */
	function initDOMnews()
	{
		var n=document.getElementById(dn_newsID);
		if(!n){return;}
		n.className=dn_classAdd;
		dn_interval=setInterval('scrollDOMnews()',dn_speed);
		var newa=document.createElement('a');
		var newp=document.createElement('p');
		newp.setAttribute('id',dn_paraID);
		newa.href='#';
		//newa.appendChild(document.createTextNode(dn_stopMessage));
		newa.onclick=stopDOMnews;
		newp.appendChild(newa);
		n.parentNode.insertBefore(newp,n.nextSibling);
		n.onmouseover=function()
		{		
			clearInterval(dn_interval);
		}
		n.onmouseout=function()
		{
			dn_interval=setInterval('scrollDOMnews()',dn_speed);
		}
	}

	function stopDOMnews()
	{
		clearInterval(dn_interval);
		var n=document.getElementById('news');
		n.className='';
		n.parentNode.removeChild(n.nextSibling);
		return false;
	}
	function scrollDOMnews()
	{
		var n=document.getElementById(dn_newsID).getElementsByTagName('ul')[0];
		n.style.top=dn_scrollpos+'px';	
		if(dn_scrollpos==dn_endpos){dn_scrollpos=dn_startpos;}
		dn_scrollpos--;	
	}


/* end news scroller */



/*mouse over popmenu */

 /* var menu1=new Array()
  menu1[0]='<a href="https://www.banner.morehouse.edu:4000/pls/portal30/bwckschd.p_disp_dyn_sched" target="main_frame"><font class="fcdarkred">Morehouse College</a>'
  menu1[1]='<a href="https://banner-web.spelman.edu/pls/prod/bwckschd.p_disp_dyn_sched" target="main_frame"><font class="fcdarkred">Spelman College</a>'
  menu1[2]='<a href="http://www.cau.edu/enrollment/registrar/Fall2005ScheduleBook.pdf" target="main_frame"><font class="fcdarkred">Clark Atlanta University</a>'
  
  var menu2=new Array()
  menu2[0]='<a href="http://tigernet1.morehouse.edu/cp/site/fall06.htm" target="main_frame"><font class="fcdarkred">Fall 06</a>'
  menu2[1]='<a href="http://tigernet1.morehouse.edu/cp/site/spring07.htm" target="main_frame"><font class="fcdarkred">Spring 07</a>'
  
  var menu3=new Array()
  menu3[0]='<a href="https://tigerdan.morehouse.edu/misc/morehouseRegisterInfo.html" target="main_frame"><font class="fcdarkred">Register Information</a>'
  
  var menu4=new Array()
  menu4[0]='<a href="http://tigernet1.morehouse.edu/cp/site/calendarfile.htm#0607" target="main_frame"><font class="fcdarkred">2006/2007</a>'
  menu4[1]='<a href="http://tigernet1.morehouse.edu/cp/site/calendarfile.htm#0708" target="main_frame"><font class="fcdarkred">2007/2008</a>'
  menu4[2]='<a href="http://tigernet1.morehouse.edu/cp/site/calendarfile.htm#0809" target="main_frame"><font class="fcdarkred">2008/2009</a>'

  var menu5=new Array()
  menu5[0]='<a href="http://www.morehouse.edu" target="main_frame"><font class="fcdarkred">Email</a>'
  menu5[1]='<a href="http://www.morehouse.edu" target="main_frame"><font class="fcdarkred">Calendar</a>'
  menu5[2]='<a href="http://www.morehouse.edu" target="main_frame"><font class="fcdarkred">Campus Announcements</a>'
  menu5[3]='<a href="http://www.morehouse.edu" target="main_frame"><font class="fcdarkred">Personal Announcements</a>'
  
  var menu6=new Array()
  menu6[0]='<a href="http://www.morehouse.edu" target="main_frame"><font class="fcdarkred">Grades</a>'
  menu6[1]='<a href="http://www.morehouse.edu" target="main_frame"><font class="fcdarkred">Records</a>'
  menu6[2]='<a href="http://www.morehouse.edu" target="main_frame"><font class="fcdarkred">Registration</a>'
  menu6[3]='<a href="http://www.morehouse.edu" target="main_frame"><font class="fcdarkred">Financial Aid</a>'
  menu6[4]='<a href="http://www.morehouse.edu" target="main_frame"><font class="fcdarkred">Online Payments</a>'
  
  var menu7=new Array()
  menu7[0]='<a href="http://www,morehouse.edu" target="main_frame"><font class="fcdarkred">Grades</a>'
  menu7[1]='<a href="http://www.morehouse.edu" target="main_frame"><font class="fcdarkred">Advisee List</a>'
  menu7[2]='<a href="http://www.morehouse.edu" target="main_frame"><font class="fcdarkred">Course Information</a>'
 
  var menu8=new Array()
  menu8[0]='<a href="http://www.morehouse.edu" target="main_frame"><font class="fcdarkred">Time Entry</a>'
  menu8[1]='<a href="http://www.morehouse.edu" target="main_frame"><font class="fcdarkred">Online Reqs</a>'
  menu8[2]='<a href="http://www.morehouse.edu" target="main_frame"><font class="fcdarkred">Employee Information</a>'

  var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
  var horizontaloffset=2 //horizontal offset of menu from default location. (0-5 is a good value)
  var ie4=document.all
  var ns6=document.getElementById&&!document.all
  if (ie4||ns6)
  document.write('<div id="dropmenudiv" style="visibility:hidden;width: 160px" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

  function getposOffset(what, offsettype)
  {
    var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
    var parentEl=what.offsetParent;
    while (parentEl!=null){
    totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
    parentEl=parentEl.offsetParent;
  }
  return totaloffset;
  }

  function showhide(obj, e, visible, hidden, menuwidth)
  {
    if (ie4||ns6)
    dropmenuobj.style.left=dropmenuobj.style.top=-500
    dropmenuobj.widthobj=dropmenuobj.style
    dropmenuobj.widthobj.width=menuwidth
    if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
    obj.visibility=visible
    else if (e.type=="click")
    obj.visibility=hidden
  }

  function iecompattest()
  {
    return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
  }

  function clearbrowseredge(obj, whichedge)
  {
    var edgeoffset=0
    if (whichedge=="rightedge"){
    var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
    dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
    if (windowedge-dropmenuobj.x-obj.offsetWidth < dropmenuobj.contentmeasure)
    edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth 
  }
  else
  {
    var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
    var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
    dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
    if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
    { 
      edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
      if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
      edgeoffset=dropmenuobj.y
    }
  }
  return edgeoffset
  }

  function populatemenu(what)
  {
    if (ie4||ns6)
    dropmenuobj.innerHTML=what.join("")
  }

  function dropdownmenu(obj, e, menucontents, menuwidth)
  {
    if (window.event) event.cancelBubble=true
    else if (e.stopPropagation) e.stopPropagation()
    clearhidemenu()
    dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
    populatemenu(menucontents)

    if (ie4||ns6)
    {
      showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
      dropmenuobj.x=getposOffset(obj, "left")
      dropmenuobj.y=getposOffset(obj, "top")
      dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+horizontaloffset+"px"
      dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"
    }

  return clickreturnvalue()
  }

  function clickreturnvalue()
  {
    if (ie4||ns6) return false
    else return true
  }

  function contains_ns6(a, b)
  {
    while (b.parentNode)
    if ((b = b.parentNode) == a)
    return true;
    return false;
  }

  function dynamichide(e)
  {
    if (ie4&&!dropmenuobj.contains(e.toElement))
    delayhidemenu()
    else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
    delayhidemenu()
  }

  function hidemenu(e)
  {
    if (typeof dropmenuobj!="undefined")
    {
      if (ie4||ns6)
      dropmenuobj.style.visibility="hidden"
    }
  }

  function delayhidemenu()
  {
    if (ie4||ns6)
    delayhide=setTimeout("hidemenu()",disappeardelay)
  }

  function clearhidemenu()
  {
    if (typeof delayhide!="undefined")
    clearTimeout(delayhide)
  } */
  
/* end mouse over popmenu */


 function Build_Header()
 {	
		document.write("<TABLE WIDTH=80% CELLPADDING=0 CELLSPACING=0 BORDER=0>");
		document.write("<TR class=bglgreen><TD align=center class=head24><FONT class=fcblue>PLEASE READ BELOW INFORNATION</FONT></TD></TR>");
		document.write("</TABLE>");
 }







 
