
var clip=null;String.prototype.replaceAll=function(s1,s2){return this.replace(new RegExp(s1,"g"),s2);};window.innerShiv=(function(){var d,r;return function(h,u){if(!d){d=document.createElement('div');r=document.createDocumentFragment();}
var e=d.cloneNode(true);e.innerHTML=h.replace(/^\s\s*/,'').replace(/\s\s*$/,'');if(u===false){return e.childNodes;}
var f=r.cloneNode(true),i=e.childNodes.length;while(i--){f.appendChild(e.firstChild);}
return f;};}());function PS(content){return content.replaceAll("<param","#param");}
function PR(content){return content.replaceAll("#param","<param");}
function loadHTML(id,url,loading,fun,storage,param){var ShadowDivSelector=$("#ShadowDiv");var FancyBoxProgressDivSelector=$("#FancyBoxProgressDiv");var StorageIdSelector=$("#"+storage.id);var CommunityContentElement=document.getElementById("CommunityContent");var ShadowDivElement=document.getElementById("ShadowDiv");var PageSpinnerDivElement=document.getElementById("PageSpinnerDiv");ShadowDivSelector.width(jQuery(document).width());ShadowDivSelector.height(jQuery(document).height());CommunityContentElement.style.display="none";if(FancyBoxProgressDivSelector.css("display")!=="none"||FancyBoxProgressDivSelector.css("display")!==undefined){if(ContentLoad===false){ShadowDivElement.style.display="block";PageSpinnerDivElement.style.display="block";}}
scroll(0,0);StorageIdSelector.bind("ajaxComplete",function(){$("#"+storage.id+" object").each(function(){var width=$(this).width();var height=$(this).height();$(this).attr("width",width+"px");$(this).attr("height",height+"px");});});jQuery.ajax({url:url+"?lb=",type:'GET',dataType:'html',complete:function(res,status){if(status==='success'||status==='notmodified'){var OtherContent="";var IEContent="";var PageURL=window.location.protocol+"//"+window.location.host+url;if(id==='ctl00_ctl00_ctl00_cphContent_NavigationColumn_hlkNLBOverview'){OtherContent=$(innerShiv(res.responseText,false)).find("#CommunityContent").prepend("<script type='text/javascript'> var PageURL = '"+window.location.protocol+"//"+window.location.host+url+"'; </script>").html();IEContent=PR($(innerShiv(PS(res.responseText),false)).find("#CommunityContent").prepend("<script type='text/javascript'> var PageURL = '"+window.location.protocol+"//"+window.location.host+url+"'; </script>").html());}
else{OtherContent=$(innerShiv(res.responseText,false)).find("#CommunityContent").prepend("<div id='CopyPageURLRoundedCorners' style='text-align:right;width:98%;height:40px;'><div id='CopyPageURLOutSide' style='padding:8px;float:right;width:40px;vertical-align:middle; color: #1A6294; font-size: 12px;background-color:#efeeea;'><div id='divCopyIcon' style='float:left;width:16px;height:16px;display:inline-block;background-image:url(\"/App_Themes/DRHortonSite/famfam/page_white_copy.png\");background-repeat:no-repeat;' title='Copy Link'></div><div id='divPrintIcon' style='float:right;width:16px;height:16px;display:inline-block;'><img id='CopyPageURLOutSideImgPrint' src='/App_Themes/DRHortonSite/famfam/printer.png' border=0 alt='Print' title='Print' style='cursor: pointer' onclick='javascript:window.print();'/></div></div></div>").prepend("<script type='text/javascript'> var PageURL = '"+window.location.protocol+"//"+window.location.host+url+"'; </script>").html();IEContent=PR($(innerShiv(PS(res.responseText),false)).find("#CommunityContent").prepend("<div id='CopyPageURLRoundedCorners' style='text-align:right;width:98%;height:40px;'><div id='CopyPageURLOutSide' style='padding:8px;float:right;width:40px;vertical-align:middle; color: #1A6294; font-size: 12px;background-color:#efeeea;'><div id='divCopyIcon' style='float:left;width:16px;height:16px;display:inline-block;background-image:url(\"/App_Themes/DRHortonSite/famfam/page_white_copy.png\");background-repeat:no-repeat;' title='Copy Link'></div><div id='divPrintIcon' style='float:right;width:16px;height:16px;display:inline-block;'><img id='CopyPageURLOutSideImgPrint' src='/App_Themes/DRHortonSite/famfam/printer.png' border=0 alt='Print' title='Print' style='cursor: pointer' onclick='javascript:window.print();'/></div></div></div>").prepend("<script type='text/javascript'> var PageURL = '"+window.location.protocol+"//"+window.location.host+url+"'; </script>").html());}
var OtherVarOld=$(OtherContent).find('object[classid*="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95"]');var OtherVarNew=$(OtherContent).find('object[classid*="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6"]');if((OtherVarOld.length!==0||OtherVarNew.length!==0)&&$.browser.msie){StorageIdSelector.empty();jQuery(IEContent).appendTo(StorageIdSelector);}else{StorageIdSelector.empty();jQuery(OtherContent).appendTo(StorageIdSelector);}
var divCopyIconSelector=$("#divCopyIcon");if(jQuery.browser.msie){divCopyIconSelector.css({'cursor':'pointer'});divCopyIconSelector.click(function(){window.clipboardData.setData('text',PageURL.toString());alert("Copied text to clipboard:\n"+PageURL.toString());});}
else{if(clip!==null){clip.destroy();}
clip=new ZeroClipboard.Client();clip.setText(PageURL.toString());clip.setHandCursor(true);clip.setCSSEffects(true);var html=clip.getHTML(16,16);divCopyIconSelector.html(html);clip.addEventListener('onMouseOver',function(client){clip.setText(PageURL.toString());});clip.addEventListener('onComplete',function(client,text){alert("Copied text to clipboard:\n"+text);});}
ShadowDivElement.style.display="none";PageSpinnerDivElement.style.display="none";if(FancyBoxProgressDivSelector.css("display")==="none"||FancyBoxProgressDivSelector.css("display")===undefined){if(ContentLoad===false){CommunityContentElement.style.display="block";}}}}});}
function processHTML(temp,target){}
function wait(){}
function loadWholePage(id,url,loading){var y=document.getElementById("storage");var x=document.getElementById("CommunityContent");loadHTML(id,url,loading,processHTML,x,y);}
