
/* Rollovers */

if(document.images)
		img3on = new Image();
		img3on.src ="images/facebook_on.png";
		img2on = new Image();
		img2on.src ="images/linkedin_on.png";	
		
				
		img3off = new Image();
		img3off.src ="images/facebook.png";
		img2off = new Image();
		img2off.src ="images/linkedin.png";
				
				
function imgOn(imgName){
	document[imgName].src = eval(imgName + "on.src");
} 

function imgOff(imgName){
	document[imgName].src = eval(imgName + "off.src");
} 




/* Menus  */
sfHover = function() {
	var sfEls = document.getElementById("navbar").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" hover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" hover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


/* Quote rotate */


// Type the number of images you are rotating.

NumberOfImagesToRotate = 38;

// Specify the first and last part of the image tag. 

FirstPart = '<img src="images/quotes/';
LastPart = '.png">';

function printImage() {
var r = Math.ceil(Math.random() * NumberOfImagesToRotate);
document.write(FirstPart + r + LastPart);
}
