// JavaScript Document
function imgSwap(oImg)
{
   var strOver  = "_on"    // image to be used with mouse over
   var strOff = "_off"     // normal image
   var strImg = oImg.src
   if (strImg.indexOf(strOver) != -1) 
      oImg.src = strImg.replace(strOver,strOff)
   else
      oImg.src = strImg.replace(strOff,strOver)
}

$(function() {
$(".regular_swap").hover(
function () {
$(this).attr("src", $(this).attr("src").replace(/_off-trans.png/, "_on-trans.png"));
},
function () {
$(this).attr("src", $(this).attr("src").replace(/_on-trans.png/, "_off-trans.png"));
} 
);
});

$(function() {
	$('a.lightbox').lightBox(); // Select all links with lightbox class
	});

$(document).ready(function(){
			$("a[rel^='prettyPhoto']").prettyPhoto();
});

var newWin = null;
function popUp(strURL, strType, strHeight, strWidth) {
 if (newWin != null && !newWin.closed)
   newWin.close();
 var strOptions="";
 if (strType=="console")
   strOptions="resizable,height="+
     strHeight+",width="+strWidth;
 if (strType=="fixed")
   strOptions="status,height="+
     strHeight+",width="+strWidth;
 if (strType=="elastic")
   strOptions="toolbar,menubar,scrollbars,"+
     "resizable,location,height="+
     strHeight+",width="+strWidth;
 newWin = window.open(strURL, 'newWin', strOptions);
 newWin.focus();
}