
/*ROLLOVER IMAGES - just add class "rollover" to images and have two versions, one with _off in name for regular state and other with _on in name for rollover state */

$(document).ready(function() {
	$("img.rollover").hover(
	function() { this.src = this.src.replace("_off", "_on");
	},
	function() { this.src = this.src.replace("_on", "_off");
	});
});

/*=====================================================*/
/*Preloader*/

function preload(arrayOfImages) {
    $(arrayOfImages).each(function(){
        $('<img/>')[0].src = this;
        // Alternatively you could use:
        // (new Image()).src = this;
    });
};

/* Usage - put in script tags??:

preload([
    'img/imageName.jpg',
    'img/anotherOne.jpg',
    'img/blahblahblah.jpg'
]);
*/
/*=====================================================*/
function emailLink(em,dom,ext,whatToSay) { 
var name = em;
var atsign = "@";
var virtual_domain = dom;
var dotcom = ext;
document.write("<a href=mailto:"+ name + atsign + virtual_domain + "." + dotcom + ">" + whatToSay + "</a>");
};
/*=====================================================*/

$(document).ready(function(){
	$(".stripeMe tr").mouseover(function(){$(this).addClass("over");}).mouseout(function(){$(this).removeClass("over");});
	$(".stripeMe tr:even").addClass("alt");
});

/*
Here are classes to add: 
tr.alt td {	background: #ecf6fc; }
tr.over td { background: #bcd4ec; }
*/

