// JavaScript Document

<!--HIDE

//Preload Function

function preload(){
	myImg01 = new Image();
	myImg01.src="images/ej.png";
	myImg02 = new Image();
	myImg02.src="images/blinkit.png";
	myImg03 = new Image();
	myImg03.src="images/rab.png";
	myImg04 = new Image();
	myImg04.src="images/shosh.png";
	myImg05 = new Image();
	myImg05.src="images/usma.png";
	myImg05 = new Image();
	myImg05.src="images/blackknights.png";
}

//fade in effect

//document.write("<style type='text/css'>#mainimage {visibility:hidden;}</style>");

function initImage() {
	imageId = 'mainimage';
	image = document.getElementById(imageId);
	setOpacity(image, 0);
	image.style.visibility = "visible";
	fadeIn(imageId,0);
}
function fadeIn(objId,opacity) {
	if (document.getElementById) {
		obj = document.getElementById(objId);
		if (opacity <= 100) {
			setOpacity(obj, opacity);
			opacity += 10;
			window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 50);
		}
	}
}
function setOpacity(obj, opacity) {
	opacity = (opacity == 100)?99.999:opacity;
	// IE/Win
	obj.style.filter = "alpha(opacity:"+opacity+")";
	// Safari<1.2, Konqueror
	obj.style.KHTMLOpacity = opacity/100;
	// Older Mozilla and Firefox
	obj.style.MozOpacity = opacity/100;
	// Safari 1.2, newer Firefox and Mozilla, CSS3
	obj.style.opacity = opacity/100;
	}



//Big image swap

function showPic (whichpic) {
 if (document.getElementById) {
  document.getElementById('mainimage')
  .src = whichpic.id;
  document.getElementById('mainimagelink')
  .href = whichpic.href;
  return false;
 } else {
  return true;
 }
}

// RollOver Function

function roll_over (a) {
 if (document.getElementById) {
  document.getElementById('linktab' + a)
  .height = 45;
  return false;
 } else {
  return true;
 }
}


// RollOut Functions

function roll_out (a) {
 if (document.getElementById) {
  document.getElementById('thumb' + a)
  .width = 100;
  document.getElementById('thumb' + a)
  .height = 75;
  return false;
 } else {
  return true;
 }
} 

//STOP HIDING-->