// JavaScript Document
//.........................................................................................................................
//this function changes the bg color of the window to create seamless page trasition between main content which is 780x580.
//Rakesh Shrestha 20.07.2004
//.........................................................................................................................
function changeBgColor(fromto){
var swfbgT=window.document.swfbgTop;
var swfbgL=window.document.swfbgLeft;
var swfbgR=window.document.swfbgRight;
var swfbgB=window.document.swfbgBottom;
//Set page background colours based onselection
/*
//not reqd at the moment
switch (fromto) {
	case "home":
		document.bgColor = "FF9900"
		break
	case "proff":
		document.bgColor = "99E6A0"
		break
	case "sam":
		document.bgColor = "CCCCFF"
		break
	case "vic":
		document.bgColor = "FFCCFF"
		break
	case "mel":
		document.bgColor = "FFCC00"
		break
	case "ned":
		document.bgColor = "99CCFF"
		break
	case "story":
		document.bgColor = "99CCFF"
		break
	case "news":
		document.bgColor = "CCCC33"
		break
	case "about":
		document.bgColor = "ABD9EE"
		break
	case "parents":
		document.bgColor = "ABD9EE"
		break
	case "teachers":
		document.bgColor = "ABD9EE"
		break
	case "privacy":
		document.bgColor = "ABD9EE"
		break
	case "feedback":
		document.bgColor = "ABD9EE"
		break
	case "contact":
		document.bgColor = "ABD9EE"
		break
	default:
		document.bgColor = "FF9900"
}
*/
//change Top
	swfbgT.TGotoLabel("/", fromto);
	swfbgT.TGotoLabel("/", fromto);
	swfbgT.Play();
//change Left
	swfbgL.TGotoLabel("/", fromto);
	swfbgL.TGotoLabel("/", fromto);
	swfbgL.Play();
//change Right
	swfbgR.TGotoLabel("/", fromto);
	swfbgR.TGotoLabel("/", fromto);
	swfbgR.Play();
//change Bottom
	swfbgB.TGotoLabel("/", fromto);
	swfbgB.TGotoLabel("/", fromto);
	swfbgB.Play();

 }

//this function is for main app pop-up window
//Rakesh Shrestha 11.07.2004
//.........................................................................................................................
function pop(popUrl){
var optToolbar = 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no';
var optOption = 'scrollbars=no,width=1024,height=768,resizable=no';
var optFeatures = optToolbar + "," + optOption;
var newWin = window.open(popUrl,'',optFeatures);
}

//this function is for pop-up window to display images from thumbnail in main module
//Rakesh Shrestha 11.07.2004
//.........................................................................................................................
function popmedia(popUrl){
var optToolbar = 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no';
var optOption = 'scrollbars=no,width=602,height=422,resizable=no';
var optFeatures = optToolbar + "," + optOption;
var newWin = window.open(popUrl,'',optFeatures);
}

//this function is for pop-up window to display print freindly pdf documents print function in main module
//Rakesh Shrestha 19.07.2004
//.........................................................................................................................
function poppdf(popUrl){
var optToolbar = 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no';
var optOption = 'scrollbars=yes,width=602,height=422,resizable=yes';
var optFeatures = optToolbar + "," + optOption;
var newWin = window.open(popUrl,'',optFeatures);
}

//this function is for pop-up window to display plugin sources for downloads
//Rakesh Shrestha 19.07.2004
//.........................................................................................................................
function popplug(popUrl){
var optToolbar = 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no';
var optOption = 'scrollbars=yes,width=800,height=500,resizable=no';
var optFeatures = optToolbar + "," + optOption;
var newWin = window.open(popUrl,'',optFeatures);
}

function popprintfloorplan(popUrl){
var optToolbar = 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=yes';
var optOption = 'scrollbars=no,width=602,height=422,resizable=no';
var optFeatures = optToolbar + "," + optOption;
var newWin = window.open(popUrl,'',optFeatures);
}

function popAdmin(popUrl){
var optToolbar = 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=yes';
var optOption = 'scrollbars=yes,width=700,height=600,resizable=yes';
var optFeatures = optToolbar + "," + optOption;
var newWin = window.open(popUrl,'',optFeatures);
}

function popMedia(popUrl){
var optToolbar = 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no';
var optOption = 'scrollbars=no,width=602,height=422,resizable=no';
var optFeatures = optToolbar + "," + optOption;
var newWin = window.open(popUrl,'',optFeatures);
}

function popMap(popUrl){
var optToolbar = 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no';
var optOption = 'scrollbars=no,width=602,height=524,resizable=no';
var optFeatures = optToolbar + "," + optOption;
var newWin = window.open(popUrl,'',optFeatures);
}

function popMediaUpload(popUrl){
var optToolbar = 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no';
var optOption = 'scrollbars=no,width=740,height=660,resizable=no';
var optFeatures = optToolbar + "," + optOption;
var newWin = window.open(popUrl,'',optFeatures);
}
