var OSName="Unknown OS";
if(navigator.appVersion.indexOf("Win")!=-1){OSName="Windows"
}if(navigator.appVersion.indexOf("Mac")!=-1){OSName="MacOS"
}if(navigator.appVersion.indexOf("X11")!=-1){OSName="UNIX"
}if(navigator.appVersion.indexOf("Linux")!=-1){OSName="Linux"
}Array.prototype.inArray=function(B){var A;
for(A=0;
A<this.length;
A++){if(this[A]===B){return true
}}return false
};
function addEvent(C,B,A){if(C.addEventListener){C.addEventListener(B,A,false);
EventCache.add(C,B,A)
}else{if(C.attachEvent){C["e"+B+A]=A;
C[B+A]=function(){C["e"+B+A](window.event)
};
C.attachEvent("on"+B,C[B+A]);
EventCache.add(C,B,A)
}else{C["on"+B]=C["e"+B+A]
}}}var EventCache=function(){var A=[];
return{listEvents:A,add:function(B,D,C){A.push(arguments)
},flush:function(){var B,C;
for(B=A.length-1;
B>=0;
B=B-1){C=A[B];
if(C[0].removeEventListener){C[0].removeEventListener(C[1],C[2],C[3])
}if(C[1].substring(0,2)!="on"){C[1]="on"+C[1]
}if(C[0].detachEvent){C[0].detachEvent(C[1],C[2])
}C[0][C[1]]=null
}}}
}();
addEvent(window,"unload",EventCache.flush);
function focusForm(){if(document.forms){for(var C=0;
C<document.forms.length;
C++){if(document.forms[C]){var B=document.forms[C].elements;
if(B&&B.length>0){for(var A=0;
A<B.length;
A++){var D=B[A];
if(D.type=="text"&&D.id!="CNR_Search"){D.focus();
D.select();
return 
}}}}}}}addEvent(window,"load",focusForm);
function openPopupWindow(B,A){newwindow=window.open(B,A,"left=100, top=100,resizable=yes,scrollbars=no,toolbar=no,status=no");
if(window.focus){newwindow.focus()
}}function openPopupWindow(C,B,D,A){newwindow=window.open(C,B,"left=100,top=100,resizable=yes,scrollbars=yes,toolbar=no,status=no, width="+D+", height="+A);
if(window.focus){newwindow.focus()
}}function toggleDisplay(A){var B=$(A);
if(B!==null){if(B.style.display=="none"){Effect.BlindDown(B,{duration:0.25})
}else{Effect.BlindUp(B,{duration:0.25})
}}}function toggleImageSrc(E,B,A,D){var C=$(B);
if(C!==null){if(C.style.display=="none"){E.src=D
}else{E.src=A
}}}function getWindowInnerHeight(){return window.innerHeight?window.innerHeight:document.body.clientHeight
}var minScrollTop=-1;
var prevScrollTop=-1;
function checkScroll(){var A=$("scrollmenu");
if(A!==null){minScrollTop=Position.cumulativeOffset(A).top;
addEvent(window,"scroll",scrolltop)
}}addEvent(window,"load",checkScroll);
function scrolltop(){var B=$("scrollmenu");
if(B!==null){var A=document.viewport.getScrollOffset().top>minScrollTop?document.viewport.getScrollOffset().top:minScrollTop;
var C=Element.getHeight(B);
if(getWindowInnerHeight()>C){B.style.top=A+"px"
}else{if(A>prevScrollTop&&A>(C-getWindowInnerHeight())){B.style.top=(A-(C-getWindowInnerHeight()))+"px"
}else{if(A<prevScrollTop){if(Element.viewportOffset(B).top>0){B.style.top=A+"px"
}}}}prevScrollTop=A
}}var requireBookmark=false;
if(!CNR){var CNR={}
}CNR.ClickSimulator=Class.create();
CNR.ClickSimulator.prototype={initialize:function(A){this._target=A
},cnrKeyDownHandler:function(B){try{if(B.keyCode==13){B.returnValue=false;
B.cancel=true;
$(this._target).click()
}}catch(A){}}};
CNR.FlashHider=Class.create();
CNR.FlashHider.prototype={initialize:function(A){this.divClassName="coverDiv";
this.element=A;
this.coverDiv=null;
this.content=null;
this._element=null
},show:function(){if(this._shouldCover()){if(!this.coverDiv){this._initCoverDiv()
}if(Element.visible(this._element)){this.coverDiv.style.display="block";
Element.hide(this._element)
}}},hide:function(){if(this._shouldCover()){if(this.coverDiv&&Element.visible(this.coverDiv)){Element.hide(this.coverDiv);
Element.show(this._element)
}}},_initCoverDiv:function(){if(this._shouldCover()){this._element=$(this.element);
this.coverDiv=new Element("div",{id:"coverDiv",position:"absolute",display:"none","class":this.divClassName});
Position.clone(this._element,this.coverDiv);
$(this._element.parentNode).appendChild(this.coverDiv)
}},_shouldCover:function(){return $(this.element)!=null&&OSName!="Windows"&&OSName!="MacOS"
}};
CNR.Truncator=Class.create();
CNR.Truncator.prototype={initialize:function(B,A){this._target=B;
this._width=A
},truncate:function(){var B=this._target;
var A=B.innerHTML;
B.innerHTML="<span>"+A+"</span>";
B=B.down();
while(A.length>0&&B.getWidth()>=this._width){A=A.substr(0,A.length-1);
B.innerHTML=A+"&#x2026;"
}}};
var LazyLoader={};
LazyLoader.timer={};
LazyLoader.scripts=[];
LazyLoader.load=function(B,F){var E=null;
var C=null;
try{if($A(LazyLoader.scripts).indexOf(B)==-1){LazyLoader.scripts.push(B);
var A=document.createElement("script");
A.src=B;
A.type="text/javascript";
$$("head")[0].appendChild(A);
if(F){A.onreadystatechange=function(){if(A.readyState=="loaded"||A.readyState=="complete"){F()
}};
A.onload=function(){F();
return 
};
if((Prototype.Browser.WebKit&&!navigator.userAgent.match(/Version\/3/))||Prototype.Browser.Opera){LazyLoader.timer[B]=setInterval(function(){if(/loaded|complete/.test(document.readyState)){clearInterval(LazyLoader.timer[B]);
F()
}},10)
}}}else{if(F){F()
}}}catch(D){alert(D)
}};