<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->

//Validate MinOrder Function
function validateminorder(inputval,expectedval) {
   if (inputval < expectedval) {
      alert('You must enter a value greater than or equal to '+ expectedval);
	  return false;
      } else {return true;}
   }
//-->

//Email Link
var user;
var domain;
var suffix;

function jemail(user, domain, suffix){

document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + user + '@' + domain + '.' + suffix + '</a>');
}
//-->
//  End -->


var newwindow;
function poptastic(url)
{
	newwindow=window.open(url,'name','height=650,width=800,left=100,top=00,resizable=no,scrollbars=no,toolbar=no,status=yes');
	if (window.focus) {newwindow.focus()}
}

//Swaps Images 
function switchImg(name,image){
document.images[name].src = image;
}
//


//Displays extra options
function ExtraOptions (it, box) {
  var vis = (box.checked) ? "visible" : "hidden";
  document.getElementById(it).style.visibility = vis;
}
//

//Framebuster
if (top.location != self.location && (top.location.hostname.toLowerCase().indexOf("mybabyshowerfavors") < 0)) top.location=self.location;
//if (top.location != self.location)top.location=self.location;

function switchTab(selectedLayer) {
	document.getElementById('layer-1').style.display = "none";
	document.getElementById('layer-2').style.display = "none";
	document.getElementById('layer-3').style.display = "none";
	document.getElementById('layer-' + selectedLayer).style.display = "block";
	document.getElementById('tab-1').className = 'tab-off';
	document.getElementById('tab-2').className = 'tab-off';
	document.getElementById('tab-3').className = 'tab-off';
	document.getElementById('tab-' + selectedLayer).className = 'tab-on';
}

function rollover(img_name, img_src) {
	document[img_name].src = img_src;
}

