<!-- // Site Javascripts

// --------- Pre-load Images for Menu Rollover --------- 
menu_class=new Image();
menu_class.src="art/hover/menu_class.png";

menu_gallery=new Image();
menu_gallery.src="art/hover/menu_gallery.png";

menu_rules=new Image();
menu_rules.src="art/hover/menu_rules.png";

menu_schedules=new Image();
menu_schedules.src="art/hover/menu_schedules.png";

menu_tuition=new Image();
menu_tuition.src="art/hover/menu_tuition.png";
// --------- Pre-load Images for Tab-Menu Rollover --------- 


// --------- Image Rollover Scripts for Navigation --------- 
// SCRIPT: Switches graphics when mouse is hovered over them
function SwitchImg()
{ // Change graphic when mouse is hovered over
  var rem, keep=0, store, obj, switcher=new Array, history=document.Data;
    for (rem=0; rem < (SwitchImg.arguments.length-2); rem+=3) {
        store = SwitchImg.arguments[(navigator.appName == 'Netscape')?rem:rem+1];
    if ((store.indexOf('document.layers[')==0 && document.layers==null) ||
        (store.indexOf('document.all[')==0 && document.all==null))
         store = 'document'+store.substring(store.lastIndexOf('.'),store.length);
         obj = eval(store);
    if (obj != null) {
           switcher[keep++] = obj;
      switcher[keep++] = (history==null || history[keep-1]!=obj)?obj.src:history[keep];
      obj.src = SwitchImg.arguments[rem+2];
  } }
  document.Data = switcher;
} // Change graphic when mouse is hovered over


// Restore graphic when mouse is moved off the image
function RestoreImg() { 
  if (document.Data != null)
    for (var rem=0; rem<(document.Data.length-1); rem+=2)
      document.Data[rem].src=document.Data[rem+1];
} // Restore graphic when mouse is moved off the image
// --------- Image Rollover Script for Navigation ---------

// --------- Window Pop-Up Controls for Opinion Polls ---------
// SCRIPT: Opens a small window with poll results
function ShowWebPoll () {
  pollwin = window.open('','pollwin','width=400,height=325,status=no,scrollbars=yes,resizable=yes,toolbar=no');
  document.forms["WebPoll"].reset();
  document.forms["WebPoll"].submit();   
}

// SCRIPT: Opens a small window with poll results (with user's vote)
function VoteWebPoll () {
  pollwin = window.open('','pollwin','width=400,height=325,status=no,scrollbars=yes,resizable=yes,toolbar=no');
  document.forms["WebPoll"].submit();
}

// SCRIPT: Opens a window for rasterised display ads (ROP, Classified displays)
function OpenAPopUp (width, height, url) { bigwidth = false; bigheight = false;
  
  // Adjustment for display ads that are larger than the screen
  if (width >= screen.width) { width = screen.width*.85; bigwidth = true;}
  if (height >= screen.height) { height = screen.height*.85; bigheight = true;}  

  // Add padding to the popup dimensions (only if smaller than screen dimensions)
  if (bigwidth == false) { width=width+40; }
  if (bigheight == false ) { height=height+85; }
     
  // Vertical and Horizontal offset (centers ad on screen)
  var winleft = (screen.width - width) / 2;
  var wintop = (screen.height - height) / 2;
   
  adPopUpWin = eval("window.open('" + url + "','adPopUpWin','width=" + width + ",height=" + height + ", top=" + wintop + ",left=" + winleft + ",status=no,scrollbars=yes,resizable=yes,toolbar=no')");  
}

// SCRIPT: Opens a small window with poll results (via poll archives)
function ShowOldWebPoll ($url) {
  pollwin = window.open($url,'pollwin','width=400,height=325,status=no,scrollbars=yes,resizable=yes,toolbar=no');
}

// End of Scripts -->
