if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(K,B,L,D,H,I,F,E,C,J){if(!document.getElementById){return }this.DETECT_KEY=J?J:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(K){this.setAttribute("swf",K)}if(B){this.setAttribute("id",B)}if(L){this.setAttribute("width",L)}if(D){this.setAttribute("height",D)}if(H){this.setAttribute("version",new deconcept.PlayerVersion(H.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(I){this.addParam("bgcolor",I)}var A=F?F:"high";this.addParam("quality",A);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var G=(E)?E:window.location;this.setAttribute("xiRedirectUrl",G);this.setAttribute("redirectUrl","");if(C){this.setAttribute("redirectUrl",C)}};deconcept.SWFObject.prototype={useExpressInstall:function(A){this.xiSWFPath=!A?"expressinstall.swf":A;this.setAttribute("useExpressInstall",true)},setAttribute:function(A,B){this.attributes[A]=B},getAttribute:function(A){return this.attributes[A]},addParam:function(B,A){this.params[B]=A},getParams:function(){return this.params},addVariable:function(B,A){this.variables[B]=A},getVariable:function(A){return this.variables[A]},getVariables:function(){return this.variables},getVariablePairs:function(){var C=new Array();var B;var A=this.getVariables();for(B in A){C[C.length]=B+"="+A[B]}return C},getSWFHTML:function(){var B="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}B='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';B+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var F=this.getParams();for(var E in F){B+=[E]+'="'+F[E]+'" '}var D=this.getVariablePairs().join("&");if(D.length>0){B+='flashvars="'+D+'"'}B+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}B='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';B+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var C=this.getParams();for(var E in C){B+='<param name="'+E+'" value="'+C[E]+'" />'}var A=this.getVariablePairs().join("&");if(A.length>0){B+='<param name="flashvars" value="'+A+'" />'}B+="</object>"}return B},write:function(B){if(this.getAttribute("useExpressInstall")){var A=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(A)&&!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 C=(typeof B=="string")?document.getElementById(B):B;C.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var E=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){E=new deconcept.PlayerVersion(A.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var B=1;var C=3;while(B){try{C++;B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+C);E=new deconcept.PlayerVersion([C,0,0])}catch(D){B=null}}}else{try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(D){try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");E=new deconcept.PlayerVersion([6,0,21]);B.AllowScriptAccess="always"}catch(D){if(E.major==6){return E}}try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(D){}}if(B!=null){E=new deconcept.PlayerVersion(B.GetVariable("$version").split(" ")[1].split(","))}}}return E};deconcept.PlayerVersion=function(A){this.major=A[0]!=null?parseInt(A[0]):0;this.minor=A[1]!=null?parseInt(A[1]):0;this.rev=A[2]!=null?parseInt(A[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(A){if(this.major<A.major){return false}if(this.major>A.major){return true}if(this.minor<A.minor){return false}if(this.minor>A.minor){return true}if(this.rev<A.rev){return false}return true};deconcept.util={getRequestParameter:function(C){var D=document.location.search||document.location.hash;if(C==null){return D}if(D){var B=D.substring(1).split("&");for(var A=0;A<B.length;A++){if(B[A].substring(0,B[A].indexOf("="))==C){return B[A].substring((B[A].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var B=document.getElementsByTagName("OBJECT");for(var C=B.length-1;C>=0;C--){B[C].style.display="none";for(var A in B[C]){if(typeof B[C][A]=="function"){B[C][A]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(A){return document.all[A]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var flashMapName="mapObj";function VectorMap(D,F,E,K,J,G,A){if(!F){F="#99cc33"}if(!E){E=false}if(!K){K=2}if(!J){J=75}if(!G){G=false}var C=document.getElementById(D);var L=C.style.backgroundColor;this.bgcolor="#ffffff";this.w=C.offsetWidth;this.h=C.offsetHeight;this.expandToFillViewport=E;this.fgcolor=F;this.lineAlpha=J;this.lineSize=K;this.scaleLine=G;this.renderLabels=false;var I=new SWFObject("/ui/map/map.swf",flashMapName,this.w,this.h,"9",this.bgcolor);I.useExpressInstall("/ui/map/expressinstall.swf");var H=I.installedVer.major;if(!H||H<7){C.innerHTML="<div>Please install the Adobe Flash Player to view this map. <a href='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW' target='_blank'>Get Flash Now</a></div>";return }if(A){I.setAttribute("redirectUrl",A)}if(this.expandToFillViewport){I.addParam("scale","noscale")}I.addParam("menu","false");var B=navigator.userAgent;I.addParam("wmode","opaque");I.write(D)}VectorMap.prototype.enableLabels=function(A){if(!A){A=12}this.labelFontSize=A;this.renderLabels=true};VectorMap.prototype.init=function(C,B,A,D){this.fixColors(B);movieName=new GetMovieName();movieName.Init(this.lineSize,this.lineAlpha,this.scaleLine,this.fgcolor,this.renderLabels,this.labelFontSize,C,B,A,D,this.expandToFillViewport)};VectorMap.prototype.setSourceUrl=function(A){movieName=new GetMovieName();movieName.SetSourceUrl(A)};VectorMap.prototype.render=function(){movieName=new GetMovieName();movieName.Render()};VectorMap.prototype.updateView=function(B,A){movieName=new GetMovieName();movieName.UpdateView(B,A)};VectorMap.prototype.updateColors=function(A){this.fixColors(A);movieName=new GetMovieName();if(movieName&&movieName.UpdateColors){movieName.UpdateColors(A)
}};VectorMap.prototype.enableSelection=function(A){movieName=new GetMovieName();movieName.EnableSelection(A)};VectorMap.prototype.enableMouseover=function(B,A){movieName=new GetMovieName();movieName.EnableMouseover(B,A)};VectorMap.prototype.enableExploring=function(A,B,C){this.zoomDelta=C;movieName=new GetMovieName();movieName.EnableExploring(A,B,C)};VectorMap.prototype.setView=function(B,A,C){movieName=new GetMovieName();movieName.SetView(B,A,C)};VectorMap.prototype.getView=function(A){movieName=new GetMovieName();movieName.GetView(A)};VectorMap.prototype.mouseCallback=function(A){movieName=new GetMovieName();if(movieName.JsMouseCallback){movieName.JsMouseCallback(A)}};GetMovieName=function(){if(navigator.appName.indexOf("Microsoft")!=-1){return window[flashMapName]}else{return document[flashMapName]}};VectorMap.prototype.zoomIn=function(){lastMap=this;this.getView("zoomInHandler")};function zoomInHandler(A){A.zoom+=lastMap.zoomDelta;lastMap.setView(A.zoom,A.x,A.y)}VectorMap.prototype.zoomOut=function(){lastMap=this;this.getView("zoomOutHandler")};function zoomOutHandler(A){A.zoom-=lastMap.zoomDelta;lastMap.setView(A.zoom,A.x,A.y)}VectorMap.prototype.fixColors=function(A){for(var C=0;C<A.length;C++){var B=A[C][1];if(typeof (B)=="string"){B=parseInt("0x"+B);A[C][1]=B}}};function WYSIWYG_Editor(F,B,E,G,D,A,C){this.isIE=navigator.userAgent.indexOf("MSIE")>=0;if(typeof (F)=="undefined"){alert("ERROR: No instance name was passed for the editor.");return false}else{this.instance_name=F}this.editor_area=B;this.field_name=F;if(typeof (E)=="undefined"){this.content=""}else{this.content=E}if(typeof (G)=="undefined"){this.wysiwyg_path="."}else{this.wysiwyg_path=G}if(D&&D>0){this.frame_width=D}else{this.frame_width=548}if(A&&A>0){this.frame_height=A}else{this.frame_height=150}this.minimal=C;this.allowsAnchors=false;this.wysiwyg_content=this.instance_name+"_WYSIWYG_Editor";this.wysiwyg_hidden=this.field_name;this.ta_rows=Math.round(this.frame_height/15);this.ta_cols=Math.round(this.frame_width/8);this.viewMode=1;this._X=this._Y=0;this.allow_mode_toggle=false;this.allow_speller=true;this.table_border=1;this.table_cell_padding=3;this.table_cell_spacing=0;this.isSpelling=false;this.isHtml=false;this.rteReady=false;this.wantsFocus=false}WYSIWYG_Editor.prototype.setAllowAnchors=function(A){this.allowsAnchors=A};WYSIWYG_Editor.prototype.setModeToggle=function(A){this.allow_mode_toggle=A};WYSIWYG_Editor.prototype.setSpellCheck=function(A){this.allow_speller=A};WYSIWYG_Editor.prototype.getFrameName=function(){return this.instance_name+"_WYSIWYG_Editor"};WYSIWYG_Editor.prototype.getFrameElement=function(){var A=window.document.getElementById(this.getFrameName());if(A==null){A=document.getElementbyId(this.wysiwyg_hidden)}return A};WYSIWYG_Editor.prototype.inHtmlMode=function(){return(this.viewMode==2)};WYSIWYG_Editor.prototype.getContentWindow=function(){var A=document.getElementById(this.wysiwyg_content);if(A==null){return null}else{return A.contentWindow}};WYSIWYG_Editor.prototype.getContent=function(){if(this.isSpelling){this.checkSpelling()}if(this.isHtml){this.toggleMode()}var A=this.getContentData();A=A.replace(/\n/g," ");A=this.replaceLinks(A);if(A.match(/^ *<br> *$/i)){A=""}return A};WYSIWYG_Editor.prototype.replaceLinks=function(A){if(!this.allowsAnchors){A=A.replace(/<A HREF=['"]HTTP:\/\/(.*?)['"]>(.*?)<\/A>/ig,"$2 ($1)");A=A.replace(/<A HREF=['"](.*?)['"]>(.*?)<\/A>/ig,"$2 ($1)");A=A.replace(/(.*?) \(\1\)/ig,"$1")}return A};WYSIWYG_Editor.prototype.getContentData=function(){var A=this.getContentWindow();if(A==null){return document.getElementById(this.wysiwyg_hidden).value}else{return A.document.body.innerHTML}};WYSIWYG_Editor.prototype.setContent=function(A){var B=this.getContentWindow();if(B==null){document.getElementById(this.wysiwyg_hidden).value=A}else{B.document.body.innerHTML=A}};function autoURLInsert(A){var C=A.keyCode?A.keyCode:A.which?A.which:A.charCode;if(C==34){var B=document.getElementById(this.wysiwyg_content).contentWindow.document.body.innerHTML;alert(B)}}WYSIWYG_Editor.prototype.applySetupQuirk=function(){var A=this.getContentWindow().document;A.body.style.fontSize="16px"};WYSIWYG_Editor.prototype.checkPaste=function(A){var B=YAHOO.util.Event.getCharCode(A);setTimeout(delegateCallback(this,this.preparePasteText),800)};WYSIWYG_Editor.prototype.doPaste=function(){this.doTextFormat("paste","");this.preparePasteText()};WYSIWYG_Editor.prototype.preparePasteText=function(){var A=this.getContent();var B=false;if(this.isIE){B=A.match(/schemas-microsoft-com:office:office/i)}else{B=A.match(/<meta name="ProgId" content="Word.Document">/i)}A=A.replace(/<BR>/ig,"-BREAK-");A=A.replace(/<style>.*?<\/style>/ig,"");if(B){A=A.replace(/<o:p>&nbsp;<\/o:p>/g,"-BREAK-&nbsp;-BREAK-");A=A.replace(/<w:.*?>.*?<\/w:.*?>/ig,"")}else{A=A.replace(/<\/P>/ig,"-BREAK-")}A=A.replace(/<SPAN .*?font-weight: ?bold.*?>(.*?)<\/SPAN>/ig,"-B-$1-B-");A=A.replace(/<SPAN .*?font-style: ?italic.*?>(.*?)<\/SPAN>/ig,"-I-$1-I-");A=A.replace(/<I>(.*?)<\/I>/ig,"-I-$1-I-");A=A.replace(/<EM>(.*?)<\/EM>/ig,"-I-$1-I-");A=A.replace(/<STRONG>(.*?)<\/STRONG>/ig,"-B-$1-B-");A=A.replace(/<B>(.*?)<\/B>/ig,"-B-$1-B-");A=A.replace(/<LI>(.*?)<\/LI>/ig,"-LI-$1-LI-");A=A.replace(/<UL>(.*?)<\/UL>/ig,"-UL-$1-UL-");A=A.replace(/<OL>(.*?)<\/OL>/ig,"-OL-$1-OL-");A=A.replace(/<SUP>(.*?)<\/SUP>/ig,"-SUP-$1-SUP-");A=A.replace(/<A HREF=['"](.*?)['"]>(.*?)<\/A>/ig,"-A-$1-$2-A-");A=A.replace(/<\/?.*?>/g," ");A=A.replace(/-B-(.*?)-B-/g,"<B>$1</B>");A=A.replace(/-I-(.*?)-I-/g,"<I>$1</I>");A=A.replace(/-LI-(.*?)-LI-/g,"<LI>$1</LI>");A=A.replace(/-UL-(.*?)-UL-/g,"<UL>$1</UL>");A=A.replace(/-OL-(.*?)-OL-/g,"<OL>$1</OL>");A=A.replace(/-SUP-(.*?)-SUP-/g,"<SUP>$1</SUP>");A=A.replace(/-A-(.*?)-(.*?)-A-/g,"<A HREF='$1'>$2</A>");A=A.replace(/-BREAK-/g,"<BR>");A=A.replace(/<BR>\s*<BR>/ig,"<BR>");A=A.replace(/<BR>&nbsp;<BR>\s*$/ig,"");A=A.replace(/<BR>\s*$/ig,"");A=A.replace(/\n/g," ");this.setContent(A)};WYSIWYG_Editor.prototype.autoExpand=function(){var A=document.getElementById(this.wysiwyg_content);var B;if(this.isIE){B=A.contentWindow.document.body.scrollHeight}else{if(webBrowser.isSafari){B=A.contentWindow.document.body.scrollHeight}else{B=A.contentWindow.document.documentElement.clientHeight+20}}if(B>60&&(B-this.frame_height)>5){if(B>400){B=400}A.style.height=B+"px";this.frame_height=B}};WYSIWYG_Editor.prototype.display=function(){if(this.isSupported()){this._display_editor();var B=this.getContentWindow().document;B.open();B.write('<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head>');B.write('<body onload="document.body.rteLoaded = true;">');B.write(this.content);B.write("</body></html>");B.close();this.applySetupQuirk();if(this.isIE){B.onkeypress=rteKeyPress;window.wysiwyg_content=this.wysiwyg_content}var A=this;setTimeout(function(){YAHOO.util.Event.addListener(B,"keypress",A.autoExpand,A,true);YAHOO.util.Event.addListener(B.body,"paste",A.checkPaste,A,true);A.focus()},500)}else{this._display_textarea();this.content=this.content.replace(/<BR>/ig,"\n");this._load_content()}this.autoExpand();this.recount=0;this.activateDesignMode()};WYSIWYG_Editor.prototype.activateDesignMode=function(){var A=this.getContentWindow();if(A.document.body.rteLoaded){this.rteReady=true;A.document.designMode="On";if(this.wantsFocus){this.focusNow()}}else{this.recount++;if(this.recount>200){alert("Can't load RTE")}else{setTimeout(delegateCallback(this,this.activateDesignMode),50)}}};WYSIWYG_Editor.prototype.focus=function(){if(this.rteReady){this.focusNow()}else{this.wantsFocus=true}};WYSIWYG_Editor.prototype.focusNow=function(){var A=this;setTimeout(function(){var B=A.getContentWindow();window.focus();B.focus()},100)};function rteKeyPress(){var B=document.getElementById(window.wysiwyg_content).contentWindow;if(B.event.keyCode==13){var A=B.document.selection.createRange();B.event.returnValue=false;A.pasteHTML("<br>");A.select()}}WYSIWYG_Editor.prototype._display_textarea=function(){var A="";A+='<input type="hidden" name="editorMode" value="textarea">';
A+='<textarea name="'+this.wysiwyg_hidden+'" id="'+this.wysiwyg_hidden+'" rows="'+this.ta_rows+'" cols="'+this.ta_cols+'"></textarea><br>';A+='<div style="font-size:10; padding: 3px;">(WARNING: Your browser does not support the Rich Text Editor.  Please use Firefox or Internet Explorer to edit text style and insert images.)</div>';this.editor_area.innerHTML=A};WYSIWYG_Editor.prototype._display_editor=function(){var A="";A+='<input type="hidden" name="editorMode" value="rte">';A+='   <table cellpadding="0" cellspacing="0" id="'+this.instance_name+'_table" class="editorArea">';A+="    <tr>";A+="     <td>";if(!this.minimal){A+='      <table onselectstart="return false" style="-moz-user-select:none" width="100%" border="0" cellspacing="0" cellpadding="0">';A+='       <tr valign="top">';A+='        <td height="25" valign="middle" colspan="2" id="'+this.instance_name+'_spellbar" style="display:none">';A+='        <table cellspacing="0" cellpadding="0" style="padding-left:20px"><tr><td>';A+='            Spelling Mistakes: <span id="mistakeCount"></span>';A+="        </td></tr></table>";A+="        </td>";A+='        <td valign="top" colspan="2" id="'+this.instance_name+'_toolbars"><nobr>';A+='          <img alt="Bold" title="Bold" class="editorButton imgbold" src="http://ui.geckogo.com/ui/media/spacer.gif" onClick="'+this.instance_name+".doTextFormat('bold','')\">";A+='          <img alt="Italic" title="Italic" class="editorButton imgitalic" src="http://ui.geckogo.com/ui/media/spacer.gif" onClick="'+this.instance_name+".doTextFormat('italic','')\">";A+='         <img class="editorSeparator" alt="| imgseparator" src="http://ui.geckogo.com/ui/media/spacer.gif">';A+='          <img alt="Ordered List" title="Ordered List" class="editorButton imgordlist" src="http://ui.geckogo.com/ui/media/spacer.gif"  onClick="'+this.instance_name+".doTextFormat('insertorderedlist','')\">";A+='          <img alt="Bulleted List" title="Bulleted List" class="editorButton imgbullist" src="http://ui.geckogo.com/ui/media/spacer.gif" onClick="'+this.instance_name+".doTextFormat('insertunorderedlist','')\">";A+='          <img alt="Indent" title="Indent imgindent" src="http://ui.geckogo.com/ui/media/spacer.gif" class=editorButton onClick="'+this.instance_name+".doTextFormat('indent','')\">";A+='          <img alt="Outdent" title="Outdent imgoutdent" src="http://ui.geckogo.com/ui/media/spacer.gif" class=editorButton onClick="'+this.instance_name+".doTextFormat('outdent','')\">";A+='         <img class="editorSeparator" alt="| imgseparator" src="http://ui.geckogo.com/ui/media/spacer.gif">';if(this.allowsAnchors){A+='          <img alt="Hyperlink" title="Hyperlink" class="editorButton imglink" src="http://ui.geckogo.com/ui/media/spacer.gif" onClick="'+this.instance_name+".doTextFormat('createlink','')\">"}A+='          <img alt="Remove Formatting" title="Remove Formatting" class="editorButton imgunformat" src="http://ui.geckogo.com/ui/media/spacer.gif" onClick="'+this.instance_name+".doTextFormat('removeformat','')\">";A+='         <img class="editorSeparator" alt="| imgseparator" src="http://ui.geckogo.com/ui/media/spacer.gif">';A+='          <img alt="Undo" title="Undo" class="editorButton imgundo" src="http://ui.geckogo.com/ui/media/spacer.gif" onClick="'+this.instance_name+".doTextFormat('undo','')\">";A+='          <img alt="Redo" title="Redo" class="editorButton imgredo" src="http://ui.geckogo.com/ui/media/spacer.gif" onClick="'+this.instance_name+".doTextFormat('redo','')\">";A+="        </nobr></td>";A+='<td id="'+this.instance_name+'_extra_controls" align="right">';if(this.allow_mode_toggle){A+='          <img id="htmlMode" alt="Toggle Mode" title="Toggle Mode" class="editorButton" src="http://ui.geckogo.com/ui/editor/images/editor-html.png" onClick="'+this.instance_name+'.toggleMode()">'}A+='<img id="checkSpelling" alt="Check Spelling" onclick="'+this.instance_name+'.checkSpelling()" class="editorButton imgeditor-spelling" src="http://ui.geckogo.com/ui/media/spacer.gif" </td>';A+='<td id="'+this.instance_name+'_extra_controls_spelling" style="display:none" align="right">';A+='Click to resume editing: <img id="checkSpelling" alt="Check Spelling" onclick="'+this.instance_name+'.checkSpelling()" class="editorButton imgeditor-spelling" src="http://ui.geckogo.com/ui/media/spacer.gif" </td>';if(this.allow_mode_toggle){A+='<td id="'+this.instance_name+'_extra_controls_mode" align="right" style="display:none">';A+='Click to return to normal view: <img id="htmlMode" alt="Toggle Mode" title="Toggle Mode" class="editorButton imgeditor-html" src="http://ui.geckogo.com/ui/media/spacer.gif" onClick="'+this.instance_name+'.toggleMode()">'}A+="     </tr></table>";A+='       <div id="matchList" style="position:absolute; display:none; background-color:#fff; padding: 5px; border: solid 1px #000; z-index:1000"></div>'}A+='      <iframe id="'+this.wysiwyg_content+'" name="'+this.wysiwyg_content+'" class="editorFrame" style="width:'+this.frame_width+"px; height:"+this.frame_height+'px;" frameborder="0"></iframe>';A+="     </td>";A+="    </tr>";A+="   </table>";this.editor_area.innerHTML=A};WYSIWYG_Editor.prototype.doTextFormat=function(D,A,E){if((D=="forecolor")||(D=="hilitecolor")){this.getPalette(D,A,E)}else{if(D=="createlink"){var C=prompt("Enter a URL:","");if(document.getElementById(this.wysiwyg_content).contentWindow.document.queryCommandEnabled(D)){document.getElementById(this.wysiwyg_content).contentWindow.document.execCommand("CreateLink",false,C);this.getContentWindow().focus();return true}else{return false}}else{if(D=="removeformat"){var B=this.getContentData();B=B.replace(/<\/p>/gi,"<br>");B=B.replace(/<br>/gi,"\n");B=B.replace(/<p .*?>/gi,"");B=B.replace(/<\/?.+?>/gi,"");B=B.replace(/\n/gi,"<br>");this.setContent(B)}if(document.getElementById(this.wysiwyg_content).contentWindow.document.queryCommandEnabled(D)){document.getElementById(this.wysiwyg_content).contentWindow.document.execCommand(D,false,A);this.getContentWindow().focus();return true}else{return false}}}};WYSIWYG_Editor.prototype._load_content=function(){document.getElementById(this.wysiwyg_hidden).value=this.content};WYSIWYG_Editor.prototype.toggleMode=function(){if(this.isMSIE()){this._toggle_mode_ie()}else{this._toggle_mode_gecko()}this.isHtml=!this.isHtml;var A=document.getElementById(this.instance_name+"_toolbars");if(A){if(this.isHtml){A.style.display="none";document.getElementById(this.instance_name+"_extra_controls").style.display="none";document.getElementById(this.instance_name+"_extra_controls_mode").style.display=""}else{A.style.display="";document.getElementById(this.instance_name+"_extra_controls").style.display="";document.getElementById(this.instance_name+"_extra_controls_mode").style.display="none"}}};WYSIWYG_Editor.prototype._toggle_mode_ie=function(){if(this.viewMode==2){document.getElementById(this.wysiwyg_content).contentWindow.document.body.innerHTML=document.getElementById(this.wysiwyg_content).contentWindow.document.body.innerText;document.getElementById(this.wysiwyg_content).contentWindow.document.body.style.fontFamily="";document.getElementById(this.wysiwyg_content).contentWindow.document.body.style.fontSize="";document.getElementById(this.instance_name+"_toolbars").style.display="";document.getElementById(this.wysiwyg_content).contentWindow.focus();this.applySetupQuirk();this.viewMode=1}else{document.getElementById(this.wysiwyg_content).contentWindow.document.body.innerText=document.getElementById(this.wysiwyg_content).contentWindow.document.body.innerHTML;document.getElementById(this.wysiwyg_content).contentWindow.document.body.style.fontFamily="monospace";document.getElementById(this.wysiwyg_content).contentWindow.document.body.style.fontSize="10pt";document.getElementById(this.wysiwyg_content).contentWindow.focus();this.viewMode=2}};WYSIWYG_Editor.prototype._toggle_mode_gecko=function(){if(this.viewMode==2){var A=document.getElementById(this.wysiwyg_content).contentWindow.document.body.ownerDocument.createRange();A.selectNodeContents(document.getElementById(this.wysiwyg_content).contentWindow.document.body);document.getElementById(this.wysiwyg_content).contentWindow.document.body.innerHTML=A.toString();document.getElementById(this.wysiwyg_content).contentWindow.document.body.style.fontFamily="";document.getElementById(this.wysiwyg_content).contentWindow.document.body.style.fontSize="";
document.getElementById(this.instance_name+"_toolbars").style.display="";document.getElementById(this.wysiwyg_content).contentWindow.focus();this.viewMode=1}else{var A=document.createTextNode(document.getElementById(this.wysiwyg_content).contentWindow.document.body.innerHTML);document.getElementById(this.wysiwyg_content).contentWindow.document.body.innerHTML="";document.getElementById(this.wysiwyg_content).contentWindow.document.body.appendChild(A);document.getElementById(this.wysiwyg_content).contentWindow.document.body.style.fontFamily="monospace";document.getElementById(this.wysiwyg_content).contentWindow.document.body.style.fontSize="10pt";document.getElementById(this.wysiwyg_content).contentWindow.focus();this.viewMode=2}};WYSIWYG_Editor.prototype.insertTable=function(){colstext=prompt("Enter the number of columns per row.");rowstext=prompt("Enter the number of rows to create.");rows=parseInt(rowstext,"0");cols=parseInt(colstext,"0");if(this.isMSIE()){return this._insert_table_ie(cols,rows)}else{return this._insert_table_gecko(cols,rows)}};WYSIWYG_Editor.prototype._insert_table_ie=function(D,B){document.getElementById(this.wysiwyg_content).contentWindow.focus();var E=document.getElementById(this.wysiwyg_content).contentWindow.document.selection.createRange();if((B>0)&&(D>0)){var A='<table border="'+this.table_border+'" cellpadding="'+this.table_cell_padding+'" cellspacing="'+this.table_cell_spacing+'">';while(B>0){B--;var C=D;A=A+"<tr>";while(parseInt(C)>0){C--;A=A+"<td>&nbsp;</td>"}A=A+"</tr>"}A=A+"</table>";E.pasteHTML(A);document.getElementById(this.wysiwyg_content).contentWindow.focus()}return true};WYSIWYG_Editor.prototype._insert_table_gecko=function(B,A){contentWin=document.getElementById(this.wysiwyg_content).contentWindow;if((A>0)&&(B>0)){table=contentWin.document.createElement("table");table.setAttribute("border",this.table_border);table.setAttribute("cellpadding",this.table_cell_padding);table.setAttribute("cellspacing",this.table_cell_spacing);tbody=contentWin.document.createElement("tbody");for(i=0;i<A;i++){tr=contentWin.document.createElement("tr");for(j=0;j<B;j++){td=contentWin.document.createElement("td");br=contentWin.document.createElement("br");td.appendChild(br);tr.appendChild(td)}tbody.appendChild(tr)}table.appendChild(tbody);this._insert_element_gecko(contentWin,table)}return true};WYSIWYG_Editor.prototype._insert_element_gecko=function(G,D){var B=G.getSelection();var F=B.getRangeAt(0);B.removeAllRanges();F.deleteContents();var A=F.startContainer;var K=F.startOffset;F=document.createRange();if(A.nodeType==3&&D.nodeType==3){A.insertData(K,D.nodeValue);F.setEnd(A,K+D.length);F.setStart(A,K+D.length)}else{var C;if(A.nodeType==3){var E=A;A=E.parentNode;var L=E.nodeValue;var I=L.substr(0,K);var H=L.substr(K);var J=document.createTextNode(I);var C=document.createTextNode(H);A.insertBefore(C,E);A.insertBefore(D,C);A.insertBefore(J,D);A.removeChild(E)}else{C=A.childNodes[K];A.insertBefore(D,C)}}};WYSIWYG_Editor.prototype.setColor=function(A,C){if(typeof (pwin)=="object"){if(!pwin.closed){pwin.close()}}if(this.isMSIE()&&C=="hilitecolor"){C="backcolor"}var B=document.getElementById(this.wysiwyg_content).contentWindow.document.selection;if(B!=null){rng=B.createRange()}document.getElementById(this.wysiwyg_content).contentWindow.focus();if(document.getElementById(this.wysiwyg_content).contentWindow.document.queryCommandEnabled(C)){document.getElementById(this.wysiwyg_content).contentWindow.document.execCommand(C,false,A)}else{return false}document.getElementById(this.wysiwyg_content).contentWindow.focus();return true};WYSIWYG_Editor.prototype.getPalette=function(B,A,C){html=this._get_palette_html(B);if(typeof (pwin)=="object"){if(!pwin.closed){pwin.close()}}pwin=window.open("","colorPalette","dependent=yes, directories=no, fullscreen=no,hotkeys=no,height=125,width=192,left="+C.screenX+",top="+C.screenY+",locatoin=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no");pwin.document.write(html);pwin.document.close();pwin.focus()};WYSIWYG_Editor.prototype.isSupported=function(){return true};WYSIWYG_Editor.prototype.isMSIE=function(){return this.isIE};WYSIWYG_Editor.prototype._get_palette_html=function(D){s='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';s=s+"<html>";s=s+" <head>";s=s+'  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">';s=s+"  <title>Color Palette</title>";s=s+'  <style type="text/css">';s=s+"   <!--";s=s+"    html,body{margin: 0px; padding: 0px; color: black; background-color: white;}";s=s+"    td{border: black solid 1px;}";s=s+"    td:hover{border: white solid 1px;}";s=s+"   -->";s=s+"  </style>";s=s+" </head>";s=s+"";s=s+" <body>";s=s+'  <table border="0" cellpadding="0" cellspacing="2">';for(var C=0;C<7;C++){s=s+"   <tr>";for(var A=0;A<10;A++){var B=colors[C*10+A];s=s+'    <td id="c'+B+'" bgcolor="#'+B+'" width="15" height="15" onclick="str=this.id;color=str.replace(\'c\',\'#\');opener.'+this.instance_name+".setColor(color,'"+D+"');window.close();\"></td>"}}s=s+"  </table>";s=s+" </body>";s=s+"</html>";return s};var colors=new Array("FFFFFF","FFCCCC","FFCC99","FFFF99","FFFFCC","99FF99","99FFFF","CCFFFF","CCCCFF","FFCCFF","CCCCCC","FF6666","FF9966","FFFF66","FFFF33","66FF99","33FFFF","66FFFF","9999FF","FF99FF","C0C0C0","FF0000","FF9900","FFCC66","FFFF00","33FF33","66CCCC","33CCFF","6666CC","CC66CC","999999","CC0000","FF6600","FFCC33","FFCC00","33CC00","00CCCC","3366FF","6633FF","CC33CC","666666","990000","CC6600","CC9933","999900","009900","339999","3333FF","6600CC","993399","333333","660000","993300","996633","666600","006600","336666","000099","333399","663366","000000","330000","663300","663333","333300","003300","003333","000066","330099","330033");WYSIWYG_Editor.prototype.setMediaSelectHandler=function(A){this.mediaSelectHandler=A};WYSIWYG_Editor.prototype.setActivitySelectHandler=function(A){this.activitySelectHandler=A};WYSIWYG_Editor.prototype.insertMedia=function(){this.mediaSelectHandler();var A=document.getElementById(this.wysiwyg_content).contentWindow.document.selection;if(A!=null){rng=A.createRange()}};WYSIWYG_Editor.prototype.insertActivity=function(){this.activitySelectHandler();var A=document.getElementById(this.wysiwyg_content).contentWindow.document.selection;if(A!=null){rng=A.createRange()}};WYSIWYG_Editor.prototype.addMedia=function(B,C){var A=document.getElementById(this.wysiwyg_content).contentWindow;A.focus();if(this.viewMode==1){A.document.execCommand("insertimage",false,B)}};WYSIWYG_Editor.prototype.selectText=function(F){var E=document.getElementById(this.wysiwyg_content);var C=E.contentWindow;C.focus();if(C.document.selection!=null){var A=C.document.selection.createRange();if(A.text==""){A.text=activityName;A=C.document.body.createTextRange();A.findText(activityName);A.select()}}else{var D=C.getSelection();var B=D.getRangeAt(D.rangeCount-1);if(B==""){B.selectNode(C.document.body);D.addRange(B)}}};WYSIWYG_Editor.prototype.addActivity=function(A,H){var G=document.getElementById(this.wysiwyg_content);var D=G.contentWindow;D.focus();if(D.document.selection!=null){var B=D.document.selection.createRange();if(B.text==""){B.text=H;B=D.document.body.createTextRange();B.findText(H);B.select()}}else{var F=D.getSelection();var C=F.getRangeAt(F.rangeCount-1);if(C==""){C=C.cloneRange();var E=G.contentDocument.createTextNode(H);C.insertNode(E);C.selectNode(E);F.addRange(C)}}if(this.viewMode==1){D.document.execCommand("CreateLink",false,A)}if(D.document.selection!=null){var B=D.document.body.createTextRange();B.collapse(false);B.select()}else{var F=D.getSelection();F.collapseToEnd()}};WYSIWYG_Editor.prototype.insertHTML=function(G){var F=document.getElementById(this.wysiwyg_content);var C=F.contentWindow;C.focus();if(C.document.selection!=null){var A=C.document.selection.createRange();if(A.text==""){A.text="MAGIC_MARKER"}}else{var E=C.getSelection();var B=E.getRangeAt(E.rangeCount-1);if(B==""){B=B.cloneRange();
var D=F.contentDocument.createTextNode("MAGIC_MARKER");B.insertNode(D);B.selectNode(D);E.addRange(B)}}if(C.document.selection!=null){var A=C.document.selection.createRange();A.collapse(false);body=C.document.body}else{var E=C.getSelection();E.collapseToEnd();body=F.contentDocument.body}body.innerHTML=body.innerHTML.replace(/MAGIC_MARKER/,G)};WYSIWYG_Editor.prototype.checkSpelling=function(){if(window.openSpellingCheck){this.isSpelling=!this.isSpelling;this.renderSpellMode();if(this.isSpelling){window.openSpellingCheck(this)}else{window.closeSpellingCheck(this)}}};WYSIWYG_Editor.prototype.renderSpellMode=function(){var A=document.getElementById(this.instance_name+"_toolbars");if(A){var B=document.getElementById(this.instance_name+"_spellbar");if(this.isSpelling){A.style.display="none";B.style.display="";document.getElementById(this.instance_name+"_extra_controls").style.display="none";document.getElementById(this.instance_name+"_extra_controls_spelling").style.display=""}else{A.style.display="";B.style.display="none";document.getElementById(this.instance_name+"_extra_controls").style.display="";document.getElementById(this.instance_name+"_extra_controls_spelling").style.display="none";this.getContentWindow().focus()}}};WYSIWYG_Editor.prototype.setMistakes=function(A,B){document.getElementById("mistakeCount").innerHTML=B};function MapRegionSelector(D,C,A){this.field=D;this.handler=C;if(!D){return }addSelectOption("","(Select Country)",D);var E=CountrySelector.prototype.countries;for(var B=0;B<E.length;B+=6){addSelectOption(E[B+4],E[B+5],D)}if(!A){var E=MapRegionSelector.prototype.regions;for(var B=0;B<E.length;B+=6){addSelectOption(E[B+4],E[B+5],D)}}YAHOO.util.Event.addListener(D,"change",this.countrySelected,this,true)}function addSelectOption(C,D,A){var B=document.createElement("OPTION");A.appendChild(B);B.innerHTML=D;B.setAttribute("value",C)}MapRegionSelector.prototype.countrySelected=function(){if(this.handler){this.handler()}};MapRegionSelector.prototype.getValue=function(){return this.field.value};MapRegionSelector.prototype.setFieldValue=function(A){this.field.value=A};MapRegionSelector.prototype.setValue=function(A){this.setFieldValue(A);this.countrySelected()};MapRegionSelector.prototype.getSelectedText=function(){if(this.field.selectedIndex>0){return this.field.options[this.field.selectedIndex].text}else{return""}};MapRegionSelector.lookup=function(C,A,E){var D=CountrySelector.lookup(C,A,E);if(D){return D}for(var B=0;B<MapRegionSelector.prototype.regions.length;B+=6){if(MapRegionSelector.prototype.regions[B+A]==C){return MapRegionSelector.prototype.regions[B+E]}}return null};MapRegionSelector.lookupInfo=function(B){var C=CountrySelector.lookupInfo(B);if(C){return C}for(var A=0;A<MapRegionSelector.prototype.regions.length;A+=6){if(MapRegionSelector.prototype.regions[A+4]==B){return MapRegionSelector.prototype.regions.slice(A,A+6)}}return null};MapRegionSelector.getIdUsingCode=function(A){return MapRegionSelector.lookup(A,4,0)};MapRegionSelector.getCodeUsingId=function(A){return MapRegionSelector.lookup(A,0,4)};MapRegionSelector.getCodeUsingName=function(A){return MapRegionSelector.lookup(A,5,4)};MapRegionSelector.getNameUsingCode=function(A){return MapRegionSelector.lookup(A,4,5)};MapRegionSelector.getNameUsingId=function(A){return MapRegionSelector.lookup(A,0,5)};MapRegionSelector.prototype.regions=new Array(664398,37.4023681556038,-3.89924476579711,0,"SP001","Canary Islands",659179,61.2890641311403,-150.266332309795,0,"US002","Alaska",659197,20.7530207692,-156.8919788356,5,"US011","Hawaii");function CountrySelector(E,D,C){if(typeof (E)=="string"){this.field=document.getElementById(E)}else{this.field=E}this.handler=C;addSelectOption("","(Select Country)",E);for(var B=0;B<this.countries.length;B+=6){var A=this.countries[B+5];if(A.length>18){A=A.substring(0,18)}addSelectOption(this.countries[B],A,E)}YAHOO.util.Event.addListener(E,"change",this.countrySelected,this,true);if(D){this.setFieldValue(D)}}function addSelectOption(C,D,A){var B=document.createElement("OPTION");A.appendChild(B);B.innerHTML=D;B.setAttribute("value",C)}CountrySelector.prototype.countrySelected=function(){var B=this.field.value;for(var A=0;A<this.countries.length;A+=6){if(this.countries[A]==B){this.lat=this.countries[A+1];this.lng=this.countries[A+2];this.zoom=this.countries[A+3];break}}if(this.handler){this.handler()}};CountrySelector.prototype.getValue=function(){return this.field.value};CountrySelector.prototype.setFieldValue=function(A){this.field.value=A};CountrySelector.prototype.setValue=function(A){this.setFieldValue(A);this.countrySelected()};CountrySelector.prototype.getSelectedText=function(){if(this.field.selectedIndex>0){return this.field.options[this.field.selectedIndex].text}else{return""}};CountrySelector.lookupInfo=function(B){for(var A=0;A<CountrySelector.prototype.countries.length;A+=6){if(CountrySelector.prototype.countries[A+4]==B){return CountrySelector.prototype.countries.slice(A,A+6)}}return null};CountrySelector.lookup=function(C,A,D){for(var B=0;B<CountrySelector.prototype.countries.length;B+=6){if(CountrySelector.prototype.countries[B+A]==C){return CountrySelector.prototype.countries[B+D]}}return null};CountrySelector.getIdUsingCode=function(A){return CountrySelector.lookup(A,4,0)};CountrySelector.getCodeUsingName=function(A){return CountrySelector.lookup(A,5,4)};CountrySelector.getNameUsingCode=function(A){return CountrySelector.lookup(A,4,5)};CountrySelector.prototype.countries=[1662,33,65,4,"AF","Afghanistan",1665,41,20,6,"AL","Albania",1717,29.5,1.70000004768372,4,"AG","Algeria",1671,-14.3332996368408,-170,3,"AQ","American Samoa",1660,42.5,1.5,4,"AN","Andorra",1668,-12.6000003814697,19,4,"AO","Angola",1664,18.25,-63.1666984558105,4,"AV","Anguilla",1655,-85,1,7,"AY","Antarctica",1663,17.0499992370605,-61.7999992370605,4,"AC","Antigua and Barbuda",1670,-34,-64,3,"AR","Argentina",1666,40,45,6,"AM","Armenia",1674,12.5,-69.9666976928711,4,"AA","Aruba",612201,-12.2333335876465,123,4,"AT","Ashmore and Cartier",1673,-27,133,5,"AS","Australia",1672,47.3333015441895,13.3332996368408,8,"AU","Austria",1675,40.5,47.5,4,"AJ","Azerbaijan",1682,26,50.5499992370605,6,"BA","Bahrain",1885,20,0,3,"FQ","Baker Island",612202,-21.5,39,5,"BS","Bassas da India",1678,24,90,10,"BG","Bangladesh",1677,13.1667003631592,-59.5332984924316,9,"BB","Barbados",1693,53,28,7,"BO","Belarus",1679,50.8333015441895,4,6,"BE","Belgium",1694,17.25,-88.75,4,"BH","Belize",1684,9.5,2.25,4,"BN","Benin",1685,32.3333015441895,-64.75,4,"BD","Bermuda",1690,27.5,90.5,6,"BT","Bhutan",1687,-17,-65,5,"BL","Bolivia",1676,43.5,17.5,8,"BK","Bosnia and Herzegovina",1692,-22,24,4,"BC","Botswana",1691,-54.4333000183105,3.40000009536743,10,"BV","Bouvet Island",1688,-10,-55,2,"BR","Brazil",1759,-6,71.5,9,"IO","British Indian Ocean Territory",1892,18.5,-64.5,4,"VI","British Virgin Islands",1686,4.5,114.666702270508,5,"BX","Brunei Darussalam",1681,43,25,5,"BU","Bulgaria",1680,12.3000001907349,-2,6,"UV","Burkina Faso",612195,19.75,96.1999969482422,4,"BM","Burma",1683,-3,30,6,"BY","Burundi",1769,13,105,4,"CB","Cambodia",1703,6,12,5,"CM","Cameroon",1695,60,-95,2,"CA","Canada",1708,16,-24,6,"CV","Cape Verde",1776,19.5,-80.5,4,"CJ","Cayman Islands",1697,7,21,5,"CT","Central African Republic",1862,15,19,7,"CD","Chad",1702,-30,-71,4,"CI","Chile",1704,35,105,6,"CH","China",1709,-10.5,105.666702270508,4,"KT","Christmas Island",612203,10.3000001907349,-109,4,"IP","Clipperton Island",1696,-12.5,96.8332977294922,4,"CK","Cocos (Keeling) Islands",1705,4,-72,4,"CO","Colombia",1771,-12.1667003631592,44.25,4,"CN","Comoros",1701,-21.2332992553711,-159.766693115234,10,"CW","Cook Islands",612204,-18,152,4,"CR","Coral Sea Islands",1706,10,-84,6,"CS","Costa Rica",1700,8,-5,3,"IV","Cote d'Ivoire",1752,45.1666984558105,15.5,5,"HR","Croatia",1707,21.5,-80,5,"CU","Cuba",1710,35,33,7,"CY","Cyprus",1711,49.75,15.5,4,"EZ","Czech Republic",612190,-1,25,0,"CG","Democratic Republic of the Congo",1714,56,10,4,"DA","Denmark",1713,11.5,43,7,"DJ","Djibouti",1715,15.4167003631592,-61.3300018310547,8,"DO","Dominica",1716,19,-70.6667022705078,9,"DR","Dominican Republic",612199,-8.56666660308838,125.566665649414,6,"TT","East Timor",1718,-2,-77.5,5,"EC","Ecuador",1720,27,30,4,"EG","Egypt",1858,13.8332996368408,-88.9167022705078,4,"ES","El Salvador",1742,2,10,9,"EK","Equatorial Guinea",1722,15,39,5,"ER","Eritrea",1719,59,26,4,"EN","Estonia",1724,8,38,4,"ET","Ethiopia",612205,-22.3666667938232,40,4,"EU","Europa Island",1727,-51.75,-59,6,"FK","Falkland Islands (Islas Malvinas)",1729,62,-7,7,"FO","Faroe Islands",1726,-18,175,6,"FJ","Fiji",1725,64,26,3,"FI","Finland",1730,46,2,4,"FR","France",1735,4,-53,4,"FG","French Guiana",1824,-15,-140,8,"FP","French Polynesia",612198,-37.8333320617676,77,4,"FS","French Southern and Antarctic Lands",1731,-1,11.75,6,"GB","Gabon",1832,32,35.25,8,"GZ","Gaza Strip",1734,42,43.5,4,"GG","Georgia",1712,51,9,4,"GM","Germany",1736,8,-2,5,"GH","Ghana",1737,36.1833000183105,-5.36670017242432,12,"GI","Gibraltar",612206,-11.5500001907349,47,4,"GO","Glorioso Islands",1743,39,22,5,"GR","Greece",1738,72,-40,2,"GL","Greenland",1733,12.1167001724243,-61.6666984558105,4,"GJ","Grenada",1741,16.25,-61.5833015441895,8,"GP","Guadeloupe",1746,13.4666996002197,144.783294677734,4,"GQ","Guam",1745,15.5,-90.25,6,"GT","Guatemala",612191,49.4500007629395,-2,8,"GK","Guernsey",1740,11,-10,4,"GV","Guinea",1747,12,-15,4,"PU","Guinea-Bissau",1748,5,-59,5,"GY","Guyana",1753,19,-72.4167022705078,4,"HA","Haiti",1750,-53.0999984741211,72.5167007446289,8,"HM","Heard Island and McDonald Islands",1889,41.9000015258789,12.4499998092651,4,"VT","Holy See",1751,15,-86.5,4,"HO","Honduras",1749,22.3700008392334,114.099998474121,9,"HK","Hong Kong (SAR)",1884,19.2833003997803,166.600006103516,4,"HQ","Howland Island",1754,47,20,5,"HU","Hungary",1762,65,-18,6,"IC","Iceland",1758,20,77,3,"IN","India",1755,-5,120,3,"ID","Indonesia",1761,32,53,4,"IR","Iran",1760,33,44,4,"IZ","Iraq",1756,53,-8,4,"EI","Ireland",612192,54.25,-4,6,"IM","Isle of Man",1757,31.5,34.75,4,"IS","Israel",1763,42.8333015441895,12.8332996368408,4,"IT","Italy",1764,18.25,-77.5,7,"JM","Jamaica",1850,78,20,4,"JN","Jan Mayen",1766,36,138,4,"JA","Japan",1883,19.2833003997803,166.600006103516,4,"DQ","Jarvis Island",612193,49.189998626709,-2.10999989509583,4,"JE","Jersey",1882,19.2833003997803,166.600006103516,4,"JQ","Johnston Atoll",1765,31,36,6,"JO","Jordan",612207,-17.0499992370605,42,5,"JU","Juan de Nova Island",1777,48,68,3,"KZ","Kazakhstan",1767,1,38,5,"KE","Kenya",1881,19.2833003997803,166.600006103516,4,"KQ","Kingman Reef",1770,1.41670000553131,173,4,"KR","Kiribati",21679128,41.7286111,21.1338889,4,"KO","Kosovo",1775,29.5,45.75,4,"KU","Kuwait",1768,41,75,5,"KG","Kyrgyzstan",1778,18.1458511352539,104.1943359375,5,"LA","Laos",1787,57,25,4,"LG","Latvia",1779,33.8333015441895,35.8333015441895,4,"LE","Lebanon",1784,-29.5,28.5,9,"LT","Lesotho",1783,6.5,-9.5,4,"LI","Liberia",1788,25,17,4,"LY","Libya",1781,47.1666984558105,9.53330039978027,6,"LS","Liechtenstein",1785,56,24,6,"LH","Lithuania",1786,49.75,6.16669988632202,8,"LU","Luxembourg",1797,22.1667003631592,113.550003051758,4,"MC","Macau",1794,41.8333015441895,22,7,"MK","Macedonia",1792,-20,47,3,"MA","Madagascar",1805,-13.5,34,4,"MI","Malawi",1807,2.5,112.5,5,"MY","Malaysia",1804,3.25,73,10,"MV","Maldives",1795,17,-4,4,"ML","Mali",1802,35.8333015441895,14.5799999237061,9,"MT","Malta",1793,9,168,10,"RM","Marshall Islands",1799,14.6667003631592,-61,10,"MB","Martinique",1800,20,-12,4,"MR","Mauritania",1803,-20.2833003997803,57.5499992370605,5,"MP","Mauritius",1899,-12.8332996368408,45.1666984558105,4,"MF","Mayotte",1806,23,-102,3,"MX","Mexico",1728,6.91669988632202,158.25,8,"FM","Micronesia",1880,19.2833003997803,166.600006103516,4,"MQ","Midway Islands",1791,47,29,6,"MD","Moldova",1790,43.7332992553711,7.40000009536743,10,"MN","Monaco",1796,46,105,12,"MG","Mongolia",612194,42.783332824707,19.466667175293,6,"MJ","Montenegro",1801,16.75,-62.2000007629395,4,"MH","Montserrat",1789,32,-5,4,"MO","Morocco",1808,-18.25,35,4,"MZ","Mozambique",612195,19.75,96.1999969482422,4,"BM","Myanmar",1809,-22,17,4,"WA","Namibia",1818,-0.53329998254776,166.916702270508,10,"NR","Nauru",1879,19.2833003997803,166.600006103516,4,"BQ","Navassa Island",1817,28,84,5,"NP","Nepal",1815,52.5,5.75,6,"NL","Netherlands",1667,12.25,-68.75,9,"NT","Netherlands Antilles",1810,-21.5,165.5,5,"NC","New Caledonia",1820,-41,174,4,"NZ","New Zealand",1814,13,-85,4,"NU","Nicaragua",1811,16,8,9,"NG","Niger",1813,10,8,4,"NI","Nigeria",1819,-19.0333003997803,-169.86669921875,6,"NE","Niue",1812,-29.0333003997803,167.949996948242,10,"NF","Norfolk Island",1773,40,127,4,"KN","North Korea",1798,15.1999998092651,145.75,7,"CQ","Northern Mariana Islands",1816,62,10,3,"NO","Norway",1821,21,57,4,"MU","Oman",1827,30,70,4,"PK","Pakistan",1834,7.5,134.5,4,"PS","Palau",1878,19.2833003997803,166.600006103516,4,"LQ","Palmyra Atoll",1822,9,-80,5,"PM","Panama",1825,-6,147,8,"PP","Papua New Guinea",612208,16.5,112,4,"PF","Paracel Islands",1835,-23,-58,4,"PA","Paraguay",1823,-10,-76,4,"PE","Peru",1826,13,122,4,"RP","Philippines",612197,-25.0666675567627,-130,4,"PC","Pitcairn Islands",1828,52,20,5,"PL","Poland",1833,39.5,-8,4,"PO","Portugal",1830,18.25,-66.5,4,"RQ","Puerto Rico",1836,25.5,51.25,7,"QA","Qatar",1698,-1,15,4,"CF","Republic of the Congo",1837,-21.1000003814697,55.5999984741211,7,"RE","Reunion",1838,46,25,5,"RO","Romania",1839,60,100,4,"RS","Russia",1840,-2,30,7,"RW","Rwanda",1847,-15.9333000183105,-5.69999980926514,10,"SH","Saint Helena",1772,17.3332996368408,-62.75,5,"SC","Saint Kitts and Nevis",1780,13.8832998275757,-61.13330078125,4,"ST","Saint Lucia",1829,46.8333015441895,-56.3333015441895,5,"SB","Saint Pierre and Miquelon",1890,13.25,-61.2000007629395,8,"VC","Saint Vincent and the Grenadines",1897,-13.5832996368408,-172.333297729492,7,"WS","Samoa",1853,43.7667007446289,12.4167003631592,11,"SM","San Marino",1841,25,45,4,"SA","Saudi Arabia",1854,14,-14,9,"SG","Senegal",612211,44.7999992370605,20.4666004180908,5,"RB","Serbia",1843,-4.58330011367798,55.6666984558105,9,"SE","Seychelles",1852,8.5,-11.5,6,"SL","Sierra Leone",1846,1.36670005321503,103.800003051758,5,"SN","Singapore",1851,48.6666984558105,19.5,4,"LO","Slovakia",1848,46,15,6,"SI","Slovenia",1842,-8,159,8,"BP","Solomon Islands",1855,10,49,4,"SO","Somalia",1900,-29,24,4,"SF","South Africa",1744,-54.5,-37,4,"SX","South Georgia (SGSSI)",1774,37,127.5,7,"KS","South Korea",1723,40,-4,5,"SP","Spain",612209,8.63333320617676,111,4,"PG","Spratly Islands",1782,7,81,4,"CE","Sri Lanka",1844,15,30,4,"SU","Sudan",1856,4,-56,4,"NS","Suriname",1849,78,20,4,"SV","Svalbard",1860,-26.5,31.5,6,"WZ","Swaziland",1845,62,15,9,"SW","Sweden",1699,47,8,2,"SZ","Switzerland",1859,35,38,5,"SY","Syria",1857,1,7,9,"TP","São Tomé and Principe",1873,23.5,121,6,"TW","Taiwan",1865,39,71,4,"TI","Tajikistan",1874,-6,35,4,"TZ","Tanzania",1864,12.8974895477295,101.07421875,4,"TH","Thailand",1689,24.25,-76,7,"BF","The Bahamas",1739,13.4666996002197,-16.5666999816895,4,"GA","The Gambia",1863,8,1.16670000553131,4,"TO","Togo",1866,-9,-172,8,"TL","Tokelau",1869,-20,-175,6,"TN","Tonga",612210,-15.8833332061768,54,4,"TE","Tromelin Island",1871,11,-61,7,"TD","Trinidad and Tobago",1868,34,9,6,"TS","Tunisia",1870,39,35,4,"TU","Turkey",1867,40,60,4,"TX","Turkmenistan",1861,21.75,-71.5832977294922,4,"TK","Turks and Caicos Islands",1872,-8,178,10,"TV","Tuvalu",1876,1,32,5,"UG","Uganda",1875,49,32,4,"UP","Ukraine",1661,24,54,6,"AE","United Arab Emirates",1732,54,-2,5,"UK","United Kingdom",1886,38,-97,2,"US","United States",1887,-33,-56,5,"UY","Uruguay",1888,41,64,4,"UZ","Uzbekistan",1895,-16,167,4,"NH","Vanuatu",1889,41.9000015258789,12.4499998092651,4,"VT","Vatican City",1891,8,-66,4,"VE","Venezuela",1894,16,106,4,"VM","Vietnam",1893,18.3332996368408,-64.8332977294922,8,"VQ","Virgin Islands",1877,19.2833003997803,166.600006103516,4,"WQ","Wake Island",1896,-13.3000001907349,-176.199996948242,9,"WF","Wallis and Futuna",1831,32,35.25,8,"WE","West Bank",1721,24.5,-13,4,"WI","Western Sahara",1898,15,48,4,"YM","Yemen",1901,-15,30,4,"ZA","Zambia",1902,-20,30,4,"ZI","Zimbabwe"];
var COMMENT_SERVICE="/services/Comments";var SOCIAL_SERVICE="/services/Social";var working=false;function flagItem(C,B,A){establishActiveUser(function(){if(working){return }working=true;var D="event=saveFlag&item="+C+"&type="+B;YAHOO.util.Connect.asyncRequest("POST",SOCIAL_SERVICE,{success:function(E){var F=JSON.parse(E.responseText);if(F.result&&F.result=="OK"){A.innerHTML="Flagged!";A.style.backgroundImage="none"}working=false},failure:function(E){}},D)})}function voteThumbsUp(D,C,B,A){establishActiveUser(function(){if(working){return }working=true;var E="event=voteThumbsUp&item="+D+"&type="+C+"&vote="+A;E+="&"+getSessionParams();YAHOO.util.Connect.asyncRequest("POST",SOCIAL_SERVICE,{success:function(F){var G=JSON.parse(F.responseText);if(G.result&&G.result=="OK"){B.parentNode.innerHTML="Voted!"}else{if(G.error){var H=G.error.replace(/-/," ");showPrompt("Voting Failed",H)}}working=false},failure:function(F){}},E)})}function addComment(D,B,A,F){var C=document.getElementById("commentText"+D)||document.getElementById("commentText");var E=C.value;if(!E||E.length<3){showPrompt("Please type something longer");return }A.disabled=true;saveComment(D,B,E,function(H){var G=JSON.parse(H.responseText);var J=$("commentCount");if(J){J.innerHTML=parseInt(J.innerHTML)+1;J.parentNode.style.display=""}var I=document.createElement("DIV");$("commentArea").appendChild(I);I.innerHTML=G.html;displaySuccessBox(D);A.disabled=false;if(F){F(G.html)}})}function saveComment(B,A,C,D){establishActiveUser(function(){if(working){return }working=true;var E="event=addComment&text="+encode(C)+"&type="+A+"&item="+B;E+="&forGecko=true";E+="&"+getSessionParams();YAHOO.util.Connect.asyncRequest("POST",COMMENT_SERVICE,{success:function(F){if(D){D(F)}working=false},failure:function(F){}},E)},"Please login to comment")}function deleteComment(C,A,B,D){establishActiveUser(function(){if(working){return }working=true;var E="event=deleteComment&type="+A+"&item="+C;E+="&"+getSessionParams();YAHOO.util.Connect.asyncRequest("POST",COMMENT_SERVICE,{success:function(F){if(F.responseText.indexOf("OK")>=0){var G=$("commentCount");if(G){G.innerHTML=parseInt(G.innerHTML)-1}B=YAHOO.util.Dom.getAncestorByClassName(B,"comment");if(B){B.style.display="none"}}working=false},failure:function(F){}},E)})}var rtes=[];var tempRte;var iconText=new Array("Random note","I like!...","Muchos appreciation","Keep'em coming","Great writing","I like your thinking","You helped a brother out","You cracked me up","Holy street cred!","You're hardcore","Scary stuff","What the...?");var iconBody=new Array("","You very good for make information.  Tzequi!","Danke. Thank-you. Merci. Gracias. Arigato!","Just keep writing, just keep writing, I`ll keep reading. :)","Your writing is a work of art.","I find myself strangely attracted to your brain.","If it weren`t for you I would have fallen into a pit of snakes and died a slow horrible death.  Instead I got all my travel expenses paid for, found the love of my life and lived happily ever after.","You so funny when you say stuff.","Thugs and gang leaders from around the world wish they were you right now.","Holy moly you`re one tough cookie!","How`d you keep it together?  I would`ve peed myself silly if I`d been in your boots!","?...");var iconImages=new Array("compliment_random.png","compliment_like.png","compliment_appreciation.png","compliment_coming.png","compliment_great.png","compliment_thinking.png","compliment_helped.png","compliment_crackup.png","compliment_street.png","compliment_hardcore.png","compliment_scary.png","compliment_whatthe.png");function isNewText(B){if(B=="<br>"){return false}for(var A=0;A<iconBody.length;A++){if(iconBody[A]==B){return false}}return true}function displayComplimentBox(D){var C=document.getElementById("rte"+D);document.getElementById("box"+D).style.display="";tempRte=new WYSIWYG_Editor("tempRte",C,"","http://ui.geckogo.com/ui/editor",392,100);tempRte.setModeToggle(hasUserPriv());tempRte.setAllowAnchors(hasUserPriv());rtes[D]=tempRte;rtes[D].display();var B="<form name='form"+D+"'>";for(var A=0;A<iconText.length;A++){if(A%2==0){B+="<div>"}B+="<div class='compliment-box'><input type='radio' class='compliment-radio' name='icons' value='"+A+"' onclick='if(!isNewText(rtes["+D+"].getContent().toString())) { rtes["+D+'].setContent("'+iconBody[A]+"\") }'><img src='http://ui.geckogo.com/ui/media/"+iconImages[A]+"'><span class='compliment-text'>"+iconText[A]+"</span></div>";if((A+1)%2==0||A==iconText.length-1){B+="</div>"}}B+="</form>";document.getElementById("icons"+D).innerHTML=B}function closeComplimentBox(A){document.getElementById("box"+A).style.display="none"}var reviewId=null;function sendItemCompliment(H){reviewId=H;if(!loggedIn){establishActiveUser(complimentCallback);return }var F=null;var B=document.forms;var D=0;for(var C=0;!F&&C<B.length;C++){if(B[C].name.indexOf(H+"")>0){F=B[C]}}for(var C=0;C<F.icons.length;C++){if(F.icons[C].checked){D=F.icons[C].value}}var E=document.getElementById("box"+H);var A=rtes[H].getContent();while(A.indexOf("<br>")==0){A=A.replace("<br>","")}for(var C=A.toString().length-4;C>0;C-=4){if(A.substring(C,C+4)=="<br>"){A=A.substring(0,C)}else{break}}A=encode(A)||"";var G="event=addCompliment&relatedId="+H+"&text="+A+"&type="+D;YAHOO.util.Connect.asyncRequest("POST","/services/Compliments",{success:function(I){var J=I.responseText;if(J=="OK"){E.innerHTML="<b>Thank you, your compliment is posted!</b>";setTimeout("location.reload(true);",3000)}else{alert(J)}},failure:function(I){reportAjaxFailure()}},G)}function complimentCallback(A){if(A!="cancel"){loggedIn=true;sendItemCompliment(reviewId)}}function toggleCompliments(B){var A=document.getElementById("comments"+B);A.style.display=(A.style.display=="none")?"":"none"}function toggleInputBox(B){var A=document.getElementById("input"+B);A.style.display=(A.style.display=="none")?"":"none"}function displaySuccessBox(A){inputElem=document.getElementById("input"+A)||document.getElementById("inputBox");inputElem.style.display="none";succElem=document.getElementById("success"+A)||document.getElementById("successBox");succElem.style.display="";setTimeout("succElem.style.display='none';",4000)}function toggleCommentBox(D){var B=document.getElementById("comments"+D);var C=(B.style.display=="none")?"":"none";B.style.display=C;var A=document.getElementById("link"+D);if(A){A.style.display=C}};
