    //set the flashvars - make sure you don't put a comma on the last value
    var vid_flashvars = {
      xmlPath: "http://stage-creative.myspacecdn.com/design/myspace/bluRay/videos.xml"
    };
    
    //set the param name/value pairs for the SWF
    var vid_params = {
      wmode: "transparent",
      allowScriptAccess: "always",
      allowNetworking: "true",
      allowFullScreen: "false",
      swfLiveConnect: "true"
    };
    
    //set the attributes of the HTML for the SWF
    var vid_attributes = {
      id: "vidBrowser",
      name: "vidBrowser"
    };
    
    swfobject.embedSWF("http://stage-creative.myspacecdn.com/design/myspace/bluRay/swf/vidBrowser_new.swf", "vidBrowserSWF", "480", "250", "9.0.0","http://creative.myspace.com/CodeLibrary/Global/Flash/expressInstall.swf", vid_flashvars, vid_params, vid_attributes);



    //set the flashvars - make sure you don't put a comma on the last value
    var tabs_flashvars = {
      xmlPath: "http://creative.myspacecdn.com/design/myspace/bluRay/flashTabs.xml"
    };
    
    //set the param name/value pairs for the SWF
    var tabs_params = {
      wmode: "transparent",
      allowScriptAccess: "always",
      allowNetworking: "true",
      allowFullScreen: "false",
      swfLiveConnect: "true"
    };
    
    //set the attributes of the HTML for the SWF
    var tabs_attributes = {
      id: "flashTabs",
      name: "flashTabs"
    };
    
    swfobject.embedSWF("http://creative.myspacecdn.com/design/myspace/bluRay/swf/flashTabs1.swf", "flashTabsSWF", "847", "209", "9.0.0","http://creative.myspace.com/CodeLibrary/Global/Flash/expressInstall.swf", tabs_flashvars, tabs_params, tabs_attributes);


/*------------------------

  Required Functions
 
------------------------*/

//needed for the contact links function to work properly
function getDisplayFriendID() { return MySpace.ClientContext.DisplayFriendId; }


/*------------------------

  Custom Functions
 
------------------------*/

function playVideo(vidID,vidSynopsis,vidTitle,vid480,vid720,vid1080){
	
var embed480 = "<embed width=\'57\' height=\'27\' target=\'QuickTimePlayer\' href=\'"+vid480+"\' controller=\'false\' pluginspage=\'http://www.apple.com/quicktime/download/\' src=\'http://creative.myspacecdn.com/design/myspace/bluRay/480p.mov\' hspace=\'0\' vspace=\'0\' border=\'0\' margin=\'0\'/>"

var embed720 = "<embed width=\'57\' height=\'27\' target=\'QuickTimePlayer\' href=\'"+vid720+"\' controller=\'false\' pluginspage=\'http://www.apple.com/quicktime/download/\' src=\'http://creative.myspacecdn.com/design/myspace/bluRay/720p.mov\' hspace=\'0\' vspace=\'0\' border=\'0\' margin=\'0\'/>"

var embed1080 = "<embed width=\'57\' height=\'27\' target=\'QuickTimePlayer\' href=\'"+vid1080+"\' controller=\'false\' pluginspage=\'http://www.apple.com/quicktime/download/\' src=\'http://creative.myspacecdn.com/design/myspace/bluRay/1080p.mov\' hspace=\'0\' vspace=\'0\' border=\'0\' margin=\'0\'/>"
	
document.getElementById('vidButtons').innerHTML = embed480 + embed720 + embed1080;	
document.getElementById('vidTitle').innerHTML = vidTitle;
document.getElementById('vidSynopsis').innerHTML = vidSynopsis;
document.getElementById('vidPlayer').innerHTML = '<embed src="http://mediaservices.myspace.com/services/media/embed.aspx/m='+vidID+',t=1,mt=video,ap=1,searchID=,primarycolor=,secondarycolor=" 	allowFullScreen="true" allowScriptAccess="always" wmode="transparent" type="application/x-shockwave-flash" style="width:848px;height:507px" />';

}

