// JavaScript Document

//$(document).ready(function() {
//	
//	function megaHoverOver(){
//		$(this).find("#primaryNav .inner .nav ul ul").stop().fadeTo('fast', 1).show();
//	}
//	
//	function megaHoverOut(){ 
//	  $(this).find("#primaryNav .inner .nav ul ul").stop().fadeTo('fast', 0, function() {
//		  $(this).hide(); 
//	  });
//	}
//
//
//	var config = {    
//		 sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)    
//		 interval: 100, // number = milliseconds for onMouseOver polling interval    
//		 over: megaHoverOver, // function = onMouseOver callback (REQUIRED)    
//		 timeout: 500, // number = milliseconds delay before onMouseOut    
//		 out: megaHoverOut // function = onMouseOut callback (REQUIRED)    
//	};
//
//	$("#primaryNav .inner .nav ul ul").css({'opacity':'0'});
//	$("#primaryNav .inner .nav ul li").hoverIntent(config);
//
//});

$(function(){

    $("#primaryNav .inner .nav ul li").hover(function(){
    
        $(this).addClass("hover");
        $('ul:first',this).css('visibility', 'visible');
    
    }, function(){
    
        $(this).removeClass("hover");
        $('ul:first',this).css('visibility', 'hidden');
    
    });
    
    $("primaryNav .inner .nav  ul li ul li:has(ul)").find("a:first").append(" &raquo; ");
	$('input[id$=WeddingAnniversaryTextBox]').parent().addClass('hidden');

});


$(function(){

    $(".nav ul li").hover(function(){
    
        $(this).addClass("hover");
        $('ul:first',this).css('visibility', 'visible');
    
    }, function(){
    
        $(this).removeClass("hover");
        $('ul:first',this).css('visibility', 'hidden');
    
    });
    
    $(".nav ul li ul li:has(ul)").find("a:first").append(" &raquo; ");

});

var flashvars = {};
var params = {
  menu: "false",
  wmode: "transparent"
};
var attributes = {
  id: "flash",
  name: "flash",
  title: ""
};

swfobject.embedSWF("/images/new/flashplaceholder.swf", "flash", "820", "206", "9.0.0","expressInstall.swf", flashvars, params, attributes);

Shadowbox.init();

// initialize the jquery code
 $(document).ready(function(){
//close all the content divs on page load
$('.mover1').hide();
$('#toggle1').click(function(){
// by calling sibling, we can use same div for all demos
$(this).siblings('.mover1').slideToggle(500);
});

$('.mover2').hide();
$('#toggle2').click(function(){
// by calling sibling, we can use same div for all demos
$(this).siblings('.mover2').slideToggle(500);
});

$('.mover3').hide();
$('#toggle3').click(function(){
// by calling sibling, we can use same div for all demos
$(this).siblings('.mover3').slideToggle(500);
});

$('.mover4').hide();
$('#toggle4').click(function(){
// by calling sibling, we can use same div for all demos
$(this).siblings('.mover4').slideToggle(500);
});

$('.mover5').hide();
$('#toggle5').click(function(){
// by calling sibling, we can use same div for all demos
$(this).siblings('.mover5').slideToggle(500);
});

$('.mover6').hide();
$('#toggle6').click(function(){
// by calling sibling, we can use same div for all demos
$(this).siblings('.mover6').slideToggle(500);
});

$('.mover7').hide();
$('#toggle7').click(function(){
// by calling sibling, we can use same div for all demos
$(this).siblings('.mover7').slideToggle(500);
});

$('.mover8').hide();
$('#toggle8').click(function(){
// by calling sibling, we can use same div for all demos
$(this).siblings('.mover8').slideToggle(500);
});

$('.mover9').hide();
$('#toggle9').click(function(){
// by calling sibling, we can use same div for all demos
$(this).siblings('.mover9').slideToggle(500);
});

$('.mover10').hide();
$('#toggle10').click(function(){
// by calling sibling, we can use same div for all demos
$(this).siblings('.mover10').slideToggle(500);
});

$('.mover11').hide();
$('#toggle11').click(function(){
// by calling sibling, we can use same div for all demos
$(this).siblings('.mover11').slideToggle(500);
});

$('.mover12').hide();
$('#toggle12').click(function(){
// by calling sibling, we can use same div for all demos
$(this).siblings('.mover12').slideToggle(500);
});

});
