/*
Event.observe(window, "load", function() {

    
  $('giftboxprod').observe('mouseover', 'ShowPreview("imgpreview",1)');

    $('giftboxprod').observe('mouseout', 'ShowPreview("imgpreview",0)');
		
		
function ShowPicture(id,Source) {
if (Source=="1"){
if (document.layers) document.layers[''+id+''].visibility = "show"
else if (document.all) document.all[''+id+''].style.visibility = "visible"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"
}
else
if (Source=="0"){
if (document.layers) document.layers[''+id+''].visibility = "hide"
else if (document.all) document.all[''+id+''].style.visibility = "hidden"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"
}
}		


});

*/
	
Event.observe(window, "load", function() {	
	
	Event.observe('specials-signup', 'click', function(event) {
    // ...
     showSignup();
      });
	  
	  	Event.observe('submit-email', 'click', function(event) {
    // ...
          showThanks();
      });

});

	
function showSignup() {
  //var win = new Window({className: "mac_os_x", title: "Sample", width:200, height:150, destroyOnClose: true, recenterAuto:false}); 
  //win.getContent().innerHTML="<div id='mini-cart'><h3>1 Item added to your cart</h3><h4></h1></div>"; 
  //win.showCenter(); 
	contentWin = new Window({className: "mac_os_x", maximizable: false, resizable: false, hideEffect:Element.hide, showEffect:Element.show, width:430, height:540, destroyOnClose: true}); 
	contentWin.setContent('specials-box', true, true); 
	contentWin.showCenter('left'); 
	// Set up a windows observer, check ou debug window to get messages 
	myObserver = { 
		onDestroy: function(eventName, win) { 
			if (win == contentWin) { 	
			contentWin = null; 
			$('specials-box').hide();
			Windows.removeObserver(this); 
		} 
		   // debug(eventName + " on " + win.getId()); 
		    } 
	    } 
     Windows.addObserver(myObserver); 

  }


function showSignupL() {
  //var win = new Window({className: "mac_os_x", title: "Sample", width:200, height:150, destroyOnClose: true, recenterAuto:false}); 
  //win.getContent().innerHTML="<div id='mini-cart'><h3>1 Item added to your cart</h3><h4></h1></div>"; 
  //win.showCenter(); 
	contentWin = new Window({className: "mac_os_x", maximizable: false, resizable: false, hideEffect:Element.hide, showEffect:Element.show, width:583, height:540, destroyOnClose: true}); 
	contentWin.setContent('specials-boxl', true, true); 
	contentWin.showCenter('left'); 
	// Set up a windows observer, check ou debug window to get messages 
	myObserver = { 
		onDestroy: function(eventName, win) { 
			if (win == contentWin) { 	
			contentWin = null; 
			$('specials-boxl').hide();
			Windows.removeObserver(this); 
		} 
		   // debug(eventName + " on " + win.getId()); 
		    } 
	    } 
     Windows.addObserver(myObserver); 

  }

function showThanks() {
  //var win = new Window({className: "mac_os_x", title: "Sample", width:200, height:150, destroyOnClose: true, recenterAuto:false}); 
  //win.getContent().innerHTML="<div id='mini-cart'><h3>1 Item added to your cart</h3><h4></h1></div>"; 
  //win.showCenter(); 
	contentWin = new Window({className: "mac_os_x", maximizable: false, resizable: false, hideEffect:Element.hide, showEffect:Element.show, width:430, height:540, destroyOnClose: true}); 
	contentWin.setContent('thanks-box', true, true); 
	contentWin.showCenter('left'); 
	// Set up a windows observer, check ou debug window to get messages 
	myObserver = { 
		onDestroy: function(eventName, win) { 
			if (win == contentWin) { 	
			contentWin = null; 
			$('thanks-box').hide();
			Windows.removeObserver(this); 
		} 
		   // debug(eventName + " on " + win.getId()); 
		    } 
	    } 
     Windows.addObserver(myObserver); 

  }


function showThanksL() {
  //var win = new Window({className: "mac_os_x", title: "Sample", width:200, height:150, destroyOnClose: true, recenterAuto:false}); 
  //win.getContent().innerHTML="<div id='mini-cart'><h3>1 Item added to your cart</h3><h4></h1></div>"; 
  //win.showCenter(); 
	contentWin = new Window({className: "mac_os_x", maximizable: false, resizable: false, hideEffect:Element.hide, showEffect:Element.show, width:583, height:540, destroyOnClose: true}); 
	contentWin.setContent('thanks-boxl', true, true); 
	contentWin.showCenter('left'); 
	// Set up a windows observer, check ou debug window to get messages 
	myObserver = { 
		onDestroy: function(eventName, win) { 
			if (win == contentWin) { 	
			contentWin = null; 
			$('thanks-boxl').hide();
			Windows.removeObserver(this); 
		} 
		   // debug(eventName + " on " + win.getId()); 
		    } 
	    } 
     Windows.addObserver(myObserver); 

  }