var FlashVars = new Object();
FlashVars.General = new Object();
FlashVars.Broadband = new Object();
FlashVars.DialUp = new Object();
//var pubUrl="";
var devUrl="http://cdn.channel.aol.com/top11_ver2.0/";
FlashVars.General.showDate = showDate;
//alert(showDate);
FlashVars.General.startVideo = 11;
FlashVars.General.splashURL = "http://music.aol.com/top11/";
FlashVars.General.videoVoteText = "Vote The Worst Video";
//FlashVars.General.eventURL = "http://pdl.stream.aol.com/aol/us/aolmusic/top11/daily/"+showDate+"/";
FlashVars.General.eventURL = "http://pdl.stream.aol.com/aol/us/aolmusic/top11/daily/";
//FlashVars.General.eventURL = "components/events/";

//FlashVars.General.eventURL = "http://pdl.stream.aol.com/aol/us/aolmusic/top11/daily/20070406/"
//FlashVars.General.eventURL = "http://pdl.stream.aol.com/aol/us/aolmusic/top11/daily/20070406/"//+showDate+"/";
FlashVars.General.archiveBannerURL = devUrl+"advert_archive_banner_search.swf";
FlashVars.General.advertURL = devUrl+"coke_header_v4.swf";
FlashVars.General.advertImpressionURL = "http://pr.atwola.com/promoimp/100005695xx1074406475/aol"; //impression URL for coke logo
FlashVars.General.videoVoteIntroURL = FlashVars.General.eventURL + showDate +"_poll_video_intro_dl.swf";
FlashVars.General.videoVoteImageURL = devUrl+"poll_bumper_v1.swf";
FlashVars.General.videoVoteImageURL = pollgraphic;
FlashVars.General.videoVoteSwfURL = FlashVars.General.eventURL + showDate +"_poll_video"; //_01_dl.swf
FlashVars.General.themeName = defaultSkin;
//FlashVars.General.top100URL = devUrl+"top100.xml";
FlashVars.General.messagesURL = "messageboard.xml";
FlashVars.General.trackingAccount = "aolmus";
FlashVars.General.trackingAccountLinkEvents = "aolmus";
FlashVars.General.documentLocation = window.document.location;
FlashVars.General.fullScreenURL = "fullscreen.html";
FlashVars.General.inFrameURL = "inframe.html";
//FlashVars.General.dialUpURL = "inframe_dialup.html";
FlashVars.General.interstitialURL = "http://pdl.stream.aol.com/aol/us/aolmusic/top11/daily/"+FlashVars.General.showDate+"/";
//FlashVars.General.introURL = "http://pdl.stream.aol.com/aol/us/aolmusic/top11/daily/"+FlashVars.General.showDate+"/";
FlashVars.General.introURL = "http://pdl.stream.aol.com/aol/us/aolmusic/top11/daily/";

FlashVars.General.introText = "Welcome to AOL's Top 11";
FlashVars.General.outroText = "This is the end my friend";
FlashVars.General.cssURL = devUrl+"skins/";
FlashVars.General.cssConfig = "http://xml.channel.aol.com/xmlrepository/fetch.adp?id=169376";
FlashVars.General.localnavURL = "http://xml.channel.aol.com/xmlrepository/fetch.adp?id=169370";
FlashVars.General.cssIdentifier = "folder";
FlashVars.General.swfAssetsURL = devUrl;
FlashVars.General.fullScreenConfigURL = "http://xml.channel.aol.com/xmlrepository/fetch.adp?id=169369";
FlashVars.General.inFrameConfigURL = devUrl+"config_fullscreen.xml";
//FlashVars.General.dialUpConfigURL = devUrl+"config_fullscreen.xml";
//FlashVars.General.lightningcastURL = "http://web.lightningcast.com/servlets/getPlaylist?dcprefix=test&";//"http://qaweb2.lightningcast.com";
FlashVars.General.lightningcastURL = "http://web.lightningcast.com/servlets/getPlaylist?sss=0&";//"http://qaweb2.lightningcast.com";
FlashVars.General.lightningcastEnabled = true;
FlashVars.General.adCurtainEnabled = true;
FlashVars.General.adCurtainCollapsedEnabled = true;
FlashVars.General.videoTrackingURL="http://pdl.stream.aol.com/heartbeat.jpg";
FlashVars.General.loopPlaylist = false;
FlashVars.General.introOnLoop = false;

FlashVars.General.adURLdefault = "http://cdn.channel.aol.com/mus_top11components_3/top11_skin_track1x1.jpg";
FlashVars.General.adURLdefault2 = "http://cdn.channel.aol.com/mus_top11components_3/top11_skin_track1x1.jpg";
FlashVars.General.adURLvcast = "http://cdn.channel.aol.com/mus_top11components_3/top11_skin_track1x1.jpg";
FlashVars.General.adURLgraffiti = "http://cdn.channel.aol.com/mus_top11components_3/top11_skin_track1x1.jpg";
FlashVars.General.adURLtrippy = "http://cdn.channel.aol.com/mus_top11components_3/top11_skin_track1x1.jpg";
FlashVars.General.adURLroady = "http://cdn.channel.aol.com/mus_top11components_3/top11_skin_track1x1.jpg";
FlashVars.General.adURLspooky = "http://cdn.channel.aol.com/mus_top11components_3/top11_skin_track1x1.jpg";
FlashVars.General.adURLdodge = "http://cdn.channel.aol.com/mus_top11components_3/top11_skin_track1x1.jpg";

//Modified by Anibal for SKIN, HOST, PLAYLIST and PRELOADER tracking on 4.1.2008//

// VZW Sponsored Preloader Tracking URLs
FlashVars.General.vzwSponsorPreloaderImpressionTrackingLink = "http://pr.atwola.com/promoimp/100005695xx1079801363/aol"; 

// VZW Sponsored Host Call Out Tracking URLs
FlashVars.General.vzwSponsorHostImpressionTrackingLink = "http://pr.atwola.com/promoimp/100005695xx1079824070/aol";
FlashVars.General.vzwSponsorHostClickTrackingLink = "http://pr.atwola.com/promoclk/100005695x1151549765x1079824070/aol?redir=http:%2F%2Fad.doubleclick.net%2Fclick%3Bh%3Dv2%7C396C%7C0%7C0%7C%252a%7Cm%3B166585263%3B8%2D0%3B0%3B23012530%3B31%2D1%7C1%3B25647701%7C25665558%7C1%3B%3B%253fhttp:%2F%2Fsolutions.vzwshop.com%2Fsongid%2F";

// VZW Sponsored Skin Tracking URLs
FlashVars.General.vzwSponsorSkinImpressionTrackingLink = "http://pr.atwola.com/promoimp/100005695xx1079807754/aol";
FlashVars.General.vzwSponsorSkinClickTrackingLink = "http://pr.atwola.com/promoclk/100005695x1151449344x1079807754/aol?redir=http:%2F%2Fad.doubleclick.net%2Fclick%3Bh%3Dv2%7C396C%7C0%7C0%7C%252a%7Cr%3B166585263%3B6%2D0%3B0%3B23012536%3B31%2D1%7C1%3B25647827%7C25665684%7C1%3B%3B%253fhttp:%2F%2Fsolutions.vzwshop.com%2Fsongid%2F";

// VZW Sponsored Playlist - Create your own Show Tracking URLs
FlashVars.General.vzwSponsorPlaylistImpressionTrackingLink = "http://pr.atwola.com/promoimp/100005695xx1079801361/aol";
FlashVars.General.vzwSponsorPlaylistClickTrackingLink = "http://pr.atwola.com/promoclk/100005695x1151650100x1079801361/aol?redir=http:%2F%2Fad.doubleclick.net%2Fclick%3Bh%3Dv2%7C396C%7C0%7C0%7C%252a%7Cq%3B166585263%3B7%2D0%3B0%3B23012532%3B31%2D1%7C1%3B25647719%7C25665576%7C1%3B%3B%253fhttp:%2F%2Fsolutions.vzwshop.com%2Fsongid%2F";


// Degree Sponsored Host Call Out Tracking URLs
FlashVars.General.DegreeSponsorHostImpressionTrackingLink = "http://pr.atwola.com/promoimp/100005695xx1080091149/aol";
FlashVars.General.DegreeSponsorHostClickTrackingLink = "http://pr.atwola.com/promoclk/100005695x1158933508x1080091149/aol?redir=http:%2F%2Fad.doubleclick.net%2Fclk%3B197527508%3B25889725%3Bd";

// Degree Sponsored Skin Tracking URLs
FlashVars.General.DegreeSponsorSkinImpressionTrackingLink = "http://pr.atwola.com/promoimp/100005695xx1080058219/aol";
FlashVars.General.DegreeSponsorSkinClickTrackingLink = "http://pr.atwola.com/promoclk/100005695x1158721049x1080058219/aol?redir=http:%2F%2Fad.doubleclick.net%2Fclk%3B197527508%3B25889725%3Bd";


//till here~~


//AIM TRACKING TAGS
FlashVars.General.adURLaimImpress = "http://pr.atwola.com/promoimp/100005695xx1076002085/aol";

//Napster "Download" button Impression tracking link
FlashVars.General.napsterTracking = "http://pr.atwola.com/promoimp/100005695xx1077107423/aol";

//not used
FlashVars.General.adURLaimClick = "http://cdn.channel.aol.com/mus_top11components_3/top11_skin_track1x1.jpg";

///////////
FlashVars.General.speed = 2000;
FlashVars.General.surfacePoint = "us.aol.music.top11countdown";
FlashVars.General.franchise = "Music: Top 11 Videos";
FlashVars.General.resp = "aolxml";
FlashVars.General.playListGroup = "top11countdown";

FlashVars.General.bandwidthHigh = "400"; 
FlashVars.General.bandwidthNarrow = "100"; 

FlashVars.General.detectDialUp = false; // Enables or Disables the sniffing of dial-up

FlashVars.General.omnitureTracking = true; // Enables or Disables Omniture tracking
////////////////


FlashVars.General.archive_themeColor ="0xF49124";
FlashVars.General.archive_isPromo = "true";
FlashVars.General.archive_promoFile = "http://cdn.digitalcity.com/ch_musicarchive/promo_v3.swf";
FlashVars.General.archive_introPhoto = "http://cdn.digitalcity.com/flash_art/britney_0904_75.jpg";
FlashVars.General.archive_introButtonLabels = "Britney Spears,50 Cent,Green Day,Keith Urban";
FlashVars.General.archive_introArtistIDs = "320976,372609,69310,271584";
FlashVars.General.archive_drawerDefaultText = "Rollover the options above for more information";
FlashVars.General.archive_bottomLinksText = "Check out these similar artists in the AOL Music Archive:";
FlashVars.General.services_host = "http://xml.channel.aol.com";
FlashVars.General.services_port = "";
FlashVars.General.services_file = "mediaarchive/mediaarchive.adp";
FlashVars.General.browser_client = window.navigator.vendor;

//FlashVars.Broadband.playlistURL = "Top11Show_live_feed.xml";
//FlashVars.Broadband.playlistCollectionURL = "http://xml.channel.aol.com/xmlrepository/fetch.adp?id=156903";
FlashVars.Broadband.playlistCollectionURL = "http://xml.channel.aol.com/xmlrepository/fetch.adp?id=169375";
FlashVars.Broadband.playlistIDHTML = playlistID;
try{FlashVars.Broadband.featured = featured;}catch(e){}
//FlashVars.Broadband.playlistURL = "http://spinner.aol.com/musictop11/show.xml?id="+showDate;

//FlashVars.Broadband.altplaylistURL  =  "Top11Show.xml";
FlashVars.Broadband.tomatoAssetURL = "asset_tomato_hi.swf";
FlashVars.Broadband.bumperAssetURL = "asset_bumper_hi.swf";
FlashVars.Broadband.interstitialAssetURL = breakout_broadband;
FlashVars.Broadband.introAssetURL = "asset_intro_bumper.swf";
FlashVars.Broadband.featuredIntroAssetURL = "asset_featured_intro_bumper.swf";
FlashVars.Broadband.errorScreenAssetURL = "video_error_screen.swf";
FlashVars.Broadband.creditScreenURL = creditscreen_broadband;

//FlashVars.DialUp.playlistCollectionURL = "http://xml.channel.aol.com/xmlrepository/fetch.adp?id=156903";
//FlashVars.DialUp.playlistCollectionURL = "playlistcollection.xml";
//FlashVars.DialUp.playlistURL = "Top11Show_dialup.xml";
//FlashVars.DialUp.altplaylistURL  =  "Top11Show_dialup_light.xml";
//FlashVars.DialUp.tomatoAssetURL = "asset_tomato_dialup.swf";
//FlashVars.DialUp.bumperAssetURL = "asset_bumper_dialup.swf";
//FlashVars.DialUp.interstitialAssetURL = breakout_dialup;
//FlashVars.DialUp.introAssetURL = "asset_intro_bumper_dialup.swf";
//FlashVars.DialUp.errorScreenAssetURL = "video_error_screen.swf";
//FlashVars.DialUp.preloadGameURL ="comp_dialupgame.swf";
//FlashVars.DialUp.creditScreenURL = creditscreen_dialup;


FlashVars.snagCodeConfig = "http://xml.channel.aol.com/xmlrepository/fetch.adp?id=169367";
FlashVars.snagSettings = "90177";
FlashVars.snagSkin = "140959";
FlashVars.snagPreviewImage = "http://cdn.channel.aol.com/aolexd_widgets_vapi/preview_image_02.jpg"; 
FlashVars.snagAutoPlay = "0";

FlashVars.videoCommentConfig = "http://xml.channel.aol.com/xmlrepository/fetch.adp?id=169371";
FlashVars.videoCommentSnagConfig = "http://xml.channel.aol.com/xmlrepository/fetch.adp?id=169366";


//---------------------------------------------------------------------------------
//---------------------------------------------------------------------------------
function parseQuery(q_str){
  	 	var pairHalves;
  	 	var queryVars = {};
   		var N_V_pairs = q_str.split("&");
   		var l = N_V_pairs.length;
   		for(i=0; i<l; i++){
       		pairHalves = N_V_pairs[i].split("=");
       		queryVars[pairHalves[0]] = pairHalves[1];
   		}
   		return queryVars;
}

function addConditional(strVar, queryVars){
	var strValue = "";
	if(!queryVars[strVar]){
		strValue = "&"+strVar+"="+escape(FlashVars.General[strVar]);
	}
	return strValue;
}
function deepLinkStatus(strVar, queryVars){
	var strValue = "";
	if(!queryVars[strVar]){
		strValue = "&isDeepLink=false";
	} else {
		strValue = "&isDeepLink=true";
	}
	return strValue;
}

function buildQuery(){
	var strQuery = "";
	var queryVars = "";
	strQuery = new String(parent.window.location.search);
	strQuery = strQuery.substr(1);
	queryVars = parseQuery (strQuery);
	strQuery += "&fullScreenURL="+escape(FlashVars.General.fullScreenURL);
	strQuery += "&inFrameURL="+escape(FlashVars.General.inFrameURL);
	//strQuery += "&dialUpURL="+escape(FlashVars.General.dialUpURL);
	strQuery += "&documentLocation="+escape(FlashVars.General.documentLocation);
	strQuery += "&trackingAccount="+FlashVars.General.trackingAccount;
	strQuery += "&trackingAccountLinkEvents="+FlashVars.General.trackingAccountLinkEvents;
	strQuery += "&cssURL="+escape(FlashVars.General.cssURL);
	strQuery += "&cssConfig="+escape(FlashVars.General.cssConfig);
	strQuery += "&skinGraphicURL="+escape(FlashVars.General.skinGraphicURL);
	strQuery += "&localnavURL="+escape(FlashVars.General.localnavURL);
	strQuery += "&swfAssetsURL="+escape(FlashVars.General.swfAssetsURL);
	strQuery += "&archive_themeColor="+escape(FlashVars.General.archive_themeColor);
	strQuery += "&archive_isPromo="+escape(FlashVars.General.archive_isPromo);
	strQuery += "&archive_promoFile="+escape(FlashVars.General.archive_promoFile);
	strQuery += "&archive_introPhoto="+escape(FlashVars.General.archive_introPhoto);
	strQuery += "&archive_introButtonLabels="+escape(FlashVars.General.archive_introButtonLabels);
	strQuery += "&archive_introArtistIDs="+escape(FlashVars.General.archive_introArtistIDs);
	strQuery += "&archive_drawerDefaultText="+escape(FlashVars.General.archive_drawerDefaultText);
	strQuery += "&services_host="+escape(FlashVars.General.services_host);
	strQuery += "&services_port="+escape(FlashVars.General.services_port);
	strQuery += "&services_file="+escape(FlashVars.General.services_file);
	strQuery += "&browser_client="+escape(FlashVars.General.browser_client);
	strQuery += "&archive_bottomLinksText="+escape(FlashVars.General.archive_bottomLinksText );
	strQuery += "&splashURL="+escape(FlashVars.General.splashURL);
	strQuery += "&lightningcastURL="+escape(FlashVars.General.lightningcastURL);
	strQuery += "&lightningcastEnabled="+escape(FlashVars.General.lightningcastEnabled);
	strQuery += "&adCurtainEnabled="+escape(FlashVars.General.adCurtainEnabled);
	strQuery += "&adCurtainCollapsedEnabled="+escape(FlashVars.General.adCurtainCollapsedEnabled);
	strQuery += "&videoTrackingURL="+escape(FlashVars.General.videoTrackingURL);
	strQuery += "&adURLdefault="+escape(FlashVars.General.adURLdefault);
	strQuery += "&adURLdefault2="+escape(FlashVars.General.adURLdefault2);
	strQuery += "&adURLvcast="+escape(FlashVars.General.adURLvcast);
	strQuery += "&adURLgraffiti="+escape(FlashVars.General.adURLgraffiti);
	strQuery += "&adURLtrippy="+escape(FlashVars.General.adURLtrippy);
	strQuery += "&adURLroady="+escape(FlashVars.General.adURLroady);
	strQuery += "&adURLspooky="+escape(FlashVars.General.adURLspooky);
	strQuery += "&adURLdodge="+escape(FlashVars.General.adURLdodge);
	strQuery += "&adURLaimImpress="+escape(FlashVars.General.adURLaimImpress);
	strQuery += "&vzwSponsorSkinImpressionTrackingLink="+escape(FlashVars.General.vzwSponsorSkinImpressionTrackingLink);
	strQuery += "&vzwSponsorSkinClickTrackingLink="+escape(FlashVars.General.vzwSponsorSkinClickTrackingLink);	
	strQuery += "&vzwSponsorHostImpressionTrackingLink="+escape(FlashVars.General.vzwSponsorHostImpressionTrackingLink);
	strQuery += "&vzwSponsorHostClickTrackingLink="+escape(FlashVars.General.vzwSponsorHostClickTrackingLink);
	strQuery += "&vzwSponsorPreloaderImpressionTrackingLink="+escape(FlashVars.General.vzwSponsorPreloaderImpressionTrackingLink);
	strQuery += "&DegreeSponsorSkinImpressionTrackingLink="+escape(FlashVars.General.DegreeSponsorSkinImpressionTrackingLink);
	strQuery += "&DegreeSponsorSkinClickTrackingLink="+escape(FlashVars.General.DegreeSponsorSkinClickTrackingLink);	
	strQuery += "&DegreeSponsorHostImpressionTrackingLink="+escape(FlashVars.General.DegreeSponsorHostImpressionTrackingLink);
	strQuery += "&DegreeSponsorHostClickTrackingLink="+escape(FlashVars.General.DegreeSponsorHostClickTrackingLink);
	strQuery += "&napsterTracking="+escape(FlashVars.General.napsterTracking);
	strQuery += "&adURLaimClick="+escape(FlashVars.General.adURLaimClick);
	strQuery += "&speed="+escape(FlashVars.General.speed);
	strQuery += "&surfacePoint="+escape(FlashVars.General.surfacePoint);
	strQuery += "&franchise="+escape(FlashVars.General.franchise);
	strQuery += "&resp="+escape(FlashVars.General.resp);
	strQuery += "&playListGroup="+escape(FlashVars.General.playListGroup);
	strQuery += "&bandwidthHigh="+escape(FlashVars.General.bandwidthHigh);
	strQuery += "&bandwidthNarrow="+escape(FlashVars.General.bandwidthNarrow);
	strQuery += "&defaultConnectionSpeed="+escape(FlashVars.General.defaultConnectionSpeed);
	//strQuery += "&detectDialUp="+escape(FlashVars.General.detectDialUp);
	strQuery += "&omnitureTracking="+escape(FlashVars.General.omnitureTracking);


	
	if (!boolSplash){
		//alert("boolSplash Loaded");
		strQuery += deepLinkStatus("startVideo", queryVars);
		strQuery += deepLinkStatus("featured", queryVars);	
		strQuery += addConditional("startVideo", queryVars);
		strQuery += addConditional("featured", queryVars);
		strQuery += "&showDate="+escape(showDate);
		strQuery += "&advertURL="+escape(FlashVars.General.advertURL);
		strQuery += "&advertImpressionURL="+escape(FlashVars.General.advertImpressionURL);
		strQuery += "&archiveBannerURL="+escape(FlashVars.General.archiveBannerURL);
		strQuery += "&messagesURL="+escape(FlashVars.General.messagesURL);
		strQuery += "&strTomatoURL="+escape(tomatoVoteURL);
		strQuery += "&videoVoteText="+escape(FlashVars.General.videoVoteText);
		strQuery += "&eventURL="+escape(FlashVars.General.eventURL);
		strQuery += "&eventParam="+escape(FlashVars.General.eventParam);
		strQuery += "&lightningcastURL="+escape(FlashVars.General.lightningcastURL);
		strQuery += "&interstitialURL="+escape(FlashVars.General.interstitialURL);
		strQuery += "&introURL="+escape(FlashVars.General.introURL);
		strQuery += "&introText="+escape(FlashVars.General.introText);
		strQuery += "&outroText="+escape(FlashVars.General.outroText);
		strQuery += "&cssIdentifier="+escape(FlashVars.General.cssIdentifier);
		strQuery += "&loopPlaylist="+escape(FlashVars.General.loopPlaylist);
		strQuery += "&introOnLoop="+escape(FlashVars.General.introOnLoop);
		if(boolDialup){
			//alert("boolDialUp Loaded");
			strQuery += "&configURL="+escape(FlashVars.General.dialUpConfigURL);
			strQuery += "&themeName=default_dialup";
			strQuery += "&screenVersion=inframe";
			strQuery += "&connectionType=dialup";
			strQuery += "&playlistCollectionURL="+escape(FlashVars.DialUp.playlistCollectionURL);
			strQuery += "&playlistIDHTML="+escape(FlashVars.DialUp.playlistIDHTML);
			strQuery += "&playlistURL="+escape(FlashVars.DialUp.playlistURL);
			strQuery += "&tomatoAssetURL="+escape(FlashVars.DialUp.tomatoAssetURL);
			strQuery += "&bumperAssetURL="+escape(FlashVars.DialUp.bumperAssetURL);
			strQuery += "&interstitialAssetURL="+escape(FlashVars.DialUp.interstitialAssetURL);
			strQuery += "&introAssetURL="+escape(FlashVars.DialUp.introAssetURL);
			strQuery += "&featuredIntroAssetURL="+escape(FlashVars.DialUp.featuredIntroAssetURL);
			strQuery += "&errorScreenAssetURL="+escape(FlashVars.DialUp.errorScreenAssetURL);
			strQuery += "&preloadGameURL="+escape(FlashVars.DialUp.preloadGameURL); 
			strQuery += "&creditScreenURL="+escape(FlashVars.DialUp.creditScreenURL);
			strQuery += "&altplaylistURL="+escape(FlashVars.DialUp.altplaylistURL);
		} else {
			//alert("else Loaded");
			if (boolInframe){
				//alert("boolInframe Loaded");
				strQuery += "&screenVersion=inframe";
				strQuery += "&configURL="+escape(FlashVars.General.inFrameConfigURL);
			} else {
				//alert("boolFullscreen Loaded");
				strQuery += "&screenVersion=fullscreen";
				strQuery += "&configURL="+escape(FlashVars.General.fullScreenConfigURL);
			}
			strQuery += addConditional("themeName", queryVars);
			strQuery += "&connectionType=broadband";
			strQuery += "&playlistCollectionURL="+escape(FlashVars.Broadband.playlistCollectionURL);
			strQuery += "&playlistIDHTML="+escape(FlashVars.Broadband.playlistIDHTML);
			strQuery += "&featured="+escape(FlashVars.Broadband.featured);
			strQuery += "&playlistURL="+escape(FlashVars.Broadband.playlistURL);
			strQuery += "&tomatoAssetURL="+escape(FlashVars.Broadband.tomatoAssetURL);
			strQuery += "&bumperAssetURL="+escape(FlashVars.Broadband.bumperAssetURL);
			strQuery += "&interstitialAssetURL="+escape(FlashVars.Broadband.interstitialAssetURL);
			strQuery += "&introAssetURL="+escape(FlashVars.Broadband.introAssetURL);
			strQuery += "&featuredIntroAssetURL="+escape(FlashVars.Broadband.featuredIntroAssetURL);
			strQuery += "&errorScreenAssetURL="+escape(FlashVars.Broadband.errorScreenAssetURL);
			strQuery += "&videoVoteIntroURL="+escape(FlashVars.General.videoVoteIntroURL);
			strQuery += "&videoVoteImageURL="+escape(FlashVars.General.videoVoteImageURL);
			strQuery += "&pollgraphicURL="+escape(FlashVars.General.pollgraphicURL);
			strQuery += "&videoVoteSwfURL="+escape(FlashVars.General.videoVoteSwfURL);
			strQuery += "&videoVoteURL="+escape(videoVoteURL);
			//strQuery += "&top100URL="+escape(FlashVars.General.top100URL);
			strQuery += "&creditScreenURL="+escape(FlashVars.Broadband.creditScreenURL);
			strQuery += "&altplaylistURL="+escape(FlashVars.Broadband.altplaylistURL);
			
		}
	} else {
		//alert("boolSplash is not Loaded");
		strQuery += "&splashHostSwfURL="+escape(splashHostSwfURL);
		strQuery += "&splashHostText="+escape(splashHostText);
	}

	strQuery += "&snagCodeConfig="+escape(FlashVars.snagCodeConfig);
	strQuery += "&snagSettings="+escape(FlashVars.snagSettings);
	strQuery += "&snagSkin="+escape(FlashVars.snagSkin);
	strQuery += "&snagPreviewImage="+escape(FlashVars.snagPreviewImage);
	strQuery += "&snagAutoPlay="+escape(FlashVars.snagAutoPlay);

	strQuery += "&videoCommentConfig="+escape(FlashVars.videoCommentConfig);
	strQuery += "&videoCommentSnagConfig="+escape(FlashVars.videoCommentSnagConfig);


	return strQuery;
}

function renderFlash(strVars){
	var numFheight;
	var numFwidth;
	var strID = "browser";
//	var strSwf = "comp_browser-1.0.swf";
	var strSwf = devUrl+"comp_browser-1.0.swf";	// For Publishing
//The new size is 980x714
	if (boolFullscreen){
		//alert("boolFullScreen")
		numFwidth = '980'//924;
		numFheight = '714'//730;
	} 
	else {
		numFwidth = '980';
		numFheight = '714';
	}
/*
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+numFwidth+'" height="'+numFheight+'" id="'+strID+'" align="rigth">');
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<param name="movie" value="'+strSwf+'" />');
	document.write('<param name="FlashVars" value="'+strVars+'"/>');
	document.write('<param name="quality" value="best" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
	document.write('<param name="scale" value="noscale" />');
	document.write('<param name="salign" value = "tl" />');
	document.write('<embed src="'+strSwf+'" swLiveConnect="true" FlashVars="'+strVars+'"  scale="noscale" salign="tl"  quality="best" bgcolor="#ffffff" width="'+numFwidth+'" height="'+numFheight+'" name="browser" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
	*/


	// New Code added by Bala/Piyush on 27/09/2007 for Flash Detection / Express Install
	//var tag = new SWFTag("top11_2_0", strSwf, numFwidth, numFheight,'8,0,0,0');
	var tag = new SWFTag('top11_2_0', strSwf, numFwidth, numFheight, SWFTag.V8);
	tag.setAllowScriptAccess(SWFTag.ALWAYS)
	tag.setWmode('opaque');
	tag.setQuality('best')
	tag.setBgColor('#000000')
	//tag.setScale('noscale')
	//tag.setAlign('t')
	tag.addFlashVars(strVars);
	tag.addFlashVars(document.location.search.substring(1));
	tag.write(document);
}

renderFlash(buildQuery());