var flashvars = {};
	flashvars.xml_url = "/_local/xml/main_streaming.xml";
	
	var params = {};
	params.menu = "false";
	params.bgcolor = "#FFFFFF";
	params.wmode = "transparent";
	params.allowscriptaccess = "always";
	params.allowfullscreen = "true";
	
	var attributes = {};
	attributes.id = "flashHolder";
	attributes.name = "flashHolder";
	
	/* swfobject.embedSWF(swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj) */
	swfobject.embedSWF("/_local/flash/preloadMain.swf", attributes.id, "242px", "74px", "9.0.45","/_local/js/swfobject/expressinstall.swf", flashvars, params, attributes);
	swfobject.registerObject("links", "9.04.5", "/_local/flash/preloadMain.swf"); // register the swf with the correct div id
	
	// External Interface
	 var jsReady = false;
	 function isReady() {
		 return jsReady;
	 }
	 function pageInit() {
		 jsReady = true;
	 }
	 function thisMovie(movieName) {
		 if (navigator.appName.indexOf("Microsoft") != -1) {
			 return window[movieName];
		 } else {
			 return document[movieName];
		 }
	 }
	 function jsToFlashPlayTrack(value) {
		 //thisMovie("content").jsToFlashPlayTrack(value);
		  var swf = swfobject.getObjectById("flashHolder");
		  swf.jsToFlashPlayTrack(value);
	 }
	 function jsToFlashPauseTrack() {
		 //thisMovie("content").jsToFlashPauseTrack();
		  var swf = swfobject.getObjectById("flashHolder");
		  swf.jsToFlashPauseTrack();
	 }
	 function jsToFlashUnPauseTrack() {
		 //thisMovie("content").jsToFlashUnPauseTrack();
		  var swf = swfobject.getObjectById("flashHolder");
		  swf.jsToFlashUnPauseTrack();
	 }
	 function flashToJsTrackUpdate(value) {
		 // replace this with method to update the highlight in the playlist
		 //alert("Current track = " + value);
	 }


$(function(){
    Shadowbox.init({
         handleOversize:     "resize",
    	 displayNav:         false,
         handleUnsupported:  "remove",
         autoplayMovies:     false
    });

	function openMailingList() {
        Shadowbox.open({
                player:     'iframe',
                title:      'Join Mary&#8217;s Mailing List',
				content:    'https://pages.email.interscope.com/maryjblige',
                height:     500,
                width:      600
        });
	}
	//openMailingList();
	
	$("#btn-mailinglist").click(function(e) {
		openMailingList();
		e.preventDefault();
	});
});

    $(function(){
            $(".secondary #s_follow h2").html('Follow MJB');
            $(".secondary #s_follow h2").show();
    });
	
	
