
var DNN_COL_DELIMITER=String.fromCharCode(16);
var DNN_ROW_DELIMITER=String.fromCharCode(15);
var __dnn_m_bPageLoaded=false;
window.onload=__dnn_Page_OnLoad;
function __dnn_ClientAPIEnabled()
{
return typeof(dnn)!='undefined';}
function __dnn_Page_OnLoad()
{
if(__dnn_ClientAPIEnabled())
{
var sLoadHandlers=dnn.getVar('__dnn_pageload');
if(sLoadHandlers!=null)
eval(sLoadHandlers);
dnn.dom.attachEvent(window,'onscroll',__dnn_bodyscroll);}
__dnn_m_bPageLoaded=true;}
function __dnn_KeyDown(iKeyCode,sFunc,e)
{
if(e==null)
e=window.event;
if(e.keyCode==iKeyCode)
{
eval(unescape(sFunc));
return false;}}
function __dnn_bodyscroll()
{
var oF=document.forms[0];
if(__dnn_ClientAPIEnabled()&&__dnn_m_bPageLoaded)
oF.ScrollTop.value=document.documentElement.scrollTop?document.documentElement.scrollTop:dnn.dom.getByTagName("body")[0].scrollTop;}
function __dnn_setScrollTop(iTop)
{
if(__dnn_ClientAPIEnabled())
{
if(iTop==null)
iTop=document.forms[0].ScrollTop.value;
var sID=dnn.getVar('ScrollToControl');
if(sID!=null&&sID.length>0)
{
var oCtl=dnn.dom.getById(sID);
if(oCtl!=null)
{
iTop=dnn.dom.positioning.elementTop(oCtl);
dnn.setVar('ScrollToControl','');}}
window.scrollTo(0,iTop);}}
function __dnn_SetInitialFocus(sID)
{
var oCtl=dnn.dom.getById(sID);
if(oCtl!=null&&__dnn_CanReceiveFocus(oCtl))
oCtl.focus();}
function __dnn_CanReceiveFocus(e)
{
if(e.style.display!='none'&&e.tabIndex>-1&&e.disabled==false&&e.style.visible!='hidden')
{
var eParent=e.parentElement;
while(eParent!=null&&eParent.tagName!='BODY')
{
if(eParent.style.display=='none'||eParent.disabled||eParent.style.visible=='hidden')
return false;
eParent=eParent.parentElement;}
return true;}
else
return false;}
function __dnn_ContainerMaxMin_OnClick(oLnk,sContentID)
{
var oContent=dnn.dom.getById(sContentID);
if(oContent!=null)
{
var oBtn=oLnk.childNodes[0];
var sContainerID=dnn.getVar('containerid_'+ sContentID);
var sCookieID=dnn.getVar('cookieid_'+ sContentID);
var sCurrentFile=oBtn.src.toLowerCase().substr(oBtn.src.lastIndexOf('/'));
var sMaxFile;
var sMaxIcon;
var sMinIcon;
if(dnn.getVar('min_icon_'+ sContainerID))
sMinIcon=dnn.getVar('min_icon_'+ sContainerID);
else
sMinIcon=dnn.getVar('min_icon');
if(dnn.getVar('max_icon_'+ sContainerID))
sMaxIcon=dnn.getVar('max_icon_'+ sContainerID);
else
sMaxIcon=dnn.getVar('max_icon');
sMaxFile=sMaxIcon.toLowerCase().substr(sMaxIcon.lastIndexOf('/'));
var iNum=5;
var animf=dnn.getVar('animf_'+ sContentID);
if(animf!=null)
iNum=new Number(animf);
if(sCurrentFile==sMaxFile)
{
oBtn.src=sMinIcon;
dnn.dom.expandElement(oContent,iNum);
oBtn.title=dnn.getVar('min_text');
if(sCookieID!=null)
{
if(dnn.getVar('__dnn_'+ sContainerID +':defminimized')=='true')
dnn.dom.setCookie(sCookieID,'true',365);
else
dnn.dom.deleteCookie(sCookieID);}
else
dnn.setVar('__dnn_'+ sContainerID +'_Visible','true');}
else
{
oBtn.src=sMaxIcon;
dnn.dom.collapseElement(oContent,iNum);
oBtn.title=dnn.getVar('max_text');
if(sCookieID!=null)
{
if(dnn.getVar('__dnn_'+ sContainerID +':defminimized')=='true')
dnn.dom.deleteCookie(sCookieID);
else
dnn.dom.setCookie(sCookieID,'false',365);}
else
dnn.setVar('__dnn_'+ sContainerID +'_Visible','false');}
return true;}
return false;}
function __dnn_Help_OnClick(sHelpID)
{
var oHelp=dnn.dom.getById(sHelpID);
if(oHelp!=null)
{
if(oHelp.style.display=='none')
oHelp.style.display='';
else
oHelp.style.display='none';
return true;}
return false;}
function __dnn_SectionMaxMin(oBtn,sContentID)
{
var oContent=dnn.dom.getById(sContentID);
if(oContent!=null)
{
var sMaxIcon=oBtn.getAttribute('max_icon');
var sMinIcon=oBtn.getAttribute('min_icon');
var bCallback=oBtn.getAttribute('userctr')!=null;
var sVal;
if(oContent.style.display=='none')
{
oBtn.src=sMinIcon;
oContent.style.display='';
if(bCallback)
sVal='True';
else
dnn.setVar(oBtn.id +':exp',1);}
else
{
oBtn.src=sMaxIcon;
oContent.style.display='none';
if(bCallback)
sVal='False';
else
dnn.setVar(oBtn.id +':exp',0);}
if(bCallback)
dnncore.setUserProp(oBtn.getAttribute('userctr'),oBtn.getAttribute('userkey'),sVal,null);
return true;}
return false;}
function __dnn_enableDragDrop()
{
var aryConts=dnn.getVar('__dnn_dragDrop').split(";");
var aryTitles;
for(var i=0;i<aryConts.length;i++)
{
aryTitles=aryConts[i].split(" ");
if(aryTitles[0].length>0)
{
var oCtr=dnn.dom.getById(aryTitles[0]);
var oTitle=dnn.dom.getById(aryTitles[1]);
if(oCtr!=null&&oTitle!=null)
{
oCtr.setAttribute('moduleid',aryTitles[2]);
dnn.dom.positioning.enableDragAndDrop(oCtr,oTitle,'__dnn_dragComplete()','__dnn_dragOver()');}}}}
var __dnn_oPrevSelPane;
var __dnn_oPrevSelModule;
var __dnn_dragEventCount=0;
function __dnn_dragOver()
{
__dnn_dragEventCount++;
if(__dnn_dragEventCount%75!=0)
return;
var oCont=dnn.dom.getById(dnn.dom.positioning.dragCtr.contID);
var oPane=__dnn_getMostSelectedPane(dnn.dom.positioning.dragCtr);
if(__dnn_oPrevSelPane!=null)
__dnn_oPrevSelPane.pane.style.border=__dnn_oPrevSelPane.origBorder;
if(oPane!=null)
{
__dnn_oPrevSelPane=oPane;
oPane.pane.style.border='4px double '+ DNN_HIGHLIGHT_COLOR;
var iIndex=__dnn_getPaneControlIndex(oCont,oPane);
var oPrevCtl;
var oNextCtl;
for(var i=0;i<oPane.controls.length;i++)
{
if(iIndex>i&&oPane.controls[i].id!=oCont.id)
oPrevCtl=oPane.controls[i];
if(iIndex<=i&&oPane.controls[i].id!=oCont.id)
{
oNextCtl=oPane.controls[i];
break;}}
if(__dnn_oPrevSelModule!=null)
dnn.dom.getNonTextNode(__dnn_oPrevSelModule.control).style.border=__dnn_oPrevSelModule.origBorder;
if(oNextCtl!=null)
{
__dnn_oPrevSelModule=oNextCtl;
dnn.dom.getNonTextNode(oNextCtl.control).style.borderTop='5px groove '+ DNN_HIGHLIGHT_COLOR;}
else if(oPrevCtl!=null)
{
__dnn_oPrevSelModule=oPrevCtl;
dnn.dom.getNonTextNode(oPrevCtl.control).style.borderBottom='5px groove '+ DNN_HIGHLIGHT_COLOR;}}}
function __dnn_dragComplete()
{
var oCtl=dnn.dom.getById(dnn.dom.positioning.dragCtr.contID);
var sModuleID=oCtl.getAttribute('moduleid');
if(__dnn_oPrevSelPane!=null)
__dnn_oPrevSelPane.pane.style.border=__dnn_oPrevSelPane.origBorder;
if(__dnn_oPrevSelModule!=null)
dnn.dom.getNonTextNode(__dnn_oPrevSelModule.control).style.border=__dnn_oPrevSelModule.origBorder;
var oPane=__dnn_getMostSelectedPane(dnn.dom.positioning.dragCtr);
var iIndex;
if(oPane==null)
{
var oPanes=__dnn_Panes();
for(var i=0;i<oPanes.length;i++)
{
if(oPanes[i].id==oCtl.parentNode.id)
oPane=oPanes[i];}}
if(oPane!=null)
{
iIndex=__dnn_getPaneControlIndex(oCtl,oPane);
__dnn_MoveToPane(oPane,oCtl,iIndex);
dnn.callPostBack('MoveToPane','moduleid='+ sModuleID,'pane='+ oPane.paneName,'order='+ iIndex*2);}}
function __dnn_MoveToPane(oPane,oCtl,iIndex)
{
if(oPane!=null)
{
var aryCtls=new Array();
for(var i=iIndex;i<oPane.controls.length;i++)
{
if(oPane.controls[i].control.id!=oCtl.id)
aryCtls[aryCtls.length]=oPane.controls[i].control;
dnn.dom.removeChild(oPane.controls[i].control);}
dnn.dom.appendChild(oPane.pane,oCtl);
oCtl.style.top=0;
oCtl.style.left=0;
oCtl.style.position='relative';
for(var i=0;i<aryCtls.length;i++)
{
dnn.dom.appendChild(oPane.pane,aryCtls[i]);}
__dnn_RefreshPanes();}
else
{
oCtl.style.top=0;
oCtl.style.left=0;
oCtl.style.position='relative';}}
function __dnn_RefreshPanes()
{
var aryPanes=dnn.getVar('__dnn_Panes').split(';');
var aryPaneNames=dnn.getVar('__dnn_PaneNames').split(';');
__dnn_m_aryPanes=new Array();
for(var i=0;i<aryPanes.length;i++)
{
if(aryPanes[i].length>0)
__dnn_m_aryPanes[__dnn_m_aryPanes.length]=new __dnn_Pane(dnn.dom.getById(aryPanes[i]),aryPaneNames[i]);}}
var __dnn_m_aryPanes;
var __dnn_m_aryModules;
function __dnn_Panes()
{
if(__dnn_m_aryPanes==null)
{
__dnn_m_aryPanes=new Array();
__dnn_RefreshPanes();}
return __dnn_m_aryPanes;}
function __dnn_Modules(sModuleID)
{
if(__dnn_m_aryModules==null)
__dnn_RefreshPanes();
return __dnn_m_aryModules[sModuleID];}
function __dnn_getMostSelectedPane(oContent)
{
var oCDims=new dnn.dom.positioning.dims(oContent);
var iTopScore=0;
var iScore;
var oTopPane;
for(var i=0;i<__dnn_Panes().length;i++)
{
var oPane=__dnn_Panes()[i];
var oPDims=new dnn.dom.positioning.dims(oPane.pane);
iScore=dnn.dom.positioning.elementOverlapScore(oPDims,oCDims);
if(iScore>iTopScore)
{
iTopScore=iScore;
oTopPane=oPane;}}
return oTopPane;}
function __dnn_getPaneControlIndex(oContent,oPane)
{
if(oPane==null)
return;
var oCDims=new dnn.dom.positioning.dims(oContent);
var oCtl;
if(oPane.controls.length==0)
return 0;
for(var i=0;i<oPane.controls.length;i++)
{
oCtl=oPane.controls[i];
var oIDims=new dnn.dom.positioning.dims(oCtl.control);
if(oCDims.t<oIDims.t)
return oCtl.index;}
if(oCtl!=null)
return oCtl.index+1;
else
return 0;}
function __dnn_Pane(ctl,sPaneName)
{
this.pane=ctl;
this.id=ctl.id;
this.controls=new Array();
this.origBorder=ctl.style.border;
this.paneName=sPaneName;
var iIndex=0;
var strModuleOrder='';
for(var i=0;i<ctl.childNodes.length;i++)
{
var oNode=ctl.childNodes[i];
if(dnn.dom.isNonTextNode(oNode))
{
if(__dnn_m_aryModules==null)
__dnn_m_aryModules=new Array();
var sModuleID=oNode.getAttribute('moduleid');
if(sModuleID!=null&&sModuleID.length>0)
{
strModuleOrder +=sModuleID +'~';
this.controls[this.controls.length]=new __dnn_PaneControl(oNode,iIndex);
__dnn_m_aryModules[sModuleID]=oNode.id;
iIndex+=1;}}}
this.moduleOrder=strModuleOrder;}
function __dnn_PaneControl(ctl,iIndex)
{
this.control=ctl;
this.id=ctl.id;
this.index=iIndex;
this.origBorder=ctl.style.border;}
function __dnncore()
{
this.GetUserVal=0;
this.SetUserVal=1;}
__dnncore.prototype={
getUserProp:function(sNameCtr,sKey,pFunc){
this._doUserCallBack(dnncore.GetUserVal,sNameCtr,sKey,null,new dnncore.UserPropArgs(sNameCtr,sKey,pFunc));},
setUserProp:function(sNameCtr,sKey,sVal,pFunc){
this._doUserCallBack(dnncore.SetUserVal,sNameCtr,sKey,sVal,new dnncore.UserPropArgs(sNameCtr,sKey,pFunc));},
_doUserCallBack:function(iType,sNameCtr,sKey,sVal,pFunc){
if(dnn&&dnn.xmlhttp)
{
var sPack=iType + COL_DELIMITER + sNameCtr + COL_DELIMITER + sKey + COL_DELIMITER + sVal;
dnn.xmlhttp.doCallBack('__Page',sPack,dnncore._callBackSuccess,pFunc,dnncore._callBackFail,null,true,null,0);}
else
alert('Client Personalization not enabled');},
_callBackSuccess:function(result,ctx,req){
if(ctx.pFunc)
ctx.pFunc(ctx.namingCtr,ctx.key,result);},
_callBackFail:function(result,ctx){
window.status=result;}}
__dnncore.prototype.UserPropArgs=function(sNameCtr,sKey,pFunc)
{
this.namingCtr=sNameCtr;
this.key=sKey;
this.pFunc=pFunc;}
var dnncore=new __dnncore();(function($){$.fn.lightBox=function(_2){_2=jQuery.extend({overlayBgColor:"#000",overlayOpacity:0.8,imageLoading:"images/lightbox-ico-loading.gif",imageBtnPrev:"images/lightbox-btn-prev.gif",imageBtnNext:"images/lightbox-btn-next.gif",imageBtnClose:"images/lightbox-btn-close.gif",imageBlank:"images/lightbox-blank.gif",containerBorderSize:10,containerResizeSpeed:400,txtImage:"Image",txtOf:"of",keyToClose:"c",keyToPrev:"p",keyToNext:"n",imageArray:[],activeImage:0,previous:"&#171; [P]revious",next:"[N]ext &#187;",close:"[C]lose X"},_2);var _3=this;function _initialize(){_start(this,_3);return false;}function _start(_4,_5){$("embed, object, select").css({"visibility":"hidden"});_set_interface();_2.imageArray.length=0;_2.activeImage=0;if(_5.length==1){_2.imageArray.push(new Array(_4.getAttribute("href"),_4.getAttribute("title")));}else{for(var i=0;i<_5.length;i++){_2.imageArray.push(new Array(_5[i].getAttribute("href"),_5[i].getAttribute("title"),_5[i].getAttribute("tags")));}}while(_2.imageArray[_2.activeImage][0]!=_4.getAttribute("href")){_2.activeImage++;}_set_image_to_view();}function _set_interface(){$("body").append("<div id=\"jquery-overlay\"></div><div id=\"jquery-lightbox\"><div id=\"lightbox-container-image-box\"><div id=\"lightbox-container-image\"><img id=\"lightbox-image\"><div id=\"lightbox-loading\"><a href=\"#\" id=\"lightbox-loading-link\"><img src=\""+_2.imageLoading+"\"></a></div></div></div><div id=\"lightbox-container-image-data-box\"><div id=\"lightbox-container-image-data\"><div id=\"lightbox-container-image-details\"><span id=\"lightbox-container-image-details-caption\"></span><span id=\"lightbox-container-image-details-currentNumber\"></span><span id=\"lightbox-container-image-details-nav\"><a href=\"#\" id=\"lightbox-container-image-details-nav-btnPrev\">"+_2.previous+"</a><a href=\"#\" id=\"lightbox-container-image-details-nav-btnNext\">"+_2.next+"</a></span></div><div id=\"lightbox-image-details-close\"><a href=\"#\" id=\"lightbox-image-details-close-btnClose\">"+_2.close+"</a></div></div></div></div>");var _7=___getPageSize();$("#jquery-overlay").css({backgroundColor:_2.overlayBgColor,opacity:_2.overlayOpacity,width:_7[0],height:_7[1]}).fadeIn();var _8=___getPageScroll();$("#jquery-lightbox").css({top:_8[1]+(_7[3]/10),left:_8[0]}).show();$("#jquery-overlay,#jquery-lightbox").click(function(){_finish();});$("#lightbox-loading-link,#lightbox-image-details-close-btnClose").click(function(){_finish();return false;});$(window).resize(function(){var _9=___getPageSize();$("#jquery-overlay").css({width:_9[0],height:_9[1]});var _a=___getPageScroll();$("#jquery-lightbox").css({top:_a[1]+(_9[3]/10),left:_a[0]});});}function _set_image_to_view(){$("#lightbox-loading").show();$("#lightbox-image,#lightbox-nav,#lightbox-container-image-details-nav-btnPrev,#lightbox-container-image-details-nav-btnNext,#lightbox-container-image-data-box,#lightbox-container-image-details-currentNumber").hide();var _b=new Image();_b.onload=function(){$("#lightbox-image").attr("src",_2.imageArray[_2.activeImage][0]);_resize_container_image_box(_b.width,_b.height);_b.onload=function(){};};_b.src=_2.imageArray[_2.activeImage][0];}function _resize_container_image_box(_c,_d){var _e=$("#lightbox-container-image-box").width();var _f=$("#lightbox-container-image-box").height();var _10=(_c+(_2.containerBorderSize*2));var _11=(_d+(_2.containerBorderSize*2));var _12=_e-_10;var _13=_f-_11;$("#lightbox-container-image-box").animate({width:_10,height:_11},_2.containerResizeSpeed,function(){_show_image();});if((_12==0)&&(_13==0)){if($.browser.msie){___pause(250);}else{___pause(100);}}$("#lightbox-container-image-data-box").css({width:_10});}function _show_image(){$("#lightbox-loading").hide();$("#lightbox-image").fadeIn(function(){_show_image_data();_set_navigation();});_preload_neighbor_images();}function _show_image_data(){$("#lightbox-container-image-data-box").show();$("#lightbox-container-image-details-caption").hide();if(_2.imageArray[_2.activeImage][1]){$("#lightbox-container-image-details-caption").html(_2.imageArray[_2.activeImage][1]).show();}if(_2.imageArray.length>1){if(_2.imageArray[_2.activeImage][2]){$("#lightbox-container-image-details-currentNumber").html(_2.txtImage+" "+(_2.activeImage+1)+" "+_2.txtOf+" "+_2.imageArray.length+" "+_2.imageArray[_2.activeImage][2]).show();}else{$("#lightbox-container-image-details-currentNumber").html(_2.txtImage+" "+(_2.activeImage+1)+" "+_2.txtOf+" "+_2.imageArray.length).show();}}}function _set_navigation(){$("#lightbox-nav").show();if(_2.activeImage!=0){$("#lightbox-container-image-details-nav-btnPrev").unbind().show().bind("click",function(){_2.activeImage=_2.activeImage-1;_set_image_to_view();return false;});}if(_2.activeImage!=(_2.imageArray.length-1)){$("#lightbox-container-image-details-nav-btnNext").unbind().show().bind("click",function(){_2.activeImage=_2.activeImage+1;_set_image_to_view();return false;});}_enable_keyboard_navigation();}function _enable_keyboard_navigation(){$(document).keydown(function(_14){_keyboard_action(_14);});}function _disable_keyboard_navigation(){$(document).unbind();}function _keyboard_action(_15){if(_15==null){keycode=event.keyCode;escapeKey=27;}else{keycode=_15.keyCode;escapeKey=_15.DOM_VK_ESCAPE;}key=String.fromCharCode(keycode).toLowerCase();if((key==_2.keyToClose)||(key=="x")||(keycode==escapeKey)){_finish();}if((key==_2.keyToPrev)||(keycode==37)){if(_2.activeImage!=0){_2.activeImage=_2.activeImage-1;_set_image_to_view();_disable_keyboard_navigation();}}if((key==_2.keyToNext)||(keycode==39)){if(_2.activeImage!=(_2.imageArray.length-1)){_2.activeImage=_2.activeImage+1;_set_image_to_view();_disable_keyboard_navigation();}}}function _preload_neighbor_images(){if((_2.imageArray.length-1)>_2.activeImage){objNext=new Image();objNext.src=_2.imageArray[_2.activeImage+1][0];}if(_2.activeImage>0){objPrev=new Image();objPrev.src=_2.imageArray[_2.activeImage-1][0];}}function _finish(){$("#jquery-lightbox").remove();$("#jquery-overlay").fadeOut(function(){$("#jquery-overlay").remove();});$("embed, object, select").css({"visibility":"visible"});}function ___getPageSize(){var _16,yScroll;if(window.innerHeight&&window.scrollMaxY){_16=window.innerWidth+window.scrollMaxX;yScroll=window.innerHeight+window.scrollMaxY;}else{if(document.body.scrollHeight>document.body.offsetHeight){_16=document.body.scrollWidth;yScroll=document.body.scrollHeight;}else{_16=document.body.offsetWidth;yScroll=document.body.offsetHeight;}}var _17,windowHeight;if(self.innerHeight){if(document.documentElement.clientWidth){_17=document.documentElement.clientWidth;}else{_17=self.innerWidth;}windowHeight=self.innerHeight;}else{if(document.documentElement&&document.documentElement.clientHeight){_17=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}else{if(document.body){_17=document.body.clientWidth;windowHeight=document.body.clientHeight;}}}if(yScroll<windowHeight){pageHeight=windowHeight;}else{pageHeight=yScroll;}if(_16<_17){pageWidth=_16;}else{pageWidth=_17;}arrayPageSize=new Array(pageWidth,pageHeight,_17,windowHeight);return arrayPageSize;}function ___getPageScroll(){var _18,yScroll;if(self.pageYOffset){yScroll=self.pageYOffset;_18=self.pageXOffset;}else{if(document.documentElement&&document.documentElement.scrollTop){yScroll=document.documentElement.scrollTop;_18=document.documentElement.scrollLeft;}else{if(document.body){yScroll=document.body.scrollTop;_18=document.body.scrollLeft;}}}arrayPageScroll=new Array(_18,yScroll);return arrayPageScroll;}function ___pause(ms){var _1a=new Date();curDate=null;do{var _1b=new Date();}while(_1b-_1a<ms);}return this.unbind("click").click(_initialize);};})(jQuery);