<!--#####################################################################-->
<!--START GET USERS BROWSER WINDOW SIZE-->
<!--#####################################################################-->
var myWidth = 0, myHeight = 0;
if( typeof( window.innerWidth ) == 'number' ) {
  //Non-IE
  myWidth = window.innerWidth;
  myHeight = window.innerHeight;
} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
  //IE 6+ in 'standards compliant mode'
  myWidth = document.documentElement.clientWidth;
  myHeight = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
  //IE 4 compatible
  myWidth = document.body.clientWidth;
  myHeight = document.body.clientHeight;
}
//window.alert( 'Width = ' + myWidth );
//window.alert( 'Height = ' + myHeight );
<!--#####################################################################-->
<!--START RESIZE MAINTABLE, HEADER, LEFTNAV BASED ON USERS WINDOW SIZE-->
<!--#####################################################################-->
function resizeMainTbl() {
  var elem = document.getElementById("mainTable")
  var browserName=navigator.appName; 

  //elem.style.height= + myHeight + 'px';
  elem.style.width= + 1000 + 'px';
  
  var elem2 = document.getElementById("contentTable")
  //if (browserName=="Microsoft Internet Explorer") {
  //	elem2.style.height= + myHeight - 229 + 'px';
  //}
  //else {
  //	elem2.style.height= + myHeight;
  //}
  //elem2.style.width= + 220 + 'px';    
  
  //var elem3 = document.getElementById("mainContent")
  //elem3.style.height= + myHeight - 229 + 'px';
  
  //var elem4 = document.getElementById("rightnav")
  //elem4.style.height= + myHeight - 229 + 'px';
  //elem4.style.width= + 220 + 'px'; 
}
<!--#####################################################################-->
<!--START GET LAST MODIFIED DATE (PAGE FOOTER)-->
<!--#####################################################################-->
function formatDate(date)
{
  var d = date.getDate();
  var m = date.getMonth() + 1;
  var y = date.getYear();
  // could use splitString() here but the following method is more compatible
  var mmm = 
    ( 1==m)?'January':( 2==m)?'February':(3==m)?'March':
    ( 4==m)?'April':( 5==m)?'May':(6==m)?'June':
    ( 7==m)?'July':( 8==m)?'August':(9==m)?'September':
    (10==m)?'October':(11==m)?'Novovember':'December';
  return  mmm + " " + (d<10?"0"+d:d) + ", " + (y<10?"0"+y:y);
}

function lastModified()
{
  var lmd = document.lastModified;
  var s   = "Unknown";
  var d1;
  // check if we have a valid date before proceeding
  if(0 != (d1=Date.parse(lmd)))
  {
    s = "" + formatDate(new Date(d1));
  }
  return s;
}
<!--#####################################################################-->
<!--START LOAD PROFILES-->
<!--#####################################################################-->
function getProfile(profileCat){
  imgCount = 0;
  
  if (profileCat=="profile") {
	imgCount = 10;
	//Image category called from page
    var imgPath = "/Profiles/thumbnails/" + profileCat; 
    var pagePath = "/Profiles/Students/" + "profile"; 
  }
  else if (profileCat=="sbpa") {
	imgCount = 8;
	//Image category called from page
    var imgPath = "/Profiles/thumbnails/" + profileCat; 
    var pagePath = "/Profiles/SBPA/" + "profile"; 
  }
  else if (profileCat=="sed") {
	imgCount = 2;
	//Image category called from page
    var imgPath = "/Profiles/thumbnails/" + profileCat; 
    var pagePath = "/Profiles/SED/" + "profile"; 
  }
  
  //Number of images for this category
  var img = new Array()
  var imgover = new Array()
  var page = new Array()
    
  //Build the image array
  for (j = 0; j < imgCount; j++){
	 img[j] = imgPath +  [j] + '.jpg'
	 imgover[j] = imgPath +  [j] + '-on.jpg'
	 page[j] = pagePath +  [j] + '.asp'
  }

  var p = img.length;
  var preBuffer = new Array()
  for (i = 0; i < p; i++){
	 preBuffer[i] = new Image()
	 preBuffer[i].src = img[i]
  }
  var whichImage = Math.round(Math.random()*(p-1));
  document.write('<a href="'+page[whichImage]+'"><img id=profile src="'+img[whichImage]+'"></a>');
  
  //document.write('<a href="'+page[whichImage]+'" onMouseOver=\"MM_swapImage(\'Profile\',\'\',\'/Profiles/thumbnails/profile5-on.jpg\',1);\" onMouseOut=\"MM_swapImgRestore();\"><img src="'+img[whichImage]+'" alt=\"New Bookstore Website\" name=\"Profile\"></a>' + imgover[whichImage]);
}
<!--#####################################################################-->
<!--START LOAD ADS 1-->
<!--#####################################################################-->
function getAds1(){
  //Image category called from page
  //var imgPath = "/Ads/thumbnails1/ad";
  //var pagePath = "/Media/Magazine/,/Media/Seaswells/"
  var imgPath = "/Ads/thumbnails1/ad";
  var pagePath = "/blueandwhiteday/index.asp"
  pagePath = pagePath.split(",");
  
  //Number of images for this category
  var imgCount = 0;
  var img = new Array()
  var page = new Array()
  
  imgCount = 1;
	
  //Build the image array
  for (j = 0; j < imgCount; j++){
	 img[j] = imgPath +  [j] + '.jpg'
	 page[j] = pagePath[j]
  }

  var p = img.length;
  var preBuffer = new Array()
  for (i = 0; i < p; i++){
	 preBuffer[i] = new Image()
	 preBuffer[i].src = img[i]
  }
  var whichAd = Math.round(Math.random()*(p-1));
  if (whichAd == 3 || whichAd == 4) {
    var target = "target=_blank"
  }
  document.write('<a href="'+page[whichAd]+'"' + target + '><img id=profile width=180 height=125 src="'+img[whichAd]+'"></a>');
}
<!--#####################################################################-->
<!--START LOAD ADS 2-->
<!--#####################################################################-->
function getAds2(){
  //Image category called from page
  var imgPath = "/Ads/thumbnails2/ad";
//  var pagePath = "/Athletics/Cheer/index.aspx,http://www.ccgabooks.com/"
  var pagePath = "/Media/Viewbook/"
  pagePath = pagePath.split(",");
  
  //Number of images for this category
  var imgCount = 0;
  var img = new Array()
  var page = new Array()
  
  imgCount = 1;
	
  //Build the image array
  for (j = 0; j < imgCount; j++){
	 img[j] = imgPath +  [j] + '.jpg'
	 page[j] = pagePath[j]
  }

  var p = img.length;
  var preBuffer = new Array()
  for (i = 0; i < p; i++){
	 preBuffer[i] = new Image()
	 preBuffer[i].src = img[i]
  }
  var whichAd = Math.round(Math.random()*(p-1));
  if (whichAd == 1) {
    var target = "target=_blank"
  }
  document.write('<a href="'+page[whichAd]+'"' + target + '><img id=profile width=180 height=125 src="'+img[whichAd]+'"></a>');
}
<!--#####################################################################-->
<!--START LOAD ADS 3-->
<!--#####################################################################-->
function getAds3(){
  //Image category called from page
  var imgPath = "/Ads/thumbnails4/ad";
  var pagePath = "/FinAid/"
  pagePath = pagePath.split(",");
  
  //Number of images for this category
  var imgCount = 0;
  var img = new Array()
  var page = new Array()
  
  imgCount = 1;
	
  //Build the image array
  for (j = 0; j < imgCount; j++){
	 img[j] = imgPath +  [j] + '.jpg'
	 page[j] = pagePath[j]
  }

  var p = img.length;
  var preBuffer = new Array()
  for (i = 0; i < p; i++){
	 preBuffer[i] = new Image()
	 preBuffer[i].src = img[i]
  }
  var whichAd = Math.round(Math.random()*(p-1));
  if (whichAd == 2 || whichAd == 3) {
    var target = "target=_blank"
  }
  document.write('<a href="'+page[whichAd]+'"' + target + '><img id=profile width=180 height=125 src="'+img[whichAd]+'"></a>');
}
<!--#####################################################################-->
<!--START LOAD ADS 4-->
<!--#####################################################################-->
function getAds4(){
  //Image category called from page
  var imgPath = "/Ads/thumbnails8/ad";
  var pagePath = "/Admissions/MovieTheaterCommercial.asp"
  pagePath = pagePath.split(",");
  
  //Number of images for this category
  var imgCount = 0;
  var img = new Array()
  var page = new Array()
  
  imgCount = 1;
	
  //Build the image array
  for (j = 0; j < imgCount; j++){
	 img[j] = imgPath +  [j] + '.jpg'
	 page[j] = pagePath[j]
  }

  var p = img.length;
  var preBuffer = new Array()
  for (i = 0; i < p; i++){
	 preBuffer[i] = new Image()
	 preBuffer[i].src = img[i]
  }
  var whichAd = Math.round(Math.random()*(p-1));
  if (whichAd == 2 || whichAd == 3) {
    var target = "target=_blank"
  }
  document.write('<a href="'+page[whichAd]+'"' + target + '><img id=profile width=180 height=125 src="'+img[whichAd]+'"></a>');
}
<!--#####################################################################-->
<!--START GET COPYRIGHT DATE FOR FOOTER-->
<!--#####################################################################-->
function getYear() {
	var d = new Date(); 
	var cur_year = d.getFullYear();
	return cur_year
}
<!--#####################################################################-->
<!--START BLANK GOOGLE SEARCH FIELD-->
<!--#####################################################################-->
function make_blank() {
	document.search.q.value = "";
}
<!--#####################################################################-->
<!--START OPEN LINK DROPDOWN BOX/FIELD-->
<!--#####################################################################-->
function OpenLink(form) {
  var page = form.link.options[form.link.selectedIndex].value;
  return  window.location=page
}
<!--#####################################################################-->
<!--START LEFT MENUS CODE-->
<!--#####################################################################-->
function findTopPosition(oElement) {
  if( typeof( oElement.offsetParent ) != 'undefined' ) {
    for( var posX = 0; oElement; oElement = oElement.offsetParent ) {
      posX += oElement.offsetLeft;
    }
    return posX;
  } else {
    return oElement.x;
  }
}

function hideMenu(mMenuID){
  var theDivElement  = document.getElementById("DivMenu" + mMenuID);
  theDivElement.style.visibility = "hidden";
}

function showMenu(mMenuID, x, y){
  var theDivElement  = document.getElementById("DivMenu" + mMenuID);
  var theTDElement  = document.getElementById("mTDCenter");
  strLeft = findTopPosition(theTDElement) -40;

  theDivElement.style.left = strLeft + 'px';
  theDivElement.style.top  = y + 'px';
  theDivElement.style.visibility = "visible";
}

function MM_changeProp(objId,x,theProp,theValue) { //v9.0
  var obj = null; with (document){ if (getElementById)
  obj = getElementById(objId); }
  if (obj){
    if (theValue == true || theValue == false)
      eval("obj.style."+theProp+"="+theValue);
    else eval("obj.style."+theProp+"='"+theValue+"'");
  }
}

function showGold () {
	MM_changeProp('goldfeatures','','display','block','DIV');
	MM_changeProp('greenfeatures','','display','none','DIV');
	MM_changeProp('bluefeatures','','display','none','DIV');
}

function showGreen () {
	MM_changeProp('goldfeatures','','display','none','DIV');
	MM_changeProp('greenfeatures','','display','block','DIV');
	MM_changeProp('bluefeatures','','display','none','DIV');
}

function showBlue () {
	MM_changeProp('goldfeatures','','display','none','DIV');
	MM_changeProp('greenfeatures','','display','none','DIV');
	MM_changeProp('bluefeatures','','display','block','DIV');
}

function MM_findObj(n, d) { //v3.0
  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); 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_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_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];}}
}


