/*######################################## begin bubbleTooltip.js ########################################*/
/*Javascript for Bubble Tooltips by Alessandro Fulciniti http://pro.html.it - http://web-graphics.com */
/*edits by Jon Hartley and Tong Lim*/
function enableTooltips(id){
var links,i,h;
if(!document.getElementById || !document.getElementsByTagName) return;
AddCss();
h=document.createElement("span");
h.id="btc";
h.setAttribute("id","btc");
h.style.position="absolute";
document.getElementsByTagName("body")[0].appendChild(h);
if(id==null) links=document.getElementsByTagName("a");
else links=document.getElementsByName(id); //now works with multiple anchor tags with same name
for(i=0;i<links.length;i++){
	links[i].className="tooltipText"; //add a class name to the anchor tags 
    Prepare(links[i]);
    }
}

function Prepare(el){
	var tooltip,t,b,s,l;
	t=el.getAttribute("title");
	if(t==null || t.length==0) t="link:";
	el.removeAttribute("title");
	tooltip=CreateEl("span","tooltip"); 
	s=CreateEl("span","top");
	s.appendChild(document.createTextNode(t));
	tooltip.appendChild(s);
	b=CreateEl("b","bottom");
	tooltip.appendChild(b);
	el.tooltip=tooltip;
	el.onmouseover=showTooltip;
	el.onmouseout=hideTooltip;
	el.onmousemove=moveTooltip; // allows the bubble to "flip" when the mouse is moving along a link
}

function moveTooltip(e){ // set the class name of the span for flipping the background graphic
	var className = Locate(e); 
	if (this.tooltip.className != className) this.tooltip.className = className; //"if" prevents flickering
}

function showTooltip(e){
	this.tooltip.className = Locate(e); 
	document.getElementById("btc").appendChild(this.tooltip);
}

function hideTooltip(e){
	var d=document.getElementById("btc");
	if(d.childNodes.length>0) d.removeChild(d.firstChild);
}

function CreateEl(t,c){
	var x=document.createElement(t);
	x.className=c; 
	x.style.display="block";
	return(x);
}

function AddCss(){
	var l=CreateEl("link");
	l.setAttribute("type","text/css");
	l.setAttribute("rel","stylesheet");
	l.setAttribute("href","/style/bubbleTooltip.css");
	l.setAttribute("media","screen");
	document.getElementsByTagName("head")[0].appendChild(l);
}

function Locate(e){
	var posx=0,posy=0;
	var str_tooltip;
	if(e==null) e=window.event;
	if(e.pageX || e.pageY){
		posx=e.pageX; posy=e.pageY;
		}
	else if(e.clientX || e.clientY){
		if(document.documentElement.scrollTop){
			posx=e.clientX+document.documentElement.scrollLeft;
			posy=e.clientY+document.documentElement.scrollTop;
			}
		else{
			posx=e.clientX+document.body.scrollLeft;
			posy=e.clientY+document.body.scrollTop;
			}
		}
		// Check to see if the right edge of browser window is too close to the tooltip. 
		if (posx + 200 > document.documentElement.clientWidth){
			posx = posx - 158;
			str_tooltip = 'tooltipFlip'; 	
		}
		else str_tooltip = 'tooltip';
	document.getElementById("btc").style.top=(posy+5)+"px";
	document.getElementById("btc").style.left=(posx-18)+"px";
	return str_tooltip;
}
/*######################################## end bubbleTooltip.js ########################################*/
/*######################################## begin styleswitcher.js ########################################*/
function setActiveStyleSheet(title) {
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
      a.disabled = true;
      if(a.getAttribute("title") == title) a.disabled = false;
    }
  }
}

function getActiveStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
  }
  return null;
}

function getPreferredStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1
       && a.getAttribute("rel").indexOf("alt") == -1
       && a.getAttribute("title")
       ) return a.getAttribute("title");
  }
  return null;
}

function createCookie(name,value,days) {
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
  }
  else expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(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;
}

/*window.onload = function(e) {
  var cookie = readCookie("style");
  var title = cookie ? cookie : getPreferredStyleSheet();
  setActiveStyleSheet(title);
}

window.onunload = function(e) {
  var title = getActiveStyleSheet();
  createCookie("style", title, 365);
}

var cookie = readCookie("style");
var title = cookie ? cookie : getPreferredStyleSheet();
setActiveStyleSheet(title);*/
/*######################################## end styleswitcher.js ########################################*/
/*######################################## begin sifr.js ########################################*/
var parseSelector=(function(){var _1=/\s*,\s*/;var _2=/\s*([\s>+~(),]|^|$)\s*/g;var _3=/([\s>+~,]|[^(]\+|^)([#.:@])/g;var _4=/^[^\s>+~]/;var _5=/[\s#.:>+~()@]|[^\s#.:>+~()@]+/g;function parseSelector(_6,_7){_7=_7||document.documentElement;var _8=_6.split(_1),_9=[];for(var i=0;i<_8.length;i++){var _b=[_7],_c=toStream(_8[i]);for(var j=0;j<_c.length;){var _e=_c[j++],_f=_c[j++],_10="";if(_c[j]=="("){while(_c[j++]!=")"&&j<_c.length){_10+=_c[j]}_10=_10.slice(0,-1)}_b=select(_b,_e,_f,_10)}_9=_9.concat(_b)}return _9}function toStream(_11){var _12=_11.replace(_2,"$1").replace(_3,"$1*$2");if(_4.test(_12)){_12=" "+_12}return _12.match(_5)||[]}function select(_13,_14,_15,_16){return (parseSelector.selectors[_14])?parseSelector.selectors[_14](_13,_15,_16):[]}var _17={toArray:function(_18){var a=[];for(var i=0;i<_18.length;i++){a.push(_18[i])}return a}};var dom={isTag:function(_1c,tag){return (tag=="*")||(tag.toLowerCase()==_1c.nodeName.toLowerCase())},previousSiblingElement:function(_1e){do{_1e=_1e.previousSibling}while(_1e&&_1e.nodeType!=1);return _1e},nextSiblingElement:function(_1f){do{_1f=_1f.nextSibling}while(_1f&&_1f.nodeType!=1);return _1f},hasClass:function(_20,_21){return (_21.className||"").match("(^|\\s)"+_20+"(\\s|$)")},getByTag:function(tag,_23){return _23.getElementsByTagName(tag)}};var _24={"#":function(_25,_26){for(var i=0;i<_25.length;i++){if(_25[i].getAttribute("id")==_26){return [_25[i]]}}return []}," ":function(_28,_29){var _2a=[];for(var i=0;i<_28.length;i++){_2a=_2a.concat(_17.toArray(dom.getByTag(_29,_28[i])))}return _2a},">":function(_2c,_2d){var _2e=[];for(var i=0,_30;i<_2c.length;i++){_30=_2c[i];for(var j=0,_32;j<_30.childNodes.length;j++){_32=_30.childNodes[j];if(_32.nodeType==1&&dom.isTag(_32,_2d)){_2e.push(_32)}}}return _2e},".":function(_33,_34){var _35=[];for(var i=0,_37;i<_33.length;i++){_37=_33[i];if(dom.hasClass([_34],_37)){_35.push(_37)}}return _35},":":function(_38,_39,_3a){return (parseSelector.pseudoClasses[_39])?parseSelector.pseudoClasses[_39](_38,_3a):[]}};parseSelector.selectors=_24;parseSelector.pseudoClasses={};parseSelector.util=_17;parseSelector.dom=dom;return parseSelector})();
var sIFR=new function(){var _3b=this;var _3c="sIFR-active";var _3d="sIFR-unloading";var _3e="sIFR-replaced";var _3f="sIFR-flash";var _40="sIFR-ignore";var _41="sIFR-alternate";var _42="sIFR-class";var _43="sIFR-layout";var _44="sIFR-fixfocus";var _45="sIFR-dummy";var _46="sIFR-zoomdetect";var _47=6;var _48=126;var _49=8;var _4a="SIFR-PREFETCHED";var _4b=[];var _4c=5;var _4d="361";this.isActive=false;this.isEnabled=true;this.preserveSingleWhitespace=false;this.fixWrap=true;this.fixHover=true;this.autoInitialize=true;this.setPrefetchCookie=true;this.cookiePath="/";this.domains=[];this.fromLocal=false;this.forceClear=false;this.forceWidth=true;this.fitExactly=false;this.forceTextTransform=true;this.useDomLoaded=true;this.useStyleCheck=false;this.hasFlashClassSet=false;this.repaintOnResize=true;this.callbacks=[];var _4e=0;var _4f=false,_50=false;var dom=new function(){var _52="http://www.w3.org/1999/xhtml";this.getBody=function(){var _53=document.getElementsByTagName("body");if(_53.length==1){return _53[0]}return null};this.addClass=function(_54,_55){if(_55){_55.className=((_55.className||"")==""?"":_55.className+" ")+_54}};this.removeClass=function(_56,_57){if(_57){_57.className=_57.className.replace(new RegExp("(^|\\s)"+_56+"(\\s|$)"),"").replace(/^\s+|(\s)\s+/g,"$1")}};this.hasClass=function(_58,_59){return new RegExp("(^|\\s)"+_58+"(\\s|$)").test(_59.className)};this.hasOneOfClassses=function(_5a,_5b){for(var i=0;i<_5a.length;i++){if(this.hasClass(_5a[i],_5b)){return true}}return false};this.create=function(_5d){if(document.createElementNS){return document.createElementNS(_52,_5d)}return document.createElement(_5d)};this.nodeFromHtml=function(_5e){var _5f=this.create("div");_5f.innerHTML=_5e;return _5f.firstChild};this.getComputedStyle=function(_60,_61){var _62;if(document.defaultView&&document.defaultView.getComputedStyle){_62=document.defaultView.getComputedStyle(_60,null)[_61]}else{if(_60.currentStyle){_62=_60.currentStyle[_61]}}return _62||""};this.getStyleAsInt=function(_63,_64,_65){var _66=this.getComputedStyle(_63,_64);if(_65&&!/px$/.test(_66)){return 0}_66=parseInt(_66);return isNaN(_66)?0:_66};this.getWidthFromStyle=function(_67){var _68=this.getStyleAsInt(_67,"width",ua.ie);if(_68==0){var _69=this.getStyleAsInt(_67,"paddingRight",true);var _6a=this.getStyleAsInt(_67,"paddingLeft",true);var _6b=this.getStyleAsInt(_67,"borderRightWidth",true);var _6c=this.getStyleAsInt(_67,"borderLeftWidth",true);_68=_67.offsetWidth-_6a-_69-_6c-_6b}return _68};this.getHeightFromStyle=function(_6d){var _6e=this.getStyleAsInt(_6d,"height",ua.ie);if(_6e==0){var _6f=this.getStyleAsInt(_6d,"paddingTop",true);var _70=this.getStyleAsInt(_6d,"paddingBottom",true);var _71=this.getStyleAsInt(_6d,"borderTopHeight",true);var _72=this.getStyleAsInt(_6d,"borderBottomHeight",true);_6e=_6d.offsetHeight-_70-_6f-_72-_71}return _6e};this.blurElement=function(_73){if(ua.gecko){_73.blur();return}var _74=dom.create("input");_74.style.width="0px";_74.style.height="0px";_73.parentNode.appendChild(_74);_74.focus();_74.blur();_74.parentNode.removeChild(_74)};this.getDimensions=function(_75){var _76=_75.offsetWidth;var _77=_75.offsetHeight;if(_76==0||_77==0){for(var i=0;i<_75.childNodes.length;i++){var _79=_75.childNodes[i];if(_79.nodeType!=1){continue}_76=Math.max(_76,_79.offsetWidth);_77=Math.max(_77,_79.offsetHeight)}}return {width:_76,height:_77}};this.contentIsLink=function(_7a){var _7b=false;for(var i=0;i<_7a.childNodes.length;i++){var _7d=_7a.childNodes[i];if(_7d.nodeType==3&&!_7d.nodeValue.match(/^\s*$/)){return false}else{if(_7d.nodeType!=1){continue}}var _7e=_7d.nodeName.toLowerCase()=="a";if(!_7e){return false}else{_7b=true}}return _7b};var dom=this;this.swf={create:function(_80,_81,id,_83,_84,src,_86,_87,_88){var obj=_80.object(_81,id,src,_83,_84);return _80.params(obj,"flashvars",_86,"wmode",_87,"bgcolor",_88,"allowScriptAccess","always","quality","best")},ie:{object:function(_8a,id,src,_8d,_8e){return "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" id=\""+id+"\" width=\""+_8d+"\" height=\""+_8e+"\" class=\""+_3f+"\">"+"<param name=\"movie\" value=\""+src+"\"></param></object>"+"<scr"+"ipt event=FSCommand(info,args) for="+id+">"+id+"_DoFSCommand(info, args);"+"</"+"script>"},params:function(obj){var _90="";for(var i=1;i<arguments.length;i+=2){_90+="<param name=\""+arguments[i]+"\" value=\""+arguments[i+1]+"\"></param>"}return obj.replace(/(<\/object>)/,_90+"$1")},insert:function(_92,_93){_92.innerHTML=_93}},other:{object:function(_94,id,src,_97,_98){var obj=dom.create("object");var _9a=["type","application/x-shockwave-flash","id",id,"name",id,"data",src,"width",_97,"height",_98];while(_9a.length){obj.setAttribute(_9a.shift(),_9a.shift())}obj.className=_3f;if(!_94){return {root:obj,obj:obj}}var _9b=dom.create("div");_9b.className=_44;_9b.appendChild(obj);return {root:_9b,obj:obj}},params:function(obj){for(var i=1;i<arguments.length;i+=2){if(arguments[i]=="name"){continue}var _9e=dom.create("param");_9e.setAttribute("name",arguments[i]);_9e.setAttribute("value",arguments[i+1]);obj.obj.appendChild(_9e)}return obj.root},insert:function(_9f,_a0){while(_9f.firstChild){_9f.removeChild(_9f.firstChild)}_9f.appendChild(_a0)}}}};this.dom=dom;var ua=new function(){var ua=navigator.userAgent.toLowerCase();var _a3=(navigator.product||"").toLowerCase();this.macintosh=ua.indexOf("mac")>-1;this.windows=ua.indexOf("windows")>-1;this.quicktime=false;this.opera=ua.indexOf("opera")>-1;this.konqueror=_a3.indexOf("konqueror")>-1;this.ie=false/*@cc_on||true@*/;this.ieSupported=this.ie&&!/ppc|smartphone|iemobile|msie\s5\.5/.test(ua)/*@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=ua.indexOf("safari")>-1;this.webkit=ua.indexOf("applewebkit")>-1&&!this.konqueror;this.khtml=this.webkit||this.konqueror;this.gecko=!this.webkit&&_a3=="gecko";this.ieVersion=this.ie&&/.*msie\s(\d\.\d)/.exec(ua)?parseFloat(RegExp.$1):0;this.operaVersion=this.opera&&/.*opera(\s|\/)(\d+\.\d+)/.exec(ua)?parseFloat(RegExp.$2):0;this.webkitVersion=this.webkit&&/.*applewebkit\/(\d+).*/.exec(ua)?parseFloat(RegExp.$1):0;this.geckoBuildDate=this.gecko&&/.*gecko\/(\d{8}).*/.exec(ua)?parseFloat(RegExp.$1):0;this.konquerorMajor=this.konqueror&&/.*konqueror\/(\d).*/.exec(ua)?parseFloat(RegExp.$1):0;this.konquerorMinor=this.konqueror&&/.*khtml\/\d\.(\d).*/.exec(ua)?parseFloat(RegExp.$1):0;this.konquerorSmall=this.konqueror&&/.*khtml\/\d\.\d\.(\d).*/.exec(ua)?parseFloat(RegExp.$1):0;this.flashVersion=0;if(this.ieWin){var axo;var _a5=false;try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");this.flashVersion=6;axo.AllowScriptAccess="always"}catch(e){_a5=this.flashVersion==6}if(!_a5){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}}if(!_a5&&axo){this.flashVersion=parseFloat(/([\d,?]+)/.exec(axo.GetVariable("$version"))[1].replace(/,/g,"."))}}else{if(navigator.plugins&&navigator.plugins["Shockwave Flash"]){var _a6=navigator.plugins["Shockwave Flash"];this.flashVersion=parseFloat(/(\d+\.?\d*)/.exec(_a6.description)[1]);var i=0;while(this.flashVersion>=_49&&i<navigator.mimeTypes.length){var _a8=navigator.mimeTypes[i];if(_a8.type=="application/x-shockwave-flash"&&_a8.enabledPlugin.description.toLowerCase().indexOf("quicktime")>-1){this.flashVersion=0;this.quicktime=true}i++}}}this.flash=this.flashVersion>=_49;this.transparencySupport=this.macintosh||this.windows;this.computedStyleSupport=this.ie||document.defaultView&&document.defaultView.getComputedStyle&&(!this.gecko||this.geckoBuildDate>=20030624);this.requiresPrefetch=this.ieWin||this.khtml;this.fixFocus=this.gecko&&this.windows&&this.geckoBuildDate>20061206;this.nativeDomLoaded=this.gecko||this.webkit&&this.webkitVersion>=525||this.konqueror&&this.konquerorMajor>3||this.opera;this.mustCheckStyle=this.khtml||this.opera;this.forcePageLoad=this.webkit&&this.webkit<523;this.properDocument=typeof (document.location)=="object";this.supported=this.flash&&this.properDocument&&(!this.ie||this.ieSupported)&&(!this.opera)&&(!this.webkit||this.webkitVersion>=412)&&(!this.konqueror)&&this.computedStyleSupport&&(!this.gecko||this.geckoBuildDate>20040804)};this.ua=ua;var _a9=new function(){var _aa={leading:true,"margin-left":true,"margin-right":true,"text-indent":true};var _ab=" ";function capitalize($){return $.toUpperCase()}this.normalize=function(str){if(_3b.preserveSingleWhitespace){return str.replace(/\s/g,_ab)}return str.replace(/(\n|\r)+/g,_ab).replace(/(\s)\s+/g,"$1").replace(/\xA0/,_ab)};this.textTransform=function(_ae,str){switch(_ae){case "uppercase":str=str.toUpperCase();break;case "lowercase":str=str.toLowerCase();break;case "capitalize":var _b0=str;str=str.replace(/^\w|\s\w/g,capitalize);if(str.indexOf("function capitalize")!=-1){var _b1=_b0.replace(/(^|\s)(\w)/g,"$1$1$2$2").split(/^\w|\s\w/g);str="";for(var i=0;i<_b1.length;i++){str+=_b1[i].charAt(0).toUpperCase()+_b1[i].substring(1)}}break}return str};this.toHexString=function(str){if(typeof (str)!="string"||!str.charAt(0)=="#"||str.length!=4&&str.length!=7){return str}str=str.replace(/#/,"");if(str.length==3){str=str.replace(/(.)(.)(.)/,"$1$1$2$2$3$3")}return "0x"+str};this.toJson=function(obj){var _b5="";switch(typeof (obj)){case "string":_b5="\""+obj+"\"";break;case "number":case "boolean":_b5=obj.toString();break;case "object":_b5=[];for(var _b6 in obj){if(obj[_b6]==Object.prototype[_b6]){continue}_b5.push("\""+_b6+"\":"+_a9.toJson(obj[_b6]))}_b5="{"+_b5.join(",")+"}";break}return _b5};this.convertCssArg=function(arg){if(!arg){return {}}if(typeof (arg)=="object"){if(arg.constructor==Array){arg=arg.join("")}else{return arg}}var obj={};var _b9=arg.split("}");for(var i=0;i<_b9.length;i++){var $=_b9[i].match(/([^\s{]+)\s*\{(.+)\s*;?\s*/);if(!$||$.length!=3){continue}if(!obj[$[1]]){obj[$[1]]={}}var _bc=$[2].split(";");for(var j=0;j<_bc.length;j++){var $2=_bc[j].match(/\s*([^:\s]+)\s*\:\s*([^;]+)/);if(!$2||$2.length!=3){continue}obj[$[1]][$2[1]]=$2[2].replace(/\s+$/,"")}}return obj};this.extractFromCss=function(css,_c0,_c1,_c2){var _c3=null;if(css&&css[_c0]&&css[_c0][_c1]){_c3=css[_c0][_c1];if(_c2){delete css[_c0][_c1]}}return _c3};this.cssToString=function(arg){var css=[];for(var _c6 in arg){var _c7=arg[_c6];if(_c7==Object.prototype[_c6]){continue}css.push(_c6,"{");for(var _c8 in _c7){if(_c7[_c8]==Object.prototype[_c8]){continue}var _c9=_c7[_c8];if(_aa[_c8]){_c9=parseInt(_c9,10)}css.push(_c8,":",_c9,";")}css.push("}")}return css.join("")};this.bind=function(_ca,_cb){return function(){_ca[_cb].apply(_ca,arguments)}};this.escape=function(str){return escape(str).replace(/\+/g,"%2B")};this.copyProperties=function(_cd,to){for(var _cf in _cd){if(to[_cf]===undefined){to[_cf]=_cd[_cf]}}return to};this.domain=function(){var _d0="";try{_d0=document.domain}catch(e){}return _d0};this.domainMatches=function(_d1,_d2){if(_d2=="*"||_d2==_d1){return true}var _d3=_d2.lastIndexOf("*");if(_d3>-1){_d2=_d2.substr(_d3+1);var _d4=_d1.lastIndexOf(_d2);if(_d4>-1&&(_d4+_d2.length)==_d1.length){return true}}return false};this.uriEncode=function(s){return encodeURI(decodeURIComponent(s))}};this.util=_a9;var _d6={};_d6.fragmentIdentifier=new function(){this.fix=true;var _d7;this.cache=function(){_d7=document.title};function doFix(){document.title=_d7}this.restore=function(){if(this.fix){setTimeout(doFix,0)}}};this.hacks=_d6;_d6.pageLoad=new function(){var _d8=null;function pollLoad(){try{if(ua.ie||document.readyState!="loaded"&&document.readyState!="complete"){document.documentElement.doScroll("left")}}catch(e){return setTimeout(pollLoad,10)}afterDomLoad()}function afterDomLoad(){if(_3b.useStyleCheck){checkStyle()}else{if(!ua.mustCheckStyle){fire(null,true)}}}function checkStyle(){_d8=dom.create("div");_d8.className=_45;dom.getBody().appendChild(_d8);pollStyle()}function pollStyle(){if(dom.getComputedStyle(_d8,"marginLeft")=="42px"){afterStyle()}else{setTimeout(pollStyle,10)}}function afterStyle(){if(_d8&&_d8.parentNode){_d8.parentNode.removeChild(_d8)}_d8=null;fire(null,true)}function fire(evt,_da){_3b.initialize(_da);if(evt&&evt.type=="load"){if(document.removeEventListener){document.removeEventListener("DOMContentLoaded",fire,false)}if(window.removeEventListener){window.removeEventListener("load",fire,false)}}}this.attach=function(){if(window.addEventListener){window.addEventListener("load",fire,false)}else{window.attachEvent("onload",fire)}if(!_3b.useDomLoaded||ua.forcePageLoad||ua.ie&&window.top!=window){return}if(ua.nativeDomLoaded){document.addEventListener("DOMContentLoaded",afterDomLoad,false)}else{if(ua.ie||ua.khtml){pollLoad()}}}};_d6.zoom=new function(){var _db,_dc;function detect(){if(_db.offsetLeft!=_dc){_dc=_db.offsetLeft;resize(null,true)}}this.init=function(){if(!ua.ie||ua.ieVersion<7){return}_db=dom.create("div");_db.className=_46;_db.style.cssText="display:block;width:auto;position:absolute;left:10%;top:-100px;";dom.getBody().appendChild(_db);_dc=_db.offsetLeft;setInterval(detect,200)}};this.errors={};var _dd={kwargs:[],replaceAll:function(_de){for(var i=0;i<this.kwargs.length;i++){_3b.replace(this.kwargs[i])}if(!_de){this.kwargs=[]}}};function isValidDomain(){if(_3b.domains.length==0){return true}var _e0=_a9.domain();for(var i=0;i<_3b.domains.length;i++){var _e2=_3b.domains[i];if(_a9.domainMatches(_e0,_e2)){return true}}return false}function isFile(){if(!_3b.fromLocal&&document.location.protocol=="file:"){if(_3b.debug){_3b.errors.fire("isFile")}return true}return false}function resize(evt,_e4){var _e5=_e4?{}:resize.viewport;resize.viewport={width:window.innerWidth||document.documentElement.clientWidth||dom.getBody().clientWidth,height:window.innerHeight||document.documentElement.clientHeight||dom.getBody().clientHeight};if(_e5&&resize.viewport.width==_e5.width&&resize.viewport.height==_e5.height){return}if(resize.timer){clearTimeout(resize.timer)}resize.timer=setTimeout(function(){delete resize.timer;for(var i=0;i<_3b.callbacks.length;i++){_3b.callbacks[i].resize()}},200)}function scale(){for(var i=0;i<_3b.callbacks.length;i++){_3b.callbacks[i].call("scale")}}this.activate=function(){if(!ua.supported||!this.isEnabled||this.isActive||!isValidDomain()||isFile()){return}if(arguments.length>0){this.prefetch.apply(this,arguments)}this.isActive=true;this.setFlashClass();_d6.fragmentIdentifier.fix=ua.ieWin&&_d6.fragmentIdentifier.fix&&window.location.hash!="";if(_d6.fragmentIdentifier.fix){_d6.fragmentIdentifier.cache()}if(!this.autoInitialize){return}_d6.pageLoad.attach();if(ua.ie){window.attachEvent("onunload",function(){dom.addClass(_3d,document.documentElement)})}};this.setFlashClass=function(){if(this.hasFlashClassSet){return}dom.addClass(_3c,dom.getBody()||document.documentElement);this.hasFlashClassSet=true};this.removeFlashClass=function(){if(!this.hasFlashClassSet){return}dom.removeClass(_3c,dom.getBody());dom.removeClass(_3c,document.documentElement);this.hasFlashClassSet=false};this.initialize=function(_e8){if(!this.isActive||!this.isEnabled){return}if(_50){if(!_e8){_dd.replaceAll(false)}return}_50=true;_dd.replaceAll(_e8);if(_3b.repaintOnResize){if(window.addEventListener){window.addEventListener("resize",resize,false);window.addEventListener("scroll",scale,false)}else{window.attachEvent("onresize",resize);window.attachEvent("onscroll",scale)}_d6.zoom.init()}clearPrefetch()};function getSource(src){if(typeof (src)!="string"){if(src.src){src=src.src}if(typeof (src)!="string"){var _ea=[];for(var _eb in src){if(src[_eb]!=Object.prototype[_eb]){_ea.push(_eb)}}_ea.sort().reverse();var _ec="";var i=-1;while(!_ec&&++i<_ea.length){if(parseFloat(_ea[i])<=ua.flashVersion){_ec=src[_ea[i]]}}src=_ec}}if(!src&&_3b.debug){_3b.errors.fire("getSource")}if(ua.ie&&src.charAt(0)=="/"){src=window.location.toString().replace(/([^:]+)(:\/?\/?)([^\/]+).*/,"$1$2$3")+src}return src}this.prefetch=function(){if((!ua.requiresPrefetch&&!this.isActive)||!ua.supported||!this.isEnabled||!isValidDomain()){return}if(this.setPrefetchCookie&&new RegExp(";?"+_4a+"=true;?").test(document.cookie)){return}try{_4f=true;if(ua.ieWin){prefetchIexplore(arguments)}else{prefetchLight(arguments)}if(this.setPrefetchCookie){document.cookie=_4a+"=true;path="+this.cookiePath}}catch(e){if(_3b.debug){throw e}}};function prefetchIexplore(_ee){for(var i=0;i<_ee.length;i++){document.write("<script defer type=\"sifr/prefetch\" src=\""+getSource(_ee[i])+"\"></script>")}}function prefetchLight(_f0){for(var i=0;i<_f0.length;i++){new Image().src=getSource(_f0[i])}}function clearPrefetch(){if(!ua.ieWin||!_4f){return}try{var _f2=document.getElementsByTagName("script");for(var i=_f2.length-1;i>=0;i--){var _f4=_f2[i];if(_f4.type=="sifr/prefetch"){_f4.parentNode.removeChild(_f4)}}}catch(e){}}function getRatio(_f5,_f6){for(var i=0;i<_f6.length;i+=2){if(_f5<=_f6[i]){return _f6[i+1]}}return _f6[_f6.length-1]||1}function getFilters(obj){var _f9=[];for(var _fa in obj){if(obj[_fa]==Object.prototype[_fa]){continue}var _fb=obj[_fa];_fa=[_fa.replace(/filter/i,"")+"Filter"];for(var _fc in _fb){if(_fb[_fc]==Object.prototype[_fc]){continue}_fa.push(_fc+":"+_a9.escape(_a9.toJson(_a9.toHexString(_fb[_fc]))))}_f9.push(_fa.join(","))}return _a9.escape(_f9.join(";"))}function calculate(_fd){var _fe,_ff;if(!ua.ie){_fe=dom.getStyleAsInt(_fd,"lineHeight");_ff=Math.floor(dom.getStyleAsInt(_fd,"height")/_fe)}else{if(ua.ie){var _100=dom.getComputedStyle(_fd,"fontSize");if(_100.indexOf("px")>0){_fe=parseInt(_100)}else{var html=_fd.innerHTML;_fd.style.visibility="visible";_fd.style.overflow="visible";_fd.style.position="static";_fd.style.zoom="normal";_fd.style.writingMode="lr-tb";_fd.style.width=_fd.style.height="auto";_fd.style.maxWidth=_fd.style.maxHeight=_fd.style.styleFloat="none";var _102=_fd;var _103=_fd.currentStyle.hasLayout;if(_103){_fd.innerHTML="<div class=\""+_43+"\">X<br />X<br />X</div>";_102=_fd.firstChild}else{_fd.innerHTML="X<br />X<br />X"}var _104=_102.getClientRects();_fe=_104[1].bottom-_104[1].top;_fe=Math.ceil(_fe*0.8);if(_103){_fd.innerHTML="<div class=\""+_43+"\">"+html+"</div>";_102=_fd.firstChild}else{_fd.innerHTML=html}_104=_102.getClientRects();_ff=_104.length;if(_103){_fd.innerHTML=html}_fd.style.visibility=_fd.style.width=_fd.style.height=_fd.style.maxWidth=_fd.style.maxHeight=_fd.style.overflow=_fd.style.styleFloat=_fd.style.position=_fd.style.zoom=_fd.style.writingMode=""}}}return {lineHeight:_fe,lines:_ff}}this.replace=function(_105,_106){if(!ua.supported){return}if(_106){_105=_a9.copyProperties(_105,_106)}if(!_50){return _dd.kwargs.push(_105)}if(_3b.onReplacementStart){_3b.onReplacementStart(_105)}var _107=_105.elements;if(!_107&&parseSelector){_107=parseSelector(_105.selector)}if(_107.length==0){return}var src=getSource(_105.src);var css=_a9.convertCssArg(_105.css);var _10a=getFilters(_105.filters);var _10b=(_105.forceClear==null)?_3b.forceClear:_105.forceClear;var _10c=(_105.fitExactly==null)?_3b.fitExactly:_105.fitExactly;var _10d=_10c||(_105.forceWidth==null?_3b.forceWidth:_105.forceWidth);var _10e=!!(_105.preventWrap&&!_105.forceSingleLine);var _10f=parseInt(_a9.extractFromCss(css,".sIFR-root","leading"))||0;var _110=_a9.extractFromCss(css,".sIFR-root","font-size",true)||0;var _111=_a9.extractFromCss(css,".sIFR-root","background-color",true)||"#FFFFFF";var _112=_a9.extractFromCss(css,".sIFR-root","kerning",true)||"";var _113=_105.gridFitType||_a9.extractFromCss(css,".sIFR-root","text-align")=="right"?"subpixel":"pixel";var _114=_3b.forceTextTransform?_a9.extractFromCss(css,".sIFR-root","text-transform",true)||"none":"none";var _115=_a9.extractFromCss(css,".sIFR-root","opacity",true)||"100";var _116=_a9.extractFromCss(css,".sIFR-root","cursor",true)||"default";var _117=_105.pixelFont||false;var _118=_105.ratios||_4b;var _119=parseInt(_105.tuneHeight)||0;var _11a=!!_105.onRelease||!!_105.onRollOver||!!_105.onRollOut;if(parseInt(_110).toString()!=_110&&_110.indexOf("px")==-1){_110=0}else{_110=parseInt(_110)}if(parseFloat(_115)<1){_115=100*parseFloat(_115)}var _11b="";if(_10c){_a9.extractFromCss(css,".sIFR-root","text-align",true)}if(!_105.modifyCss){_11b=_a9.cssToString(css)}var _11c=_105.wmode||"";if(!_11c){if(_105.transparent){_11c="transparent"}else{if(_105.opaque){_11c="opaque"}}}if(_11c=="transparent"){if(!ua.transparencySupport){_11c="opaque"}else{_111="transparent"}}for(var i=0;i<_107.length;i++){var node=_107[i];if(dom.hasOneOfClassses([_3e,_40,_41],node)){continue}var _11f=dom.getDimensions(node);var _120=_11f.height;var _121=_11f.width;var _122=dom.getComputedStyle(node,"display");if(!_120||!_121||_122==null||_122=="none"){continue}if(_10b&&ua.gecko){node.style.clear="both"}var html=null;if(_3b.fixWrap&&ua.ie&&_122=="block"){html=node.innerHTML;node.innerHTML="X"}_121=dom.getWidthFromStyle(node);if(html&&_3b.fixWrap&&ua.ie){node.innerHTML=html}var _124,_125;if(!_110){var _126=calculate(node);_124=Math.min(_48,Math.max(_47,_126.lineHeight));if(_117){_124=Math.max(8,8*Math.round(_124/8))}_125=_126.lines;if(isNaN(_125)||!isFinite(_125)||_125==0){_125=1}if(_125>1&&_10f){_120+=Math.round((_125-1)*_10f)}}else{_124=_110;_125=1}_120=Math.round(_125*_124);if(_10b&&ua.gecko){node.style.clear=""}var _127=dom.create("span");_127.className=_41;var _128=node.cloneNode(true);node.parentNode.appendChild(_128);for(var j=0,l=_128.childNodes.length;j<l;j++){_127.appendChild(_128.childNodes[j].cloneNode(true))}if(_105.modifyContent){_105.modifyContent(_128,_105.selector)}if(_105.modifyCss){_11b=_105.modifyCss(css,_128,_105.selector)}var _12b=_3b.fixHover&&dom.contentIsLink(_128);var _12c=handleContent(_128,_114,_105.uriEncode);_128.parentNode.removeChild(_128);if(_105.modifyContentString){_12c.text=_105.modifyContentString(_12c.text,_105.selector)}if(_12c.text==""){continue}var _12d=Math.round(_125*getRatio(_124,_118)*_124)+_4c+_119;var _12e=_10d?_121:"100%";var vars=["content="+_a9.escape(_12c.text),"antialiastype="+(_105.antiAliasType||""),"width="+_121,"height="+_120,"renderheight="+_12d,"fitexactly="+_10c,"tunewidth="+(_105.tuneWidth||0),"tuneheight="+_119,"offsetleft="+(_105.offsetLeft||""),"offsettop="+(_105.offsetTop||""),"thickness="+(_105.thickness||""),"sharpness="+(_105.sharpness||""),"kerning="+_112,"gridfittype="+_113,"flashfilters="+_10a,"opacity="+_115,"blendmode="+(_105.blendMode||""),"size="+_124,"css="+_a9.escape(_11b),"selectable="+(_105.selectable==null?"true":_105.selectable),"fixhover="+_12b,"preventwrap="+_10e,"forcesingleline="+(_105.forceSingleLine===true),"link="+_a9.escape(_12c.primaryLink[0]||""),"target="+_a9.escape(_12c.primaryLink[1]||""),"events="+_11a,"cursor="+_116,"version="+_4d];var _130=encodeVars(vars);var _131="sIFR_callback_"+_4e++;var _132=new CallbackInfo(_131,vars,_10d,{onReplacement:_105.onReplacement,onRollOver:_105.onRollOver,onRollOut:_105.onRollOut,onRelease:_105.onRelease});window[_131+"_DoFSCommand"]=(function(_133){return function(info,arg){_133.handle(info,arg)}})(_132);_127.setAttribute("id",_131+"_alternate");var _136=ua.ie?dom.swf.ie:dom.swf.other;var _137=dom.swf.create(_136,ua.fixFocus&&_105.fixFocus,_131,_12e,_12d,src,_130,_11c,_111);_136.insert(node,_137);_132.html=_137;_3b.callbacks.push(_132);if(_105.selector){if(!_3b.callbacks[_105.selector]){_3b.callbacks[_105.selector]=[_132]}else{_3b.callbacks[_105.selector].push(_132)}}node.appendChild(_127);dom.addClass(_3e,node)}_d6.fragmentIdentifier.restore()};this.getCallbackByFlashElement=function(node){for(var i=0;i<_3b.callbacks.length;i++){if(_3b.callbacks[i].id==node.getAttribute("id")){return _3b.callbacks[i]}}};this.redraw=function(){for(var i=0;i<_3b.callbacks.length;i++){_3b.callbacks[i].resetMovie()}};function encodeVars(vars){return vars.join("&").replace(/%/g,"%25")}function handleContent(_13c,_13d,_13e){_13e=_13e||_a9.uriEncode;var _13f=[],_140=[],_141=[];var _142=_13c.childNodes;var i=0;while(i<_142.length){var node=_142[i];if(node.nodeType==3){var text=_a9.normalize(node.nodeValue);text=_a9.textTransform(_13d,text);text=text.replace(/</g,"&lt;");_140.push(text)}if(node.nodeType==1){var _146=[];var _147=node.nodeName.toLowerCase();var _148=node.className||"";if(/\s+/.test(_148)){if(_148.indexOf(_42)>-1){_148=_148.match("(\\s|^)"+_42+"-([^\\s$]*)(\\s|$)")[2]}else{_148=_148.match(/^([^\s]+)/)[1]}}if(_148!=""){_146.push("class=\""+_148+"\"")}if(_147=="a"){var href=_13e(node.getAttribute("href")||"");var _14a=node.getAttribute("target")||"";_146.push("href=\""+href+"\"","target=\""+_14a+"\"");if(_141.length==0){_141=[href,_14a]}}_140.push("<"+_147+(_146.length>0?" ":"")+_146.join(" ")+">");if(node.hasChildNodes()){_13f.push(i);i=0;_142=node.childNodes;continue}else{if(!/^(br|img)$/i.test(node.nodeName)){_140.push("</",node.nodeName.toLowerCase(),">")}}}if(_13f.length>0&&!node.nextSibling){do{i=_13f.pop();_142=node.parentNode.parentNode.childNodes;node=_142[i];if(node){_140.push("</",node.nodeName.toLowerCase(),">")}}while(i==_142.length-1&&_13f.length>0)}i++}return {text:_140.join("").replace(/\n|\r/g,""),primaryLink:_141}}function CallbackInfo(id,vars,_14d,_14e){this.id=id;this.vars=vars;this._events=_14e;this._forceWidth=_14d;this._firedReplacementEvent=!(_14e.onReplacement!=null);this.html=null}CallbackInfo.prototype.getFlashElement=function(){return document.getElementById(this.id)};CallbackInfo.prototype.available=function(){var _14f=this.getFlashElement();return _14f&&_14f.parentNode};CallbackInfo.prototype.handle=function(info,arg){if(!this.available()){return}switch(/(FSCommand\:)?(.+)/.exec(info)[2]){case "resize":var _152=this.getFlashElement();var $=arg.split(/\:|,/);_152.setAttribute($[0],$[1]);if($.length>2){_152.style[$[2]]=$[3]+"px"}if(ua.khtml){var _154=_152.offsetHeight}if(!this._firedReplacementEvent){this._events.onReplacement(this);this._firedReplacementEvent=true}break;case "resetmovie":this.resetMovie();break;case "blur":dom.blurElement(this.getFlashElement());break;case "event":if(this._events[arg]){this._events[arg](this)}break;default:if(this.debugHandler&&/(FSCommand\:)?debug/.test(info)){this.debugHandler(info,arg)}}};CallbackInfo.prototype.call=function(type,_156){if(!this.available()){return false}var _157=this.getFlashElement();try{_157.SetVariable("callbackType",type);_157.SetVariable("callbackValue",_156);_157.SetVariable("callbackTrigger",true)}catch(e){return false}return true};CallbackInfo.prototype.replaceText=function(_158,_159){var _15a=_a9.escape(_158);this.updateVars("content",_15a);if(this.call("replacetext",_15a)){var node=this.getAlternate();if(_159){while(node.firstChild){node.removeChild(node.firstChild)}for(var i=0;i<_159.length;i++){node.appendChild(_159[i])}}else{try{node.innerHTML=_158}catch(e){}}return true}return false};CallbackInfo.prototype.updateVars=function(name,_15e){for(var i=0;i<this.vars.length;i++){if(this.vars[i].split("=")[0]==name){this.vars[i]=name+"="+_15e;break}}};CallbackInfo.prototype.resetMovie=function(){if(!this.available()){return}var _160=this.getFlashElement();var node=_160.parentNode;var vars=encodeVars(this.vars);if(ua.ie){this.html=this.html.replace(/(flashvars(=|\"\svalue=)\")[^\"]+/,"$1"+vars);node.replaceChild(dom.nodeFromHtml(this.html),_160)}else{var _163=this.html.getElementsByTagName("param");for(var i=0;i<_163.length;i++){if(_163[i].getAttribute("name")=="flashvars"){_163[i].setAttribute("value",vars);break}}node.replaceChild(this.html.cloneNode(true),_160)}};CallbackInfo.prototype.resize=function(){if(!this.available()){return}var _165=this.getFlashElement();var _166=this.getAncestor();var _167=dom.getHeightFromStyle(_166);var _168=_165.offsetWidth;var _169=_165.getAttribute("width");var _16a=_165.getAttribute("height");_165.style.width="0px";_165.style.height="0px";_166.style.minHeight=_167+"px";var _16b=this.getAlternate().childNodes;var _16c=[];for(var i=0;i<_16b.length;i++){var node=_16b[i].cloneNode(true);_16c.push(node);_166.appendChild(node)}var _16f=dom.getWidthFromStyle(_166);for(var i=0;i<_16c.length;i++){_166.removeChild(_16c[i])}_165.style.width=_165.style.height=_166.style.minHeight="";_165.setAttribute("width",this._forceWidth?_16f:_169);_165.setAttribute("height",_16a);if(_16f!=_168){this.call("resize",_16f)}else{this.call("scale")}};CallbackInfo.prototype.changeCSS=function(css){css=_a9.escape(_a9.cssToString(_a9.convertCssArg(css)));this.updateVars("css",css);return this.call("changecss",css)};CallbackInfo.prototype.getAlternate=function(){return document.getElementById(this.id+"_alternate")};CallbackInfo.prototype.getAncestor=function(){var _171=this.getFlashElement().parentNode;return !dom.hasClass(_44,_171)?_171:_171.parentNode}};
/*######################################## end sifr.js ########################################*/
/*######################################## begin sifr-config.js ########################################*/
var newsgothicstd = 
	{
	  src: '/imageserver/plumtree/portal/custom/SafecoCom/Flash/newsgothicstd.swf'
	  ,ratios: [9,1.16,16,1.09,24,1.06,37,1.04,74,1.02,1.01]
	};
sIFR.domains = ['*'];
sIFR.useStyleCheck = true;
sIFR.repaintOnResize = true;
sIFR.activate(newsgothicstd);

sIFR.replace(newsgothicstd, 
	{
	  selector: 'h1',
	  transparent: true,
	  css: ['.sIFR-root {color:#5d9ab0;}'],
	  offsetTop: 5
	}
);
sIFR.replace(newsgothicstd, 
	{
	  selector: 'h2',
	  transparent: true,
	  css: ['.sIFR-root {color:#37839d;letter-spacing:.5;}'],
	  offsetTop: 5
	}
);
sIFR.replace(newsgothicstd, 
	{
	  selector: '.platportletNarrowHeader',
	  transparent: true,
	  css: ['.sIFR-root {color:#37839d;letter-spacing:.5;}'],
	  offsetTop: 5
	}
);
/*######################################## end sifr-config.js ########################################*/
/*######################################## begin toggleNav.js ########################################*/
/* community default.aspx show/hide lists */

        function ReverseDisplay(d) 
        {
	        var bgToToggle = document.getElementById("link_" + d);
	        var elementToToggle = document.getElementById("list_" + d);
	        
            if(elementToToggle.className == "plusHide") 
            { 
                elementToToggle.className = "plusShow";
                bgToToggle.className="minus";
            }
            else 
            { 
                elementToToggle.className = "plusHide"; 
                bgToToggle.className ="plus";
            }
        }
        
 /*------------------------------------------------------------------------------*/     
   
	var subNavHolder = "${param.subNavHolder}";
	if (subNavHolder != "")
	{
		toggleNav(subNavHolder);
	}

	var subNavHolder2 = "${param.subNavHolder2}";
	if (subNavHolder2 != "")
	{
		toggleNav(subNavHolder2);
	}

	var navItem = "${param.navItem}";
	if (navItem != "")
	{
	if(document.getElementById("navItem" + navItem)){
		document.getElementById("navItem" + navItem).style.color = "#f63";
		}
	}
	
 /*------------------------------------------------------------------------------*/      
function toggleNav(d)
{
	var elementToToggle = document.getElementById("subNav_" + d);
	var imageToToggle = document.getElementById("toggle_" + d);

if(elementToToggle){
	if (elementToToggle.style.display == "block")
	{
		elementToToggle.style.display = "none";
		imageToToggle.src = "/image/plus.gif";
	}
	else
	{
		elementToToggle.style.display = "block";
		imageToToggle.src = "/image/minus.gif";
	}
}
}
/*######################################## end toggleNav.js ########################################*/
/*######################################## begin swfobject.js ########################################*/
if(typeof deconcept == "undefined") var deconcept = {};
if(typeof deconcept.util == "undefined") deconcept.util = {};
if(typeof deconcept.SWFObjectUtil == "undefined") deconcept.SWFObjectUtil = {};
deconcept.SWFObject = function(swf, id, w, h, ver, c, quality, xiRedirectUrl, redirectUrl, detectKey) {
	if (!document.getElementById) { return; }
	this.DETECT_KEY = detectKey ? detectKey : 'detectflash';
	this.skipDetect = deconcept.util.getRequestParameter(this.DETECT_KEY);
	this.params = {};
	this.variables = {};
	this.attributes = [];
	if(swf) { this.setAttribute('swf', swf); }
	if(id) { this.setAttribute('id', id); }
	if(w) { this.setAttribute('width', w); }
	if(h) { this.setAttribute('height', h); }
	if(ver) { this.setAttribute('version', new deconcept.PlayerVersion(ver.toString().split("."))); }
	this.installedVer = deconcept.SWFObjectUtil.getPlayerVersion();
	if (!window.opera && document.all && this.installedVer.major > 7) {
		// only add the onunload cleanup if the Flash Player version supports External Interface and we are in IE
		// fixes bug in some fp9 versions see http://blog.deconcept.com/2006/07/28/swfobject-143-released/
		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(c) { this.addParam('bgcolor', c); }
	var q = quality ? quality : 'high';
	this.addParam('quality', q);
	this.setAttribute('useExpressInstall', false);
	this.setAttribute('doExpressInstall', false);
	var xir = (xiRedirectUrl) ? xiRedirectUrl : window.location;
	this.setAttribute('xiRedirectUrl', xir);
	this.setAttribute('redirectUrl', '');
	if(redirectUrl) { this.setAttribute('redirectUrl', redirectUrl); }
}
deconcept.SWFObject.prototype = {
	useExpressInstall: function(path) {
		this.xiSWFPath = !path ? "expressinstall.swf" : path;
		this.setAttribute('useExpressInstall', true);
	},
	setAttribute: function(name, value){
		this.attributes[name] = value;
	},
	getAttribute: function(name){
		return this.attributes[name] || "";
	},
	addParam: function(name, value){
		this.params[name] = value;
	},
	getParams: function(){
		return this.params;
	},
	addVariable: function(name, value){
		this.variables[name] = value;
	},
	getVariable: function(name){
		return this.variables[name] || "";
	},
	getVariables: function(){
		return this.variables;
	},
	getVariablePairs: function(){
		var variablePairs = [];
		var key;
		var variables = this.getVariables();
		for(key in variables){
			variablePairs[variablePairs.length] = key +"="+ variables[key];
		}
		return variablePairs;
	},
	getSWFHTML: function() {
		var swfNode = "";
		if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture
			if (this.getAttribute("doExpressInstall")) {
				this.addVariable("MMplayerType", "PlugIn");
				this.setAttribute('swf', this.xiSWFPath);
			}
			swfNode = '<embed type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" style="'+ (this.getAttribute('style') || "") +'"';
			swfNode += ' id="'+ this.getAttribute('id') +'" name="'+ this.getAttribute('id') +'" ';
			var params = this.getParams();
			 for(var key in params){ swfNode += [key] +'="'+ params[key] +'" '; }
			var pairs = this.getVariablePairs().join("&");
			 if (pairs.length > 0){ swfNode += 'flashvars="'+ pairs +'"'; }
			swfNode += '/>';
		} else { // PC IE
			if (this.getAttribute("doExpressInstall")) {
				this.addVariable("MMplayerType", "ActiveX");
				this.setAttribute('swf', this.xiSWFPath);
			}
			swfNode = '<object id="'+ this.getAttribute('id') +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" style="'+ (this.getAttribute('style') || "") +'">';
			swfNode += '<param name="movie" value="'+ this.getAttribute('swf') +'" />';
			var params = this.getParams();
			for(var key in params) {
			 swfNode += '<param name="'+ key +'" value="'+ params[key] +'" />';
			}
			var pairs = this.getVariablePairs().join("&");
			if(pairs.length > 0) {swfNode += '<param name="flashvars" value="'+ pairs +'" />';}
			swfNode += "</object>";
		}
		return swfNode;
	},
	write: function(elementId){
		if(this.getAttribute('useExpressInstall')) {
			// check to see if we need to do an express install
			var expressInstallReqVer = new deconcept.PlayerVersion([6,0,65]);
			if (this.installedVer.versionIsValid(expressInstallReqVer) && !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 elementId == 'string') ? document.getElementById(elementId) : elementId;
			n.innerHTML = this.getSWFHTML();
			return true;
		}else{
			if(this.getAttribute('redirectUrl') != "") {
				document.location.replace(this.getAttribute('redirectUrl'));
			}
		}
		return false;
	}
}

/* ---- detection functions ---- */
deconcept.SWFObjectUtil.getPlayerVersion = function(){
	var PlayerVersion = new deconcept.PlayerVersion([0,0,0]);
	if(navigator.plugins && navigator.mimeTypes.length){
		var x = navigator.plugins["Shockwave Flash"];
		if(x && x.description) {
			PlayerVersion = 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){ // if Windows CE
		var axo = 1;
		var counter = 3;
		while(axo) {
			try {
				counter++;
				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+ counter);
//				document.write("player v: "+ counter);
				PlayerVersion = new deconcept.PlayerVersion([counter,0,0]);
			} catch (e) {
				axo = null;
			}
		}
	} else { // Win IE (non mobile)
		// do minor version lookup in IE, but avoid fp6 crashing issues
		// see http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/
		try{
			var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		}catch(e){
			try {
				var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
				PlayerVersion = new deconcept.PlayerVersion([6,0,21]);
				axo.AllowScriptAccess = "always"; // error if player version < 6.0.47 (thanks to Michael Williams @ Adobe for this code)
			} catch(e) {
				if (PlayerVersion.major == 6) {
					return PlayerVersion;
				}
			}
			try {
				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			} catch(e) {}
		}
		if (axo != null) {
			PlayerVersion = new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
		}
	}
	return PlayerVersion;
}
deconcept.PlayerVersion = function(arrVersion){
	this.major = arrVersion[0] != null ? parseInt(arrVersion[0]) : 0;
	this.minor = arrVersion[1] != null ? parseInt(arrVersion[1]) : 0;
	this.rev = arrVersion[2] != null ? parseInt(arrVersion[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;
}
/* ---- get value of query string param ---- */
deconcept.util = {
	getRequestParameter: function(param) {
		var q = document.location.search || document.location.hash;
		if (param == null) { return q; }
		if(q) {
			var pairs = q.substring(1).split("&");
			for (var i=0; i < pairs.length; i++) {
				if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) {
					return pairs[i].substring((pairs[i].indexOf("=")+1));
				}
			}
		}
		return "";
	}
}
/* fix for video streaming bug */
deconcept.SWFObjectUtil.cleanupSWFs = function() {
	var objects = document.getElementsByTagName("OBJECT");
	for (var i = objects.length - 1; i >= 0; i--) {
		objects[i].style.display = 'none';
		for (var x in objects[i]) {
			if (typeof objects[i][x] == 'function') {
				objects[i][x] = function(){};
			}
		}
	}
}
/* add document.getElementById if needed (mobile IE < 5) */
if (!document.getElementById && document.all) { document.getElementById = function(id) { return document.all[id]; }}

/* add some aliases for ease of use/backwards compatibility */
var getQueryParamValue = deconcept.util.getRequestParameter;
var FlashObject = deconcept.SWFObject; // for legacy support
var SWFObject = deconcept.SWFObject;
/*######################################## end swfobject.js ########################################*/
/*######################################## begin plugins.js ########################################*/
//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
        }
    }
}

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 swfformfix.js ########################################*/
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;
}
/*######################################## end swfformfix.js ########################################*/
/*######################################## begin noFlashSubNav.js ########################################*/
function verify()
{
  // 0 Object is not initialized
  // 1 Loading object is loading data
  // 2 Loaded object has loaded data
  // 3 Data from object can be worked with
  // 4 Object completely initialized
  if (xmlDoc.readyState != 4)
  {
      return false;
  }
}
function buildSubNav(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("nav-second-level").innerHTML = outStr;
              }
          }
    }
}
/*######################################## 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 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 sdTabContent.js ########################################*/
function SDMenu(id) {
	if (!document.getElementById || !document.getElementsByTagName)
        return false;
    this.menu = document.getElementById(id);
    if(this.menu == null)
        return false;
    
    //remove childnodes that are not DIVs
    for (var i = 0; i < this.menu.childNodes.length; i++){
        if(this.menu.childNodes[i].nodeName != 'DIV'){
            this.menu.removeChild(this.menu.childNodes[i]);
        }
    }
    
    //this.submenus = this.menu.getElementsByTagName("div");
    this.submenus = this.menu.childNodes;
    this.remember = true;
    this.speed = 5;
    this.markCurrent = true;
    this.oneSmOnly = false;
}
SDMenu.prototype.init = function() {
	var mainInstance = this;
	for (var i = 0; i < this.submenus.length; i++)
		this.submenus[i].getElementsByTagName("span")[0].onclick = function() {
			mainInstance.toggleMenu(this.parentNode);
		};
	if (this.markCurrent) {
		var links = this.menu.getElementsByTagName("a");
		for (var i = 0; i < links.length; i++)
			if (links[i].href == document.location.href) {
				links[i].className = "current";
				break;
			}
	}
	if (this.remember) {
		var regex = new RegExp("sdmenu_" + encodeURIComponent(this.menu.id) + "=([01]+)");
		var match = regex.exec(document.cookie);
		if (match) {
			var states = match[1].split("");
			for (var i = 0; i < states.length; i++)
				this.submenus[i].className = (states[i] == 0 ? "collapsed" : "");
		}
	}
};
SDMenu.prototype.toggleMenu = function(submenu) {
	if (submenu.className == "collapsed")
		this.expandMenu(submenu);
	else
		this.collapseMenu(submenu);
};
SDMenu.prototype.expandMenu = function(submenu) {
	var fullHeight = submenu.getElementsByTagName("span")[0].offsetHeight;
	var links = submenu.getElementsByTagName("a");
	for (var i = 0; i < links.length; i++)
		fullHeight += links[i].offsetHeight;
	var moveBy = Math.round(this.speed * links.length);
	
	var mainInstance = this;
	var intId = setInterval(function() {
		var curHeight = submenu.offsetHeight;
		var newHeight = curHeight + moveBy;
		if (newHeight < fullHeight)
			submenu.style.height = newHeight + "px";
		else {
			clearInterval(intId);
			submenu.style.height = "";
			submenu.className = "menuPromo";
			mainInstance.memorize();
		}
	}, 30);
	this.collapseOthers(submenu);
};
SDMenu.prototype.collapseMenu = function(submenu) {
	var minHeight = submenu.getElementsByTagName("span")[0].offsetHeight;
	var moveBy = Math.round(this.speed * submenu.getElementsByTagName("a").length);
	var mainInstance = this;
	var intId = setInterval(function() {
		var curHeight = submenu.offsetHeight;
		var newHeight = curHeight - moveBy;
		if (newHeight > minHeight)
			submenu.style.height = newHeight + "px";
		else {
			clearInterval(intId);
			submenu.style.height = "";
			submenu.className = "collapsed";
			mainInstance.memorize();
		}
	}, 30);
};
SDMenu.prototype.collapseOthers = function(submenu) {
	if (this.oneSmOnly) {
		for (var i = 0; i < this.submenus.length; i++)
			if (this.submenus[i] != submenu && this.submenus[i].className != "collapsed")
				this.collapseMenu(this.submenus[i]);
	}
};
SDMenu.prototype.expandAll = function() {
	var oldOneSmOnly = this.oneSmOnly;
	this.oneSmOnly = false;
	for (var i = 0; i < this.submenus.length; i++)
		if (this.submenus[i].className == "collapsed")
			this.expandMenu(this.submenus[i]);
	this.oneSmOnly = oldOneSmOnly;
};
SDMenu.prototype.collapseAll = function() {
	for (var i = 0; i < this.submenus.length; i++)
		if (this.submenus[i].className != "collapsed")
			this.collapseMenu(this.submenus[i]);
};
SDMenu.prototype.memorize = function() {
	if (this.remember) {
		var states = new Array();
		for (var i = 0; i < this.submenus.length; i++)
			states.push(this.submenus[i].className == "collapsed" ? 0 : 1);
		var d = new Date();
		d.setTime(d.getTime() + (30 * 24 * 60 * 60 * 1000));
		document.cookie = "sdmenu_" + encodeURIComponent(this.menu.id) + "=" + states.join("") + "; expires=" + d.toGMTString() + "; path=/";
	}
};
//var myMenu = new SDMenu("main_menu"); // ID of the menu element
//// Default values...
//myMenu.speed = 5;                     // Menu sliding speed (1 - 5 recomended)
//myMenu.remember = true;               // Store menu states (expanded or collapsed) in cookie and restore later
//myMenu.oneSmOnly = false;             // One expanded submenu at a time
//myMenu.markCurrent = true;            // Mark current link / page (link.href == location.href)

//myMenu.init();

//// Additional methods...
//var firstSubmenu = myMenu.submenus[0];
//myMenu.expandMenu(firstSubmenu);      // Expand a submenu
//myMenu.collapseMenu(firstSubmenu);    // Collapse a menu
//myMenu.toggleMenu(firstSubmenu);      // Expand if collapsed and collapse if expanded

//myMenu.expandAll();                   // Expand all submenus
//myMenu.collapseAll();                 // Collapse all submenus
/*######################################## end sdTabContent.js ########################################*/