// Redirect used for the Search button on Home Page and Sub Pages
function pageredirect(url) {

    var docurl = document.URL.toLowerCase();

    if ((docurl.indexOf('www-dev', 0) > -1) || (docurl.indexOf('por-portlets-dev', 0) > -1)) docurl = "http://www-dev.safeco.com";
    else if ((docurl.indexOf('www-tst', 0) > -1) || (docurl.indexOf('por-portlets-tst', 0) > -1)) docurl = "http://www-tst.safeco.com";
    else if ((docurl.indexOf('www-stg', 0) > -1) || (docurl.indexOf('por-portlets-stg', 0) > -1)) docurl = "http://www-stg.safeco.com";
    else if ((docurl.indexOf('www.', 0) > -1) || (docurl.indexOf('por-portlets-prd', 0) > -1)) docurl = "http://www.safeco.com";

    
    window.location = docurl + url;
  }  
  
// Set the current bar image, depending on if the content is 1, 2 or 3 columns
   function setBarImage(topCommId, currCommId) {
	
        var url = document.URL.toLowerCase();

	var arr2Columns = new Array("207;245", "207;256", "207;258", "207;263", "208;229", "213;362;searchbystatelist", "221;222");
	var arr1Column = new Array("213;362;agentsearchresults");

	var ElemtopbarImage = document.getElementById("topbarImage");	
	var imageFile = "GreenBarProduct_3Cols.gif";


	if (ElemtopbarImage) {
	
             for (i = 0; i < arr2Columns.length; i++) {
		var pair = arr2Columns[i];
		var pieces = pair.split(";");
		if (pieces.length == 2) {
		  if ((topCommId == pieces[0]) && (currCommId == pieces[1]))
			imageFile = "GreenBarProduct_2Cols.gif";
		}
		if (pieces.length == 3) {
  		  if ((topCommId == pieces[0]) && (currCommId == pieces[1]) && (url.indexOf(pieces[2],0)>-1))
			imageFile = "GreenBarProduct_2Cols.gif";
		}
	     }
	     
             for (i = 0; i < arr1Column.length; i++) {
		var pair = arr1Column[i];
		var pieces = pair.split(";");
		if (pieces.length == 2) {
		  if ((topCommId == pieces[0]) && (currCommId == pieces[1]))
			imageFile = "GreenBarProduct.gif";
		}
		if (pieces.length == 3) {
  		  if ((topCommId == pieces[0]) && (currCommId == pieces[1]) && (url.indexOf(pieces[2],0)>-1))
			imageFile = "GreenBarProduct.gif";
		}
	     }
         }
        
	ElemtopbarImage.src = ElemtopbarImage.src + imageFile;
  }
  
//Cross-Browser function that hides the bottom portlet border for the last portlet on the page -- JLR 5/16/08
function dropLastPortletBorder() {
    if (document.getElementById("columnTwo")) { //get columnTwo if available
        rtPNodes = document.getElementById("columnTwo").childNodes; //get all tables within the column
        var lastPortletID = "noportlets"; //set default value
        for (var i = 0; i < rtPNodes.length; i++) {
            if (rtPNodes[i].tagName == "TABLE") { //only look at tables
                if (rtPNodes[i].id.indexOf("portlet") > -1) {
                    lastPortletID = rtPNodes[i].id; //keep re-writing last ID value as we move through the **portlet** tables
                }
            }
        }
        if (lastPortletID != "noportlets") {  //only if we got a portlet ID value from above
            lastPortlet = document.getElementById(lastPortletID); //THE last portlet table ID
            portletBodyRow = lastPortlet.lastChild.rows.length - 1; // the last row for that portlet | checks for supressed headers
            lastPortlet.lastChild.rows[portletBodyRow].firstChild.firstChild.style.border = "none";  //remove border from customapptext div
        }
    }
}
function URLEncode(clearString) {
    var output = '';
    var x = 0;
    clearString = clearString.toString();
    var regex = /(^[a-zA-Z0-9_.]*)/;
    while (x < clearString.length) {
        var match = regex.exec(clearString.substr(x));
        if (match != null && match.length > 1 && match[1] != '') {
            output += match[1];
            x += match[1].length;
        } else {
            if (clearString[x] == ' ')
                output += '+';
            else {
                var charCode = clearString.charCodeAt(x);
                var hexVal = charCode.toString(16);
                output += '%' + (hexVal.length < 2 ? '0' : '') + hexVal.toUpperCase();
            }
            x++;
        }
    }
    return output;
}
function doSafecoSearch(searchVal, searchPostURL) {
    if (searchVal == "") {
        alert("Please enter a valid search term");
    } else {
        window.location.href = searchPostURL + "?SiteSearchQuery=" + URLEncode(searchVal);
    }
}
function setrandomheaders(imgElem) {
    var safecoheaders = new Array("plumtree/portal/custom/SafecoCom/image/homepage/OneStepHead_1.jpg", "plumtree/portal/custom/SafecoCom/image/homepage/OneStepHead_2.jpg", "plumtree/portal/custom/SafecoCom/image/homepage/OneStepHead_3.jpg");
    if (null != safecoheaders) {
        //Get a random number between 0 and safecoheaders.length - 1
        var ranNum = Math.round(Math.random() * (safecoheaders.length - 1));
        //Find the image and set the src properly
        if (imgElem != null)
            imgElem.src = PTIncluder.imageServerURL + safecoheaders[ranNum];
    }
}
/*######################################## begin plugins.js ########################################*/
var agt = navigator.userAgent.toLowerCase();
var ie = (agt.indexOf("msie") != -1);
var ns = (navigator.appName.indexOf("Netscape") != -1);
var win = ((agt.indexOf("win") != -1) || (agt.indexOf("32bit") != -1));
var mac = (agt.indexOf("mac") != -1);

if (ie && win) {
    pluginlist = detectIE("Adobe.SVGCtl", "SVG Viewer") + detectIE("SWCtl.SWCtl.1", "Shockwave Director") + detectIE("ShockwaveFlash.ShockwaveFlash.1", "Shockwave Flash") + detectIE("rmocx.RealPlayer G2 Control.1", "RealPlayer") + detectIE("QuickTimeCheckObject.QuickTimeCheck.1", "QuickTime") + detectIE("MediaPlayer.MediaPlayer.1", "Windows Media Player") + detectIE("PDF.PdfCtrl.5", "Acrobat Reader");
}

if (ns || !win) {
    nse = "";
    for (var i = 0; i < navigator.mimeTypes.length; i++) {
        if (navigator.mimeTypes[i] != null && navigator.mimeTypes[i].type != null) {
            var s = navigator.mimeTypes[i].type
            nse += String(s).toLowerCase();
        }
    }
    pluginlist = detectNS("image/svg-xml", "SVG Viewer") + detectNS("application/x-director", "Shockwave Director") + detectNS("application/x-shockwave-flash", "Shockwave Flash") + detectNS("audio/x-pn-realaudio-plugin", "RealPlayer") + detectNS("video/quicktime", "QuickTime") + detectNS("application/x-mplayer2", "Windows Media Player") + detectNS("application/pdf", "Acrobat Reader");
}

function detectIE(ClassID, name) {

    if (name.indexOf("Flash") != -1) {

        for (var i = 11; i > 0; i--) {
            try {
                var flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");

                return name + ",";
            }
            catch (e) {
            }
        }

        return "";
    }
    else {
        result = false; document.write('<SCRIPT LANGUAGE=VBScript>\n on error resume next \n result = IsObject(CreateObject("' + ClassID + '"))</SCRIPT>\n'); if (result) return name + ','; else return '';
    }
}

function detectNS(ClassID, name) {
    n = ""; if (nse.indexOf(ClassID) != -1) if (navigator.mimeTypes[ClassID].enabledPlugin != null) n = name + ","; return n;
}

pluginlist += navigator.javaEnabled() ? "Java," : "";
if (pluginlist.length > 0) pluginlist = pluginlist.substring(0, pluginlist.length - 1);
/*######################################## end plugins.js ########################################*/
/*######################################## begin pages topbar ########################################*/

function buildTopImageBar(containerid, myXML, topID, currID) {
	var x = myXML.documentElement.childNodes;
    	var outStr = "";
	var strMatch = "false";
    	for (var k = 0; k < x.length; k++) {
	  if (strMatch == "false") //stop looping once we have a match
	  {
		if (x[k].nodeType == 1) {  //Process only element (nodeType 1) nodes - not comments           	
			//alert("xxxPageid=" + x[k].getAttribute("pageID") + " currid=" + currID);
            		if (x[k].getAttribute("pageID") == currID) {
                		
				outStr = "<div><img id='imgTopBar' src='" + PTIncluder.imageServerURL + x[k].getAttribute("img") + "'><img id='imgTopBarRight' src='" + PTIncluder.imageServerURL + x[k].getAttribute("img_right") + "'></div>"
				break;
			}
			else 
			{
				if (topID == x[k].getAttribute("pageID"))  //if no grandchildren match, check to see if the current page is in this community. If so, display default image and break for loop.
								           //this is needed for pages that do not exist in the xml file, e.g Site Map
				{
					//alert("topid=" + topID + " firstchild=" + x[k].getAttribute("pageID"));
					outStr = "<div><img id='imgTopBar' src='" + PTIncluder.imageServerURL + x[k].getAttribute("img") + "'><img id='imgTopBarRight' src='" + PTIncluder.imageServerURL + x[k].getAttribute("img_right") + "'></div>"
				}   
		

				var y = x[k].childNodes;
                		for (var j = 0; j < y.length; j++) {
                    			if (y[j].nodeType == 1) {
                        			if (y[j].getAttribute("pageID") == currID) {  //alert("xxPageid=" + y[j].getAttribute("pageID") + " currid=" + currID);              		
							outStr = "<div><img id='imgTopBar' src='" + PTIncluder.imageServerURL + y[j].getAttribute("img") + "'><img id='imgTopBarRight' src='" + PTIncluder.imageServerURL + y[j].getAttribute("img_right") + "'></div>"
							strMatch = "true";
							break;
						}
						else
						{
							if (y[j].getAttribute("title") == "Business") //Business is a special case because it is not in the same community as the other products
							{
								outStr = "<div><img id='imgTopBar' src='" + PTIncluder.imageServerURL + y[j].getAttribute("img") + "'><img id='imgTopBarRight' src='" + PTIncluder.imageServerURL + y[j].getAttribute("img_right") + "'></div>"
							}
						}

					}
				}     
				                  			

			}
			

		}
	  }
	}
	document.getElementById(containerid).innerHTML = outStr;
}

/*######################################## end pages topbar ########################################*/
/*######################################## begin noFlashSubNav.js ########################################*/
function buildSubNav(navcontainerid, myXML, topID, currID) {
    var x = myXML.documentElement.childNodes;
    var outStr = "";
    for (var k = 0; k < x.length; k++) {
        if (x[k].nodeType == 1) {
            //Process only element (nodeType 1) nodes
            if (x[k].getAttribute("pageID") == topID) {
                var i = 0
                var r = 0;
                var y = x[k].childNodes;
                for (var j = 0; j < y.length; j++) {
                    if (y[j].nodeType == 1) {
                        i++;
                        if (i == 1) {
                            r++;
                            outStr = outStr + "<div class=\"row";
                            outStr = outStr + r;
                            outStr = outStr + "\">";
                            outStr = outStr + "\n";
                            outStr = outStr + "        <ul>";
                            outStr = outStr + "\n";
                            outStr = outStr + "            <li class=\"first\">";
                            outStr = outStr + "\n";
                            outStr = outStr + "                <a ";
                            if (y[j].getAttribute("pageID") == currID) {
                                outStr = outStr + "class=\"selected\"";
                            }
                            outStr = outStr + "href=\"";
                            outStr = outStr + y[j].getAttribute("url");
                            outStr = outStr + "\">";
                            outStr = outStr + y[j].getAttribute("title");
                            outStr = outStr + "</a>";
                            outStr = outStr + "\n";
                            outStr = outStr + "            </li>";
                            outStr = outStr + "\n";
                        }
                        else if (i == 4) {
                            outStr = outStr + "            <li class=\"last\">";
                            outStr = outStr + "\n";
                            outStr = outStr + "                <a ";
                            if (y[j].getAttribute("pageID") == currID) {
                                outStr = outStr + "class=\"selected\"";
                            }
                            outStr = outStr + "href=\"";
                            outStr = outStr + y[j].getAttribute("url");
                            outStr = outStr + "\">";
                            outStr = outStr + y[j].getAttribute("title");
                            outStr = outStr + "</a>";
                            outStr = outStr + "\n";
                            outStr = outStr + "            </li>";
                            outStr = outStr + "\n";
                            outStr = outStr + "            </ul>";
                            outStr = outStr + "\n";
                            outStr = outStr + "    </div>";
                            outStr = outStr + "\n";
                            i = 0;
                        }
                        else {
                            outStr = outStr + "            <li>";
                            outStr = outStr + "\n";
                            outStr = outStr + "                <a ";
                            if (y[j].getAttribute("pageID") == currID) {
                                outStr = outStr + "class=\"selected\"";
                            }
                            outStr = outStr + "href=\"";
                            outStr = outStr + y[j].getAttribute("url");
                            outStr = outStr + "\">";
                            outStr = outStr + y[j].getAttribute("title");
                            outStr = outStr + "</a>";
                            outStr = outStr + "\n";
                            outStr = outStr + "            </li>";
                            outStr = outStr + "\n";
                        }
                    }
                }
                if (i != 0) {
                    while (i < 4) {
                        if (i == 4) {
                            outStr = outStr + "            <li class=\"last\">";
                            outStr = outStr + "\n";
                            outStr = outStr + "                &nbsp;";
                            outStr = outStr + "\n";
                            outStr = outStr + "            </li>";
                            outStr = outStr + "\n";
                            outStr = outStr + "            </ul>";
                            outStr = outStr + "\n";
                            outStr = outStr + "    </div>";
                            outStr = outStr + "\n";
                        }
                        else {
                            outStr = outStr + "            <li>";
                            outStr = outStr + "\n";
                            outStr = outStr + "                &nbsp;";
                            outStr = outStr + "\n";
                            outStr = outStr + "            </li>";
                            outStr = outStr + "\n";
                        }
                        i++;
                    }

                    outStr = outStr + "        </ul>";
                    outStr = outStr + "\n";
                    outStr = outStr + "    </div>";
                }
                document.getElementById(navcontainerid).innerHTML = outStr;
            }
        }
    }
}

//returns the height of nav-main based on number of submenu links
function getCount(navcontainerid, myXML, topID, currID) {
    //default value if everything fails
    var divheight = "233px";
    var z = 0;

    if(myXML != null){
        try {
            var x = myXML.documentElement.childNodes;

            for (var k = 0; k < x.length; k++) {
                if (x[k].nodeType == 1) 
	        {
                    //Process only element (nodeType 1) nodes
                    if (x[k].getAttribute("pageID") == topID) 
		    {
                        var y = x[k].childNodes.length;

			for (var i = 0, l = x[k].childNodes.length; i < l; i++) {
				var child = x[k].childNodes[i];

				if (child.nodeType == 1) {  //FF counts whitespace, so cannot just use the length value (y)
					z=z+1;
				}
			} 
                    }
                }
            }

            if (z == 0) //no submenu links
	    {
		divheight = "140px";
	    }
	    else if ((z > 0) && (z <= 4))  //if there 1-4 links
            { 
                divheight = "170px"; 
            }
            else if ((z > 4) && (z <= 8))  //5-8 links
            {
                divheight = "200px"; 
            }
            else  //9 or more
            {
                divheight = "233px"; 
            }
        }
        catch (e) {}
    }
    return divheight;
}


/*######################################## end noFlashSubNav.js########################################*/
/*######################################## begin flyout.js ########################################*/
// flyoutType can be two values
//  appear: the flyout just appears and then disappears
//  flyout: the flyout actually flys out
var flyoutType = "appear";

var useOverlay = true;

// the current status of the animation
var status = "stopped";

// how fast the animation moves
var horizontalMoveIncrement = 5;

// the javascript object of the div
var divObjectToMove;

// the divs current sides
var currentDivLeft;

// the values of the window, saved in variables to abstract the differences in browsers
var windowHeight;
var windowWidth;
var windowTop;

var leftOffset;
var topOffset;

// where the div should fly to
var endHPosition;
var endVPosition;

// this is the div with the content to fly out
var divTopyCopyFrom;

function getParent(div) {
    if (navigator.userAgent.indexOf('Gecko') != -1 || navigator.userAgent.indexOf('Opera') != -1) {
        //alert("Non-IE");
        return div.parentNode;
    } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
        //alert("IE 6+ in 'standards compliant mode'");
        return div.offsetParent;
    }
    return null;
}

function getLeftOffset() {
    leftOffset = 0;
    divParent = getParent(divObjectToMove);

    while (divParent != undefined && divParent != "") {
        if (parseInt(divParent.offsetLeft) && divParent.id != "") { // HACK
            leftOffset = leftOffset + parseInt(divParent.offsetLeft);
        }
        divParent = getParent(divParent);
    }
    return leftOffset;
}

function getTopOffset() {
    topOffset = 0;
    divParent = getParent(divObjectToMove);

    while (divParent != undefined && divParent != "") {
        if (parseInt(divParent.offsetTop) && divParent.id != "") { // HACK
            topOffset = topOffset + parseInt(divParent.offsetTop);
        }
        divParent = getParent(divParent);
    }
    return topOffset;
}

// calculates the different dimensions from different properties based on the type of browser
function calculateDimensions() {
    leftOffset = getLeftOffset();
    topOffset = getTopOffset();
    if (self.innerWidth) // all except Explorer
    {
        windowWidth = self.innerWidth;
        windowHeight = self.innerHeight;
        windowTop = 0; //window.pageYOffset;
        documentHeight = windowHeight;
    }
    else if (document.documentElement && typeof document.documentElement.style.maxHeight != "undefined") { // IE 7
        windowWidth = document.body.clientWidth;
        windowHeight = document.body.clientHeight;
        windowTop = document.body.scrollTop;
        documentHeight = window.screen.height;
    }
    else if (document.compatMode && document.all) // Explorer 6 Strict Mode
    {
        //windowWidth = document.documentElement.clientWidth;
        windowWidth = window.screen.width;
        windowHeight = window.screen.height;
        windowTop = document.body.scrollTop;
        //documentHeight = window.screen.height + 79;
        //documentHeight = document.body.parentNode.scrollHeight;
        documentHeight = document.body.scrollHeight;
    }
    else if (document.body) // other Explorers
    {
        windowWidth = document.body.clientWidth;
        windowHeight = document.body.clientHeight;
        windowTop = document.body.scrollTop;
        documentHeight = window.screen.height;
    }
}

// function called to init the process
// this function MUST be called and passed the id of the div to flyout
// if there is currently a div onscreen that this set of functions flew out
// then that div will be hidden before the new div fly out starts
function initDiv(idOfDiv, typeOfFlyout) {
    flyoutType = typeOfFlyout;
    divObjectToMove = $("flyoutContent");
    divTopyCopyFrom = $(idOfDiv);

    // this is where the contents of div are copied into the page flyout
    var tempFlyoutContent = divTopyCopyFrom.innerHTML;
    divTopyCopyFrom.innerHTML = '';
    divObjectToMove.innerHTML = tempFlyoutContent;

    // copy the styles here
    divObjectToMove.style.height = divTopyCopyFrom.style.height;
    divObjectToMove.style.width = divTopyCopyFrom.style.width;

    calculateDimensions();
    // if the current divObjectToMove is visble move it offscreen
    if (divObjectToMove.style.display == 'none') {
        currentDivLeft = 0 - (parseInt(divObjectToMove.offsetWidth) + 10);
        divObjectToMove.style.left = currentDivLeft + "px";
    }

    endHPosition = (windowWidth / 2) - (parseInt(divObjectToMove.style.width) / 2);
}

// starts the div flying on screen
function startFlyingOnScreen() {
    currentDivLeft = -1000;
    status = "flyingOnScreen";
    window.setTimeout("animateFlyout();", 10);

    divObjectToMove.style.display = "block";
    divObjectToMove.style.left = currentDivLeft + "px";

    // get the height at this point instead of on init because then we are sure it has been calculated
    endVPosition = windowTop + (windowHeight - divObjectToMove.offsetHeight) / 2;
    if (endVPosition < 0) {
        endVPosition = 0;
    }
    divObjectToMove.style.top = endVPosition + "px";

    if (useOverlay == true) {
        $("flyoutOverlay").style.display = "block";

        windowWidth = "100%";
        //windowHeight = window.screen.height + "px";
        // make overlay the size of the screen
        $("flyoutOverlay").width = windowWidth;
        $("flyoutOverlay").style.height = documentHeight;
    }
}

// starts the div flying off screen
function startFlyingOffScreen() {
    // 
    divTopyCopyFrom.innerHTML = divObjectToMove.innerHTML;

    status = "flyingOffScreen";
    window.setTimeout("animateFlyout();", 10);

    if (useOverlay == true) {
        $("flyoutOverlay").style.display = "none";
        $("flyoutOverlay").style.zIndex = "1";
    }
}

// does the flying of the div
function animateFlyout() {
    var hMoveIncrement = horizontalMoveIncrement;
    switch (status) {
        case "flyingOnScreen":
            if (currentDivLeft > endHPosition) {
                status = "stopped";
            }
            break;
        case "flyingOffScreen":
            if (flyoutType == "appear") {
                endHPosition = -10;
            } else {
                hMoveIncrement *= -1;
            }
            break;
    }
    if (flyoutType == "appear") {
        currentDivLeft = endHPosition;
        if (status == "flyingOffScreen") {
            stopAnimation();
        }
    } else {
        currentDivLeft = parseInt(currentDivLeft) + hMoveIncrement;
        if (status != "stopped") {
            window.setTimeout("animateFlyout();", 1000);
        }
    }
    divObjectToMove.style.left = currentDivLeft + "px";
    if (parseInt(divObjectToMove.offsetLeft) < -100 - divObjectToMove.offsetWidth && status == "flyingOffScreen") {
        stopAnimation();
    }
}

// hides the div
// should be called when the div is finished animating and is off screen
function stopAnimation() {
    divObjectToMove.style.display = "none";
    status = "stopped";
}

// Base function which gets the elements of passed in code.
function $() {
    var elements = new Array();
    for (var i = 0; i < arguments.length; i++) {
        var element = arguments[i];
        if (typeof element == 'string')
            element = document.getElementById(element);
        if (arguments.length == 1)
            return element;
        elements.push(element);
    }
    return elements;
}
/*######################################## end flyout.js ########################################*/
/*######################################## begin ./swfobject/1_5/swfobject.js ########################################*/
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){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"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();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},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[_16.length]=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");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_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");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_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(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?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(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
/*######################################## end ./swfobject/1_5/swfobject.js ########################################*/
/*######################################## begin ./swfformfix/swfformfix2.js ########################################*/
var EnableFullAuto	= false; // set this to true and all of your flash objects will be fixed automatically
var SWFFormFixDebug = false; // set this to true to be alerted whenever a flash object is found and fixed
var NotLoadedWarning = false; // set this to true to alert the users when they try to access a function from
							 // the ExternalInterface() that isn't loaded yet
var NotLoadedMsg = "Please wait for the page to load..."; // this is the warning they will see
finished = false; // this is set to true when the body's onload is called, to stop the script
timeout = 10; // seconds to wait before giving up
starttime = new Date().getTime();
flashObjectList = Array();
fixedList = Array();
makeFuncArr = Array();
SWFFormFixAuto2 = function(){
//alert("running...");
	if(navigator.appName.toLowerCase() != "microsoft internet explorer")return true;
	var flashObjectList = document.getElementsByTagName("object");
	for(var i=0;i<flashObjectList.length;i++){
		var obj = flashObjectList[i];
		// here's all the objects on the page, now lets find the flash objects
		if(obj.getAttribute('classid') == "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"){
			var id = obj.getAttribute('id');
			var alreadyfixed = false;
			for(var c=0;c<fixedList.length;c++){if(fixedList[i] == id)alreadyfixed=true;}
			// this is a flash movie, apply the fix (unless it's already been fixed)
			if(!alreadyfixed){
				var debugtxt = '';
				for(var b in window[id]){
					// ExternalInterface() tried to add some functions to the incorrect object
					if(typeof(window[id][b])=="function"){
						// this function will need to be rebuilt when the page is done loading.
						makeFuncArr.push(Array(obj,b));
						obj[b] = function(){
							if(NotLoadedWarning)alert(NotLoadedMsg);
							return("");
						}
/*
 * it seems like this would work to copy the function, but it doesn't:
 *
 * eval('obj[b]='+window[id][b].toString());
 * 
 * This is the actual function that we're trying to copy:

function () { 
  return eval(instance.CallFunction("<invoke name=\""+name+"\" returntype=\"javascript\">" + __flash__argumentsToXML(arguments,0) + "</invoke>"));
}

 * it will fail if you copy it to the new object though because "instance" and "name" are undefined
 * Here's how to see the actual function def: document.getElementById("txt_debug").value=window[id][b];
 */
					}
				}
				window[id]=obj;
				if(SWFFormFixDebug)alert("Fixed: "+id);
			}
		}
	}
	if(!finished){
		setTimeout("SWFFormFixAuto2()", 100);
	}else{
		for(var i=0;i<makeFuncArr.length;i++){
			// this is executed after the page is loaded - it rebuilds the custom
			// ExternalInterface() functions
			SWFFormFix_rebuildExtFunc(makeFuncArr[i][0],makeFuncArr[i][1]);
		}
	}
	return true;
}
SWFFormFix_rebuildExtFunc = function(obj,functionName){
	eval('obj[functionName] = function(){return eval(this.CallFunction("<invoke name=\\"'+functionName+'\\" returntype=\\"javascript\\">" + __flash__argumentsToXML(arguments,0) + "</invoke>"));}');
	if(SWFFormFixDebug)alert("Rebuilt ExternalInterface() function: "+functionName);
}
SWFFormFixOnloadAppend = function() {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = function(){
			finished=true;
		}
	} else {
		window.onload = function() {
			oldonload();
			finished=true;
		}
	}
}
SWFFormFixAuto = function(){
	if(navigator.appName.toLowerCase() != "microsoft internet explorer")return true;
	var objects = document.getElementsByTagName("object");
	if(objects.length == 0) return true;
	for(i=0;i<objects.length;i++){
		// here's all the objects on the page, now lets find the flash objects
		if(objects[i].classid == "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"){
			// this is a flash movie, apply the fix
			window[objects[i].id] = objects[i];
		}
	}
	var out = "";
	return true;
}
SWFFormFix = function(swfname){
	if(navigator.appName.toLowerCase() != "microsoft internet explorer")return false;
	var testnodename = "SWFFormFixTESTER";
	document.write('<div id="'+testnodename+'" onclick="SWFFormFixCallback(this,\''+swfname+'\');return false;" style="display:none">&nbsp;</div>');
	document.getElementById(testnodename).onclick();
}
SWFFormFixCallback = function (obj,swfname){
	var path = document;
	var error = false;
	var testnode = obj;
	while(obj = obj.parentNode){
		if(obj.nodeName.toLowerCase() == "form"){
			if(obj.name != undefined && obj.name != null && obj.name.length > 0){
				path = path.forms[obj.name];
			}else{
				alert("Error: one of your forms does not have a name!");
				error = true;
			}
		}
	}
	testnode.parentNode.removeChild(testnode);
	if(error) return false;
	window[swfname]=path[swfname];
	return true;
}
function noCacheIE(url){
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	if(!isIE)return(url);
	var newUrl = '?';
	if(url.indexOf('?') != -1)newUrl = '&';
	var now = new Date();
	var rand = Math.random().toString().substring(2,4);
	newUrl = url+newUrl+"noCacheIE="+rand+'-'+now.getTime().toString();
	return(newUrl);
}
if(EnableFullAuto){
	SWFFormFixAuto2();
	SWFFormFixOnloadAppend();
}
/*######################################## end ./swfformfix/swfformfix2.js ########################################*/
/*######################################## begin ./mbox.js ########################################*/
var mboxCopyright = "&copy; 1996-2008. Omniture, Inc. All rights reserved.";mboxUrlBuilder = function(a, b) { this.a = a; this.b = b; this.c = new Array(); this.d = function(e) { return e; }; this.f = null;};mboxUrlBuilder.prototype.addParameter = function(g, h) { var i = new RegExp('(\'|")'); if (i.exec(g)) { throw "Parameter '" + g + "' contains invalid characters"; } for (var j = 0; j < this.c.length; j++) { var k = this.c[j]; if (k.name == g) { k.value = h; return this; } } var l = new Object(); l.name = g; l.value = h; this.c[this.c.length] = l; return this;};mboxUrlBuilder.prototype.addParameters = function(c) { if (!c) { return this; } for (var j = 0; j < c.length; j++) { var m = c[j].indexOf('='); if (m == -1 || m == 0) { continue; } this.addParameter(c[j].substring(0, m), c[j].substring(m + 1, c[j].length)); } return this;};mboxUrlBuilder.prototype.setServerType = function(n) { this.o = n;};mboxUrlBuilder.prototype.setBasePath = function(f) { this.f = f;};mboxUrlBuilder.prototype.setUrlProcessAction = function(p) { this.d = p;};mboxUrlBuilder.prototype.buildUrl = function() { var q = this.f ? this.f : '/m2/' + this.b + '/mbox/' + this.o; var r = document.location.protocol == 'file:' ? 'http:' : document.location.protocol; var e = r + "//" + this.a + q; var s = e.indexOf('?') != -1 ? '&' : '?'; for (var j = 0; j < this.c.length; j++) { var k = this.c[j]; e += s + k.name + '=' + encodeURIComponent(k.value); s = '&'; } return this.t(this.d(e));};mboxUrlBuilder.prototype.getParameters = function() { return this.c;};mboxUrlBuilder.prototype.setParameters = function(c) { this.c = c;};mboxUrlBuilder.prototype.clone = function() { var u = new mboxUrlBuilder(this.a, this.b); u.setServerType(this.o); u.setBasePath(this.f); u.setUrlProcessAction(this.d); for (var j = 0; j < this.c.length; j++) { u.addParameter(this.c[j].name, this.c[j].value); } return u;};mboxUrlBuilder.prototype.t = function(v) { return v.replace(/\"/g, '&quot;').replace(/>/g, '&gt;');};mboxStandardFetcher = function() { };mboxStandardFetcher.prototype.getType = function() { return 'standard';};mboxStandardFetcher.prototype.fetch = function(w) { w.setServerType(this.getType()); document.write('<' + 'scr' + 'ipt src="' + w.buildUrl() + '" language="JavaScript"><' + '\/scr' + 'ipt>');};mboxStandardFetcher.prototype.cancel = function() { };mboxAjaxFetcher = function() { };mboxAjaxFetcher.prototype.getType = function() { return 'ajax';};mboxAjaxFetcher.prototype.fetch = function(w) { w.setServerType(this.getType()); var e = w.buildUrl(); this.x = document.createElement('script'); this.x.src = e; document.body.appendChild(this.x);};mboxAjaxFetcher.prototype.cancel = function() { };mboxMap = function() { this.y = new Object(); this.z = new Array();};mboxMap.prototype.put = function(A, h) { if (!this.y[A]) { this.z[this.z.length] = A; } this.y[A] = h;};mboxMap.prototype.get = function(A) { return this.y[A];};mboxMap.prototype.remove = function(A) { this.y[A] = undefined;};mboxMap.prototype.each = function(p) { for (var j = 0; j < this.z.length; j++ ) { var A = this.z[j]; var h = this.y[A]; if (h) { p(A, h); } }};mboxFactory = function(B, b, C) { this.D = false; this.B = B; this.C = C; this.E = new mboxList(); mboxFactories.put(C, this); this.F = typeof document.createElement('div').replaceChild != 'undefined' && (function() { return true; })() && typeof document.getElementById != 'undefined' && typeof (window.attachEvent || document.addEventListener || window.addEventListener) != 'undefined' && typeof encodeURIComponent != 'undefined'; this.G = this.F && mboxGetPageParameter('mboxDisable') == null; var H = C == 'default'; this.I = new mboxCookieManager( 'mbox' + (H ? '' : ('-' + C)), (function() { return mboxCookiePageDomain(); })()); this.G = this.G && this.I.isEnabled() && this.I.getCookie('disable') != 'true'; if (this.isAdmin()) { this.enable(); } this.J = mboxGenerateId(); this.K = new mboxSession(this.J, 'mboxSession', 'session', 31 * 60, this.I); this.L = new mboxPC('PC', 1209600, this.I); this.w = new mboxUrlBuilder(B, b); this.M(this.w, H); this.N = new Date().getTime(); this.O = this.N; var P = this; this.addOnLoad(function() { P.O = new Date().getTime(); }); if (this.F) { this.addOnLoad(function() { P.D = true; P.getMboxes().each(function(Q) { Q.setFetcher(new mboxAjaxFetcher()), Q.finalize(); }); }); this.limitTraffic(100, 10368000); if (this.G) { this.R(); this.S = new mboxSignaler(function(T, c) { return P.create(T, c); }, this.I); } }};mboxFactory.prototype.isEnabled = function() { return this.G;};mboxFactory.prototype.isSupported = function() { return this.F;};mboxFactory.prototype.disable = function(U) { if (typeof U == 'undefined') { U = 60 * 60; } if (!this.isAdmin()) { this.G = false; this.I.setCookie('disable', 'true', U); }};mboxFactory.prototype.enable = function() { this.G = true; this.I.deleteCookie('disable');};mboxFactory.prototype.isAdmin = function() { return document.location.href.indexOf('mboxEnv') != -1;};mboxFactory.prototype.limitTraffic = function(V, U) {};mboxFactory.prototype.addOnLoad = function(p) { if (window.addEventListener) { window.addEventListener('load', p, false); } else if (document.addEventListener) { document.addEventListener('load', p, false); } else if (document.attachEvent) { window.attachEvent('onload', p); }};mboxFactory.prototype.getEllapsedTime = function() { return this.O - this.N;};mboxFactory.prototype.getEllapsedTimeUntil = function(W) { return W - this.N;};mboxFactory.prototype.getMboxes = function() { return this.E;};mboxFactory.prototype.get = function(T, X) { return this.E.get(T).getById(X || 0);};mboxFactory.prototype.update = function(T, c) { if (!this.isEnabled()) { return; } if (this.E.get(T).length() == 0) { throw "Mbox " + T + " is not defined"; } this.E.get(T).each(function(Q) { Q.getUrlBuilder() .addParameter('mboxPage', mboxGenerateId()); Q.load(c); });};mboxFactory.prototype.create = function(T, c, Y) { if (!this.isSupported()) { return null; } var e = this.w.clone(); e.addParameter('mboxCount', this.E.length() + 1); e.addParameters(c); var X = this.E.get(T).length(); var Z = this.C + '-' + T + '-' + X; var _; if (Y) { _ = new mboxLocatorNode(Y); } else { if (this.D) { throw 'The page has already been loaded, can\'t write marker'; } _ = new mboxLocatorDefault(Z); } try { var P = this; var ab = 'mboxImported-' + Z; var Q = new mbox(T, X, e, _, ab); if (this.G) { Q.setFetcher(this.D ? new mboxAjaxFetcher() : new mboxStandardFetcher()); } Q.setOnError(function(bb, n) { Q.setMessage(bb); if (n == 'standard') { Q.activate(); if (!Q.isActivated()) { P.disable(); window.location.reload(false); } } else { throw bb; } }); this.E.add(Q); } catch (cb) { this.disable(); throw 'Failed creating mbox "' + T + '", the error was: ' + cb; } return Q;};mboxFactory.prototype.getCookieManager = function() { return this.I;};mboxFactory.prototype.getPageId = function() { return this.J;};mboxFactory.prototype.getPCId = function() { return this.L;};mboxFactory.prototype.getSessionId = function() { return this.K;};mboxFactory.prototype.getSignaler = function() { return this.S;};mboxFactory.prototype.getUrlBuilder = function() { return this.w;};mboxFactory.prototype.M = function(e, H) { e.addParameter('mboxHost', document.location.hostname) .addParameter('mboxSession', this.K.getId()); if (!H) { e.addParameter('mboxFactoryId', this.C); } if (this.L.getId() != null) { e.addParameter('mboxPC', this.L.getId()); } e.addParameter('mboxPage', this.J); var db = this.I.getCookie('edge'); if (db != null) { e.addParameter('edge', db); } e.setUrlProcessAction(function(e) { e += '&mboxURL=' + encodeURIComponent(document.location); var eb = encodeURIComponent(document.referrer); if (e.length + eb.length < 2000) { e += '&mboxReferrer=' + eb; } e += '&mboxVersion=' + mboxVersion; return e; });};mboxFactory.prototype.fb = function() { return "";};mboxFactory.prototype.R = function() { document.write('<style>.' + 'mboxDefault' + ' { visibility:hidden; }</style>');};mboxSignaler = function(gb, I) { this.I = I; var hb = I.getCookieNames('signal-'); for (var j = 0; j < hb.length; j++) { var ib = hb[j]; var jb = I.getCookie(ib).split('&'); var Q = gb(jb[0], jb); Q.load(); I.deleteCookie(ib); }};mboxSignaler.prototype.signal = function(kb, T ) { this.I.setCookie('signal-' + kb, mboxShiftArray(arguments).join('&'), 45 * 60);};mboxList = function() { this.E = new Array();};mboxList.prototype.add = function(Q) { if (Q != null) { this.E[this.E.length] = Q; }};mboxList.prototype.get = function(T) { var lb = new mboxList(); for (var j = 0; j < this.E.length; j++) { var Q = this.E[j]; if (Q.getName() == T) { lb.add(Q); } } return lb;};mboxList.prototype.getById = function(mb) { return this.E[mb];};mboxList.prototype.length = function() { return this.E.length;};mboxList.prototype.each = function(p) { if (typeof p != 'function') { throw 'Action must be a function, was: ' + typeof(p); } for (var j = 0; j < this.E.length; j++) { p(this.E[j]); }};mboxLocatorDefault = function(g) { this.g = 'mboxMarker-' + g; document.write('<div id="' + this.g + '" style="visibility:hidden;display:none"></div>');};mboxLocatorDefault.prototype.locate = function() { var nb = document.getElementById(this.g); while (nb != null) { if (nb.nodeType == 1) { if (nb.className == 'mboxDefault') { return nb; } } nb = nb.previousSibling; } return null;};mboxLocatorDefault.prototype.force = function() { var ob = document.createElement('div'); ob.className = 'mboxDefault'; var pb = document.getElementById(this.g); pb.parentNode.insertBefore(ob, pb); return ob;};mboxLocatorNode = function(qb) { this.nb = qb;};mboxLocatorNode.prototype.locate = function() { return typeof this.nb == 'string' ? document.getElementById(this.nb) : this.nb;};mboxLocatorNode.prototype.force = function() { return null;};mboxCreate = function(T ) { var Q = mboxFactoryDefault.create(T, mboxShiftArray(arguments)); if (Q) { Q.load(); } return Q;};mboxDefine = function(Y, T ) { var Q = mboxFactoryDefault.create(T, mboxShiftArray(mboxShiftArray(arguments)), Y); return Q;};mboxUpdate = function(T ) { mboxFactoryDefault.update(T, mboxShiftArray(arguments));};mbox = function(g, rb, w, sb, ab) { this.tb = null; this.ub = 0; this._ = sb; this.ab = ab; this.vb = null; this.wb = new mboxOfferContent(); this.ob = null; this.w = w; this.message = ''; this.xb = new Object(); this.yb = 0; this.rb = rb; this.g = g; this.zb(); w.addParameter('mbox', g) .addParameter('mboxId', rb); this.Ab = function() {}; this.Bb = function() {};};mbox.prototype.getId = function() { return this.rb;};mbox.prototype.zb = function() { if (this.g.length > 250) { throw "Mbox Name " + this.g + " exceeds max length of " + "250 characters."; } else if (this.g.match(/^\s+|\s+$/g)) { throw "Mbox Name " + this.g + " has leading/trailing whitespace(s)."; }};mbox.prototype.getName = function() { return this.g;};mbox.prototype.getParameters = function() { var c = this.w.getParameters(); var lb = new Array(); for (var j = 0; j < c.length; j++) { if (c[j].name.indexOf('mbox') != 0) { lb[lb.length] = c[j].name + '=' + c[j].value; } } return lb;};mbox.prototype.setOnLoad = function(p) { this.Bb = p; return this;};mbox.prototype.setMessage = function(bb) { this.message = bb; return this;};mbox.prototype.setOnError = function(Ab) { this.Ab = Ab; return this;};mbox.prototype.setFetcher = function(Cb) { if (this.vb) { this.vb.cancel(); } this.vb = Cb; return this;};mbox.prototype.getFetcher = function() { return this.vb;};mbox.prototype.load = function(c) { if (this.vb == null) { return this; } this.setEventTime("load.start"); this.cancelTimeout(); this.ub = 0; var w = (c && c.length > 0) ? this.w.clone().addParameters(c) : this.w; this.vb.fetch(w); var P = this; this.Db = setTimeout(function() { P.Ab('Fetch of mbox timed out', P.vb.getType()); }, 15000); this.setEventTime("load.end"); return this;};mbox.prototype.loaded = function() { this.cancelTimeout(); if (!this.activate()) { var P = this; setTimeout(function() { P.loaded(); }, 100); }};mbox.prototype.activate = function() { if (this.ub) { return this.ub; } this.setEventTime('activate' + ++this.yb + '.start'); if (this.show()) { this.cancelTimeout(); this.ub = 1; } this.setEventTime('activate' + this.yb + '.end'); return this.ub;};mbox.prototype.isActivated = function() { return this.ub;};mbox.prototype.setOffer = function(wb) { if (wb && wb.show && wb.setOnLoad) { this.wb = wb; } else { throw 'Invalid offer'; } return this;};mbox.prototype.getOffer = function() { return this.wb;};mbox.prototype.show = function() { this.setEventTime('show.start'); var lb = this.wb.show(this); this.setEventTime(lb == 1 ? "show.end.ok" : "show.end"); return lb;};mbox.prototype.showContent = function(Eb) { if (Eb == null) { return 0; } if (this.ob == null || !this.ob.parentNode) { this.ob = this.getDefaultDiv(true); if (this.ob == null) { return 0; } } if (this.ob != Eb) { this.Fb(this.ob); this.ob.parentNode.replaceChild(Eb, this.ob); this.ob = Eb; } this.Gb(Eb); this.Bb(); return 1;};mbox.prototype.hide = function() { this.setEventTime('hide.start'); var lb = this.showContent(this.getDefaultDiv()); this.setEventTime(lb == 1 ? 'hide.end.ok' : 'hide.end.fail'); return lb;};mbox.prototype.finalize = function() { this.setEventTime('finalize.start'); this.cancelTimeout(); if (this.getDefaultDiv() == null) { if (this._.force() != null) { this.setMessage('No default content, an empty one has been added'); } else { this.setMessage('Unable to locate mbox'); } } if (!this.activate()) { this.hide(); this.setEventTime('finalize.end.hide'); } this.setEventTime('finalize.end.ok');};mbox.prototype.cancelTimeout = function() { if (this.Db) { clearTimeout(this.Db); } if (this.vb != null) { this.vb.cancel(); }};mbox.prototype.getDiv = function() { return this.ob;};mbox.prototype.getDefaultDiv = function(Hb) { var ob = this._.locate(); if (ob != null) { this.Ib = ob; } return Hb ? ob : this.Ib;};mbox.prototype.setEventTime = function(Jb) { this.xb[Jb] = (new Date()).getTime();};mbox.prototype.getEventTimes = function() { return this.xb;};mbox.prototype.getImportName = function() { return this.ab;};mbox.prototype.getURL = function() { return this.w.buildUrl();};mbox.prototype.getUrlBuilder = function() { return this.w;};mbox.prototype.Kb = function(ob) { return ob.style.display != 'none';};mbox.prototype.Gb = function(ob) { this.Lb(ob, true);};mbox.prototype.Fb = function(ob) { this.Lb(ob, false);};mbox.prototype.Lb = function(ob, Mb) { ob.style.visibility = Mb ? "visible" : "hidden"; ob.style.display = Mb ? "block" : "none";};mboxOfferContent = function() { this.Bb = function() {};};mboxOfferContent.prototype.show = function(Q) { var lb = Q.showContent(document.getElementById(Q.getImportName())); if (lb == 1) { this.Bb(); } return lb;};mboxOfferContent.prototype.setOnLoad = function(Bb) { this.Bb = Bb;};mboxOfferAjax = function(Eb) { this.Eb = Eb; this.Bb = function() {};};mboxOfferAjax.prototype.setOnLoad = function(Bb) { this.Bb = Bb;};mboxOfferAjax.prototype.show = function(Q) { var Nb = document.createElement('div'); Nb.id = Q.getImportName(); Nb.innerHTML = this.Eb; var lb = Q.showContent(Nb); if (lb == 1) { this.Bb(); } return lb;};mboxOfferDefault = function() { this.Bb = function() {};};mboxOfferDefault.prototype.setOnLoad = function(Bb) { this.Bb = Bb;};mboxOfferDefault.prototype.show = function(Q) { var lb = Q.hide(); if (lb == 1) { this.Bb(); } return lb;};mboxCookieManager = function mboxCookieManager(g, Ob) { this.g = g; this.Ob = Ob == '' || Ob.indexOf('.') == -1 ? '' : '; domain=' + Ob; this.Pb = new mboxMap(); this.loadCookies();};mboxCookieManager.prototype.isEnabled = function() { this.setCookie('check', 'true', 60); this.loadCookies(); return this.getCookie('check') == 'true';};mboxCookieManager.prototype.setCookie = function(g, h, U) { if (typeof g != 'undefined' && typeof h != 'undefined' && typeof U != 'undefined') { var Qb = new Object(); Qb.name = g; Qb.value = escape(h); Qb.expireOn = Math.ceil(U + new Date().getTime() / 1000); this.Pb.put(g, Qb); this.saveCookies(); }};mboxCookieManager.prototype.getCookie = function(g) { var Qb = this.Pb.get(g); return Qb ? unescape(Qb.value) : null;};mboxCookieManager.prototype.deleteCookie = function(g) { this.Pb.remove(g); this.saveCookies();};mboxCookieManager.prototype.getCookieNames = function(Rb) { var Sb = new Array(); this.Pb.each(function(g, Qb) { if (g.indexOf(Rb) == 0) { Sb[Sb.length] = g; } }); return Sb;};mboxCookieManager.prototype.saveCookies = function() { var Tb = new Array(); var Ub = 0; this.Pb.each(function(g, Qb) { Tb[Tb.length] = g + '#' + Qb.value + '#' + Qb.expireOn; if (Ub < Qb.expireOn) { Ub = Qb.expireOn; } }); var Vb = new Date(Ub * 1000); document.cookie = this.g + '=' + Tb.join('|') + '; expires=' + Vb.toGMTString() + '; path=/' + this.Ob;};mboxCookieManager.prototype.loadCookies = function() { this.Pb = new mboxMap(); var Wb = document.cookie.indexOf(this.g + '='); if (Wb != -1) { var Xb = document.cookie.indexOf(';', Wb); if (Xb == -1) { Xb = document.cookie.indexOf(',', Wb); if (Xb == -1) { Xb = document.cookie.length; } } var Yb = document.cookie.substring( Wb + this.g.length + 1, Xb).split('|'); var Zb = Math.ceil(new Date().getTime() / 1000); for (var j = 0; j < Yb.length; j++) { var Qb = Yb[j].split('#'); if (Zb <= Qb[2]) { var _b = new Object(); _b.name = Qb[0]; _b.value = Qb[1]; _b.expireOn = Qb[2]; this.Pb.put(_b.name, _b); } } }};mboxSession = function(ac, bc, ib, cc, I) { this.bc = bc; this.ib = ib; this.cc = cc; this.I = I; this.dc = false; this.rb = typeof mboxForceSessionId != 'undefined' ? mboxForceSessionId : mboxGetPageParameter(this.bc); if (this.rb == null || this.rb.length == 0) { this.rb = I.getCookie(ib); if (this.rb == null || this.rb.length == 0) { this.rb = ac; this.dc = true; } } I.setCookie(ib, this.rb, cc);};mboxSession.prototype.getId = function() { return this.rb;};mboxSession.prototype.forceId = function(ec) { this.rb = ec; this.I.setCookie(this.ib, this.rb, this.cc);};mboxPC = function(ib, cc, I) { this.ib = ib; this.cc = cc; this.I = I; this.rb = typeof mboxForcePCId != 'undefined' ? mboxForcePCId : I.getCookie(ib); if (this.rb != null) { I.setCookie(ib, this.rb, cc); }};mboxPC.prototype.getId = function() { return this.rb;};mboxPC.prototype.forceId = function(ec) { if (this.rb != ec) { this.rb = ec; this.I.setCookie(this.ib, this.rb, this.cc); return true; } return false;};mboxGetPageParameter = function(g) { var lb = null; var fc = new RegExp(g + "=([^\&]*)"); var gc = fc.exec(document.location); if (gc != null && gc.length >= 2) { lb = gc[1]; } return lb;};mboxSetCookie = function(g, h, U) { return mboxFactoryDefault.getCookieManager().setCookie(g, h, U);};mboxGetCookie = function(g) { return mboxFactoryDefault.getCookieManager().getCookie(g);};mboxCookiePageDomain = function() { var Ob = (/([^:]*)(:[0-9]{0,5})?/).exec(document.location.host)[1]; var hc = /[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/; if (!hc.exec(Ob)) { var ic = (/([^\.]+\.[^\.]{3}|[^\.]+\.[^\.]+\.[^\.]{2})$/).exec(Ob); if (ic) { Ob = ic[0]; } } return Ob ? Ob: "";};mboxShiftArray = function(jc) { var lb = new Array(); for (var j = 1; j < jc.length; j++) { lb[lb.length] = jc[j]; } return lb;};mboxGenerateId = function() { return (new Date()).getTime() + "-" + Math.floor(Math.random() * 999999);};if (typeof mboxVersion == 'undefined') { var mboxVersion = 34; var mboxFactories = new mboxMap(); var mboxFactoryDefault = new mboxFactory('mbox9.offermatica.com', 'safecoinsurancecompa', 'default'); };mboxDebugActionsProto = function() { this.kc = new Object(); this.lc = new function() { this.show = function() {} };};mboxDebugActionsProto.prototype.register = function(g, p) { this.kc[g] = p;};mboxDebugActionsProto.prototype.registerDefault = function(p) { this.lc = p;};mboxDebugActionsProto.prototype.show = function(g) { var p = this.kc[g] ? this.kc[g] : this.lc; (new p()).show();};if (typeof mboxDebugActions == 'undefined') { mboxDebugActions = new mboxDebugActionsProto();};mboxDebugActionDefault = function() { };mboxDebugActionDefault.prototype.show = function() { var window = new mboxDebugWindow("Debug"); window.putPageStart(); window.put("  <b>Mbox Debug Window (version: " + mboxVersion + ")</b><br/>"); window.put("<p/>"); window.put("<b>Page</b>: " + document.location); window.put("<br/><b>Referrer</b>: " + document.referrer); window.put(" <ul>"); var G = mboxFactoryDefault.isEnabled(); window.put('  <li>Enabled: <span style="color:' + (G ? 'green' : 'red') + '"><b>' + G + '</b></span></li>'); window.put("  <li>Cookies: '" + document.cookie + "'</li></ul>"); mboxFactories.each(function(g, mc) { var nc = 1; window.put("<hr/><ul><li><b>Factory</b>: <i>'" + g + "'</i></li><ul>"); window.put("<li><i>pageId</i>: " + mc.getPageId() + "</li>"); window.put("<li><i>mboxPC</i>: " + mc.getPCId().getId() + "</li>"); window.put("<li><i>sessionId</i>: " + mc.getSessionId().getId() + "</li>"); window.put("<hr/>"); mc.getMboxes().each(function(Q) { window.put("  <li>" + nc++ + ". '<a href=\"" + Q.getURL() + "\">" + Q.getName() + "</a>'"); window.put("   <ul>"); if (Q.getId() != 0) { window.put("<li> <b>id</b>: " + Q.getId() + "</li>"); } if (Q.getParameters().length > 0) { window.put(" <li><b>parameters</b>: '" + Q.getParameters().join(", ") + "'</li>"); } window.put("<li><i>" + Q.getURL() + "</i></li>"); if (Q.message != '') { window.put('   <li><span style="color: red"><b>Error: ' + Q.message + '</b></span></li>'); } if (Q.getDefaultDiv() == null) { window.put('    <li><span style="color: red">' + '<b>Error: cannot find mbox in dom</b></span></li>'); } window.put("   </ul>"); window.put("  </li>"); }); window.put(" </ul>"); window.put(" </ul>"); }); window.put(" <hr/>"); window.putCloseButton(); window.putPageEnd();};mboxDebugActions.registerDefault(mboxDebugActionDefault);mboxDebug = function(oc, pc, mc) { this.qc = oc; this.p = null; this.I = mc.getCookieManager(); var rc = mboxGetPageParameter(pc); if (rc == null) { rc = this.I.getCookie(this.qc); } if (rc != null) { if (rc.indexOf("x") == 0) { document.write('<' + 'scr' + 'ipt language="Javascript1.2" src="' + 'http://admin9.offermatica.com/admin/mbox/mbox_debug_' + rc + '.jsp?clientCode=safecoinsurancecompa' + '&mboxServerHost=mbox9.offermatica.com"><' + '\/scr' + 'ipt>'); } if (!mc.isSupported()) { alert("mbox functionality is not supported on this browser"); this.disable(); } mc.addOnLoad(function() { mboxDebugActions.show(rc); }); this.I.setCookie(this.qc, rc, 45 * 60); } else { this.disable(); }};mboxDebug.prototype.disable = function() { this.I.deleteCookie(this.qc);};mboxDebugWindow = function(g) { this.g = g + " " + document.location.hostname; var sc = /\W/g; var tc = this.g.replace(sc, '_'); this.vc = window.open("", "mboxDebugWindow" + tc, "width=600,height=300,resizable,scrollbars=yes,toolbar=yes"); if (this.vc == null) { alert("Unable to open debug window.\nAre you blocking popups?\n"); }};mboxDebugWindow.prototype.put = function(wc) { if (this.vc == null) { return; } try { this.vc.document.writeln(wc); this.vc.scrollBy(0, 1000); } catch (e) { alert("Unable to write to the current mboxDebug window.\n" + "Please close any open debug window"); this.vc = null; }};mboxDebugWindow.prototype.putCloseButton = function() { this.put("<a href=\"javascript:mboxDebugWindowClose()\">" + "click here to close debug window</a>");};mboxDebugWindow.prototype.putPageStart = function() { this.put("<html><head>" + " <title>" + this.g + "</title>" + "  <" + "scr" + "ipt>" + "   function mboxDebugWindowClose() {" + "     try {" + "       window.opener.mboxDebugger.disable();" + "     } catch(e) {" + "       alert('Could not disable debug mode.\\n'" + "         + 'Browse to a page containing an mbox and\\n'" + "         + 'click on close link.');" + "     }" + "     window.close();" + "   }" + "  <" + "\/scr" + "ipt>" + " </head>" + " <body>");};mboxDebugWindow.prototype.putPageEnd = function() { this.put("</body></html>"); if (this.vc != null) { this.vc.document.close(); }};if (typeof mboxDebugger == 'undefined') { mboxDebugger = new mboxDebug("debug", "mboxDebug", mboxFactoryDefault);}
/*######################################## end ./mbox.js ########################################*/
/*######################################## begin ./sIFR/sifr3-r436/sifr.js ########################################*/
var sIFR=new function(){var O=this;var E={ACTIVE:"sIFR-active",REPLACED:"sIFR-replaced",IGNORE:"sIFR-ignore",ALTERNATE:"sIFR-alternate",CLASS:"sIFR-class",LAYOUT:"sIFR-layout",FLASH:"sIFR-flash",FIX_FOCUS:"sIFR-fixfocus",DUMMY:"sIFR-dummy"};E.IGNORE_CLASSES=[E.REPLACED,E.IGNORE,E.ALTERNATE];this.MIN_FONT_SIZE=6;this.MAX_FONT_SIZE=126;this.FLASH_PADDING_BOTTOM=5;this.VERSION="436";this.isActive=false;this.isEnabled=true;this.fixHover=true;this.autoInitialize=true;this.setPrefetchCookie=true;this.cookiePath="/";this.domains=[];this.forceWidth=true;this.fitExactly=false;this.forceTextTransform=true;this.useDomLoaded=true;this.useStyleCheck=false;this.hasFlashClassSet=false;this.repaintOnResize=true;this.replacements=[];var L=0;var R=false;function Y(){}function D(c){function d(e){return e.toLocaleUpperCase()}this.normalize=function(e){return e.replace(/\n|\r|\xA0/g,D.SINGLE_WHITESPACE).replace(/\s+/g,D.SINGLE_WHITESPACE)};this.textTransform=function(e,f){switch(e){case"uppercase":return f.toLocaleUpperCase();case"lowercase":return f.toLocaleLowerCase();case"capitalize":return f.replace(/^\w|\s\w/g,d)}return f};this.toHexString=function(e){if(e.charAt(0)!="#"||e.length!=4&&e.length!=7){return e}e=e.substring(1);return"0x"+(e.length==3?e.replace(/(.)(.)(.)/,"$1$1$2$2$3$3"):e)};this.toJson=function(g,f){var e="";switch(typeof(g)){case"string":e='"'+f(g)+'"';break;case"number":case"boolean":e=g.toString();break;case"object":e=[];for(var h in g){if(g[h]==Object.prototype[h]){continue}e.push('"'+h+'":'+this.toJson(g[h]))}e="{"+e.join(",")+"}";break}return e};this.convertCssArg=function(e){if(!e){return{}}if(typeof(e)=="object"){if(e.constructor==Array){e=e.join("")}else{return e}}var l={};var m=e.split("}");for(var h=0;h<m.length;h++){var k=m[h].match(/([^\s{]+)\s*\{(.+)\s*;?\s*/);if(!k||k.length!=3){continue}if(!l[k[1]]){l[k[1]]={}}var g=k[2].split(";");for(var f=0;f<g.length;f++){var n=g[f].match(/\s*([^:\s]+)\s*\:\s*([^;]+)/);if(!n||n.length!=3){continue}l[k[1]][n[1]]=n[2].replace(/\s+$/,"")}}return l};this.extractFromCss=function(g,f,i,e){var h=null;if(g&&g[f]&&g[f][i]){h=g[f][i];if(e){delete g[f][i]}}return h};this.cssToString=function(f){var g=[];for(var e in f){var j=f[e];if(j==Object.prototype[e]){continue}g.push(e,"{");for(var i in j){if(j[i]==Object.prototype[i]){continue}var h=j[i];if(D.UNIT_REMOVAL_PROPERTIES[i]){h=parseInt(h,10)}g.push(i,":",h,";")}g.push("}")}return g.join("")};this.escape=function(e){return escape(e).replace(/\+/g,"%2B")};this.encodeVars=function(e){return e.join("&").replace(/%/g,"%25")};this.copyProperties=function(g,f){for(var e in g){if(f[e]===undefined){f[e]=g[e]}}return f};this.domain=function(){var f="";try{f=document.domain}catch(g){}return f};this.domainMatches=function(h,g){if(g=="*"||g==h){return true}var f=g.lastIndexOf("*");if(f>-1){g=g.substr(f+1);var e=h.lastIndexOf(g);if(e>-1&&(e+g.length)==h.length){return true}}return false};this.uriEncode=function(e){return encodeURI(decodeURIComponent(e))};this.delay=function(f,h,g){var e=Array.prototype.slice.call(arguments,3);setTimeout(function(){h.apply(g,e)},f)}}D.UNIT_REMOVAL_PROPERTIES={leading:true,"margin-left":true,"margin-right":true,"text-indent":true};D.SINGLE_WHITESPACE=" ";function U(e){var d=this;function c(g,j,h){var k=d.getStyleAsInt(g,j,e.ua.ie);if(k==0){k=g[h];for(var f=3;f<arguments.length;f++){k-=d.getStyleAsInt(g,arguments[f],true)}}return k}this.getBody=function(){return document.getElementsByTagName("body")[0]||null};this.querySelectorAll=function(f){return window.parseSelector(f)};this.addClass=function(f,g){if(g){g.className=((g.className||"")==""?"":g.className+" ")+f}};this.removeClass=function(f,g){if(g){g.className=g.className.replace(new RegExp("(^|\\s)"+f+"(\\s|$)"),"").replace(/^\s+|(\s)\s+/g,"$1")}};this.hasClass=function(f,g){return new RegExp("(^|\\s)"+f+"(\\s|$)").test(g.className)};this.hasOneOfClassses=function(h,g){for(var f=0;f<h.length;f++){if(this.hasClass(h[f],g)){return true}}return false};this.ancestorHasClass=function(g,f){g=g.parentNode;while(g&&g.nodeType==1){if(this.hasClass(f,g)){return true}g=g.parentNode}return false};this.create=function(f,g){var h=document.createElementNS?document.createElementNS(U.XHTML_NS,f):document.createElement(f);if(g){h.className=g}return h};this.getComputedStyle=function(h,i){var f;if(document.defaultView&&document.defaultView.getComputedStyle){var g=document.defaultView.getComputedStyle(h,null);f=g?g[i]:null}else{if(h.currentStyle){f=h.currentStyle[i]}}return f||""};this.getStyleAsInt=function(g,i,f){var h=this.getComputedStyle(g,i);if(f&&!/px$/.test(h)){return 0}return parseInt(h)||0};this.getWidthFromStyle=function(f){return c(f,"width","offsetWidth","paddingRight","paddingLeft","borderRightWidth","borderLeftWidth")};this.getHeightFromStyle=function(f){return c(f,"height","offsetHeight","paddingTop","paddingBottom","borderTopWidth","borderBottomWidth")};this.getDimensions=function(j){var h=j.offsetWidth;var f=j.offsetHeight;if(h==0||f==0){for(var g=0;g<j.childNodes.length;g++){var k=j.childNodes[g];if(k.nodeType!=1){continue}h=Math.max(h,k.offsetWidth);f=Math.max(f,k.offsetHeight)}}return{width:h,height:f}};this.getViewport=function(){return{width:window.innerWidth||document.documentElement.clientWidth||this.getBody().clientWidth,height:window.innerHeight||document.documentElement.clientHeight||this.getBody().clientHeight}};this.blurElement=function(g){try{g.blur();return}catch(h){}var f=this.create("input");f.style.width="0px";f.style.height="0px";g.parentNode.appendChild(f);f.focus();f.blur();f.parentNode.removeChild(f)}}U.XHTML_NS="http://www.w3.org/1999/xhtml";function H(r){var g=navigator.userAgent.toLowerCase();var q=(navigator.product||"").toLowerCase();var h=navigator.platform.toLowerCase();this.parseVersion=H.parseVersion;this.macintosh=/^mac/.test(h);this.windows=/^win/.test(h);this.linux=/^linux/.test(h);this.quicktime=false;this.opera=/opera/.test(g);this.konqueror=/konqueror/.test(g);this.ie=false/*@cc_on||true@*/;this.ieSupported=this.ie&&!/ppc|smartphone|iemobile|msie\s5\.5/.test(g)/*@cc_on&&@_jscript_version>=5.5@*/;this.ieWin=this.ie&&this.windows/*@cc_on&&@_jscript_version>=5.1@*/;this.windows=this.windows&&(!this.ie||this.ieWin);this.ieMac=this.ie&&this.macintosh/*@cc_on&&@_jscript_version<5.1@*/;this.macintosh=this.macintosh&&(!this.ie||this.ieMac);this.safari=/safari/.test(g);this.webkit=!this.konqueror&&/applewebkit/.test(g);this.khtml=this.webkit||this.konqueror;this.gecko=!this.khtml&&q=="gecko";this.ieVersion=this.ie&&/.*msie\s(\d\.\d)/.exec(g)?this.parseVersion(RegExp.$1):"0";this.operaVersion=this.opera&&/.*opera(\s|\/)(\d+\.\d+)/.exec(g)?this.parseVersion(RegExp.$2):"0";this.webkitVersion=this.webkit&&/.*applewebkit\/(\d+).*/.exec(g)?this.parseVersion(RegExp.$1):"0";this.geckoVersion=this.gecko&&/.*rv:\s*([^\)]+)\)\s+gecko/.exec(g)?this.parseVersion(RegExp.$1):"0";this.konquerorVersion=this.konqueror&&/.*konqueror\/([\d\.]+).*/.exec(g)?this.parseVersion(RegExp.$1):"0";this.flashVersion=0;if(this.ieWin){var l;var o=false;try{l=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(m){try{l=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");this.flashVersion=this.parseVersion("6");l.AllowScriptAccess="always"}catch(m){o=this.flashVersion==this.parseVersion("6")}if(!o){try{l=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(m){}}}if(!o&&l){this.flashVersion=this.parseVersion((l.GetVariable("$version")||"").replace(/^\D+(\d+)\D+(\d+)\D+(\d+).*/g,"$1.$2.$3"))}}else{if(navigator.plugins&&navigator.plugins["Shockwave Flash"]){var n=navigator.plugins["Shockwave Flash"].description.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var p=n.replace(/^\D*(\d+\.\d+).*$/,"$1");if(/r/.test(n)){p+=n.replace(/^.*r(\d*).*$/,".$1")}else{if(/d/.test(n)){p+=".0"}}this.flashVersion=this.parseVersion(p);var j=false;for(var k=0,c=this.flashVersion>=H.MIN_FLASH_VERSION;c&&k<navigator.mimeTypes.length;k++){var f=navigator.mimeTypes[k];if(f.type!="application/x-shockwave-flash"){continue}if(f.enabledPlugin){j=true;if(f.enabledPlugin.description.toLowerCase().indexOf("quicktime")>-1){c=false;this.quicktime=true}}}if(this.quicktime||!j){this.flashVersion=this.parseVersion("0")}}}this.flash=this.flashVersion>=H.MIN_FLASH_VERSION;this.transparencySupport=this.macintosh||this.windows||this.linux&&(this.flashVersion>=this.parseVersion("10")&&(this.gecko&&this.geckoVersion>=this.parseVersion("1.9")||this.opera));this.computedStyleSupport=this.ie||!!document.defaultView.getComputedStyle;this.fixFocus=this.gecko&&this.windows;this.nativeDomLoaded=this.gecko||this.webkit&&this.webkitVersion>=this.parseVersion("525")||this.konqueror&&this.konquerorMajor>this.parseVersion("03")||this.opera;this.mustCheckStyle=this.khtml||this.opera;this.forcePageLoad=this.webkit&&this.webkitVersion<this.parseVersion("523");this.properDocument=typeof(document.location)=="object";this.supported=this.flash&&this.properDocument&&(!this.ie||this.ieSupported)&&this.computedStyleSupport&&(!this.opera||this.operaVersion>=this.parseVersion("9.61"))&&(!this.webkit||this.webkitVersion>=this.parseVersion("412"))&&(!this.gecko||this.geckoVersion>=this.parseVersion("1.8.0.12"))&&(!this.konqueror)}H.parseVersion=function(c){return c.replace(/(^|\D)(\d+)(?=\D|$)/g,function(f,e,g){f=e;for(var d=4-g.length;d>=0;d--){f+="0"}return f+g})};H.MIN_FLASH_VERSION=H.parseVersion("8");function F(c){this.fix=c.ua.ieWin&&window.location.hash!="";var d;this.cache=function(){d=document.title};function e(){document.title=d}this.restore=function(){if(this.fix){setTimeout(e,0)}}}function S(l){var e=null;function c(){try{if(l.ua.ie||document.readyState!="loaded"&&document.readyState!="complete"){document.documentElement.doScroll("left")}}catch(n){return setTimeout(c,10)}i()}function i(){if(l.useStyleCheck){h()}else{if(!l.ua.mustCheckStyle){d(null,true)}}}function h(){e=l.dom.create("div",E.DUMMY);l.dom.getBody().appendChild(e);m()}function m(){if(l.dom.getComputedStyle(e,"marginLeft")=="42px"){g()}else{setTimeout(m,10)}}function g(){if(e&&e.parentNode){e.parentNode.removeChild(e)}e=null;d(null,true)}function d(n,o){l.initialize(o);if(n&&n.type=="load"){if(document.removeEventListener){document.removeEventListener("DOMContentLoaded",d,false)}if(window.removeEventListener){window.removeEventListener("load",d,false)}}}function j(){l.prepareClearReferences();if(document.readyState=="interactive"){document.attachEvent("onstop",f);setTimeout(function(){document.detachEvent("onstop",f)},0)}}function f(){document.detachEvent("onstop",f);k()}function k(){l.clearReferences()}this.attach=function(){if(window.addEventListener){window.addEventListener("load",d,false)}else{window.attachEvent("onload",d)}if(!l.useDomLoaded||l.ua.forcePageLoad||l.ua.ie&&window.top!=window){return}if(l.ua.nativeDomLoaded){document.addEventListener("DOMContentLoaded",i,false)}else{if(l.ua.ie||l.ua.khtml){c()}}};this.attachUnload=function(){if(!l.ua.ie){return}window.attachEvent("onbeforeunload",j);window.attachEvent("onunload",k)}}var Q="sifrFetch";function N(c){var e=false;this.fetchMovies=function(f){if(c.setPrefetchCookie&&new RegExp(";?"+Q+"=true;?").test(document.cookie)){return}try{e=true;d(f)}catch(g){}if(c.setPrefetchCookie){document.cookie=Q+"=true;path="+c.cookiePath}};this.clear=function(){if(!e){return}try{var f=document.getElementsByTagName("script");for(var g=f.length-1;g>=0;g--){var h=f[g];if(h.type=="sifr/prefetch"){h.parentNode.removeChild(h)}}}catch(j){}};function d(f){for(var g=0;g<f.length;g++){document.write('<script defer type="sifr/prefetch" src="'+f[g].src+'"><\/script>')}}}function b(e){var g=e.ua.ie;var f=g&&e.ua.flashVersion<e.ua.parseVersion("9.0.115");var d={};var c={};this.fixFlash=f;this.register=function(h){if(!g){return}var i=h.getAttribute("id");this.cleanup(i,false);c[i]=h;delete d[i];if(f){window[i]=h}};this.reset=function(){if(!g){return false}for(var j=0;j<e.replacements.length;j++){var h=e.replacements[j];var k=c[h.id];if(!d[h.id]&&(!k.parentNode||k.parentNode.nodeType==11)){h.resetMovie();d[h.id]=true}}return true};this.cleanup=function(l,h){var i=c[l];if(!i){return}for(var k in i){if(typeof(i[k])=="function"){i[k]=null}}c[l]=null;if(f){window[l]=null}if(i.parentNode){if(h&&i.parentNode.nodeType==1){var j=document.createElement("div");j.style.width=i.offsetWidth+"px";j.style.height=i.offsetHeight+"px";i.parentNode.replaceChild(j,i)}else{i.parentNode.removeChild(i)}}};this.prepareClearReferences=function(){if(!f){return}__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}};this.clearReferences=function(){if(f){var j=document.getElementsByTagName("object");for(var h=j.length-1;h>=0;h--){c[j[h].getAttribute("id")]=j[h]}}for(var k in c){if(Object.prototype[k]!=c[k]){this.cleanup(k,true)}}}}function K(d,g,f,c,e){this.sIFR=d;this.id=g;this.vars=f;this.movie=null;this.__forceWidth=c;this.__events=e;this.__resizing=0}K.prototype={getFlashElement:function(){return document.getElementById(this.id)},getAlternate:function(){return document.getElementById(this.id+"_alternate")},getAncestor:function(){var c=this.getFlashElement().parentNode;return !this.sIFR.dom.hasClass(E.FIX_FOCUS,c)?c:c.parentNode},available:function(){var c=this.getFlashElement();return c&&c.parentNode},call:function(c){var d=this.getFlashElement();if(!d[c]){return false}return Function.prototype.apply.call(d[c],d,Array.prototype.slice.call(arguments,1))},attempt:function(){if(!this.available()){return false}try{this.call.apply(this,arguments)}catch(c){if(this.sIFR.debug){throw c}return false}return true},updateVars:function(c,e){for(var d=0;d<this.vars.length;d++){if(this.vars[d].split("=")[0]==c){this.vars[d]=c+"="+e;break}}var f=this.sIFR.util.encodeVars(this.vars);this.movie.injectVars(this.getFlashElement(),f);this.movie.injectVars(this.movie.html,f)},storeSize:function(c,d){this.movie.setSize(c,d);this.updateVars(c,d)},fireEvent:function(c){if(this.available()&&this.__events[c]){this.sIFR.util.delay(0,this.__events[c],this,this)}},resizeFlashElement:function(c,d,e){if(!this.available()){return}this.__resizing++;var f=this.getFlashElement();f.setAttribute("height",c);this.getAncestor().style.minHeight="";this.updateVars("renderheight",c);this.storeSize("height",c);if(d!==null){f.setAttribute("width",d);this.movie.setSize("width",d)}if(this.__events.onReplacement){this.sIFR.util.delay(0,this.__events.onReplacement,this,this);delete this.__events.onReplacement}if(e){this.sIFR.util.delay(0,function(){this.attempt("scaleMovie");this.__resizing--},this)}else{this.__resizing--}},blurFlashElement:function(){if(this.available()){this.sIFR.dom.blurElement(this.getFlashElement())}},resetMovie:function(){this.sIFR.util.delay(0,this.movie.reset,this.movie,this.getFlashElement(),this.getAlternate())},resizeAfterScale:function(){if(this.available()&&this.__resizing==0){this.sIFR.util.delay(0,this.resize,this)}},resize:function(){if(!this.available()){return}this.__resizing++;var g=this.getFlashElement();var f=g.offsetWidth;if(f==0){return}var e=g.getAttribute("width");var l=g.getAttribute("height");var m=this.getAncestor();var o=this.sIFR.dom.getHeightFromStyle(m);g.style.width="1px";g.style.height="1px";m.style.minHeight=o+"px";var c=this.getAlternate().childNodes;var n=[];for(var k=0;k<c.length;k++){var h=c[k].cloneNode(true);n.push(h);m.appendChild(h)}var d=this.sIFR.dom.getWidthFromStyle(m);for(var k=0;k<n.length;k++){m.removeChild(n[k])}g.style.width=g.style.height=m.style.minHeight="";g.setAttribute("width",this.__forceWidth?d:e);g.setAttribute("height",l);if(sIFR.ua.ie){g.style.display="none";var j=g.offsetHeight;g.style.display=""}if(d!=f){if(this.__forceWidth){this.storeSize("width",d)}this.attempt("resize",d)}this.__resizing--},replaceText:function(g,j){var d=this.sIFR.util.escape(g);if(!this.attempt("replaceText",d)){return false}this.updateVars("content",d);var f=this.getAlternate();if(j){while(f.firstChild){f.removeChild(f.firstChild)}for(var c=0;c<j.length;c++){f.appendChild(j[c])}}else{try{f.innerHTML=g}catch(h){}}return true},changeCSS:function(c){c=this.sIFR.util.escape(this.sIFR.util.cssToString(this.sIFR.util.convertCssArg(c)));this.updateVars("css",c);return this.attempt("changeCSS",c)},remove:function(){if(this.movie&&this.available()){this.movie.remove(this.getFlashElement(),this.id)}}};var X=new function(){this.create=function(p,n,j,i,f,e,g,o,l,h,m){var k=p.ua.ie?d:c;return new k(p,n,j,i,f,e,g,o,["flashvars",l,"wmode",h,"bgcolor",m,"allowScriptAccess","always","quality","best"])};function c(s,q,l,h,f,e,g,r,n){var m=s.dom.create("object",E.FLASH);var p=["type","application/x-shockwave-flash","id",f,"name",f,"data",e,"width",g,"height",r];for(var o=0;o<p.length;o+=2){m.setAttribute(p[o],p[o+1])}var j=m;if(h){j=W.create("div",E.FIX_FOCUS);j.appendChild(m)}for(var o=0;o<n.length;o+=2){if(n[o]=="name"){continue}var k=W.create("param");k.setAttribute("name",n[o]);k.setAttribute("value",n[o+1]);m.appendChild(k)}l.style.minHeight=r+"px";while(l.firstChild){l.removeChild(l.firstChild)}l.appendChild(j);this.html=j.cloneNode(true)}c.prototype={reset:function(e,f){e.parentNode.replaceChild(this.html.cloneNode(true),e)},remove:function(e,f){e.parentNode.removeChild(e)},setSize:function(e,f){this.html.setAttribute(e,f)},injectVars:function(e,g){var h=e.getElementsByTagName("param");for(var f=0;f<h.length;f++){if(h[f].getAttribute("name")=="flashvars"){h[f].setAttribute("value",g);break}}}};function d(p,n,j,h,f,e,g,o,k){this.dom=p.dom;this.broken=n;this.html='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="'+f+'" width="'+g+'" height="'+o+'" class="'+E.FLASH+'"><param name="movie" value="'+e+'"></param></object>';var m="";for(var l=0;l<k.length;l+=2){m+='<param name="'+k[l]+'" value="'+k[l+1]+'"></param>'}this.html=this.html.replace(/(<\/object>)/,m+"$1");j.style.minHeight=o+"px";j.innerHTML=this.html;this.broken.register(j.firstChild)}d.prototype={reset:function(f,g){g=g.cloneNode(true);var e=f.parentNode;e.innerHTML=this.html;this.broken.register(e.firstChild);e.appendChild(g)},remove:function(e,f){this.broken.cleanup(f)},setSize:function(e,f){this.html=this.html.replace(e=="height"?/(height)="\d+"/:/(width)="\d+"/,'$1="'+f+'"')},injectVars:function(e,f){if(e!=this.html){return}this.html=this.html.replace(/(flashvars(=|\"\svalue=)\")[^\"]+/,"$1"+f)}}};this.errors=new Y(O);var A=this.util=new D(O);var W=this.dom=new U(O);var T=this.ua=new H(O);var G={fragmentIdentifier:new F(O),pageLoad:new S(O),prefetch:new N(O),brokenFlashIE:new b(O)};this.__resetBrokenMovies=G.brokenFlashIE.reset;var J={kwargs:[],replaceAll:function(d){for(var c=0;c<this.kwargs.length;c++){O.replace(this.kwargs[c])}if(!d){this.kwargs=[]}}};this.activate=function(){if(!T.supported||!this.isEnabled||this.isActive||!C()||a()){return}G.prefetch.fetchMovies(arguments);this.isActive=true;this.setFlashClass();G.fragmentIdentifier.cache();G.pageLoad.attachUnload();if(!this.autoInitialize){return}G.pageLoad.attach()};this.setFlashClass=function(){if(this.hasFlashClassSet){return}W.addClass(E.ACTIVE,W.getBody()||document.documentElement);this.hasFlashClassSet=true};this.removeFlashClass=function(){if(!this.hasFlashClassSet){return}W.removeClass(E.ACTIVE,W.getBody());W.removeClass(E.ACTIVE,document.documentElement);this.hasFlashClassSet=false};this.initialize=function(c){if(!this.isActive||!this.isEnabled){return}if(R){if(!c){J.replaceAll(false)}return}R=true;J.replaceAll(c);if(O.repaintOnResize){if(window.addEventListener){window.addEventListener("resize",Z,false)}else{window.attachEvent("onresize",Z)}}G.prefetch.clear()};this.replace=function(x,u){if(!T.supported){return}if(u){x=A.copyProperties(x,u)}if(!R){return J.kwargs.push(x)}if(this.onReplacementStart){this.onReplacementStart(x)}var AM=x.elements||W.querySelectorAll(x.selector);if(AM.length==0){return}var w=M(x.src);var AR=A.convertCssArg(x.css);var v=B(x.filters);var AN=x.forceSingleLine===true;var AS=x.preventWrap===true&&!AN;var q=AN||(x.fitExactly==null?this.fitExactly:x.fitExactly)===true;var AD=q||(x.forceWidth==null?this.forceWidth:x.forceWidth)===true;var s=x.ratios||[];var AE=x.pixelFont===true;var r=parseInt(x.tuneHeight)||0;var z=!!x.onRelease||!!x.onRollOver||!!x.onRollOut;if(q){A.extractFromCss(AR,".sIFR-root","text-align",true)}var t=A.extractFromCss(AR,".sIFR-root","font-size",true)||"0";var e=A.extractFromCss(AR,".sIFR-root","background-color",true)||"#FFFFFF";var o=A.extractFromCss(AR,".sIFR-root","kerning",true)||"";var AW=A.extractFromCss(AR,".sIFR-root","opacity",true)||"100";var k=A.extractFromCss(AR,".sIFR-root","cursor",true)||"default";var AP=parseInt(A.extractFromCss(AR,".sIFR-root","leading"))||0;var AJ=x.gridFitType||(A.extractFromCss(AR,".sIFR-root","text-align")=="right")?"subpixel":"pixel";var h=this.forceTextTransform===false?"none":A.extractFromCss(AR,".sIFR-root","text-transform",true)||"none";t=/^\d+(px)?$/.test(t)?parseInt(t):0;AW=parseFloat(AW)<1?100*parseFloat(AW):AW;var AC=x.modifyCss?"":A.cssToString(AR);var AG=x.wmode||"";if(!AG){if(x.transparent){AG="transparent"}else{if(x.opaque){AG="opaque"}}}if(AG=="transparent"){if(!T.transparencySupport){AG="opaque"}else{e="transparent"}}else{if(e=="transparent"){e="#FFFFFF"}}for(var AV=0;AV<AM.length;AV++){var AF=AM[AV];if(W.hasOneOfClassses(E.IGNORE_CLASSES,AF)||W.ancestorHasClass(AF,E.ALTERNATE)){continue}var AO=W.getDimensions(AF);var f=AO.height;var c=AO.width;var AA=W.getComputedStyle(AF,"display");if(!f||!c||!AA||AA=="none"){continue}c=W.getWidthFromStyle(AF);var n,AH;if(!t){var AL=I(AF);n=Math.min(this.MAX_FONT_SIZE,Math.max(this.MIN_FONT_SIZE,AL.fontSize));if(AE){n=Math.max(8,8*Math.round(n/8))}AH=AL.lines}else{n=t;AH=1}var d=W.create("span",E.ALTERNATE);var AX=AF.cloneNode(true);AF.parentNode.appendChild(AX);for(var AU=0,AT=AX.childNodes.length;AU<AT;AU++){var m=AX.childNodes[AU];if(!/^(style|script)$/i.test(m.nodeName)){d.appendChild(m.cloneNode(true))}}if(x.modifyContent){x.modifyContent(AX,x.selector)}if(x.modifyCss){AC=x.modifyCss(AR,AX,x.selector)}var p=P(AX,h,x.uriEncode);AX.parentNode.removeChild(AX);if(x.modifyContentString){p.text=x.modifyContentString(p.text,x.selector)}if(p.text==""){continue}var AK=Math.round(AH*V(n,s)*n)+this.FLASH_PADDING_BOTTOM+r;if(AH>1&&AP){AK+=Math.round((AH-1)*AP)}var AB=AD?c:"100%";var AI="sIFR_replacement_"+L++;var AQ=["id="+AI,"content="+A.escape(p.text),"width="+c,"renderheight="+AK,"link="+A.escape(p.primaryLink.href||""),"target="+A.escape(p.primaryLink.target||""),"size="+n,"css="+A.escape(AC),"cursor="+k,"tunewidth="+(x.tuneWidth||0),"tuneheight="+r,"offsetleft="+(x.offsetLeft||""),"offsettop="+(x.offsetTop||""),"fitexactly="+q,"preventwrap="+AS,"forcesingleline="+AN,"antialiastype="+(x.antiAliasType||""),"thickness="+(x.thickness||""),"sharpness="+(x.sharpness||""),"kerning="+o,"gridfittype="+AJ,"flashfilters="+v,"opacity="+AW,"blendmode="+(x.blendMode||""),"selectable="+(x.selectable==null||AG!=""&&!sIFR.ua.macintosh&&sIFR.ua.gecko&&sIFR.ua.geckoVersion>=sIFR.ua.parseVersion("1.9")?"true":x.selectable===true),"fixhover="+(this.fixHover===true),"events="+z,"delayrun="+G.brokenFlashIE.fixFlash,"version="+this.VERSION];var y=A.encodeVars(AQ);var g=new K(O,AI,AQ,AD,{onReplacement:x.onReplacement,onRollOver:x.onRollOver,onRollOut:x.onRollOut,onRelease:x.onRelease});g.movie=X.create(sIFR,G.brokenFlashIE,AF,T.fixFocus&&x.fixFocus,AI,w,AB,AK,y,AG,e);this.replacements.push(g);this.replacements[AI]=g;if(x.selector){if(!this.replacements[x.selector]){this.replacements[x.selector]=[g]}else{this.replacements[x.selector].push(g)}}d.setAttribute("id",AI+"_alternate");AF.appendChild(d);W.addClass(E.REPLACED,AF)}G.fragmentIdentifier.restore()};this.getReplacementByFlashElement=function(d){for(var c=0;c<O.replacements.length;c++){if(O.replacements[c].id==d.getAttribute("id")){return O.replacements[c]}}};this.redraw=function(){for(var c=0;c<O.replacements.length;c++){O.replacements[c].resetMovie()}};this.prepareClearReferences=function(){G.brokenFlashIE.prepareClearReferences()};this.clearReferences=function(){G.brokenFlashIE.clearReferences();G=null;J=null;delete O.replacements};function C(){if(O.domains.length==0){return true}var d=A.domain();for(var c=0;c<O.domains.length;c++){if(A.domainMatches(d,O.domains[c])){return true}}return false}function a(){if(document.location.protocol=="file:"){if(O.debug){O.errors.fire("isFile")}return true}return false}function M(c){if(T.ie&&c.charAt(0)=="/"){c=window.location.toString().replace(/([^:]+)(:\/?\/?)([^\/]+).*/,"$1$2$3")+c}return c}function V(d,e){for(var c=0;c<e.length;c+=2){if(d<=e[c]){return e[c+1]}}return e[e.length-1]||1}function B(g){var e=[];for(var d in g){if(g[d]==Object.prototype[d]){continue}var c=g[d];d=[d.replace(/filter/i,"")+"Filter"];for(var f in c){if(c[f]==Object.prototype[f]){continue}d.push(f+":"+A.escape(A.toJson(c[f],A.toHexString)))}e.push(d.join(","))}return A.escape(e.join(";"))}function Z(d){var e=Z.viewport;var c=W.getViewport();if(e&&c.width==e.width&&c.height==e.height){return}Z.viewport=c;if(O.replacements.length==0){return}if(Z.timer){clearTimeout(Z.timer)}Z.timer=setTimeout(function(){delete Z.timer;for(var f=0;f<O.replacements.length;f++){O.replacements[f].resize()}},200)}function I(f){var g=W.getComputedStyle(f,"fontSize");var d=g.indexOf("px")==-1;var e=f.innerHTML;if(d){f.innerHTML="X"}f.style.paddingTop=f.style.paddingBottom=f.style.borderTopWidth=f.style.borderBottomWidth="0px";f.style.lineHeight="2em";f.style.display="block";g=d?f.offsetHeight/2:parseInt(g,10);if(d){f.innerHTML=e}var c=Math.round(f.offsetHeight/(2*g));f.style.paddingTop=f.style.paddingBottom=f.style.borderTopWidth=f.style.borderBottomWidth=f.style.lineHeight=f.style.display="";if(isNaN(c)||!isFinite(c)||c==0){c=1}return{fontSize:g,lines:c}}function P(c,g,s){s=s||A.uriEncode;var q=[],m=[];var k=null;var e=c.childNodes;var o=false,p=false;var j=0;while(j<e.length){var f=e[j];if(f.nodeType==3){var t=A.textTransform(g,A.normalize(f.nodeValue)).replace(/</g,"&lt;");if(o&&p){t=t.replace(/^\s+/,"")}m.push(t);o=/\s$/.test(t);p=false}if(f.nodeType==1&&!/^(style|script)$/i.test(f.nodeName)){var h=[];var r=f.nodeName.toLowerCase();var n=f.className||"";if(/\s+/.test(n)){if(n.indexOf(E.CLASS)>-1){n=n.match("(\\s|^)"+E.CLASS+"-([^\\s$]*)(\\s|$)")[2]}else{n=n.match(/^([^\s]+)/)[1]}}if(n!=""){h.push('class="'+n+'"')}if(r=="a"){var d=s(f.getAttribute("href")||"");var l=f.getAttribute("target")||"";h.push('href="'+d+'"','target="'+l+'"');if(!k){k={href:d,target:l}}}m.push("<"+r+(h.length>0?" ":"")+h.join(" ")+">");p=true;if(f.hasChildNodes()){q.push(j);j=0;e=f.childNodes;continue}else{if(!/^(br|img)$/i.test(f.nodeName)){m.push("</",f.nodeName.toLowerCase(),">")}}}if(q.length>0&&!f.nextSibling){do{j=q.pop();e=f.parentNode.parentNode.childNodes;f=e[j];if(f){m.push("</",f.nodeName.toLowerCase(),">")}}while(j==e.length-1&&q.length>0)}j++}return{text:m.join("").replace(/^\s+|\s+$|\s*(<br>)\s*/g,"$1"),primaryLink:k||{}}}};
var parseSelector=(function(){var B=/\s*,\s*/;var A=/\s*([\s>+~(),]|^|$)\s*/g;var L=/([\s>+~,]|[^(]\+|^)([#.:@])/g;var F=/(^|\))[^\s>+~]/g;var M=/(\)|^)/;var K=/[\s#.:>+~()@]|[^\s#.:>+~()@]+/g;function H(R,P){P=P||document.documentElement;var S=R.split(B),X=[];for(var U=0;U<S.length;U++){var N=[P],W=G(S[U]);for(var T=0;T<W.length;){var Q=W[T++],O=W[T++],V="";if(W[T]=="("){while(W[T++]!=")"&&T<W.length){V+=W[T]}V=V.slice(0,-1)}N=I(N,Q,O,V)}X=X.concat(N)}return X}function G(N){var O=N.replace(A,"$1").replace(L,"$1*$2").replace(F,D);return O.match(K)||[]}function D(N){return N.replace(M,"$1 ")}function I(N,P,Q,O){return(H.selectors[P])?H.selectors[P](N,Q,O):[]}var E={toArray:function(O){var N=[];for(var P=0;P<O.length;P++){N.push(O[P])}return N}};var C={isTag:function(O,N){return(N=="*")||(N.toLowerCase()==O.nodeName.toLowerCase())},previousSiblingElement:function(N){do{N=N.previousSibling}while(N&&N.nodeType!=1);return N},nextSiblingElement:function(N){do{N=N.nextSibling}while(N&&N.nodeType!=1);return N},hasClass:function(N,O){return(O.className||"").match("(^|\\s)"+N+"(\\s|$)")},getByTag:function(N,O){return O.getElementsByTagName(N)}};var J={"#":function(N,P){for(var O=0;O<N.length;O++){if(N[O].getAttribute("id")==P){return[N[O]]}}return[]}," ":function(O,Q){var N=[];for(var P=0;P<O.length;P++){N=N.concat(E.toArray(C.getByTag(Q,O[P])))}return N},">":function(O,R){var N=[];for(var Q=0,S;Q<O.length;Q++){S=O[Q];for(var P=0,T;P<S.childNodes.length;P++){T=S.childNodes[P];if(T.nodeType==1&&C.isTag(T,R)){N.push(T)}}}return N},".":function(O,Q){var N=[];for(var P=0,R;P<O.length;P++){R=O[P];if(C.hasClass([Q],R)){N.push(R)}}return N},":":function(N,P,O){return(H.pseudoClasses[P])?H.pseudoClasses[P](N,O):[]}};H.selectors=J;H.pseudoClasses={};H.util=E;H.dom=C;return H})();
/*######################################## end ./sIFR/sifr3-r436/sifr.js ########################################*/