/*email link*/
u = window.location;

/*default email subject text if desired*/
function emaillink() {
	window.location = "mailto:?subject="+document.title+"&body=I thought you might find this link interesting: "+u;
}
   
/*resize text*/
var prefsLoaded = false;
var defaultFontSize = 80;
var currentFontSize = defaultFontSize;

function revertStyles(){

	currentFontSize = defaultFontSize;
	changeFontSize(0);

}

function changeFontSize(sizeDifference){
	currentFontSize = parseInt(currentFontSize) + parseInt(sizeDifference * 5);

	if(currentFontSize > 100){
		currentFontSize = 100;
	}else if(currentFontSize < 60){
		currentFontSize = 60;
	}

	setFontSize(currentFontSize);
};

function setFontSize(fontSize){
	var stObj = (document.getElementById) ? document.getElementById('wrapper') : document.all('wrapper');
	document.body.style.fontSize = fontSize + '%';
};

/* - - - - - -
OTHER FUNCTIONS
- - - - - - */

function switchhook() {
	var thelink = document.getElementById("ouhook").href;
	var lnks = document.links;
	for (var i=0;i<lnks.length;i++) {
		if (lnks[i].id == "copylink") {
			lnks[i].href = thelink;
			break;
		}
	}
}


function init () {
	switchhook();
}

function nostatus () {
	window.status="";
	return true;
}


function rotate() {
if (document.getElementById("rollimg")!=null){
thisimg++;
if (thisimg >= imgcnt) thisimg = 0;
document.getElementById("rollimg").src = imgs[thisimg];
setTimeout("rotate();",3000);
}
}
setTimeout("rotate();",3000); 

/* BANNER IMAGE */
function banner(){
var picNum = Math.random();
picNum = Math.round((9*picNum)+.5);
picUrl= 'http://www.ccc.edu/oit/images/OITTop' + picNum +'.jpg';
document.getElementById("banner").style.backgroundImage='url(\''+picUrl +'\')';
}


function scrotate() {
if (document.getElementById("scrollimg")!=null){
scthisimg++;
if (scthisimg >= scimgcnt) scthisimg = 0;
document.getElementById("scrollimg").src = scimgs[scthisimg];
setTimeout("scrotate();",3000);
}
}
setTimeout("scrotate();",3000); 

