/** 
 * @fileoverview This File contains all of the Functions
 * and static variables used by the BHN web sites. It is grouped into
 * several different types of tiles which will be listed.
 *
 * @author BGT Partners
 * @version 1.1 
 */


/* Uncomment the line below to enable JS error capture */
//onerror=handleErr;

function unLoadfunction() 
{ 
 //Nothing happens
}

function Loadfunction() 
{ 
fontSizerRead(0,'px');
//if div is cfl or tampa - pop survey
	//if (division[0] == "cfl" || division[0] == "tampabay") 
	//{
		//	HomePageLoadfunction();
	//} // end if (division[0] == "cfl" || division[0] == "tampabay") 

//call function that dynamically creates KANA chat links
//function exists in [division.js] file each division can have customized functionality
if ((document.getElementById("chatAgentAvailability_divWatch")) || (document.getElementById("chatAgentAvailability_divTalk")) || (document.getElementById("chatAgentAvailability_divSurf")) || (document.getElementById("chatAgentAvailability_divSidebarImage")) || (document.getElementById("chatAgentAvailability_divSidebar")))
    {
        createChatLinks();
    }
}

function createCookieSurvey(name,value,days)
				{
					if (days)
					{
						var date = new Date();
						date.setTime(date.getTime()+(days*24*60*60*1000));
						var expires = "; expires="+date.toGMTString();
					}
					else var expires = "";
					document.cookie = name+"="+value+expires+"; path=/";
				}
			
function readCookieSurvey(name)
				{
					var nameEQ = name + "=";
					var ca = document.cookie.split(';');
					for(var i=0;i < ca.length;i++)
					{
						var c = ca[i];
						while (c.charAt(0)==' ') c = c.substring(1,c.length);
						if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
					}
					return null;
				}

function HomePageLoadfunction() 
{ 				

				var checkit = readCookieSurvey("brighthouse");
	
				if (checkit != null) // cookie is set, do nothing
				{
					//do nothing
					//alert("Cookie is set!");
				}
				else
				{
					createCookieSurvey("brighthouse","yes",30);
					checkit = readCookieSurvey("brighthouse");      // Read the cookie just created to verify cookies are not blocked.
					if (checkit != null)						// Cookies are not blocked
					{
						window.open('/survey.aspx','','width=400,height=300').blur();		
						window.focus();
					}
				}				
}//end load function


var popUp;
var loginForm = -1;
var submitted = false;	


/**
 *  Static Object containing all of the choices for the Need Help tool
 * @type object
 * @member NeedHelpNS
 */
 /**  Need rewrite for multiple divisions espanol **/

function readyCustCare()
{
    if(!(division[0] == "michigan"))
   {
   
  	var selHelp = document.getElementById("prim1");
	//console.log("selHelp", selHelp);
	//console.log("cantonment", cantonment_needHelpTop);
	var helpTop = eval(division[0] + "_needHelpTop");
	//console.log("helpTop", helpTop);
	//alert(helpTop+" "+helpTop.length);
	for(var i=0; i < helpTop.length; i++)
	{
	    selHelp.options[i].text = helpTop[i];
	}
	//alert("Length test: "+helpTop.length + " " + selHelp.length + "\n" + (selHelp.length > helpTop.length));
	if(selHelp.length > helpTop.length)
	{
		selHelp.options[selHelp.length-1] = null;
		//console.info("selHelp", selHelp);
	}
	
	// See if the user has been at this page before
	try {
	  var prim = readCookie1('prim1');
	  
	  // If the column b cookie isn't null, build the column b content  
	  if(prim != null) {
	    // Fill in the appropriate help box information
	    getUserTopics(prim, top);
	  }
	  
	} catch(e) {
	  // If cookies don't exist, don't do anything
	}
	
   }
}


/**
 * This function gets the user selected options from their previous visit
 */
 function getUserTopics(prim, top) {
   
   var theForm = document.frmNeedHelpTool;
   
   theForm.prim1.selectedIndex = prim;
   
   set_topics(theForm);   

 }
						 						 
/**
 * This function gets the first selection from the Need Help tool
 * and sets the second selection. Updates based on selection.
 * @param {object} f The form in which the selection comes from.
 * @member NeedHelpNS
 */

/*This part is for NEED Help in Customer care*/
/**  Need rewrite for multiple divisions espanol **/
function set_topics(f) {
	var sel  = -1;
	var incr  = 0;
	var topics = ""
	
	if(division[0] === "espanol")
	{
		topics = s_topics_es;		
	}
	else
	{
		topics = s_topics;
	}

    var theInputs = document.getElementsByTagName("select");
	var theformBak = null;
	try
	{
		var test1 = f.topic.options;
	}
	catch(e) {
			theformBak = f;
			f = theInputs;
		}
	if(theformBak)
	{
		f = theformBak;
	}
	//var f = document.getElementById('forminfo');
   
	var top = f.topic.options;

	if (sel < 0)
	 sel = top.selectedIndex;
	
	var primary =document.getElementById('prim1').options; 
	
	if(primary.selectedIndex < 0)
	 	return false;

    // Check if it's the espanol site and unescape the accents accordingly
	var a = topics[primary[primary.selectedIndex].value]; 

	for (i=0; i<a.length;++i)
	{
		var s = a[i].indexOf('/');
		var val = a[i].substr(0,s);
		top[i+incr] = new Option(a[i].substr(s+1),val);
	}

	top.length = a.length+incr;
	top.selectedIndex=sel<top.length?sel:0;
} 

/**
 * This function gets the second selection from the Need Help tool
 * and opens a new browsers or change the location of the current
 * page for the selection. Provides error checking in that
 * it displays an alert box when the second selection hasn’t been made.
 * @param {object} f The form in which the selection comes from.
 * @member NeedHelpNS
 */
/**  Need rewrite for multiple divisions and espanol **/
function goSection(f) {
	 
    
	//var f = document.getElementById('forminfo');
        	
	var theInputs = document.getElementsByTagName("select");
	var theformBak = null, urlObj = null;
	
	try
	{
		var test1 = f.topic.options;
	}
	catch(e) {
		theformBak = f;
		f = theInputs;
	}
	if(theformBak)
	{
		f = theformBak;
	}
	
	var top = f.topic.options;

	var prim1 =document.getElementById('prim1').options;
	var topic =document.getElementById('topic').options;
	
	var a = null;
	if(topic.selectedIndex < 0 || topic.selectedIndex > topic.length)
	{
		
	}
	else
	{
		a = topic[topic.selectedIndex].value;
		
		// Delete old selection cookies
		eraseCookie('prim1');
		
		// Create selection cookies here
		createSelectionCookie('prim1', document.getElementById('prim1').selectedIndex, 1);
	}
    

	if(division[0] === "espanol")
	{
		if (prim1.selectedIndex < 0)     // no selection yet   
		{  
			alert("Por favor haga su seleccion por lo que es");
			return false;
		} 
		if (topic.selectedIndex < 0)     // no selection yet   
		{  
			alert("Por favor haga su seleccion por lo que esta interesado");  
			return false;
		} 
		   
	 
		if (a == null || a == "0" || a < "!")     
		{  
			alert("Por favor haga su seleccion por lo que esta interesado");  
			return false;
		} 


	}
	else
	{
		if (prim1.selectedIndex < 0)     // no selection yet   
		{  
			alert("Please make a selection for what you are");
			return false;
		} 
		if (topic.selectedIndex < 0)     // no selection yet   
		{  
			alert("Please make a selection for what you are interested in");  
			return false;
		} 
		   
		if (a == null || a == "0" || a < "!")     
		{  
			alert("Please make a selection for what you are interested in");  
			return false;
		} 

	}
	
	urlObj = createUrl(a);
	 
	 //bf for dev & debugging only
    //alert("goSection: " + a + "\nurl: " + url); 

	// bf        
	if (urlObj != null)
	{
	    // Store the form selections in a cookie here
	    //  [code]Put prim1, prim1.selected index, topic, topic.selectedIndex in cookie[/code]
	
		if(urlObj[1] == "_self")
		{
		    document.location = urlObj[0];
		}
		else if(urlObj[1] == "_blank")
		{
			window.open(urlObj[0],"mywindow","width=800,height=600,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes");
		}
	}
	else
	{
		 document.location = document.location; //bf just reload for now
	}
	return false;

}

function createUrl (a)
{
	
	var divObj = eval(division[0]+"_needHelp");
	var row = divObj[a];
	var output = new Array(2);
	var url = "http://";
	var target = new Array("_self", "_blank");
	
	if(row["standard"] == true)
	{
		url += division[0] + strHNSuffix + row["url"];
	}
	else 
	{
		url = row["url"];
	}
	
	output[0] = url;
	if(row["newWindow"] == true)
	{
		output[1] = target[1];
	}
	else
	{
		output[1] = target[0];
	}
	
	return output;
}

var loadedFile = false;
function callback(sText) {
			loadedFile = true;
        }
/*Here end the NEED HELP*/

/*
	Location	Phase	Application Audit	Taxonomy	Current URL
1	espanol	One			http://espanol.cfl.brighthouse.com/
2	Wellington	One			http://sfl.brighthouse.com/
3	Birmingham	One	Complete	Complete	http://birmingham.brighthouse.com/
8	Indiana	One	Complete	Complete	http://indiana.brighthouse.com/DC_home.asp?GotFlash=1
4	Panhandle	Two	Complete	Complete	"http://cantonment.brighthouse.com/  http://defuniaksprings.brighthouse.com/"
5	Elmore	Two	Complete	Complete	http://elmore.brighthouse.com/
6	Eufaula	Two	Complete	Complete	http://eufaula.brighthouse.com/
7	Bakersfield	Two			http://bakersfield.brighthouse.com/
9	Michigan	Two			http://michigan.brighthouse.com/
*/

/***     
 * This section is for setting up functions which are division specific.
 * It takes the URL and splits it into its various parts.
 * Then the function is added to the onload handler. 
 * According to the DOM model it attaches it to the onload handler.
 */
var urlPath = document.URL;
var loc = urlPath.search("://");
var urlArray = urlPath.substring(loc+3, urlPath.length).split("/");
var divisionNames = new Array("brighthouse","cfl","tampabay", "espanol", "sfl", "birmingham", "indiana", "panhandle", "elmore", "eufaula", "bakersfield", "michigan");
var searchCodes = new Array("corp", "cfl", "tampa", "SCFL", "sfl", "bir", "ind", "pan", "elm", "euf", "bak", "mich");
var divisionFound = false;

	for(var i=1; i < urlArray.length; i++)
	{
		urlArray[i] = urlArray[i].replace(/_/g, " ");
	}

	var division = urlArray[0].split(".");

	for(var i=0; i<division.length; i++) {
	    division[i] = division[i].toLowerCase();
	}

	if(division[0] == "www" || division[0] == "cms")
		division.shift();
		
	for(var i=0; i < divisionNames.length; i++)
	{
		if(divisionNames[i] == division[0])
		divisionFound = true;
	}
	if(!divisionFound)
		division[0] = divisionNames[0];
	

var iIndex1 = urlArray[0].indexOf(division[0]) + division[0].length;
var strHNSuffix = urlArray[0].substring(iIndex1, urlArray[0].length);

//alert(urlArray[1] + " " + urlArray[2]);

if (window.addEventListener){
	if((urlArray[1] == "default.aspx") || (urlArray[1] == "corporate.aspx") || (urlArray[1] == "") )
	{
		window.addEventListener('load', readyFlash, false );
	}
	/*
	else if((urlArray[1] == "order online") && (urlArray[2] == "default.aspx") && (division[0] == "tampabay"))
	{
		window.addEventListener('load', readyOOPage, false);
	}
	*/
	else if((urlArray[1].toLowerCase() == "contact us") &&  (division[0] == "cfl") && (urlArray[2] == "default.aspx"))
	{
		window.addEventListener('load', readyContactUs, false);
	}
	else if((division[0] == "brighthouse") && (urlArray[1].toLowerCase() == "contact us") && (urlArray[2] == "default.aspx"))
	{
		window.addEventListener('load', readyContactUs, false);
		window.addEventListener('load', fixContactUs, false);
	}
	else if((urlArray[1] == "customer care") && (urlArray[2] == "default.aspx"))
	{
		window.addEventListener('load', readyCustCare, false);
	}
	else if(urlArray[1] != "workarea")
	{
		window.addEventListener('load', openMenu, false);
	}
	
	if(document.getElementsByName("qtbutton") && (division[0] == "espanol"))
	{
		window.addEventListener('load', readySearch, false);
	}
	
}
else {
	if((urlArray[1] == "default.aspx") || (urlArray[1] == "corporate.aspx") || (urlArray[1] == "") )
	{
		window.attachEvent('onload', readyFlash);
	}
	else if((division[0] == "brighthouse")&& (urlArray[1].toLowerCase() == "contact us") && (urlArray[2] == "default.aspx"))
	{
		window.attachEvent('onload', fixContactUs);
	}
	
	else if((urlArray[1] == "customer care") && (urlArray[2] == "default.aspx"))
	{
		window.attachEvent('onload', readyCustCare);
	}
	
	else if(urlArray[1] != "workarea")
	{
		window.attachEvent('onload',openMenu);
	}
	
	if(document.getElementsByName("qtbutton") && (division[0] == "espanol"))
	{
		window.attachEvent('onload', readySearch);
	}
	
}


/* Function to submit search forms to proper divisions */
/**
 * This function sets the search values biased on the division. Then it submits the form.
 * @member SearchNS
 * @param {object} f The form object which sets the correct variables so the search is done for the proper subsidiary
 * @returns A Boolean of true
 * @type Boolean
 * @depreciated Will be removed
 */
 /**
function doSearch(f){
    var strHN = division[0];
    
    if (strHN == "cfl") { f.col.value = "cfl"; f.style.value="cfl"; }
    else if (strHN == "brighthouse") { f.col.value = "corp"; f.style.value="corp"; }
    else if (strHN == "tampabay") { f.col.value = "tampa"; f.style.value="tampa"; }

    f.submit();

    return true;
}
 */
/**
 * This function creates the values needed to do a search. Then it sets the url of the page to that location.
 * Has event canceling code to stop the bubble from moving up the stack.
 * @member SearchNS
 * @param {string} va The string value you are searching for.
 * @param {object} evt The string value you are searching for.
 * @returns nothing
 */
 /**  Need rewrite for multiple divisions espanol **/
 
 
 
function doSearch1(va, evt){
	var i=0;    
    var straction="/site_map/search.aspx?qt="   
    evt = (evt) ? evt : ((window.event) ? window.event : "");   
	
	/*
    var strHN = division[0];
    if (strHN == "cfl") { straction = straction + va + "&col=cfl&style=cfl";}
    else if (strHN == "brighthouse") { straction= straction + va + "&col=corp&style=corp"; }
    else if (strHN == "tampabay") { straction= straction + va + "&col=tampa&style=tampa";}
	*/
    //http://cfl.bh1.bgtpartners.com/search/searchresults.aspx?qt=Search&col=cfl&style=cfl
    for(i=0; i < divisionNames.length; i++)
	{
		if(divisionNames[i] === division[0])
			break;
	}
	if(i > divisionNames.length)	// failsafe
		i=0;
	
	if(isIE5)
		{
		 evt.returnValue=false;
		}
		else
		{
		 evt.preventDefault();
		}
	
	//alert(straction + " " + i + " " + searchCodes[i]);
	//straction += va + "&col="+ searchCodes[i] + "&style="+ searchCodes[i];
	//New Way to do search
	

    
    if (divisionNames[i] === "brighthouse") 
	{ 
	straction += va + "&col=corp&style=corp&qp=site:brighthouse.com"; 
	}
	else if (divisionNames[i] === "espanol")
	{ 
	straction += va + "&col=vcflspan&style=corp&qp=site:espanol.cfl.brighthouse.com"; 
	}
    else 
	{
    straction += va + "&col=vcorp&style=vcorp&qp=site:"+ divisionNames[i] + ".brighthouse.com";
    }	
	  
    document.location=straction;
    
    
    //alert(f.action);
    //f.submit();
    return;
} 

//Function to cancel Page Manager block locations edits requests
/**
 * This function sets the url of the Page Manager to that location with the commands to stop the edit request.
 * @member PageManagerNS
 * @param {string} w The string value needed to cancel the request.
 */
function pmCancel(w) {
    self.location = "/workarea/edit.aspx?" + w;
}

 /**
 * This function sets the url the forgot password and new user according to the division it is in.
 * According to the drop down select box.
 * @member MyAccountNS
 * @param {object} w The event used to set the values for the links in the My Account System
 * @depreciated Methinks the links are hard coded because the dropdown associated with them is missing.
 */

function showLoginLinks(w) {

    var objNewUser = document.getElementById("newuser");
    var objForgot = document.getElementById("forgot");
    switch (division[0]) {
        case "cfl":
        {   if (w=="diPhForm")
            {   objNewUser.href="http://wpm-a.voip.bhntampa.com/Ebill/SilverStream/Pages/fsEndUserLogin.html";
                objNewUser.target="_blank";
                objForgot.href="http://wpm-a.voip.bhntampa.com/Ebill/SilverStream/Pages/fsEndUserLogin.html"; 
                objForgot.target="_blank";
			}
           // else
           // {   objNewUser.href="https://secure.cfl.mybrighthouse.com/wsc/Controller/NewRegistration";
            //    objNewUser.target="_blank";
           //     objForgot.href="https://secure.cfl.mybrighthouse.com/wsc/Controller/PasswordReminder"; 
            //    objForgot.target="_blank";
			//}
            
        }
		break
        case "tampabay":
        {   if (w=="diPhFormT")
            {   objNewUser.href="https://digitalphonestatement.mybrighthouse.com/Ebill/SilverStream/Pages/fsEndUserLogin.html";
                objNewUser.target="_blank";
                objForgot.href="https://digitalphonestatement.mybrighthouse.com/Ebill/SilverStream/Pages/fsEndUserLogin.html"; 
                objForgot.target="_blank";
			}
            else
            {   objNewUser.href="https://brths.convergentcare.com/brths/validateSelfCareCustomer.do?action=initialize";
                objNewUser.target="_blank";
                objForgot.href="https://brths.convergentcare.com/brths/resetpassword.do?action=getAccountNumber"; 
                objForgot.target="_blank";
			}
            
        }
		break
		case "michigan":
        {   if (w=="diPhFormT")
            {   objNewUser.href="https://digitalphonestatement.mybrighthouse.com/Ebill/SilverStream/Pages/fsEndUserLogin.html";
                objNewUser.target="_blank";
                objForgot.href="https://digitalphonestatement.mybrighthouse.com/Ebill/SilverStream/Pages/fsEndUserLogin.html"; 
                objForgot.target="_blank";
			}
            else
            {   objNewUser.href="https://brths.convergentcare.com/brths/validateSelfCareCustomer.do?action=initialize";
                objNewUser.target="_blank";
                objForgot.href="https://brths.convergentcare.com/brths/resetpassword.do?action=getAccountNumber"; 
                objForgot.target="_blank";
			}
            
        }
		break
    }
}

/**
 * SWFObject v1.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 * **SWFObject is the SWF embed script formerly known as FlashObject. The name was changed for
 *   legal reasons.
 */
if(typeof deconcept=="undefined"){var deconcept=new Object();}
if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}
if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}
deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){
if(!document.createElement||!document.getElementById){return;}
this.DETECT_KEY=_b?_b:"detectflash";
this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);
this.params=new Object();
this.variables=new Object();
this.attributes=new Array();

if(_1){this.setAttribute("swf",_1);}
if(id){this.setAttribute("id",id);}
if(w){this.setAttribute("width",w);}
if(h){this.setAttribute("height",h);}
if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}
this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion(this.getAttribute("version"),_7);
if(c){this.addParam("bgcolor",c);}
var q=_8?_8:"high";
this.addParam("quality",q);
this.setAttribute("useExpressInstall",_7);
this.setAttribute("doExpressInstall",false);
var _d=(_9)?_9:window.location;
this.setAttribute("xiRedirectUrl",_d);
this.setAttribute("redirectUrl","");
if(_a){this.setAttribute("redirectUrl",_a);}};
deconcept.SWFObject.prototype={setAttribute:function(_e,_f){
this.attributes[_e]=_f;
},getAttribute:function(_10){
return this.attributes[_10];
},addParam:function(_11,_12){
this.params[_11]=_12;
},getParams:function(){
return this.params;
},addVariable:function(_13,_14){
this.variables[_13]=_14;
},getVariable:function(_15){
return this.variables[_15];
},getVariables:function(){
return this.variables;
},getVariablePairs:function(){
var _16=new Array();
var key;
var _18=this.getVariables();
for(key in _18){
_16.push(key+"="+_18[key]);}
return _16;
},getSWFHTML:function(){
var _19="";
if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");}
_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1a=this.getParams();
for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}
var _1c=this.getVariablePairs().join("&");
if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}
_19+="/>";
}else{
if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _1d=this.getParams();
for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}
_19+="</object>";}
return _19;
},write:function(_20){
if(this.getAttribute("useExpressInstall")){
var _21=new deconcept.PlayerVersion([6,0,65]);
if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
this.setAttribute("doExpressInstall",true);
this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
document.title=document.title.slice(0,47)+" - Flash Player Installation";
this.addVariable("MMdoctitle",document.title);}}
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
var n=(typeof _20=="string")?document.getElementById(_20):_20;
n.innerHTML=this.getSWFHTML();
return true;
}else{
if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}
return false;}};
deconcept.SWFObjectUtil.getPlayerVersion=function(_23,_24){
var _25=new deconcept.PlayerVersion([0,0,0]);
if(navigator.plugins&&navigator.mimeTypes.length){
var x=navigator.plugins["Shockwave Flash"];
if(x&&x.description){_25=new deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}
}else{try{
var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
for(var i=3;axo!=null;i++){
axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);
_25=new deconcept.PlayerVersion([i,0,0]);}}
catch(e){}
if(_23&&_25.major>_23.major){return _25;}
if(!_23||((_23.minor!=0||_23.rev!=0)&&_25.major==_23.major)||_25.major!=6||_24){
try{_25=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}
catch(e){}}}
return _25;};
deconcept.PlayerVersion=function(_29){
this.major=parseInt(_29[0])!=null?parseInt(_29[0]):0;
this.minor=parseInt(_29[1])||0;
this.rev=parseInt(_29[2])||0;};
deconcept.PlayerVersion.prototype.versionIsValid=function(fv){
if(this.major<fv.major){return false;}
if(this.major>fv.major){return true;}
if(this.minor<fv.minor){return false;}
if(this.minor>fv.minor){return true;}
if(this.rev<fv.rev){return false;}return true;};
deconcept.util={getRequestParameter:function(_2b){
var q=document.location.search||document.location.hash;
if(q){
var _2d=q.indexOf(_2b+"=");
var _2e=(q.indexOf("&",_2d)>-1)?q.indexOf("&",_2d):q.length;
if(q.length>1&&_2d>-1){
return q.substring(q.indexOf("=",_2d)+1,_2e);
}}return "";}};
if(Array.prototype.push==null){
Array.prototype.push=function(_2f){
this[this.length]=_2f;
return this.length;};}
var getQueryParamValue=deconcept.util.getRequestParameter;
var FlashObject=deconcept.SWFObject; // for backwards compatibility
var SWFObject=deconcept.SWFObject;
// -->