// ------------------------------------+
//    MAIN FLASHVARS OBJECT            |
// ------------------------------------+
//	These are the FlashVars for the main swf:
this.SWF_VARS = {};
this.SWF_VARS.sponsor_url = "";
this.SWF_VARS.header_url = "http://cdn.channel.aol.com/cg_vegas/headers_120105.swf";
this.SWF_VARS.tab0_url = "http://cdn.channel.aol.com/cg_vegas/tab0_122105.html";
this.SWF_VARS.tab1_url = "http://cdn.channel.aol.com/cg_vegas/tab1_122105.html";
this.SWF_VARS.tab2_url = "http://cdn.channel.aol.com/cg_vegas/tab1_122105.html";
this.SWF_VARS.defaultTab = "0";
this.SWF_VARS.defaultItem = "0";
//
// --------------------------------------------------------------+
//	GET QUERY STRING VARIABLES AND PASS THEM TO FLASH            |
// --------------------------------------------------------------+
if(window.location.search != null && window.location.search.length)
{
	var searchString = window.location.search.substring(1);
		searchString = searchString.replace(/%26/g, "&");
	var searchList = searchString.split("&");
	for(var i = 0; i < searchList.length; i++){
		var temp = searchList[i].split("=");
		this.SWF_VARS[temp[0]] = temp[1];
	}
}
//
// ------------------------------------+
//   BUILD FLASH MOVIE                 |
// ------------------------------------+
this.SWF_LOCATION = "http://cdn.channel.aol.com/cg_vegas/tabs_120105.swf";
this.SWF_NAME = "tabs";
this.SWF_WIDTH = 756;
this.SWF_HEIGHT = 115;
this.SWF_VERSION = "7,0,0,0";
this.SWF_BGCOLOR = "white";
//
this.SWF_Factory.makeSWF(this.SWF_VERSION, this.SWF_WIDTH, this.SWF_HEIGHT, this.SWF_NAME, this.SWF_LOCATION, this.SWF_BGCOLOR, this.SWF_VARS, null);
//
// ------------------------------------+
//   DEEP LINKING                      |
// ------------------------------------+
document.write('<iframe id="mbFrame" width="756" height="485" src="" marginheight="0" marginwidth="0" hspace="0" vspace="0" frameborder="0" scrolling="no">');
document.write('</iframe>');
//
var defaultItem = this.SWF_VARS.defaultItem.length? "?defaultItem="+this.SWF_VARS.defaultItem : "";
var defaultPage = (this.SWF_VARS["tab"+ this.SWF_VARS.defaultTab+"_url"])+ defaultItem;
var frm = document.getElementById("mbFrame");
	frm.src = defaultPage;
