$(document).ready(function() {
$('.hm-Banner-Cycle').cycle({
		cleartype: 1, // enable cleartype corrections 
//		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		fx: 'cover', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
//		cleartype: true,
		timeout: 7000,		//milliseconds between slide transitions (0 to disable auto advance) 
		pause: true		//true to enable "pause on hover" 
});

$("#accordion").accordion({header: "h3", autoHeight: false});



		$(function() { 
            if ($(".hm-Overlay").length > 0) {
            // if the function argument is given to overlay, 
            // it is assumed to be the onBeforeLoad event listener 
/*            $("#hm-B7").overlay({ */
			$(".hm-Overlay").overlay({ 
//			expose: { 
//				color: '#000', 
//				loadSpeed: 200, 
//				opacity: 0.9 
//			    }, 
         
                expose: '#000', 
				effect: 'apple',
//			   effect: 'default',
         
                onBeforeLoad: function() { 
         
                    // grab wrapper element inside content 
                    var wrap = this.getContent().find(".contentWrap"); 
         
                    // load the page specified in the trigger 
                    wrap.load(this.getTrigger().attr("href") + "?lm=demo"); 
                 },
				 
//         onClose: function(content) { 
		          onClose: function() { 
		// var wrap = this.getContent().find("#teaser3-holder"); 
            //player.unload(); 
//			$("#teaser3-holder").unload();
//			wrap.unload();
//			wrap.unload();
//	          wrap.unload(this.getTrigger().attr("href")); 
//	          wrap.unload(); 
			  $("#teaser3-holder").remove();

//			alert ("hi");
		}
            }); 
         }
        });
});
