// JavaScript Document { 
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>");
}

/* put this in head:
<script type="text/javascript" src="../_js/general.js"></script>

 to call script:
<script type="text/javascript">emailLink ("info","somedomain", "com","send an email"); </script>
*/

/*=====================================================*/
 $(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;
}
*/

/*=====================================================*/
/*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'
]);
*/
/*=====================================================*/
