function assignRollovers() {
	$('.rollover').each(function() {
		if (typeof(this.src) == "undefined") {
			return;
		}
		var off_type = this.src.substr(this.src.length-8,4);
		if (off_type == '-off') {
			preloadImage(this.src.replace(/\-off/, "-on"));
			$(this).bind("mouseover", function() {
				this.src=this.src.replace(/\-off/, "-on");
			});
			$(this).bind("mouseout", function(){
				this.src=this.src.replace(/\-on/, "-off");
			});
		} else if (off_type == '_off') {
			preloadImage(this.src.replace(/\_off/, "_on"));
			$(this).bind("mouseover", function(){
				this.src=this.src.replace(/\_off/, "_on");
			});
			$(this).bind("mouseout", function(){
				this.src=this.src.replace(/\_on/, "_off");
			});
		}
	});
}
function preloadImage(src) {
	var image = new Image();
	image.src = src;
}