// Swaps one image source (src attribute) to another one.
function swapImg(imageID, pathToNewImage){
	document.getElementById(imageID).src = pathToNewImage;
}

//Stuff for preloading images.
var imagesToLoad = new Array()
function preloadImages(){
	for (imageIndex = 0; imageIndex < preloadImages.arguments.length; imageIndex++){
		imagesToLoad[imageIndex] = new Image();
		imagesToLoad[imageIndex].src = preloadImages.arguments[imageIndex];
	}
}

//Swaps colors on rollovers
function colorSwap(menuID, onOff){
	if (menuID ==  true){
		document.getElementById(menuID).style.backgroundColor = "#99355";	
	} else {
		document.getElementById(menuID).style.backgroundColor = "#073f86";
	}
}

//Rolloverssss
function dropDown(menuID, showMenu){
	if (showMenu ==  true){
		document.getElementById(menuID).style.display = "block";	
	} else {
		document.getElementById(menuID).style.display = "none";
	}
}

// Starting jQuery stuff
// ---------------------------------------------------------------------
$(document).ready(function(){
		
	// Mouseovers for the Portfolio page thumbnails
	$(".galleryRollover").hover(
		function(){
			$(this).stop().fadeTo(400, 0.8); //over
		},
		function(){
			$(this).stop().fadeTo(400, 0); //out
		});			
	
});
