/*
 * library.js 1.0
 * pre-require: jQuery v1.3.2
 * 2009/10/06
 */


/*--- RollOver ---*/

$(function initRollOverImages() {
	var image_cache = new Object();
	$("img.btn").not("[src*='_on.']").each(function(i) {
		var imgsrc = this.src;
		var dot = this.src.lastIndexOf('.');
		var imgsrc_on = this.src.substr(0, dot) + '_on' + this.src.substr(dot, 4);
		image_cache[this.src] = new Image();
		image_cache[this.src].src = imgsrc_on;
		$(this).hover(
			function() { this.src = imgsrc_on; },
			function() { this.src = imgsrc; }
		);
	});
});


/*--- OpenWindow ---*/

$(function windowOpen () {
	$("a.blank").click(function(){
		window.open($(this).attr("href"), 'new');
		return false;
		}
	);
});
