// JavaScript Document

/* this was copied from the Seattle Central site so that the Assessment site is stand-alone*/

// Break Out of Frames
if (top.frames.length!=0) {top.location=self.document.location;}

var whichMnu;
var imgBase="http://seattlecentral.edu/img/";

// Netscape Resize Fix
NS4 = document.layers;
if (NS4) {origWidth = innerWidth; origHeight = innerHeight;}
function reDo() {if (innerWidth != origWidth || innerHeight != origHeight) location.reload();}
if (NS4) onresize = reDo;

//gif = new Image();
//gif.src = imgBase+"tanright.gif";

//imgsrc = new Array();
//imgsrc[0] = imgBase+"topHome.gif";

//img = new Array();
//for (i = 0; i < imgsrc.length; i++) {
//	img[i] = new Image();
//	img[i].src = imgsrc[i];
//}

function swtch(num, imgname) {document[imgname].src = img[num].src;}
function hilite(imgsrc, imgname) {document[imgname].src = imgsrc;}
function newWin(addr,w,h) {win = window.open(addr, 'win', 'resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,left=0,top=0,width='+w+',height='+h);win.focus}
function sosWin(whichApp){
	// Values for whichApp
	//SID, GRADE, SCHDPLAN, REG, YOURSCHD, QTRSCHD, REGAPPT, AA, FAID, HOPE, PIN, ADDR
	var seacen = "https://sccdweb.sccd.ctc.edu/seacen/";
	var addr;
	if (whichApp == 'SID'){addr = seacen + "waci240.html";}
	else if (whichApp == 'GRADE') {addr = seacen + "waci002.html";}
	else if (whichApp == 'SCHDPLAN') {addr = seacen + "schdplan/waci210Base.html";}
	else if (whichApp == 'REG') {addr = seacen + "webreg/waci221.html";}
	else if (whichApp == 'YOURSCHD') {addr = seacen + "waci003.html";}
	else if (whichApp == 'REGAPPT') {addr = seacen + "waci004.html";}
	else if (whichApp == 'AA') {addr = seacen + "waci007.html";}
	else if (whichApp == 'FAID') {addr = seacen + "waci005.html";}
	else if (whichApp == 'HOPE') {addr = "https://sccdweb.sccd.ctc.edu/seacen/hope/hope_active.html";}
	else if (whichApp == 'PIN') {addr = seacen + "waci008.html";}
	else if (whichApp == 'ADDR') {addr = seacen + "stuaddr/waci203.html";}
	else if (whichApp == 'PAY') {addr = seacen + "webxfer/waci600.html";}
	else if (whichApp == 'TUT') {addr = "http://sccdweb.sccd.ctc.edu/seacen/register.html";}
	else if (whichApp == 'HELP') {addr = "http://www.seattlecolleges.com/services/includes/students/campus_kiosk/help.html";}
	else if (whichApp == 'WAIT') {addr = seacen + "webreg/waci230.html";}
	
	win = window.open(addr, 'win', 'resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,left=0,top=0,width=630,height=380');
	win.focus();
}

function mailw() {
		var d="sccd.ctc.edu";var n="scccwebmaster";var e=n + "@" + d;var atxt=" Contact the Webmaster ";
		document.write("<a href='mailto:"+e+"'>"+atxt+"</a>");
}