//// JavaScript Document
//		$(document).ready(function(){
//		//$("img[rel]").overlay({ 
//		$("#hm-B7").overlay({ 
// 
//        expose: '#000', 
//        effect: 'apple',

////		absolute: true,
// 
//        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")); 
//        }
//			});
//		});
//		

		$(function() { 
            if ($(".hm-B7teaser3").length > 0) {
            // if the function argument is given to overlay, 
            // it is assumed to be the onBeforeLoad event listener 
/*            $("#hm-B7").overlay({ */
			$(".hm-B7teaser3").overlay({ 
//			expose: { 
//				color: '#000', 
//				loadSpeed: 200, 
//				opacity: 0.9 
//			    }, 
         
                expose: '#000', 
                effect: 'apple',
         
                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");
		}
            }); 
         }
        });
