
var brynn=brynn||{};brynn._tools={};brynn._dataContainer=new Array(100);brynn._data=function(){function getSet(arrayPosi,updateData){if(updateData==undefined){return brynn._dataContainer[arrayPosi];}
else{brynn._dataContainer[arrayPosi]=updateData;}}
return{_local:function(data){return getSet(0,data);},_url:function(data){return getSet(1,data);},_path:function(data){return getSet(2,data);},_qs:function(data){return getSet(3,data);},_stopWatch:function(data){return getSet(5,data);},_screenWidth:function(data){return getSet(6,data);},_screenHeight:function(data){return getSet(7,data);},_pageHeight:function(data){return getSet(8,data);},_scrolledPageTop:function(data){return getSet(9,data);},_mouseX:function(data){return getSet(10,data);},_mouseY:function(data){return getSet(11,data);},_mouseDown:function(data){return getSet(12,data);},_eleGrabbed:function(data){return getSet(13,data);},_eleXrel:function(data){return getSet(14,data);},_eleYrel:function(data){return getSet(15,data);},_mouseMoveTimer:function(data){return getSet(16,data);},_hoverToggle:function(data){return getSet(20,data);},_collapsedData:function(data){return getSet(21,data);},_collpasedShowing:function(data){return getSet(22,data);},_rteImagePop:function(data){return getSet(30,data);},__:""};}();brynn._core=function(){var dat=brynn._data;return{d:"^|^",d2:"^||^",d3:"^|||^",dc:"^|c|^",dr:"^|r|^",_:function(theObject){if(dat._local())alert("TEST: "+((theObject==undefined)?"":theObject));},_test:function(){alert(brynn._core._isZipCode5("46g50"));},_redirect:function(theAddress,delaySecs){if(delaySecs==undefined||delaySecs=="")top.location.href=theAddress;else setTimeout("top.location.href = '"+theAddress+"';",delaySecs*1000);},_pause:function(theSeconds){var start=new Date(),end=null,secs=theSeconds*1000;do{end=new Date();}
while(end-start<secs)},_isSecure:function(){return(location.protocol==="https:")?true:false;},_isBlank:function(theString,theString2,theString3,theString4,theString5,theString6,theString7){var b=true;var a=[theString,theString2,theString3,theString4,theString5,theString6,theString7];var s="";for(var i=0;i<a.length;++i){s=a[i]+"";if(s!=undefined){while(s.indexOf(" ")>-1){s=s.replace(" ","");}
if(s!="")b=false;}}
return b;},_isInt:function(theString){var b=true;var s=theString+"";if(brynn._core._isBlank(s))b=false;else if(isNaN(theString))b=false;return b;},_isLength:function(theString,theLength){var b=true;var s=theString+"",x=theLength;if(brynn._core._isBlank(s,x))b=false;else if(!brynn._core._isInt(theLength))b=false;else if(s.length!=x)b=false;return b;},_isIntLength:function(theString,theLength){var b=true;var s=theString+"",x=theLength;if(brynn._core._isBlank(s,x))b=false;else if(!brynn._core._isInt(s))b=false;else if(!brynn._core._isLength(s,x))b=false;return b;},_isIntLength_NoBeginningZero:function(theString,theLength){var b=true;var s=theString+"",x=theLength;b=brynn._core._isIntLength(s,x);if(b&&s.substring(0,1)=="0")b=false;return b;},_isAddress:function(theString){var b=true;var s=brynn._core._trimAndSingleSpaces(theString+"");if(brynn._core._isBlank(s))b=false;else if(s.indexOf(" ")==-1)b=false;return b;},_isZeroOrEmpty:function(theString){var b=true;var s=brynn._core._removeSpaces(theString+"");s=brynn._core._replace(s,"0","");if(!brynn._core._isBlank(s))b=false;return b;},_isZipCode5:function(theString){return brynn._core._isIntLength(theString,5);},_getPageAddress:function(){var s=((brynn._core._isSecure())?"https":"http")+"://"+
document.domain+
window.location.pathname;return s;},_getScrollTop:function(){var sTop=document.body.scrollTop;if(sTop==0){if(window.pageYOffset){sTop=window.pageYOffset;}
else{sTop=(document.body.parentElement)?document.body.parentElement.scrollTop:0;}}
return sTop;},_getScrollHeight:function(){return Math.max(Math.max(document.body.scrollHeight,document.documentElement.scrollHeight-1),Math.max(document.body.offsetHeight,document.documentElement.offsetHeight-1),Math.max(document.body.clientHeight,document.documentElement.clientHeight-1));},_getElementLeftAndTop:function(theElementName){var obj=document.getElementById(theElementName);var curleft=0,curtop=0;if(obj.offsetParent){curleft=obj.offsetLeft
curtop=obj.offsetTop
while(obj=obj.offsetParent){curleft+=obj.offsetLeft
curtop+=obj.offsetTop}}
return[curleft,curtop];},_getWidth:function(theObject){return document.getElementById(theObject).offsetWidth;},_getHeight:function(theObject){return document.getElementById(theObject).offsetHeight;},_getIframeSrc:function(iframeName){var s="";try{s=document.getElementById(iframeName).contentWindow.document.body.innerHTML;}
catch(e){s="";}},_getDate:function(){var d=new Date();var s=(d.getMonth()+1)+"/"+d.getDate()+"/"+d.getFullYear();return s;},_getMsToday:function(){var d=new Date();var d2=new Date(brynn._core._getDate()+" 00:00:00");var x=d.getTime()-d2.getTime();return x;},_getMonthName:function(theDate){var d=new Date(theDate);var s="",x=d.getMonth()+1;switch(x){case 1:s="January";break;case 2:s="February";break;case 3:s="March";break;case 4:s="April";break;case 5:s="May";break;case 6:s="June";break;case 7:s="July";break;case 8:s="August";break;case 9:s="September";break;case 10:s="October";break;case 11:s="November";break;case 12:s="December";break;}
return s;},_getDayName:function(theDate){var d=new Date(theDate);var s="",x=d.getDay()+1;switch(x){case 1:s="Sunday";break;case 2:s="Monday";break;case 3:s="Tuesday";break;case 4:s="Wednesday";break;case 5:s="Thursday";break;case 6:s="Friday";break;case 7:s="Saturday";break;}
return s;},_getStopwatch:function(startTime_tf){var dt=new Date();if(startTime_tf==true){dat._stopWatch(dt.getTime());}
else{return dt.getTime()-dat._stopWatch();}},_setHtml:function(theElementName,theHtml,append_tf){var o=document.getElementById(theElementName);if(append_tf==true)o.innerHTML+=theHtml;else o.innerHTML=theHtml;},_setZindex:function(theObject,thePosition){document.getElementById(theObject).style.zIndex=thePosition;},_setHide:function(theObject){document.getElementById(theObject).visibility="hidden";},_setShow:function(theObject){document.getElementById(theObject).visibility="visible";},_setPaddingBottom:function(theElement,thePaddingAmount){document.getElementById(theElement).style.paddingBottom=thePaddingAmount+"px";},_setTitle:function(theObject,theTitle){document.getElementById(theObject).title=theTitle;},_setSrc:function(theObject,theSrc){document.getElementById(theObject).src=theSrc;},_setValue:function(theForm,theField,theValue){document.forms[theForm][theField].value=theValue;},_setHref:function(theObject,theHref){var h=theHref;if(h==""){h="javascript: void(0);";document.getElementById(theObject).target="";}
document.getElementById(theObject).href=h;},_setColor:function(theObject,theColor){document.getElementById(theObject).style.color=theColor;},_setBkgColor:function(theObject,theColor){document.getElementById(theObject).style.backgroundColor=theColor;},_setBkgImg:function(theObject,theImgPath){document.getElementById(theObject).style.backgroundImage='url('+theImgPath+')';},_setOnclick:function(theObject,theCode){var o=document.getElementById(theObject);try{o.onclick=function(){eval(theCode);}}
catch(e){}},_setOnclickLink:function(theObject,theLocation){var o=document.getElementById(theObject);try{o.onclick=function(){eval("document.location.href='"+theLocation+"';");}
o.style.cursor="pointer";}
catch(e){}},_setOnload:function(theObject,theCode){document.getElementById(theObject).onload=theCode;},_setOnmousedown:function(theObject,theCode){var o=document.getElementById(theObject);try{o.onmousedown=function(){eval(theCode);}}
catch(e){}},_setOnmouseup:function(theObject,theCode){var o=document.getElementById(theObject);try{o.onmouseup=function(){eval(theCode);}}
catch(e){}},_setOnmouseover:function(theObject,theCode){var o=document.getElementById(theObject);try{o.onmouseover=function(){eval(theCode);}}
catch(e){}},_setOnmouseoverImg:function(theElement,theOriginalImage){var ele=theElement,img=theOriginalImage,img2=img.replace(".jpg","_.jpg").replace(".gif","_.gif");brynn._core._setOnmouseover(ele,"brynn._core._setSrc('"+ele+"', '"+img2+"');");brynn._core._setOnmouseout(ele,"brynn._core._setSrc('"+ele+"', '"+img+"');");},_setOnmouseoverBkgImg:function(theElement,theOriginalImage){var ele=theElement,img=theOriginalImage,img2=img.replace(".jpg","_.jpg").replace(".gif","_.gif");brynn._core._setPointer(ele);brynn._core._setOnmouseover(ele,"brynn._core._setBkgImg('"+ele+"', '"+img2+"');");brynn._core._setOnmouseout(ele,"brynn._core._setBkgImg('"+ele+"', '"+img+"');");},_setOnmouseout:function(theObject,theCode){var o=document.getElementById(theObject);try{o.onmouseout=function(){eval(theCode);}}
catch(e){}},_setOnchange:function(theObject,theCode){document.getElementById(theObject).onchange=theCode;},_setPointer:function(theObject){document.getElementById(theObject).style.cursor="pointer";},_setHiddenField_FromIframe:function(theHiddenField,theIframe){var h="";try{h=document.getElementById(theIframe).contentWindow.document.body.innerHTML;}
catch(e){}
if(h!="")document.getElementById(theHiddenField).value=h;},_setPageHeight:function(){var x=brynn._core._getScrollHeight();try{var xx=document.getElementById("hoverBox").offsetHeight;if(xx>x)x=xx+10;}catch(e){}
dat._pageHeight(x);try{document.getElementById("hoverTable").style.height=x+"px";document.getElementById("hoverBkg").style.height=x+"px";}
catch(e){}},_removeAttribute:function(theElement,theAttributeName){document.getElementById(theElement).removeAttribute(theAttributeName);},_fadeOpacity:function(theObject,opacityPercent){var o=document.getElementById(theObject);var opac=opacityPercent;o.style.opacity=opac;opac=opac*100;o.style.filter='progid:DXImageTransform.Microsoft.Alpha(Opacity='+opac+')';},_fadeIn:function(theObject){var fadeSpeed=20;for(var i=1;i<=10;++i){setTimeout('brynn._core._fadeOpacity("'+theObject+'", '+(0+(i*.1)).toString()+')',fadeSpeed*i);}},_fadeOut:function(theObject){var fadeSpeed=10;for(var i=1;i<=10;++i){setTimeout('brynn._core._fadeOpacity("'+theObject+'", '+(1-(i*.1)).toString()+')',fadeSpeed*i);}},_hide:function(theElement){document.getElementById(theElement).style.visibility="hidden";},_show:function(theElement){document.getElementById(theElement).style.visibility="visible";},_hideShow:function(theElement){if(document.getElementById(theElement).style.visibility=="visible")brynn._core._hide(theElement);else brynn._core._show(theElement);},_createArr:function(theCols){return new Array(theCols);},_createJag:function(theRows,theCols){var j=new Array(theRows);for(var i=0;i<j.length;++i){j[i]=new Array(theCols);}
return j;},_split:function(theString,theDelimiter){return theString.split(theDelimiter);},_jagSplit:function(theString,theColDelim,theRowDelim){var s=theString,c=theColDelim,r=theRowDelim;var a=split_(s,r);var j=new Array(a.length);for(var i=0;i<a.length;++i){j[i]=split_(a[i],c);}
return j;},_replace:function(theString,toReplace,replaceWith){var s=theString;if(brynn._core._isBlank(s))s=theString;else{while(s.indexOf(toReplace)>-1){s=s.replace(toReplace,replaceWith);}}
return s;},_removeSpaces:function(theString){var s=theString;if(brynn._core._isBlank(s))s="";else s=brynn._core._replace(theString," ","");return s;},_trim:function(theString){var s=theString;if(brynn._core._isBlank(s)){s="";}
else{while(s.substring(0,1)==" "){s=s.substring(1);}
while(s.substring(s.length-1)==" "){s=s.substring(0,s.length-1);}}
return s;},_trimAndSingleSpaces:function(theString){var s=theString;s=brynn._core._trim(s);s=brynn._core._replace(s,"  "," ");return s;},test:function(){alert('testing');}};}();brynn._mouse=function(){function mouseGrab(elementName){brynn._data._eleGrabbed(elementName);var ele=brynn._data._eleGrabbed();var o=document.getElementById(ele);var t=0,l=0;do{t+=o.offsetTop;l+=o.offsetLeft;}while(o=o.offsetParent);brynn._data._eleXrel(brynn._data._mouseX()-l);brynn._data._eleYrel(brynn._data._mouseY()-t);o=document.getElementById(ele);o.style.cursor="pointer";o.style.position="absolute";}
function _setGrab(elementName){document.getElementById(elementName).style.cursor="pointer";brynn._core._setOnmousedown(elementName,"brynn._mouse._grab('"+elementName+"');");}
return{_grab:function(elementName){mouseGrab(elementName);},_setElementGrab:function(elementName){_setGrab(elementName);}};}();brynn._ajax=function(){var z=brynn._core;var pleaseWait=false;function pleaseWaitBox(theAction){function displayWait(){}
function clearWait(){}
if(pleaseWait==true){switch(theAction){case 1:displayWait();break;default:clearWait();break;}}}
function ajaxRequest(theQuery){var XmlHttp,s="",q=z._replace(theQuery,"^x^","^|^");if(window.XMLHttpRequest){XmlHttp=new XMLHttpRequest();}else{}
XmlHttp.onreadystatechange=function(){switch(XmlHttp.readyState){case 1:pleaseWaitBox(1);break;case 4:if(XmlHttp.status==200){s=XmlHttp.responseText;}
pleaseWaitBox(0);break;}
return s;}
XmlHttp.open("POST","/web/ajax",false);XmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");XmlHttp.send(q);s=XmlHttp.responseText;return s;}
function sLayer(theQuery){var ckey=Math.floor(Math.random()*new Date().getTime()).toString();var skey=ajaxRequest("ajaxSecurity^|^"+ckey);var s=ajaxRequest(theQuery+"^|^"+skey);ckey=ckey+skey;var kLen=ckey.length;if(s.substring(0,kLen)==ckey&&kLen<s.length){s=s.substring(kLen);}
else{s=null;}
return s;}
function showWait(){pleaseWait=true;}
function getData_String(theQuery){return sLayer(theQuery);}
function getData_Array(theQuery){var s=getData_String(theQuery);if(s==null||s==undefined){return null;}else{return z._split(s,z.d);}}
function getData_jagArray(theQuery){var a=getData_Array(theQuery);if(a==null){return null;}
else{var j=new Array();for(var i=0;i<a.length;++i){j[i]=z._split(a[i],z.d2);}
return j;}}
return{_app:function(theQuery,dataReturn_string_array_jag_012,pleaseWaitBox_tf){var q=theQuery;if(pleaseWaitBox_tf)pleaseWait=true;switch(dataReturn_string_array_jag_012){case 0:return getData_String(q);break;case 1:return getData_Array(q);break;case 2:return getData_2dArray(q);break;}}};}();brynn._pageLoad=function(){var dat=brynn._data,z=brynn._core;function app(){var s=dat._path()[2];switch(s){case"110":break;case"120":break;}}
return{app:function(){app();}};}();brynn._load=function(){var dat=brynn._data,z=brynn._core;function security(){if(top.document.domain!=self.document.domain){document.body.innerHTML="";redirect_("http://www.coolpier.com/jsLocked?"+top.document.location);}}
function webPath(){var url=document.location.href
dat._url(url);var qs=((url.indexOf("?")<1)?"":url.substring(url.indexOf("?")+1));dat._qs(qs);var path=new Array();path[0]=document.domain;var s=window.location.pathname;if(s.substring(0,5)=="/web/")s=s.substring(5);var a=z._split(s,"/"),ub=a.length-1;path[1]=a[ub];if(z._isInt(path[1])){path[1]=a[ub].substring(0,10);path[2]=a[ub].substring(10);if(ub>0)path[3]=a[ub-1];if(ub>1)path[4]=a[ub-2];if(ub>2)path[5]=a[ub-3];}
else{if(ub>0)path[2]=a[ub-1];if(ub>1)path[3]=a[ub-2];if(ub>2)path[4]=a[ub-3];if(ub>3)path[5]=a[ub-4];}
if(path[0]=="127.0.0.1")dat._local(true);dat._path(path);}
function checkJs(){if(jsIsOn!="1"){var jsTest=brynn._ajax._app("jsOn",0,false);if(jsTest=="1"){jsIsOn="1";}}}
function thePageLoad(){if(dat._local()){brynn._pageLoad.app();}
else{try{brynn._pageLoad.app();}catch(e){}}
if(dat._local()){custom.load();}
else{try{custom.load();}catch(e){}}}
function screenSize(){dat._screenHeight(document.body.offsetHeight);dat._screenWidth(document.body.offsetWidth);z._setPageHeight();dat._scrolledPageTop(z._getScrollTop());document.getElementById("hoverTable").style.height=dat._pageHeight();document.getElementById("hoverBkg").style.height=dat._pageHeight();}
function hoverSize(){try{document.getElementById('hoverTable').style.height='10px';document.getElementById('hoverBkg').style.height='10px';}
catch(e){}}
function setEvents(){window.onscroll=function(e){brynn._data._scrolledPageTop(brynn._core._getScrollTop());if(dat._local()){try{document.getElementById("stopWatch").style.top=brynn._data._scrolledPageTop()+"px";}catch(e){}}}
brynn._data._eleGrabbed("");brynn._data._mouseMoveTimer(brynn._core._getStopwatch());document.onmousemove=function(e){var ms=brynn._core._getStopwatch();if((ms-brynn._data._mouseMoveTimer())>20){if(!e)var e=window.event;if(e.pageX||e.pageY){brynn._data._mouseX(e.pageX);brynn._data._mouseY(e.pageY);}
else if(e.clientX||e.clientY){brynn._data._mouseX(e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft);brynn._data._mouseY(e.clientY+document.body.scrollTop+document.documentElement.scrollTop);}
var ele=brynn._data._eleGrabbed();if(ele!=""){document.getElementById(ele).style.left=(brynn._data._mouseX()-brynn._data._eleXrel())+"px";document.getElementById(ele).style.top=(brynn._data._mouseY()-brynn._data._eleYrel())+"px";}
brynn._data._mouseMoveTimer(ms);}
brynn._load._resetScreenSize();}
document.onmousedown=function(e){brynn._data._mouseDown(true);}
document.onmouseup=function(e){brynn._data._mouseDown(false);brynn._data._eleGrabbed("");}}
function loadAPIs(){}
function app(){security();z._getStopwatch(true);dat._mouseMoveTimer(z._getStopwatch());webPath();checkJs();thePageLoad();screenSize();setEvents();loadAPIs();if(dat._local){try{brynn._test.app();}catch(e){}}}
return{_resetScreenSize:function(){screenSize();},_resetHoverSize:function(){hoverSize();},app:function(){app();},__:""};}();brynn._tools._validate=function(){function checkField(){}
function checkForm(){}
return{_checkField:function(){},_checkForm_submit:function(formName,form){},__:""};}();brynn._tools._hoverBox=function(){var dat=brynn._data,z=brynn._core;function htmlHoverBox(beginHtml){var bkgImg='background-image: url(/App_/img/box_/gray'
return''+
((beginHtml)?'<table id="hoverBox" class="center middle">'+'<tr>'+'<td id="asdf" class="p5" style="'+bkgImg+'.gif); background-position: 0px 0px;"></td>'+'<td class="p5" style="'+bkgImg+'_top.gif);"></td>'+'<td class="p5" style="'+bkgImg+'.gif); background-position: -20px 0px;"></td>'+'</tr>'+'<tr>'+'<td class="p5" style="'+bkgImg+'_left.gif);"></td>'+'<td class="bkgf h1 p10 w400 h200" style="">':'</td>'+'<td class="p5" style="'+bkgImg+'_right.gif);"></td>'+'</tr>'+'<tr>'+'<td class="p5" style="'+bkgImg+'.gif); background-position: 0px -20px;"></td>'+'<td class="p5" style="'+bkgImg+'_bottom.gif);"></td>'+'<td class="p5" style="'+bkgImg+'.gif); background-position: -20px -20px;"></td>'+'</tr>'+'<tr><td colspan="3" class="p5" onclick="brynn._tools._hoverBox._close();"></td></tr>'+'</table>');}
function htmlControls(theTitle){return''+'<table id="controlTable" class="w100p"><tr>'+'<td class="move lucida subtext c777" style="padding-right: 15px;"'+' onmousedown="brynn._tools._hoverBox._grab();"'+' onmouseover="this.style.backgroundColor = \'#EDEDFF\'"'+' onmouseout="this.style.backgroundColor = \'#fff\'">'+'<table class="w100p nowrap abottom"><tr><td id="hoverTitle" class="nowrap lucida text3 p3">&nbsp;'+theTitle+'</td>'+'<td class="aright amiddle w70 norwrap p3" style="padding-left: 70px;"><img class="" src="/App_/img/box_/_move.gif" /> move</td></tr></table>'+'</td>'+'<td class="pointer lucida subtext c777 aright nowrap w1 p15 plr amiddle" style="border-left: solid 1px #ccc;"'+' onclick="brynn._tools._hoverBox._close();"'+' onmouseover="this.style.backgroundColor = \'#FFEDED\'"'+' onmouseout="this.style.backgroundColor = \'#fff\'"'+'>'+'<img class="right inline" src="/App_/img/box_/_close.gif" />'+' close'+'</td>'+'</tr></table>'+'<div class="p2 pb" style="border-bottom: solid 1px #ccc;"></div>'+'<div class="p15 pb"></div>'+'';}
function openHover(theTitle,theHtml,darkenBkg_tf){var bkgOpacity=((darkenBkg_tf)?.7:0);var html=htmlHoverBox(true)+
htmlControls(theTitle)+
theHtml+
htmlHoverBox(false);var o=document.getElementById("hoverContent");o.innerHTML=html;var hbPosition=z._getElementLeftAndTop("controlTable");var hbLeft=hbPosition[0],hbTop=z._getScrollTop()+10;o=document.getElementById("hoverBox");o.style.position="absolute";o.style.left=hbLeft+"px";o.style.top=hbTop+"px";z._fadeOpacity("hoverTable",0);var pageHeight=dat._pageHeight();o=document.getElementById("hoverBkg");o.style.backgroundColor="#fff";z._fadeOpacity("hoverBkg",bkgOpacity);o.style.zIndex='100';brynn._load._resetScreenSize();recenter();document.getElementById("hoverTable").style.zIndex="101";z._fadeIn("hoverTable");z._setOnclick("hoverTop","brynn._tools._hoverBox._close();");z._setOnclick("hoverLeft","brynn._tools._hoverBox._close();");z._setOnclick("hoverRight","brynn._tools._hoverBox._close();");z._setOnclick("hoverBottom","brynn._tools._hoverBox._close();");}
function recenter(){var o=document.getElementById("hoverBox");var x=o.offsetWidth;x=(Math.floor((dat._screenWidth()-x)/2));if(x<0)x=0;o.style.left=x+"px";}
function grabHover(){brynn._mouse._grab("hoverBox");}
function closeHover(){var fadePause=100,fadeAddToRemove=50;z._fadeOut("hoverTable");setTimeout("document.getElementById('hoverTable').style.zIndex = '-1';",fadePause+fadeAddToRemove);setTimeout("document.getElementById('hoverBkg').style.zIndex = '-1';",fadePause+fadeAddToRemove);setTimeout("document.getElementById('hoverTable').style.height = '10px';",fadePause+fadeAddToRemove+10);setTimeout("document.getElementById('hoverBkg').style.height = '10px';",fadePause+fadeAddToRemove+10);setTimeout("document.getElementById('hoverContent').innerHTML = '';",fadePause+fadeAddToRemove);setTimeout("document.getElementById('hoverBkg').style.backgroundColor = '#fff';",fadePause+fadeAddToRemove);hoverToggle=0;}
var hoverToggle=0;function hoverImageToggle(){hoverToggle=((hoverToggle==0)?1:0);var img=document.getElementById("hoverImg").src;var title=document.getElementById("hoverTitle").innerHTML;var desc=document.getElementById("hoverDesc").innerHTML;if(hoverToggle==1){hoverImage(img,title,desc,false,true);}
else{hoverImage(img,title,desc,true);}}
function hoverImage(theImageSrc,theTitle,theDesc,descScrollable_tf,descUnder_tf){var h,img=theImageSrc,title=theTitle,desc=theDesc;img='<div id="hoverImgDiv" class="bkgf p10 pb">'+
((img=="")?"":((desc==undefined)?'<img class="border0 center middle" src="'+img+'" onload="brynn._tools._hoverBox._recenter();" />':'<img id="hoverImg" class="border0 center middle pointer"'+
((descUnder_tf)?'':' style="max-width: 180px;"')+' src="'+img+'" onload="brynn._tools._hoverBox._recenter(2); brynn._load._resetScreenSize();"'+' onclick="brynn._tools._hoverBox._hoverToggle();"'+' />'+
((descUnder_tf)?'<div class="p1 pb"></div>'+'<span class="subtext2 blue pointer" onclick="brynn._tools._hoverBox._hoverToggle();">click for smaller image</span>':'<div class="p1 pb"></div>'+'<span class="subtext2 blue pointer" onclick="brynn._tools._hoverBox._hoverToggle();">click for larger image</span>')))+'</div>';if(title==undefined)title="";desc=((desc==undefined||desc=="")?"":'<div id="hoverDesc" class="p10 plr center '+
((descScrollable_tf)?'divScroll w450 h250':((descUnder_tf)?'w100p p20':'w450 mh100'))+' aleft">'+
desc+'</div>');h='<table class="center"><tr>'+'<td class="w1 h1 acenter">'+
((img!="")?img:desc)+'</td>'+
((img!=""&&desc!=""&&!descUnder_tf)?'<td class="w1 p10 pt0">'+desc+'</td>':'')+'</tr></table>'+
((descUnder_tf)?desc:'')+'';openHover(title,h,true);}
function hoverFrame(theTitle,theAddress,theWidth,theHeight,darkenBkg_tf,scrollbars_tf){var h='<iframe class="border0" frameborder="0" seamless="seamless"'+
((scrollbars_tf==true)?' ':' scrolling="no"')+' style="width: '+theWidth+'px; height: '+theHeight+'px; border: none;"'+' src="'+theAddress+'"></iframe>';openHover(theTitle,h,darkenBkg_tf);}
return{_open:function(theTitle,theHtml,darkenBkg_tf){openHover(theTitle,theHtml,darkenBkg_tf);},_grab:function(){grabHover();},_close:function(){closeHover();},_recenter:function(){recenter();},_hoverCustom:function(theTitle,theHtml,darkenBkg_tf){openHover(theTitle,theHtml,darkenBkg_tf);},_app:function(theImageSrc,theTitle,theDesc,descScrollable_tf){hoverImage(theImageSrc,theTitle,theDesc,descScrollable_tf);},_hoverToggle:function(){hoverImageToggle();},_hoverFrame:function(theTitle,theAddress,theWidth,theHeight,darkenBkg_tf,scrollbars_tf){hoverFrame(theTitle,theAddress,theWidth,theHeight,darkenBkg_tf,scrollbars_tf);},__:""};}();brynn._tools._slide=function(){var dat=brynn._data,z=brynn._core;var slideObjects=new Array();function slide(elementName,setup_triggerElement,setup_hori_vert_01,setup_hidePxPosi,setup_showPxPosi,setup_zIndex,start_hideOrShow_01){var o=document.getElementById(elementName);function setupElement(){var a=new Array(4);a[0]=elementName;a[1]=setup_hori_vert_01;a[2]=setup_hidePxPosi;a[3]=setup_showPxPosi;var setPosi=((start_hideOrShow_01==0)?a[2]:a[3]);if(a[1]==0)o.style.left=setPosi+"px";else if(a[1]==1)o.style.top=setPosi+"px";o.style.zIndex=setup_zIndex;z._setOnclick(elementName,"brynn._tools._slide._slide('"+setup_triggerElement+"');");slideObjects[slideObjects.length]=a;}
function moveIt(theArray){var s,a=theArray;var leftOrTop=(a[1]==0)?"left":"top";var currentPosi=(leftOrTop=="left")?o.offsetLeft:o.offsetTop;var newPosi=(currentPosi==a[2])?a[3]:a[2];var moveDistance=currentPosi-newPosi;var moveIncrement=2;if(moveDistance<0)moveDistance*=-1;else moveIncrement*=-1;var x=0,ele=elementName;for(var i=0;i<moveDistance;++i){if(x==1||i==moveDistance-1){x=0;currentPosi=currentPosi+moveIncrement;setTimeout("document.getElementById('"+ele+"').style."+leftOrTop+" = '"+currentPosi+"px';",.5*i);}
else x=1;}}
function elementClicked(){var a;for(var i=0;i<slideObjects.length;++i){if(slideObjects[i][0]==elementName)a=slideObjects[i];}
moveIt(a);}
function app(){if(setup_hori_vert_01==undefined)elementClicked();else setupElement();}
app();}
return{_slide:function(elementName,setup_triggerElement,setup_hori_vert_01,setup_hidePxPosi,setup_showPxPosi,setup_zIndex,start_hideOrShow_01){slide(elementName,setup_triggerElement,setup_hori_vert_01,setup_hidePxPosi,setup_showPxPosi,setup_zIndex,start_hideOrShow_01)},__:""};}();var editor;brynn._tools._rte=function(){var dat=brynn._data,z=brynn._core;function loadCke(theDiv_edit,theWidth){if(editor)editor.destroy();editor=CKEDITOR.replace(theDiv_edit,{extraPlugins:'tableresize'});CKEDITOR.loadFullCoreTimeout=3;CKEDITOR.editorConfig=function(config)
{config.defaultLanguage='en';config.skin="kama";config.uiColor="#69f";config.resize_enabled=false;config.enterMode=CKEDITOR.ENTER_BR;var w=theWidth;var h="480",bar="large";if(w<500){bar="small";h="400";}
else if(w<700){bar="medium";h=440;}
else{}
if(w==900){w=940;}else if(w==780){w=820;}
config.height=h+"px";config.width=w+"px";config.toolbar=bar;config.toolbar_small=[['Undo','-','Redo'],['Font'],['FontSize'],['Bold','Italic','Underline'],['TextColor','BGColor'],['RemoveFormat'],['JustifyLeft','JustifyCenter','JustifyRight'],['Outdent','Indent'],['BulletedList','NumberedList'],['Link'],];config.toolbar_medium=[['Undo','-','Redo'],['Font'],['FontSize'],['Bold','Italic','Underline'],['TextColor','BGColor'],['RemoveFormat'],'/',['JustifyLeft','JustifyCenter','JustifyRight'],['Outdent','Indent'],['BulletedList','NumberedList'],['Link'],];config.toolbar_large=[['Undo','-','Redo'],['Font'],['FontSize'],['Bold','Italic','Underline'],['TextColor','BGColor'],['RemoveFormat'],['JustifyLeft','JustifyCenter','JustifyRight'],['Outdent','Indent'],['BulletedList','NumberedList'],['Link'],];};}
function setupAdvanced(theDivs,theImgDir){var a=z._split(theDivs,",");var dir=theImgDir;for(var i=0;i<a.length;++i){setDiv(a[i],dir);}}
function setDiv(theDiv,imgDir){var o=document.getElementById(theDiv);var width=o.getAttribute("rteSize");var html=o.innerHTML;var h='<form id="fEdit" name="fEdit" method="post" action="?update">'+'<input type="hidden" id="h" name="h" value="" />'+'<div class="rel" style="width: '+((width*1)+50)+'px; left: -25px;">'+'<div class="border333 p2 w200 pointer acenter" style="background-color: #f8f8f8; border-bottom-width: 0px;"'+' id="'+theDiv+'_toolsB" onclick="brynn._tools._rte._loadAdvanced(\''+theDiv+'_edit\', \''+width+'\')">'+'<span class="lucida" id="'+theDiv+'_toolsText">Edit Section</span>'+'<div class="border000 p10 abs"'+' style="width: 190px; background-color: #f8f8f8; border-width: 1px 2px 2px 1px; z-index: 1000; visibility: hidden;"'+' id="'+theDiv+'_tools">'+setTools(theDiv)+'</div>'+'</div>'+'<div class="p7 pb center" style="border-top: solid 1px #000;"></div>'+'<div id="'+theDiv+'_edit">'+html+'</div>'+'</div>'+'</form>'+'';o.innerHTML=h;document.forms["fEdit"]["h"].value=html;}
function setTools(theDiv){var h='<div class="lucida u acenter p7 pb">'+'Click On A Tool Below'+'</div>'+'<div class="lucida subtext p7 pb blue link"'+' onclick="brynn._tools._rte._imageSelector(\''+theDiv+'\');">'+'Add An Image'+'</div>'+'<div class="lucida subtext p7 pb blue link"'+' onclick="brynn._tools._hoverBox._hoverFrame(\'Upload Your Images\', \'/App_/_swfu/upload.aspx?image\', 400, 100, false, false);">'+'Upload An Image'+'</div>'+'<div class="lucida subtext p7 pb blue link"'+' onclick="brynn._tools._rte._tableSelector(\''+theDiv+'\');">'+'Add A Table'+'</div>'+'<div class="lucida subtext p7 pb blue link"'+' onclick="brynn._tools._rte._save(\''+theDiv+'\');">'+'Save Changes To Live Site'+'</div>'+''+'';return h;}
function loadAdvanced(theDiv_edit,theWidth){loadCke(theDiv_edit,theWidth);var ele=z._replace(theDiv_edit,"_edit","");z._removeAttribute(ele+"_toolsB","onclick");z._setOnmouseover(ele+"_toolsB","brynn._core._show('"+ele+"_tools');");z._setOnmouseout(ele+"_toolsB","brynn._core._hide('"+ele+"_tools');");z._setHtml(ele+"_toolsText","Advanced Editor Tools");z._show(ele+"_tools");}
function insertHtml(theDiv,theHtml){var myEditor=CKEDITOR.instances[theDiv+'_edit'];myEditor.insertHtml(theHtml);}
function imageSelector(theDiv){dat._rteImagePop("0");var imgAjax=document.getElementById(theDiv).getAttribute("rteImgAjax");var a=brynn._ajax._app(imgAjax,1);var h="";h+='<div class="p7 acenter">'+'<input type="radio" id="imgp" onclick="brynn._data._rteImagePop(\'1\');" /> Have large image popup on click.'+'</div>';h+='<div class="w500 h400 divScroll">';var x=0;for(var i=0;i<a.length;++i){++x;if(x==4)x=1;if(x==1)h+='';h+='<div class="divLeft w120 p10">'+'<img class="pointer link" id="i'+i+'" width="100" src="'+a[i]+'"'+' onclick="brynn._tools._rte._addImage(\''+theDiv+'\', \''+a[i]+'\');"'+' />'+'</div>';if(x==3)h+='<div class="p4 pb"></div>';}
h+='</div>';brynn._tools._hoverBox._open("Select An Image",h,false);}
function addImage(theDiv,theImage){var id_=z._getStopwatch();var pop=dat._rteImagePop();var h=((pop=="1")?'<a href="javascript: brynn.easy.imagePop(\''+id_+'\');">':'')+'<img id="'+id_+'" src="'+theImage+'" />';((pop=="1")?'</a>':'');insertHtml(theDiv,h);brynn._tools._hoverBox._close();}
function tableSelector(theDiv){function tableBegin(tableType){return'<table class="w90p h40 center pointer"'+' style="border: solid 2px #ccc;"'+' onmouseover="this.style.border=\'solid 2px #36c\';"'+' onmouseout="this.style.border=\'solid 2px #ccc\';"'+' onclick="brynn._tools._rte._addTable(\''+theDiv+'\', '+tableType+');">'+'<tbody><tr>';}
function tableEnd(){return'</tr></tbody></table>';}
var h='<div class="acenter p30 pb">Click on a table layout below.</div>'+
tableBegin(1)+'<td class="acenter amiddle" style=" border: solid 1px #ccc;">100%</td>'+
tableEnd()+'<div class="p30 pb"></div>'+
tableBegin(11)+'<td class="acenter amiddle" style="width: 50%; border: solid 1px #ccc;">1/2</td>'+'<td class="acenter amiddle" style=" border: solid 1px #ccc;">1/2</td>'+
tableEnd()+'<div class="p30 pb"></div>'+
tableBegin(111)+'<td class="acenter amiddle" style="width: 33%; border: solid 1px #ccc;">1/3</td>'+'<td class="acenter amiddle" style="width: 33%; border: solid 1px #ccc;">1/3</td>'+'<td class="acenter amiddle" style=" border: solid 1px #ccc;">1/3</td>'+
tableEnd()+'<div class="p30 pb"></div>'+
tableBegin(12)+'<td class="acenter amiddle" style="width: 33%; border: solid 1px #ccc;">1/3</td>'+'<td class="acenter amiddle" style=" border: solid 1px #ccc;">2/3</td>'+
tableEnd()+'<div class="p30 pb"></div>'+
tableBegin(21)+'<td class="acenter amiddle" style="width: 66%; border: solid 1px #ccc;">2/3</td>'+'<td class="acenter amiddle" style=" border: solid 1px #ccc;">1/3</td>'+
tableEnd()+'<div class="p30 pb"></div>'+
tableBegin(13)+'<td class="acenter amiddle" style="width: 25%; border: solid 1px #ccc;">1/4</td>'+'<td class="acenter amiddle" style=" border: solid 1px #ccc;">3/4</td>'+
tableEnd()+'<div class="p30 pb"></div>'+
tableBegin(31)+'<td class="acenter amiddle" style="width: 75%; border: solid 1px #ccc;">3/4</td>'+'<td class="acenter amiddle" style=" border: solid 1px #ccc;">1/4</td>'+
tableEnd()+'<div class="p30 pb"></div>'+'';brynn._tools._hoverBox._open("Select A Table Layout",h,false);}
function addTable(theDiv,tableType){var h="table";switch(tableType){case 1:h='<table cellpadding="0" cellspacing="0" style="width: 100%; height: 30px;"><tbody><tr>'+'<td style="vertical-align: top;"></td>'+'</tr></tbody></table>';break;case 11:h='<table cellpadding="0" cellspacing="0" style="width: 100%; height: 30px;"><tbody><tr>'+'<td style="width: 50%; vertical-align: top;"></td>'+'<td style="vertical-align: top;"></td>'+'</tr></tbody></table>';break;case 111:h='<table cellpadding="0" cellspacing="0" style="width: 100%; height: 30px;"><tbody><tr>'+'<td style="width: 33%; vertical-align: top;"></td>'+'<td style="width: 33%; vertical-align: top;"></td>'+'<td style="vertical-align: top;"></td>'+'</tr></tbody></table>';break;case 12:h='<table cellpadding="0" cellspacing="0" style="width: 100%; height: 30px;"><tbody><tr>'+'<td style="width: 33%; vertical-align: top;"></td>'+'<td style="vertical-align: top;"></td>'+'</tr></tbody></table>';break;case 21:h='<table cellpadding="0" cellspacing="0" style="width: 100%; height: 30px;"><tbody><tr>'+'<td style="width: 66%; vertical-align: top;"></td>'+'<td style="vertical-align: top;"></td>'+'</tr></tbody></table>';break;case 13:h='<table cellpadding="0" cellspacing="0" style="width: 100%; height: 30px;"><tbody><tr>'+'<td style="width: 25%; vertical-align: top;"></td>'+'<td style="vertical-align: top;"></td>'+'</tr></tbody></table>';break;case 31:h='<table cellpadding="0" cellspacing="0" style="width: 100%; height: 30px;"><tbody><tr>'+'<td style="width: 75%; vertical-align: top;"></td>'+'<td style="vertical-align: top;"></td>'+'</tr></tbody></table>';break;}
insertHtml(theDiv,h);brynn._tools._hoverBox._close();}
function saveData(theDiv){var h=CKEDITOR.instances[theDiv+"_edit"].getData();var o=document.forms["fEdit"],oh=o.elements["h"];oh.value=z._replace(h,'"h"','');o.submit();}
return{_setAdvanced:function(theDivs,theImgDir){setupAdvanced(theDivs,theImgDir);},_loadAdvanced:function(theDiv,theWidth){loadAdvanced(theDiv,theWidth);},_addHtml:function(theDiv,theHtml){insertHtml(theDiv,theHtml);},_imageSelector:function(theDiv){imageSelector(theDiv);},_addImage:function(theDiv,theImage){addImage(theDiv,theImage);},_tableSelector:function(theDiv,tableType){tableSelector(theDiv);},_addTable:function(theDiv,tableType){addTable(theDiv,tableType);},_save:function(theDiv){saveData(theDiv);},__:""};}();brynn._tools._collapseAndStore=function(){var dat=brynn._data,z=brynn._core;function eleStore(theElement){var o=document.getElementById(theElement+"_");var h=o.innerHTML;o.innerHTML="";brynn._load._resetHoverSize();return h;}
function eleShow(theElement){var x,ele=theElement,j=dat._collapsedData();for(var i=0;i<j.length;++i){if(j[i][0]==ele){x=i;}}
if(j[x][2]==1){eleStore(j[x][0]);j[x][2]=0;}
else{var o=document.getElementById(ele+"_");o.innerHTML=j[x][1];j[x][2]=1;}
dat._collapsedData(j);}
function eleHideAll(){var j=dat._collapsedData();for(var i=0;i<j.length;++i){eleStore(j[i][0]);j[i][2]=0;}
dat._collapsedData(j);}
function setEleHideAll(theElement){z._setOnclick(theElement,"brynn._tools._collapseAndStore._hideAll();");}
function eleShowAll(){var j=dat._collapsedData();for(var i=0;i<j.length;++i){if(j[i][2]!=1){eleShow(j[i][0]);j[i][2]=1;}}
dat._collapsedData(j);}
function setEleShowAll(theElement){z._setOnclick(theElement,"brynn._tools._collapseAndStore._showAll();");}
function app(theIds){var a=z._split(theIds,","),j=z._createJag(a.length,3);var ele,h;for(var i=0;i<a.length;++i){ele=a[i];document.getElementById(ele).style.cursor="pointer";j[i][0]=ele;j[i][1]=eleStore(ele);j[i][2]=0;z._setOnclick(ele,"brynn._tools._collapseAndStore._show('"+ele+"')");}
dat._collapsedData(j);}
return{_app:function(theIds){app(theIds);},_show:function(theId){eleShow(theId);},_hideAll:function(){eleHideAll();},_setHideAll:function(theElement){setEleHideAll(theElement);},_showAll:function(){eleShowAll();},_setShowAll:function(theElement){setEleShowAll(theElement);},__:""}}();brynn._test=function(){var dat=brynn._data,z=brynn._core;function app(){try{var _onload=true,action=1;var s="";var sampleImg='/App_Public/2100000002/churches/first_united.jpg';switch(action){case 0:s="brynn._core._setZindex('stopWatch', -1);";break;case 1:s="brynn._mouse._setElementGrab(\"stopWatch\");";break;case 2:s="brynn._tools._hoverBox._open('Test', '<div>hello world!</div>', true);";break;case 3:s="brynn._tools._hoverBox._app('"+sampleImg+"', 'Title', 'Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description ', true);";break;case 4:s="brynn._tools._hoverBox._app('"+sampleImg+"', 'Title', 'Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description ');";break;case 5:s="brynn._tools._hoverBox._app('"+sampleImg+"', 'Title');";break;case 6:s="brynn._tools._hoverBox._app('"+sampleImg+"');";break;case 7:s="brynn._tools._hoverBox._app('', 'Title');";break;case 8:s="brynn._tools._hoverBox._app('', 'Title', 'Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description Description ');";break;case 10:s="brynn._tools._slide._slide('stopWatch', 'stopWatch', 1, 0, 100, 99, 0);";break;case 11:s="alert(brynn._ajax._app(\"test^|^Brynn Ajax Test.\", 0));";break;case 10:s="";break;}
if(s!="")brynn._core._setPointer("stopWatch");if(_onload&&brynn._data._local())eval(s);else brynn._core._setOnclick("stopWatch",s);}
catch(e){}}
return{app:function(){if(dat._local()){app();}}};}();brynn.easy=function(){var dat=brynn._data,z=brynn._core;function imagePop_(image){var img=document.getElementById(image).src;brynn._tools._hoverBox._app(img);}
return{imagePop:function(image){imagePop_(image);},__:""};}();window.onload=function(){brynn._load.app();};var custom_whitlock=function(){var dat=brynn._data,z=brynn._core,coll=brynn._tools._collapseAndStore;function links(){var page=dat._path()[2];var s="home,apartments,commonAreas,location,community,supporters,staff,contact";var a=z._split(s,",");var o,link;for(var i=0;i<a.length;++i)
{s=a[i];if(page!=s){o=document.getElementById(s+"_");link=o.href;z._setOnclickLink(s,link);z._setPointer(s);z._setOnmouseover(s,"brynn._core._setBkgColor('"+s+"', '#EBDCBD');");z._setOnmouseout(s,"brynn._core._setBkgColor('"+s+"', '#FAF3E5');");}
else{z._setBkgColor(s,"#EBDCBD");o=document.getElementById(s+"_");o.href="javascript: void(0);";o.style.textDecoration="none";}}}
function load_(){try{links();}catch(e){}}
return{load:function(){load_();},__:""};}();var custom_bremen=function(){var dat=brynn._data,z=brynn._core,coll=brynn._tools._collapseAndStore;function memberDirectory(){var o;document.getElementById("cats").style.color="#369";o=document.getElementById("showall");o.style.color="blue";coll._setShowAll("showall");o=document.getElementById("hideall");o.style.color="blue";coll._setHideAll("hideall");var s="";for(var i=0;i<16;++i){s+=((i!=0)?",":"")+"cat"+i;}
brynn._tools._collapseAndStore._app(s);}
function load_(){var page=dat._path()[2];switch(page){case"Chamber-Member-Directory":memberDirectory();break;}}
return{load:function(){load_();},__:""};}();
