//--rollover
//--prev + _on.jpg + class=rollover

$(function(){
	$("img.rollover").mouseover(function(){
		$(this).attr("src",$(this).attr("src")
				.replace(/^(.+)(\.[a-z]+)$/, "$1_on$2"));
}).mouseout(function(){
	$(this).attr("src",$(this).attr("src")
			.replace(/^(.+)_on(\.[a-z]+)$/, "$1$2"));
}).each(function(){
	$("<img>").attr("src",$(this).attr("src")
			.replace(/^(.+)(\.[a-z]+)$/, "$1_on$2"));
	});
});


//popupWin
function openNewWin(url, name, w, h) {
	var newWin;
	var options = "toolbar=no,menubar=yes,status=yes,scrollbars=no,resizable=yes";
	newWin = window.open(url, name, "width=" + w + ",height=" + h + options);
	newWin.focus();
}

