<!--

/*
	Image function library
	
	This library provides functionality for rollover images and alpha png rollover graphics
	
	Features:
	- Preloading images
	- Swapping images
	- Swapping images as cell backgrounds
	- Swapping PNG images in IE 5.5 and IE 6 (Make sure you include the pngfix.js file as well)
	
	Copyright (c) Jeremy Bell 2006
	jeremy@criuslabs.com
*/

function preloadImages() {
  	if( document.images ){ 
		document.preloaded=new Array();
		
    	var i;
		var args=preloadImages.arguments;
		
		for ( i=0; i<args.length; i++ ) {
			document.preloaded[i]=new Image;
			document.preloaded[i].src=args[i];
		}
	}
}

function swapImage(imgObj, imgSrc) {
	imgObj.src = imgSrc;
}

function swapImagePng(imgObj, imgSrc) {
	imgObj.filters(0).src = imgSrc;
}

function swapImageCSS(divObj, imgSrc) {
	divObj.style.backgroundImage = "url(" + imgSrc + ")";
}

function swapImageCSSPng(divObj, imgSrc) {
	divObj.filters(0).src = imgSrc;
}

//-->