/*------------------------

  Required Functions
 
------------------------*/

    //needed for the contact links funtion to work properly
    function getDisplayFriendID() { return MySpace.ClientContext.DisplayFriendId; }
    
    
    //required for add this javascript
    addthis_offset_top      = 0;
    addthis_offset_top_low  = 0;
    addthis_offset_left     = 0;
    
/*------------------------

  SWF Object
 
------------------------*/

  //set the flashvars - make sure you don't put a comma on the last value
    var flashvars = {
      //name1: "hello",
      //name2: "world",
      //name3: "foobar"
    };
    
    //set the param name/value pairs for the SWF
    var params = {
      wmode: "transparent",
      allowScriptAccess: "always"          
    };
    
    //set the attributes of the HTML for the SWF
    var attributes = {
      id: "photosliderSWF",
      name: "photosliderSWF"
    };
    
    swfobject.embedSWF("http://creative.myspace.com/Client/Fox/PrisonBreak/Swf/photoslider.swf", "swfTarget", "435", "221", "9.0.0","http://creative.myspace.com/CodeLibrary/Global/Flash/expressInstall.swf", flashvars, params, attributes);




 
function loginCheck() { 
if (isLoggedIn>0)
{
  window.open('http://creative.myspacecdn.com/Client/Fox/TheSimpsons/contest/submit.html?login='+ isLoggedIn +'&age='+ age ,'submitWindow','width=960,height=700,scrollbars=1, resizable=1');  return false;
}
  else
 {
 window.alert("You must be logged-in");
 return false;
 }
}

function openGallery() {
     window.open('http://adsupport.myspace.com/index.cfm?fuseaction=advertiser.mediagallery&campaignid=1273', 'galleryWindow', 'width=960,height=700,scrollbars=1, resizable=1');  return false;
}