
/* rollover - swap
------------------------------------------------------------------ */

function initRollOverImages() {
  var image_cache = new Object();
  $(".swap").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; });
  });
}

$(document).ready(initRollOverImages);



/* rollover - fade
------------------------------------------------------------------ */

$(function(){
$(".fade").load(function(){
	$(this).fadeTo(0, 1.0);
});
$(".fade").hover(
function(){
	$(this).fadeTo(150, 0.6);
},
function(){
	$(this).fadeTo(500, 1.0);
}
);
});

window.onload = function(){
$(".fade").fadeTo(0, 1.0);
};



/* popup window
------------------------------------------------------------------ */

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
