/* Author:

*/
$(document).ready(function(){

	$("html.no-touch #teaser, html.no-touch .menu").hover(
	  function () {
	    $(".menu").show();
	  },
	  function () {
	    $(".menu").hide();
	  }
	);
	
	$("html.touch #teaser, html.touch .menu").click(
	  function () {
	    $(".menu").toggle();
	  }
	);

});

$(function() {

	// if the function argument is given to overlay,
	// it is assumed to be the onBeforeLoad event listener
	$("a.launch[rel]").overlay({
		left: "center",
		top: "center",
		mask: {
			color: '#000000',
			opacity: 1.0
		},
		
		onBeforeLoad: function() {
			// grab wrapper element inside content
			var wrap = this.getOverlay().find(".contentWrap");

			// load the page specified in the trigger
			wrap.load(this.getTrigger().attr("href"));
		}

	});
/*
	
	$("html.touch #teaser").overlay({
		left: "center",
		top: "center",
		mask: {
			color: '#000000',
			opacity: 1.0
		},
		target: '#overlay-sm',
		
		onBeforeLoad: function() {
			// grab wrapper element inside content
			var wrap = this.getOverlay().find(".contentWrap");

			// load the page specified in the trigger
			wrap.load('/videos/trailer-low.html');
		}
	});
	
*/
});








