// checks if a variable is set
function isDefined (variable) {
    return (typeof(window[variable]) == "undefined") ? false : true;
}

// preload images
jQuery.preloadImages = function() {   
	for (var i = 0; i < arguments.length; i++) {
		jQuery("<img>").attr("src", arguments[i]);   
	}
}


