(function(F){F.facebox=function(M,L){F.facebox.loading();if(M.ajax){G(M.ajax)}else{if(M.image){C(M.image)}else{if(M.div){J(M.div)}else{if(F.isFunction(M)){M.call(F)}else{F.facebox.reveal(M,L)}}}}};F.extend(F.facebox,{settings:{opacity:0.6,overlay:true,loadingImage:"images/i/loading.gif",closeImage:"images/i/closelabel.gif",imageTypes:["png","jpg","jpeg","gif"],faceboxHtml:'    <div id="facebox" style="display:none;">       <div class="popup">         <table>           <tbody>             <tr>               <td class="tl"/><td class="b"/><td class="tr"/>             </tr>             <tr>               <td class="b"/>               <td class="body">                 <div class="content">                 </div>                 <div class="footer">                   <a href="#" class="close">                     <img src="../images/i/closelabel.gif" title="close" class="close_image" />                   </a>                 </div>               </td>               <td class="b"/>             </tr>             <tr>               <td class="bl"/><td class="b"/><td class="br"/>             </tr>           </tbody>         </table>       </div>     </div>'},loading:function(){K();if(F("#facebox .loading").length==1){return true}E();F("#facebox .content").empty();F("#facebox .body").children().hide().end().append('<div class="loading"><img src="'+F.facebox.settings.loadingImage+'"/></div>');F("#facebox").css({top:H()[1]+(I()/10),left:385.5}).show();F(document).bind("keydown.facebox",function(L){if(L.keyCode==27){F.facebox.close()}return true});F(document).trigger("loading.facebox")},reveal:function(M,L){F(document).trigger("beforeReveal.facebox");if(L){F("#facebox .content").addClass(L)}F("#facebox .content").append(M);F("#facebox .loading").remove();F("#facebox .body").children().fadeIn("normal");F("#facebox").css("left",F(window).width()/2-(F("#facebox table").width()/2));F(document).trigger("reveal.facebox").trigger("afterReveal.facebox")},close:function(){F(document).trigger("close.facebox");return false}});F.fn.facebox=function(L){K(L);function M(){F.facebox.loading(true);var N=this.rel.match(/facebox\[?\.(\w+)\]?/);if(N){N=N[1]}J(this.href,N);return false}return this.click(M)};function K(N){if(F.facebox.settings.inited){return true}else{F.facebox.settings.inited=true}F(document).trigger("init.facebox");D();var L=F.facebox.settings.imageTypes.join("|");F.facebox.settings.imageTypesRegexp=new RegExp("."+L+"$","i");if(N){F.extend(F.facebox.settings,N)}F("body").append(F.facebox.settings.faceboxHtml);var M=[new Image(),new Image()];M[0].src=F.facebox.settings.closeImage;M[1].src=F.facebox.settings.loadingImage;F("#facebox").find(".b:first, .bl, .br, .tl, .tr").each(function(){M.push(new Image());M.slice(-1).src=F(this).css("background-image").replace(/url\((.+)\)/,"$1")});F("#facebox .close").click(F.facebox.close);F("#facebox .close_image").attr("src",F.facebox.settings.closeImage)}function H(){var M,L;if(self.pageYOffset){L=self.pageYOffset;M=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){L=document.documentElement.scrollTop;M=document.documentElement.scrollLeft}else{if(document.body){L=document.body.scrollTop;M=document.body.scrollLeft}}}return new Array(M,L)}function I(){var L;if(self.innerHeight){L=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){L=document.documentElement.clientHeight}else{if(document.body){L=document.body.clientHeight}}}return L}function D(){var L=F.facebox.settings;L.loadingImage=L.loading_image||L.loadingImage;L.closeImage=L.close_image||L.closeImage;L.imageTypes=L.image_types||L.imageTypes;L.faceboxHtml=L.facebox_html||L.faceboxHtml}function J(M,L){if(M.match(/#/)){var N=window.location.href.split("#")[0];var O=M.replace(N,"");F.facebox.reveal(F(O).clone().show(),L)}else{if(M.match(F.facebox.settings.imageTypesRegexp)){C(M,L)}else{G(M,L)}}}function C(M,L){var N=new Image();N.onload=function(){F.facebox.reveal('<div class="image"><img src="'+N.src+'" /></div>',L)};N.src=M}function G(M,L){F.get(M,function(N){F.facebox.reveal(N,L)})}function B(){return F.facebox.settings.overlay==false||F.facebox.settings.opacity===null}function E(){if(B()){return }if(F("facebox_overlay").length==0){F("body").append('<div id="facebox_overlay" class="facebox_hide"></div>')}F("#facebox_overlay").hide().addClass("facebox_overlayBG").css("opacity",F.facebox.settings.opacity).click(function(){F(document).trigger("close.facebox")}).fadeIn(200);return false}function A(){if(B()){return }F("#facebox_overlay").fadeOut(200,function(){F("#facebox_overlay").removeClass("facebox_overlayBG");F("#facebox_overlay").addClass("facebox_hide");F("#facebox_overlay").remove()});return false}F(document).bind("close.facebox",function(){F(document).unbind("keydown.facebox");F("#facebox").fadeOut(function(){F("#facebox .content").removeClass().addClass("content");A();F("#facebox .loading").remove()})})})(jQuery);var $alreadyRegisteredLink="login.html";var $mightJoinLink="register.html";var $notRegisteredLink="register.html";var mycarousel_itemList=[{url:"images/masthead/1.png",title:"1"},{url:"images/masthead/2.png",title:"2"},{url:"images/masthead/3.png",title:"1"},{url:"images/masthead/4.png",title:"2"},{url:"images/masthead/5.png",title:"1"},{url:"images/masthead/6.png",title:"2"},{url:"images/masthead/7.png",title:"1"},{url:"images/masthead/8.png",title:"2"},{url:"images/masthead/9.png",title:"1"},{url:"images/masthead/10.png",title:"2"},{url:"images/masthead/11.png",title:"1"},{url:"images/masthead/12.png",title:"2"},{url:"images/masthead/13.png",title:"1"},{url:"images/masthead/14.png",title:"2"},{url:"images/masthead/15.png",title:"1"},{url:"images/masthead/16.png",title:"2"},{url:"images/masthead/17.png",title:"2"},{url:"images/masthead/18.png",title:"2"},{url:"images/masthead/19.png",title:"2"},{url:"images/masthead/20.png",title:"2"},{url:"images/masthead/21.png",title:"2"},{url:"images/masthead/22.png",title:"2"},{url:"images/masthead/23.png",title:"2"}];function mycarousel_itemVisibleInCallback(F,D,C,E,B){var A=F.index(C,mycarousel_itemList.length);F.add(C,mycarousel_getItemHTML(mycarousel_itemList[A-1]))}function mycarousel_itemVisibleOutCallback(E,C,B,D,A){E.remove(B)}function mycarousel_getItemHTML(A){return'<img src="'+A.url+'" width="144" height="108" alt="'+A.title+'" />'}jQuery.easing.EaseOutQuad=function(C,B,A,E,D){return -E*(B/=D)*(B-2)+A};function createCookie(C,D,E){if(E){var B=new Date();B.setTime(B.getTime()+(E*24*60*60*1000));var A="; expires="+B.toGMTString()}else{var A=""}document.cookie=C+"="+D+A+"; path=/"}function readCookie(B){var D=B+"=";var A=document.cookie.split(";");for(var C=0;C<A.length;C++){var E=A[C];while(E.charAt(0)==" "){E=E.substring(1,E.length)}if(E.indexOf(D)==0){return E.substring(D.length,E.length)}}return null}function eraseCookie(A){createCookie(A,"",-1)}function create_popup(){$("body").append('<div id="overlaybg"></div>');$("#overlaybg").fadeIn("slow");var A='<div id="popup">';A+='<table><tr><td><img src="./images/hello.png" width=410 height=457 alt="Hello" /></td>';A+='<td><div class="alreadyRegistered"><a href="#alreadyregistered"></a></div>';A+='<div class="notRegistered"><a href="#notRegistered" /></a></div>';A+='<div class="mightRegister"><a href="#mightRegister"/></a></div>';A+="</td></tr></table></div>";$("body").append(A);$pop=$("#popup");$pop.css("position","fixed");$pop.css("top",($(window).height()-$pop.height())/2+"px");$pop.css("left",($(window).width()-$pop.width())/2+"px");$(".alreadyRegistered").hover(function(){$(this).css("background","url(./images/already-registered-x.png)")},function(){$(this).css("background","url(./images/already-registered.png)")}).css("background","url(./images/already-registered.png)").click(function(){$("#popup","#overlaybg").fadeOut();window.open($alreadyRegisteredLink,"_self")});$(".mightRegister").hover(function(){$(this).css("background","url(./images/might-join-x.png)")},function(){$(this).css("background","url(./images/might-join.png)")}).css("background","url(./images/might-join.png)").click(function(){$("#popup","#overlaybg").fadeOut();window.open($mightJoinLink,"_self")});$(".notRegistered").hover(function(){$(this).css("background","url(./images/not-registered-x.png)")},function(){$(this).css("background","url(./images/not-registered.png)")}).css("background","url(./images/not-registered.png)").click(function(){$("#popup","#overlaybg").fadeOut();window.open($notRegisteredLink,"_self")});$pop.fadeIn("fast")}function isset(A){if(typeof (window[A])!="undefined"){return true}else{return false}}(function(B){var A=[];B.preLoadImages=function(){var E=arguments.length;for(var D=E;D--;){var C=document.createElement("img");C.src=arguments[D];A.push(C)}}})(jQuery);var colorscheme;$(document).ready(function(){var D=0;var B=0;try{B=$("#masthead").offset().top}catch(C){}var A=0;if($("#rightSidebar").length!=0){$("#mainContent, #rightSidebar").each(function(E){A=$(this).offset().top;if(A>D){D=A}}).css("height",$("#footer").offset().top-D+B-65+"px")}try{if(!isset(popupNeeded)){create_popup()}}catch(C){}try{$("a[rel*=facebox]").facebox()}catch(C){}});
