$.fn.hoverClass = function(c) {
    return this.each(function(){
        $(this).hover( 
            function() { $(this).addClass(c);  },
            function() { $(this).removeClass(c); }
        );
    });
};


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

function popup(URL,width,height) {
	if (!width) {
		width = 600;
	}
	if (!height) {
		height = 600;
	}
	MM_openBrWindow(URL,'','scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=yes,left='+((screen.width-width) / 2)+',top='+((screen.height-height) / 2)+',width=' + width + ',height=' + height);
	return false;
}



var browserType;

if (document.layers) {browserType = "nn4"}
if (document.all) {browserType = "ie"}
if (window.navigator.userAgent.toLowerCase().match("gecko")) {browserType= "gecko"}

function hide() {
  for (var i = 0; i < hide.arguments.length; ++i) {
	  if (browserType == "gecko" )
	     document.poppedLayer = document.getElementById(hide.arguments[i]);
	  else if (browserType == "ie")
	     document.poppedLayer = document.all[hide.arguments[i]];
	  else
	     document.poppedLayer = document.layers[hide.arguments[i]];
	  document.poppedLayer.style.visibility = "hidden";
	  document.poppedLayer.style.display = "none";
  }
}

function show() {
  for (var i = 0; i < show.arguments.length; ++i) {
	  if (browserType == "gecko" )
	     document.poppedLayer = document.getElementById(show.arguments[i]);
	  else if (browserType == "ie")
	     document.poppedLayer = document.all[show.arguments[i]];
	  else
	     document.poppedLayer = document.layers[show.arguments[i]];

	  document.poppedLayer.style.visibility = "visible";
	  document.poppedLayer.style.display = "block";
  }
}
