var m_EkTbTimeout_AjaxToolBar=null;var m_EkTbAutomaticOutsideBorder_AjaxToolBar=true;var m_EkTbOutsideBorder_AjaxToolBar=true;var m_EkTbMenuOffDelay_AjaxToolBar=500;var m_EkTbMenuBorderWidth_AjaxToolBar=3;var m_EkTbStopAtRoot=0;var m_EkTbStopAtCss=1;var m_EkTbStopAtOffset=2;var m_EkTbLastObj;var m_bEkTbReady;if(m_bEkTbReady!==true){m_bEkTbReady=false}function GetPreviewURL(){var b=self.location.href;var a=b.split("?");if(a.length>1){b=b+"&cmsMode=Preview"}else{b=b+"?cmsMode=Preview"}return b}function addEkTbLoadEvent(){var a=window.onload;window.onload=function(){if(typeof a=="function"){a()}setTimeout("m_bEkTbReady = true;",500)}}if(typeof $ektron!=="undefined"){$ektron().ready(function(){m_bEkTbReady=true})}addEkTbLoadEvent();function EkTbWebMenuPopUpWindow(d,g,c,b,a,e){d=d.replace(/&amp;amp;/g,"&").replace(/&amp;/g,"&");if(!m_bEkTbReady){return false}if(c>screen.width){c=screen.width}if(b>screen.height){b=screen.height}var f="toolbar=0,location=0,directories=0,status="+e+",menubar=0,scrollbars="+a+",resizable="+e+",width="+c+",height="+b;var h=window.open(d,g,f);return h}function EkTbFade(g,c,h,f,j,d,a){if(!m_bEkTbReady){return false}var b=document.getElementById(a);if(j==0){if(!document.all){b.style.MozOpacity=(g/100)}else{b.filters.alpha.opacity=(g)}if(((g>=0)&&(h<0))||((g<99)&&(h>0))){g+=h;if(g>99){g=99}setTimeout("EkTbFade("+g+","+c+","+h+","+f+","+j+",'"+d+"','"+a+"')",c)}else{h=(0-h);g+=h;if(d.toLowerCase()=="cycle"){setTimeout("EkTbFade("+g+","+c+","+h+","+f+","+j+",'"+d+"','"+a+"')",f)}}}else{var e=j;j=0;setTimeout("EkTbFade("+g+","+c+","+h+","+f+","+j+",'"+d+"','"+a+"')",e)}}var m_isMac=false;var m_isMacInit=false;function IsPlatformMac(){if(m_isMacInit){return(m_isMac)}else{var b;var a=new String(navigator.userAgent);a=a.toLowerCase();b=parseInt(a.indexOf("mac"));m_isMac=(0<=b);m_isMacInit=true;return(m_isMac)}}var m_isSafari=false;var m_isSafariInit=false;function IsBrowserSafari(){if(m_isSafariInit){return(m_isSafari)}else{var b;var a=new String(navigator.userAgent);a=a.toLowerCase();b=parseInt(a.indexOf("safari"));m_isSafari=(0<=b);m_isSafariInit=true;return(m_isSafari)}}function EkTbRollOver(e,MyObj){if(!m_bEkTbReady){return false}var top=0;var tmpTop=0;var left=0;var tmpLeft=0;var width=0;var height=0;var toolbarNumArray=(MyObj.id).split("_");var automaticBorder=true;var outsideBorder=true;var menuBorderWidth=3;var localTimeout=null;var ekTbOuterElement=null;if(m_EkTbLastObj&&(m_EkTbLastObj!=MyObj)){EkTbOffNow(m_EkTbLastObj.id)}m_EkTbLastObj=MyObj;eval("localTimeout = m_EkTbTimeout_"+toolbarNumArray[1]+";");if(localTimeout!=null){localTimeout=clearTimeout(localTimeout);eval("m_EkTbTimeout_"+toolbarNumArray[1]+" = localTimeout;")}if(IsPlatformMac()){ekTbOuterElement=xBrowserReturnObjById("EkTbOuterElmt_"+toolbarNumArray[1]);if(ekTbOuterElement!=null){height=ekTbOuterElement.offsetHeight}else{height=MyObj.offsetHeight}}else{height=MyObj.offsetHeight}tmpLeft=EkTbFindParentPositionLeft(MyObj,(m_EkTbStopAtRoot),true);width=MyObj.offsetWidth;tmpTop=EkTbFindParentPositionTop(MyObj,(m_EkTbStopAtRoot),true);eval("automaticBorder = m_EkTbAutomaticOutsideBorder_"+toolbarNumArray[1]+";");eval("outsideBorder = m_EkTbOutsideBorder_"+toolbarNumArray[1]+";");eval("menuBorderWidth = m_EkTbMenuBorderWidth_"+toolbarNumArray[1]+";");if(outsideBorder==true){if(((tmpLeft-menuBorderWidth)<0)&&(automaticBorder)){left=0}else{left=tmpLeft-menuBorderWidth}if(((tmpTop-menuBorderWidth)<0)&&(automaticBorder)){top=0}else{top=tmpTop-menuBorderWidth}if(((((left+width)==document.body.clientWidth)&&((tmpLeft-menuBorderWidth)<0))||(((left+width+menuBorderWidth)==document.body.clientWidth)&&((tmpLeft-menuBorderWidth)>=0)))&&(automaticBorder)){width=(document.body.clientWidth-left)}else{width+=(menuBorderWidth*2)}if(((((top+height)==document.body.clientHeight)&&((tmpTop-menuBorderWidth)<0))||(((top+height+menuBorderWidth)==document.body.clientHeight)&&((tmpTop-menuBorderWidth)>=0)))&&(automaticBorder)){height=(document.body.clientHeight-top)}else{height+=(menuBorderWidth*2)}}else{left=tmpLeft;top=tmpTop}if(IsPlatformMac()){if(IsBrowserSafari){left+=4;top+=6}else{left+=4;top+=14}}if(toolbarNumArray[1]!="AjaxToolBar"&&document.getElementById("EkTbLeftBar_"+toolbarNumArray[1]).parentNode!=document.body){var BodyObj=document.body;var toolObj1=document.getElementById("EkTbLeftBar_"+toolbarNumArray[1]);toolObj1.parentNode.removeChild(toolObj1);var tmpObj1=BodyObj.appendChild(toolObj1);var toolObj2=document.getElementById("EkTbRightBar_"+toolbarNumArray[1]);toolObj2.parentNode.removeChild(toolObj2);var tmpObj2=BodyObj.appendChild(toolObj2);var toolObj3=document.getElementById("EkTbTopBar_"+toolbarNumArray[1]);toolObj3.parentNode.removeChild(toolObj3);var tmpObj3=BodyObj.appendChild(toolObj3);var toolObj4=document.getElementById("EkTbBottomBar_"+toolbarNumArray[1]);toolObj4.parentNode.removeChild(toolObj4);var tmpObj4=BodyObj.appendChild(toolObj4);var toolObj5=document.getElementById("EkTbToolbar_"+toolbarNumArray[1]);toolObj5.parentNode.removeChild(toolObj5);var tmpObj5=BodyObj.appendChild(toolObj5)}document.getElementById("EkTbLeftBar_"+toolbarNumArray[1]).style.top=top+"px";document.getElementById("EkTbLeftBar_"+toolbarNumArray[1]).style.left=left+"px";document.getElementById("EkTbLeftBar_"+toolbarNumArray[1]).style.width=menuBorderWidth+"px";document.getElementById("EkTbLeftBar_"+toolbarNumArray[1]).style.height=height+"px";document.getElementById("EkTbRightBar_"+toolbarNumArray[1]).style.top=top+"px";document.getElementById("EkTbRightBar_"+toolbarNumArray[1]).style.left=((left+width)-menuBorderWidth)+"px";document.getElementById("EkTbRightBar_"+toolbarNumArray[1]).style.width=menuBorderWidth+"px";document.getElementById("EkTbRightBar_"+toolbarNumArray[1]).style.height=height+"px";document.getElementById("EkTbTopBar_"+toolbarNumArray[1]).style.top=top+"px";document.getElementById("EkTbTopBar_"+toolbarNumArray[1]).style.left=left+"px";document.getElementById("EkTbTopBar_"+toolbarNumArray[1]).style.width=width+"px";document.getElementById("EkTbTopBar_"+toolbarNumArray[1]).style.height=menuBorderWidth+"px";document.getElementById("EkTbBottomBar_"+toolbarNumArray[1]).style.top=((top+height)-menuBorderWidth)+"px";document.getElementById("EkTbBottomBar_"+toolbarNumArray[1]).style.left=left+"px";document.getElementById("EkTbBottomBar_"+toolbarNumArray[1]).style.width=width+"px";document.getElementById("EkTbBottomBar_"+toolbarNumArray[1]).style.height=menuBorderWidth+"px";document.getElementById("EkTbLeftBar_"+toolbarNumArray[1]).style.display="";document.getElementById("EkTbRightBar_"+toolbarNumArray[1]).style.display="";document.getElementById("EkTbTopBar_"+toolbarNumArray[1]).style.display="";document.getElementById("EkTbBottomBar_"+toolbarNumArray[1]).style.display=""}function EkTbRollOut(e,MyObj){if(!m_bEkTbReady){return false}var toElement="";var srcElement="";if(document.all){toElement=e.toElement;srcElement=e.srcElement}else{toElement=e.relatedTarget;srcElement=e.target}if((srcElement.id!=MyObj.id)&&(!EkTbIsChild(srcElement,MyObj))){return}if((toElement==null)||(!((EkTbIsChild(toElement,MyObj))||(MyObj.id==toElement.id)))){var tmpArray=MyObj.id.split("_");eval("m_EkTbTimeout_"+tmpArray[1]+" = setTimeout(\"EkTbOff('"+MyObj.id+"')\", m_EkTbMenuOffDelay_"+tmpArray[1]+")")}}function EkTbOff(MyObjId){if(!m_bEkTbReady){return false}try{var tmpArray=MyObjId.split("_");if(eval("m_EkTbTimeout_"+tmpArray[1]+" != null")){eval("m_EkTbTimeout_"+tmpArray[1]+" = null");document.getElementById("EkTbLeftBar_"+tmpArray[1]).style.display="none";document.getElementById("EkTbRightBar_"+tmpArray[1]).style.display="none";document.getElementById("EkTbTopBar_"+tmpArray[1]).style.display="none";document.getElementById("EkTbBottomBar_"+tmpArray[1]).style.display="none";document.getElementById("EkTbToolbar_"+tmpArray[1]).style.display="none"}}catch(e){}}function EkTbOffNow(MyObjId){if(!m_bEkTbReady){return false}try{var tmpArray=MyObjId.split("_");if(eval("m_EkTbTimeout_"+tmpArray[1]+" != null")){eval("m_EkTbTimeout_"+tmpArray[1]+" = null")}document.getElementById("EkTbLeftBar_"+tmpArray[1]).style.display="none";document.getElementById("EkTbRightBar_"+tmpArray[1]).style.display="none";document.getElementById("EkTbTopBar_"+tmpArray[1]).style.display="none";document.getElementById("EkTbBottomBar_"+tmpArray[1]).style.display="none";document.getElementById("EkTbToolbar_"+tmpArray[1]).style.display="none"}catch(e){}}function EkTbCancelOff(MyObj){if(!m_bEkTbReady){return false}var tmpArray=MyObj.id.split("_");var tmpTimeout=eval("m_EkTbTimeout_"+tmpArray[1]);if(tmpTimeout!=null){clearTimeout(tmpTimeout);eval("m_EkTbTimeout_"+tmpArray[1]+" = null;")}}function EkTbFindParentPositionLeft(c,a,b){if(!m_bEkTbReady){return false}var d=0;if(c.offsetParent){while(c&&(null!=c.offsetLeft)){if((a!=m_EkTbStopAtRoot)&&(EkTbIsStopTag(c,a))){break}if(b||(c.style&&c.style.position&&c.style.position&&("relative"!=c.style.position.toLowerCase())&&("absolute"!=c.style.position.toLowerCase()))){d+=c.offsetLeft}c=c.offsetParent}}else{if(c.x){d+=c.x}}return(d)}function EkTbFindParentPositionTop(d,a,c){if(!m_bEkTbReady){return false}var b=0;if(d.offsetParent){while(d&&(null!=d.offsetTop)){if((a!=m_EkTbStopAtRoot)&&(EkTbIsStopTag(d,a))){break}if(c||(d.style&&d.style.position&&d.style.position&&("relative"!=d.style.position.toLowerCase())&&("absolute"!=d.style.position.toLowerCase()))){b+=d.offsetTop}d=d.offsetParent}}else{if(d.x){curleft+=d.x}}return(b)}function EkTbGetScrollTop(){if(EkTbIsInQuirksMode()){return(document.body.scrollTop)}else{return(document.documentElement.scrollTop)}}function EkTbGetScrollLeft(){if(EkTbIsInQuirksMode()){return(document.body.scrollLeft)}else{return(document.documentElement.scrollLeft)}}function EkTbIsInQuirksMode(){return(0==document.documentElement.clientHeight)}function EkTbFindTopDifference(a,c){if(!m_bEkTbReady){return false}var b=0;if(a!=c){b+=a.offsetTop;if(a.offsetParent){while((a.offsetParent)&&(a!=c)){b+=a.offsetTop;a=a.offsetParent}}}return(b)}function EkTbFindLeftDifference(a,c){if(!m_bEkTbReady){return false}var b=0;if(a!=c){b+=a.offsetLeft;if(a.offsetParent){while((a.offsetParent)&&(a!=c)){b+=a.offsetLeft;a=a.offsetParent}}}return(b)}function EkTbIsChild(d,b){if(!m_bEkTbReady){return false}var c=false;var a="";if(d){if((typeof d.id=="string")&&(((d.id).indexOf("EkTbToolbar_")>-1)||((d.id).indexOf("EkTbLeftBar_")>-1)||((d.id).indexOf("EkTbRightBar_")>-1)||((d.id).indexOf("EkTbTopBar_")>-1)||((d.id).indexOf("EkTbBottomBar_")>-1))){c=true}else{if(d.parentNode){while(d.parentNode){d=d.parentNode;if((b.id).indexOf("EkTb")>-1){a=(b.id).split("_")}else{a=new Array;a[0]="";a[1]=""}if((d==b)||(d==document.getElementById("EkTbToolbar_"+a[1]))||(d==document.getElementById("EkTbLeftBar_"+a[1]))||(d==document.getElementById("EkTbRightBar_"+a[1]))||(d==document.getElementById("EkTbTopBar_"+a[1]))||(d==document.getElementById("EkTbBottomBar_"+a[1]))){c=true;break}}}}}return(c)}function EkTbIsStopTag(b,a){if(!m_bEkTbReady){return false}var c=false;if((((b.style.position).toLowerCase()=="relative")&&(a&m_EkTbStopAtCss))||(((b.style.position).toLowerCase()=="absolute")&&(a&m_EkTbStopAtOffset))){if(!document.all){if((b.tagName).toLowerCase()!="table"){c=true}}else{c=true}}return(c)}function EkTbMacShowToolbar(c,a){if(!m_bEkTbReady){return false}var b=true;if(navigator.userAgent.indexOf("Mac")>-1){if(c.shiftKey){b=EkTbShowToolbar(c,a)}}return(b)}function EkTbShowToolbar(d,b){if(!m_bEkTbReady){return false}var a=true;var c="";var f="";var j=0;var h=0;if(document.all){c=d.toElement;f=d.srcElement;if(d.y==event.clientY){h=(d.y+(EkTbFindParentPositionTop(f,m_EkTbStopAtRoot,false)-EkTbFindParentPositionTop(f,m_EkTbStopAtCss,false)+EkTbGetScrollTop()));j=(d.x+(EkTbFindParentPositionLeft(f,m_EkTbStopAtRoot,false)-EkTbFindParentPositionLeft(f,m_EkTbStopAtCss,false)+EkTbGetScrollLeft()))}else{h=(event.clientY+EkTbFindParentPositionTop(f,m_EkTbStopAtRoot)-EkTbFindParentPositionTop(f,m_EkTbStopAtCss)+EkTbGetScrollTop());if(event.screenX!=d.clientX){j=(event.clientX+(d.x+(EkTbFindParentPositionLeft(f,m_EkTbStopAtRoot,false)-EkTbFindParentPositionLeft(f,m_EkTbStopAtCss,false)+EkTbGetScrollLeft())))-d.x}else{j=(event.screenX)}}}else{c=d.relatedTarget;f=d.target;h=d.pageY;j=d.pageX}if(!d.ctrlKey){var k=b.id.split("_");var g=(EkTbFindParentPositionLeft(document.getElementById("EkTbBase_"+k[1]),(m_EkTbStopAtRoot),true)+document.getElementById("EkTbBase_"+k[1]).offsetWidth);if(j>g){j=g}document.getElementById("EkTbToolbar_"+k[1]).style.top=((h))+"px";document.getElementById("EkTbToolbar_"+k[1]).style.left=((j))+"px";document.getElementById("EkTbToolbar_"+k[1]).style.display="";a=false}return(a)}function EkTbStopBubble(b,a){b.cancelBubble=true}function xBrowserReturnObjById(b){if(document.getElementById){var a=document.getElementById(b)}else{if(document.all){var a=document.all[b]}else{if(document.layers){var a=document.layers[b]}}}return a}function ShowEktronEditorsMenu(c){var a=$ektron("ul.EktronEditorsMenu");for(i=0;i<a.length;i++){if($ektron(a[i]).attr("id")!==c){$ektron(a[i]).slideUp("fast")}}if($ektron("#"+c).css("display")==="none"){var b=true;if($ektron("#"+c).parent().parent().find("iframe").length>0){b=false}if($ektron("#"+c).parent().parent().find("object").length>0){b=false}if(b==false){$ektron("#"+c).attr("class","EktronEditorsMenu EktronEditorsMenuNotLayered");$ektron("#"+c).css("display","block")}else{$ektron("#"+c).slideDown("fast")}}}function HideEktronEditorsMenu(a){if($ektron("#"+a).css("display")==="block"){$ektron("#"+a).slideUp("fast")}}if(typeof $ektron!=="undefined"){$ektron().ready(function(){$ektron(document).bind("click",function(a){$ektron(".EktronEditorsMenu").slideUp("fast")})})};