// vc_id = "$Id: agentWebPremiumHeader2.js 12254 2008-12-01 22:08:36Z jgiven $"
// code to render the flash object			
function renderFlash( dir, header, name, phone, email, id, login, firstName, lastName, headerLook ) {
	var SOB=new flashObj();
	SOB.flashFile = dir + "/flash/premium/header_look" + headerLook + ".swf?headerPhotoURL=" +
                        dir + "/PREMIUM/header_" + header + ".jpg&agentName=" + 
                        name + "&agentPhone=" + phone + "&agentEmail=" + 
                        email + "&agentMetaUser_ID=" + id + "&loggedIn=" + 
                        login + "&myWindFA=account.savedSearches"; 
	SOB.DenyIEdl = "TRUE";
	SOB.wmode = "Transparent";
	SOB.width = "630"; 
	SOB.height = "110"; 
	SOB.ID = "header_look2";
	SOB.FlashVer = 4;
	SOB.cabVersion = "4,0,0,0"; 
	SOB.altTxt = "<span class=serifheadtext_dark>" + firstName + " " + lastName + "</span>";
	document.write(SOB.render());
}
 
// code that takes flash fscommand and passes to JS
function header_look2_DoFSCommand(command, args) {
    if (command == "showMenu")
	{
     ypSlideOutMenu.showMenu(args);
    } 
	else if (command == "hideMenu")
	{
     ypSlideOutMenu.hideMenu(args);
    }
}
