
var yuga = {
	preloader: {
		loadedImages: [],
		load: function (url){
			var img = this.loadedImages;
			var l = img.length;
			img[l] = new Image();
			img[l].src = url;
		}
	}
};

$(function(){
	
	$('.hover img, img.hover').each(function(){
		this.originalSrc = $(this).attr('src');
		this.rolloverSrc = this.originalSrc.replace(/(\.gif|\.jpg|\.png)/, "_2$1");
		yuga.preloader.load(this.rolloverSrc);
	}).hover(function(){
		$(this).attr('src',this.rolloverSrc);
	},function(){
		$(this).attr('src',this.originalSrc);
	});
	       
});

$(function() {
	$('.popup').click(function(){
		window.open(this.href, "subwin01", "width=736,height=600,scrollbars=yes,toolbar=no,menubar=yes");
		return false;
	});
});


$(function() {
	$('.close').click(function(){
		window.close();
		return false;
	});
});



