
/* 
======================================================

Shawnee State University

======================================================
*/


/***************************************************/
/* 960 grid overlay settings ... 960.gs
/***************************************************/
var gOverride = {
  urlBase: 'http://gridder.andreehansson.se/releases/latest/',
  gColor: '#f00',
  gColumns: 12,
  gOpacity: 0.10,
  gWidth: 10,
  pColor: '#C0C0C0',
  pHeight: 15,
  pOffset: 0,
  pOpacity: 0.20,
  center: true,
  gEnabled: true,
  pEnabled: false,
  setupEnabled: true,
  fixFlash: true,
  size: 960
};

function showGrid () {
	document.body.appendChild(document.createElement('script')).src='http://gridder.andreehansson.se/releases/latest/960.gridder.js';	
}

/***************************************************/
/* for showing and hiding the "Apply Now" more div
/***************************************************/
function toggle_display( id ) {
	var e = document.getElementById( id );
	if( e.style.display != "block" ) {
		e.style.display = "block";
	} else {
		e.style.display = "none";
	};
}

/***************************************************/
/* Clears the current link in navigation
/* http://snook.ca/archives/javascript/clear_links_to/
/***************************************************/
function clearCurrentLink(){
    if( document.getElementById("section-menu") ){
    	var a = document.getElementById("section-menu").getElementsByTagName("a");
	    for(var i=0;i<a.length;i++){
	   		if(a[i].href == window.location.href.split("#")[0]){
	            removeNode(a[i]);
				//alert ( a[i].href );
			}
		}
	}
}

function removeNode(n){
    if( n.hasChildNodes() )
        for(var i=0;i<n.childNodes.length;i++)
            n.parentNode.insertBefore(n.childNodes[i].cloneNode(true),n);
    n.parentNode.removeChild(n);
}

/***************************************************/
/* Startup
/***************************************************/
startup = function() {
	
	clearCurrentLink();
	sfHover();
	
}

// Suckerfish Style Dropdown - Only needed for !@%*$ Internet Explorer
sfHover = function() {
	var lis = document.getElementById("global-menu").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++) {
		if( lis[i].className == "headlink" ){
			lis[i].onmouseover=function() { this.className+=" over"; }
			lis[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" over\\b"), ""); }
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", startup);


/***************************************************/
/* By the numbers quotes 
/***************************************************/
var quotes = new Array;
quotes.push( "<span>$2million</span> <p>awarded scholarships each year</p>" );
quotes.push( "<span>1:18</span> <p>Faculty-to-student ratio</p>" );
quotes.push( "<span>01</span> <p>SSU's Clark Planetarium houses the first Konica-Minolta Mediaglobe 3D system in the world, bringing the universe a little bit closer to home.</p>" );
quotes.push( "<span>500</span> <p>computers are available to students throughout the SSU campus.</p>" );
quotes.push( "<span>98%</span> <p>of nursing students passed the national license exam in 2008, the highest rate in the state of Ohio, and surpassing that of larger institutions nationwide.</p>" );
quotes.push( "<span>100%</span> <p>of teacher education students passed the state license exam in 2008.</p>" );
quotes.push( "<span>37</span> <p>SSU has participated in 37 national championships. The women's basketball team won the NAIA-II National Championship in 1999.</p>" );
quotes.push( "<span>85%</span> <p>of SSU graduates are employed in a related occupation within 6 months of graduation</p>" );
quotes.push( "<span>30</span> <p>percent of last years graduating class graduated with honors.</p>" );
quotes.push( "<span>90%</span> <p>of pre-med students from Shawnee State are accepted into medical school.</p>" );
quotes.push( "<span>45</span> <p>clubs and organizations are available to students.</p>" );
quotes.push( "<span>300</span> <p>faculty members, each experts in their fields, are dedicated to helping students like you be successful.</p>" );
quotes.push( "<span>4</span> <p>types of apartment-style housing units are offered to students living on campus.</p>" );
quotes.push( "<span>13</span> <p>intercollegiate men's and women's athletic teams and active intramural sports programs are available to students.</p>" );
quotes.push( "<span>80</span> <p>bachelor and associate degree programs, as well as a master of occupational therapy and master of education, are offered at SSU.</p>" );
quotes.push( "<span>770</span> <p>students donated time to community service in 2009.</p>" );
quotes.push( "<span>5,000</span> <p>hours of community service are donated by SSU students each year.</p>" );

function quote() {
	var q = quotes[(Math.floor(Math.random() * quotes.length))]
	//var q = quotes[ 0 ]
	document.write( q );
}
