/*	SWFObject v2.2 <http://code.google.com/p/swfobject/>
	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();

/**
 * OmniBox
 * OmniTools v1.1.4
 *
 * Copyright 2008-2010 NOTOsoft Web Designs Inc.
 * Licensed under the GPLv3 license
 *
 * You should have received a copy of the GNU General Public License
 * along with this file.  If not, see <http://www.gnu.org/licenses/>.
 */
(function(a){function f(){a("#"+b.BOX_OVERLAY_ID+", #"+b.BOX_BORDER_ID).remove();a(document.createElement("div")).attr({id:b.BOX_OVERLAY_ID}).appendTo(a("body"));var c=a(document.createElement("div")).attr({id:b.BOX_BORDER_ID}).appendTo(a("body"));a(document.createElement("div")).attr({id:b.BOX_TOPSPACE_ID}).appendTo(c);a(document.createElement("div")).attr({id:b.BOX_CONTAINER_ID,className:"loading",innerHTML:'<div id="lbLoadMessage"></div>'}).appendTo(c);a(document.createElement("div")).attr({id:b.BOX_BOTTOMSPACE_ID}).appendTo(c)}
function i(c){a.ajax({type:"POST",url:c,data:b.options.params,success:j,error:function(){throw Error("Ajax request failed");}})}function j(c){var d=a(document.createElement("div")).attr({id:b.BOX_CONTENTAREA_ID}).prependTo(a("#"+b.BOX_CONTAINER_ID)),k=a(document.createElement("div")).attr({id:"closeBox"}).appendTo(d);a(document.createElement("div")).attr({id:"closeBoxIcon",title:"Close this window"}).click(function(){a.OmniBox.deactivate()}).appendTo(k);d.append(c);a("#"+b.BOX_CONTAINER_ID).attr({className:"done"});
g();b.options.boxload()}function g(){var c=a("#"+b.BOX_BORDER_ID).height()+150,d=a(window).width();if(c<a(window).height())a("#"+b.BOX_OVERLAY_ID).css({width:d,height:"130%"});else if(c<a(document).height()&&c>a(window).height()){a("#"+b.BOX_OVERLAY_ID).css({width:d,height:c});a("html").css({overflow:"auto"});if(document.getElementById(b.BOX_OVERLAY_ID).scrollHeight!=c){a("#"+b.BOX_OVERLAY_ID).height(a(document).height());e("100%","auto")}}else{e("100%","auto");a("#"+b.BOX_OVERLAY_ID).css({width:d,
height:c})}h()}function h(){a("#"+b.BOX_BORDER_ID).css("left",(a(window).width()-a("#"+b.BOX_BORDER_ID).width())/2+a(window).scrollLeft()+"px")}function e(c,d){a("body").css({height:c,overflow:d});a("html").css({height:c,overflow:d})}var b={BOX_OVERLAY_ID:"omniBoxOverlay",BOX_CONTAINER_ID:"omniBox",BOX_BORDER_ID:"omniBoxBorder",BOX_TOPSPACE_ID:"omniBoxTopSpace",BOX_BOTTOMSPACE_ID:"omniBoxBottomSpace",BOX_CONTENTAREA_ID:"lbContent",b_LightboxActive:false,yPos:0,options:{}};a(window).ready(function(){f();
a(window).resize(function(){b.b_LightboxActive&&g()})});a.OmniBox={activate:function(c,d){if(c)if(b.b_LightboxActive)alert("Please refresh the this page to use this function");else{b.b_LightboxActive=true;b.options=a.extend({},{params:{},boxcss:{},bordercss:{},overlaycss:{},boxload:function(){},boxunload:function(){}},!d?{}:d);a("#"+b.BOX_OVERLAY_ID).css({opacity:0.8});a("#"+b.BOX_OVERLAY_ID).css(b.options.overlaycss);a("#"+b.BOX_BORDER_ID).css(b.options.bordercss);a("#"+b.BOX_CONTAINER_ID).css(b.options.boxcss);
if(self.pageYOffset)b.yPos=self.pageYOffset;else if(document.documentElement&&document.documentElement.scrollTop)b.yPos=document.documentElement.scrollTop;else if(document.body)b.yPos=document.body.scrollTop;e("100%","hidden");window.scrollTo(0,0);h();a("#"+b.BOX_OVERLAY_ID).fadeIn("slow");a("#"+b.BOX_BORDER_ID).fadeIn("slow");i(c);a("#"+b.BOX_CONTAINER_ID).attr({className:"loading"});a("#"+b.BOX_OVERLAY_ID).focus()}else throw Error("OmniBox param 1 must be defined!");},deactivate:function(){a("#"+
b.BOX_BORDER_ID).fadeOut("slow",function(){b.b_LightboxActive=false;f();e("100%","visible");window.scrollTo(0,b.yPos)});a("#"+b.BOX_OVERLAY_ID).fadeOut("slow");b.options.boxunload()}}})(jQuery);

/**
 * OmniFlash
 * OmniTools v1.1.4
 *
 * Copyright 2008-2010 NOTOsoft Web Designs Inc.
 * Licensed under the GPLv3 license
 *
 * You should have received a copy of the GNU General Public License
 * along with this file.  If not, see <http://www.gnu.org/licenses/>.
 */
(function(b){function i(c){c=b(document.createElement("div")).attr("id","omniFlashInstaller").css({font:"18px Arial, Verdana, sans-serif",height:"130px",width:"240px",paddingTop:"35px",margin:"0px auto"}).appendTo(b("#"+c));b(document.createElement("div")).click(function(){window.open("http://get.adobe.com/flashplayer")}).css({cursor:"pointer"}).appendTo(c);b(document.createElement("p")).html("Install Adobe Flash Player").appendTo(c)}var a={flashvars:null,params:null,attributes:null,classid:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
flashUpdater:"resources/media/omniflashinstaller.swf",swfcallback:function(){}};b.OmniFlash={embedSWF:function(c,e,f,d,g,h){swfobject.hasFlashPlayerVersion(g)||b(document).ready(function(){i(e)});b.extend(a,!h?a:h);swfobject.embedSWF(c,e,f,d,g,a.flashUpdater,a.flashvars,a.params,a.attributes,a.swfcallback)},registerObject:function(c,e,f,d){b.extend(a,!d?a:d);swfobject.registerObject(c,f,a.flashUpdater)}}})(jQuery);

/**
 * OmniGallery
 * OmniTools v1.1.4
 *
 * Copyright 2008-2010 NOTOsoft Web Designs Inc.
 * Licensed under the GPLv3 license
 *
 * You should have received a copy of the GNU General Public License
 * along with this file.  If not, see <http://www.gnu.org/licenses/>.
 */
(function(c){function l(){c("."+a.GAL_PORTRAITBOX_CLASSID+", ."+a.GAL_IMAGE_CLASSID).live("click",function(b){b.stopPropagation()});c("body:not(."+a.GAL_IMAGE_CLASSID+")").live("click",function(){j()})}function m(b){var g=c(document.createElement("div")).attr({className:a.GAL_OUTERCONTAINER_CLASSID}).appendTo(b);c(document.createElement("div")).attr({id:a.GAL_CONTAINER_ID+a.galCount,className:a.GAL_CONTAINER_ID}).appendTo(g);if(a.numOfPages>1){c(document.createElement("div")).attr({className:a.GAL_ARROW_LEFT_CLASSID}).css({top:b.innerHeight()/
2-d.imgMargin,left:5}).hide().click(function(){k(c(this),"LEFT")}).prependTo(g);c(document.createElement("div")).attr({className:a.GAL_ARROW_RIGHT_CLASSID}).css({top:b.innerHeight()/2-d.imgMargin,left:b.width()-d.imgMargin-5}).click(function(){k(c(this),"RIGHT")}).prependTo(g)}b=c(document.createElement("div")).attr({className:a.GAL_PORTRAITBOX_CLASSID}).appendTo(b).draggable({handle:"div"});b=c(document.createElement("div")).attr({className:a.GAL_PORTRAITBOX_HANDLE_CLASSID,title:"Drag me!"}).appendTo(b);
c(document.createElement("div")).attr({className:a.GAL_PORTRAITBOX_HANDLE_MOVEIMG_CLASSID}).appendTo(b);c(document.createElement("div")).attr({className:a.GAL_PORTRAITBOX_HANDLE_CLOSEIMG_CLASSID,title:"Close Image"}).appendTo(b).click(function(){j()})}function n(b,g){var e=parseInt(g-1,10),f="#"+a.GAL_CONTAINER_ID+a.galCount;e=c(document.createElement("div")).attr({className:a.GAL_IMAGE_CLASSID}).appendTo(c(f+" > div:eq("+e+")")).css({margin:d.imgMargin+"px"});var h=d.portraitBoxWidth,i=d.portraitBoxHeight;
c(document.createElement("img")).attr({src:d.imgsFolder+b.src,alt:""}).height(a.imageHeight).width(a.imageWidth).click(function(){o(c(this),h,i,b)}).appendTo(e)}function o(b,g,e,f){if(!a.b_InAnimation){a.b_InAnimation=true;j();var h=b.parent().parent().parent().parent().siblings("."+a.GAL_PORTRAITBOX_CLASSID),i=parseFloat(c("."+a.GAL_PORTRAITBOX_HANDLE_CLASSID).css("height"));h.find("img:not(."+a.GAL_PORTRAITBOX_HANDLE_CLASSID+" img)").remove();h.css({top:b.offset().top,left:b.offset().left,width:b.width(),
height:b.height()});b=c(document.createElement("img")).attr({src:d.imgsFolder+f.src,alt:""}).appendTo(h).width(g).height(e-i);f.href&&b.click(function(){window.open(f.href)}).hover(function(){c(this).css("cursor","pointer")});h.show();h.animate({width:g+"px",height:e+"px",top:(c(window).height()-e)/2+c(window).scrollTop()+"px",left:(c(window).width()-g)/2+c(window).scrollLeft()+"px",opacity:1},700,function(){a.b_InAnimation=false})}}function k(b,g){var e=b.parent().parent().find("."+a.GAL_CONTAINER_ID),
f=e.find("."+a.GAL_ACTIVE_PAGE_CLASSID);switch(g){case "LEFT":f.prev().attr("class",a.GAL_ACTIVE_PAGE_CLASSID);f.attr("class",a.GAL_INACTIVE_PAGE_CLASSID);e.animate({left:"+="+parseInt(a.pageWidth,10)},1E3);b.parent().parent().find("."+a.GAL_ARROW_RIGHT_CLASSID).show();f.prev().prev().length==0&&b.parent().parent().find("."+a.GAL_ARROW_LEFT_CLASSID).hide();break;case "RIGHT":f.next().attr("class",a.GAL_ACTIVE_PAGE_CLASSID);f.attr("class",a.GAL_INACTIVE_PAGE_CLASSID);e.animate({left:"-="+parseInt(a.pageWidth,
10)},1E3);b.parent().parent().find("."+a.GAL_ARROW_LEFT_CLASSID).show();f.next().next().length==0&&b.parent().parent().find("."+a.GAL_ARROW_RIGHT_CLASSID).hide();break;default:throw Error("OmniGallery::changePage parameter 2 can only be 'LEFT', or 'RIGHT'");}}function j(){c("."+a.GAL_PORTRAITBOX_CLASSID).height(0).width(0).hide()}c(function(){l()});var a={GAL_OUTERCONTAINER_CLASSID:"omniGalleryContainer",GAL_CONTAINER_ID:"omniGallery",GAL_ARROW_LEFT_CLASSID:"omniGalleryLeftArrow",GAL_ARROW_RIGHT_CLASSID:"omniGalleryRightArrow",
GAL_PAGE_CLASSID:"omniGalleryPage",GAL_IMAGE_CLASSID:"omniGalleryImage",GAL_ACTIVE_PAGE_CLASSID:"omniGalleryActivePage",GAL_INACTIVE_PAGE_CLASSID:"omniGalleryInactivePage",GAL_PORTRAITBOX_CLASSID:"omniGalleryPortraitBox",GAL_PORTRAITBOX_HANDLE_CLASSID:"omniGalleryPortraitBoxHandle",GAL_PORTRAITBOX_HANDLE_MOVEIMG_CLASSID:"omniGalleryPortraitBoxHandleMoveImg",GAL_PORTRAITBOX_HANDLE_CLOSEIMG_CLASSID:"omniGalleryPortraitBoxHandleCloseImg",GAL_PAGE_MARGIN_TOTAL:40,numOfPages:1,imagesPerPage:5,pageWidth:0,
imageWidth:0,imageHeight:0,galCount:1,visiblePage:1,b_InAnimation:false},d={rows:1,cols:5,imgMargin:10,imgsFolder:"resources/images/",portraitBoxWidth:400,portraitBoxHeight:320};c.OmniGallery={create:function(b,g,e){if(b.exists("OmniGallery.create")&&c.isArray(g)){d=c.extend(d,!e||typeof e!="object"?{}:e);a.imagesPerPage=d.cols*d.rows;a.numOfPages=Math.ceil(g.length/a.imagesPerPage);a.pageWidth=b.width();a.imageWidth=(b.width()-a.GAL_PAGE_MARGIN_TOTAL-d.cols*d.imgMargin*2)/d.cols;a.imageHeight=(b.height()-
d.rows*d.imgMargin*2)/d.rows;m(b);e=0;for(var f=1;f<=a.numOfPages;f++){var h=f;c(document.createElement("div")).attr({className:h==1?a.GAL_ACTIVE_PAGE_CLASSID:a.GAL_INACTIVE_PAGE_CLASSID}).appendTo(c("#"+a.GAL_CONTAINER_ID+a.galCount)).width(a.pageWidth-a.GAL_PAGE_MARGIN_TOTAL);for(h=1;h<=d.rows;h++)for(var i=1;i<=d.cols;i++)if(typeof g[e]=="object"){n(g[e],f);e++}}b.find("#"+a.GAL_PAGE_CLASSID+a.visiblePage).show();a.galCount++}else throw Error("The OmniGallery container must exist, and the images parameter must be an array.");
}}})(jQuery);

/**
 * OmniHint
 * OmniTools v1.1.4
 *
 * Copyright 2008-2010 NOTOsoft Web Designs Inc.
 * Licensed under the GPLv3 license
 *
 * You should have received a copy of the GNU General Public License
 * along with this file.  If not, see <http://www.gnu.org/licenses/>.
 */
(function(b){function k(){b("#"+a.HINT_CONTAINER_ID).remove();b(document.createElement("div")).attr("id",a.HINT_CONTAINER_ID).appendTo(b("body")).css({display:"none"});b("#"+a.HINT_CONTAINER_ID+" div").live("click",function(){b(a.textBoxObj).attr("value",b(this).text());g()}).live("mouseover",function(){f(b(this))}).live("mouseout",function(){f(b(this))});b(document).keyup(h);b(document).click(h);i()}function i(){if(a.textBoxObj&&!a.b_SpecialKeyPressed)a.eleValue=b(a.textBoxObj).attr("value");if(a.eleValue&&
a.eleValue!=a.previousValue&&!a.b_SpecialKeyPressed){a.previousValue=a.eleValue;a.params.OMNIHINT_VALUE=a.eleValue;b.ajax({type:"POST",url:a.ajaxPage,data:a.params,success:l,error:function(){throw Error("Ajax request failed");}})}setTimeout(function(){i()},500)}function h(c){c=!c?window.event:c;c=!c.target?c.srcElement:c.target;var d=a.textBoxObj;d&&b(c).attr("id")!=b(d).attr("id")&&g()}function l(c){b("#"+a.HINT_CONTAINER_ID).html(c).scrollTop(0);b("#"+a.HINT_CONTAINER_ID+" div").attr("class","hintNoHighlight");
a.minVisibleElement=1;a.maxVisibleElement=10;a.position=0;c=b("#"+a.HINT_CONTAINER_ID+" div").length;if(c>0)if(c<10&&b("#"+a.HINT_CONTAINER_ID).height()!==0)b("#"+a.HINT_CONTAINER_ID).height("auto");else b("#"+a.HINT_CONTAINER_ID).height()!=180&&b("#"+a.HINT_CONTAINER_ID).height("180")}function f(c){b(".hintHighlight").each(function(){b(this).removeClass("hintHighlight").addClass("hintNoHighlight")});b(c).addClass("hintHighlight").removeClass("hintNoHighlight")}function g(){if(a.containerVisibility==
"VISIBLE"){b("#"+a.HINT_CONTAINER_ID).hide();a.containerVisibility="NOT-VISIBLE";a.previousValue=null;a.textBoxObj=null;a.position=0;a.eleValue=null}}b(window).ready(function(){k()});var a={HINT_CONTAINER_ID:"omniHintContainer",textBoxObj:null,targetEle:null,eleValue:null,previousValue:null,position:0,currentResultElement:null,containerVisibility:"NOT-VISIBLE",b_SpecialKeyPressed:false,params:{},ajaxPage:"",minVisibleElement:1,maxVisibleElement:10};b.OmniHint={process:function(c,d,j){a.ajaxPage=!d?
a.ajaxPage:d;a.params=!j?a.params:j;if(typeof a.params!="object")throw Error("$.OmniHint.process param 3 must be an object. Type "+typeof a.params+" given.");if(typeof a.ajaxPage!="string")throw Error("$.OmniHint.process param 2 must be of type string. Type "+typeof a.ajaxPage+" given.");e=!c?window.event:c;a.targetEle=!e.target?e.srcElement:e.target;code=e.charCode?e.charCode:e.keyCode?e.keyCode:e.which?e.which:0;if(e.type=="keyup"||e.type=="keydown"){a.b_SpecialKeyPressed=false;if(code<13&&code!=
8||code>=14&&code<32||code>=33&&code<=46&&code!=38&&code!=40||code>=112&&code<=123)c=false;else{if(a.containerVisibility=="VISIBLE")switch(code){case 13:b(a.textBoxObj).val(b(a.currentResultElement).text());e.type=="keyup"&&g();a.b_SpecialKeyPressed=true;break;case 40:if(a.position===0&&b("#"+a.HINT_CONTAINER_ID+" div:first-child").length>0&&e.type=="keydown"){a.currentResultElement=b("#"+a.HINT_CONTAINER_ID+" div:first-child");a.position++;f(a.currentResultElement)}else if(b(a.currentResultElement).next().length>
0&&e.type=="keydown"){a.currentResultElement=b(a.currentResultElement).next();a.position++;f(a.currentResultElement);if(a.position>a.maxVisibleElement){b("#"+a.HINT_CONTAINER_ID).scrollTop(b("#"+a.HINT_CONTAINER_ID).scrollTop()+b(a.currentResultElement).outerHeight());a.maxVisibleElement+=1;a.minVisibleElement+=1}}a.b_SpecialKeyPressed=true;break;case 38:if(a.position!==0&&b(a.currentResultElement).prev().length>0&&e.type=="keydown"){a.currentResultElement=b(a.currentResultElement).prev();a.position--;
f(a.currentResultElement);if(a.position<a.minVisibleElement){b("#"+a.HINT_CONTAINER_ID).scrollTop(b("#"+a.HINT_CONTAINER_ID).scrollTop()-b(a.currentResultElement).outerHeight());a.maxVisibleElement-=1;a.minVisibleElement-=1}}a.b_SpecialKeyPressed=true;break;default:a.position=0}c=true}}else c=false;if(c&&!a.b_SpecialKeyPressed)if(b(a.targetEle).attr("value").length>0){if(a.containerVisibility=="NOT-VISIBLE"){a.minVisibleElement=1;a.maxVisibleElement=10;a.textBoxObj=a.targetEle;b(a.textBoxObj).outerWidth()!=
b("#"+a.HINT_CONTAINER_ID).outerWidth()&&b("#"+a.HINT_CONTAINER_ID).width(b(a.textBoxObj).outerWidth());c=b(a.textBoxObj).offset();d=b(a.textBoxObj).outerHeight();b("#"+a.HINT_CONTAINER_ID).css({left:c.left+"px",top:c.top+d+"px"});b("#"+a.HINT_CONTAINER_ID).html("").show();a.containerVisibility="VISIBLE";a.eleValue=null}}else g()}}})(jQuery);

/**
 * OmniMenu
 * OmniTools v1.1.4
 *
 * Copyright 2008-2010 NOTOsoft Web Designs Inc.
 * Licensed under the GPLv3 license
 *
 * You should have received a copy of the GNU General Public License
 * along with this file.  If not, see <http://www.gnu.org/licenses/>.
 */
(function(a){function h(){a("#"+d.MENU_BOX_ID+" div").live("mouseover",function(){a(this).fadeOut(100);a(this).fadeIn(300)});a(document.createElement("div")).attr("id",d.MENU_BOX_ID).css("display","none").mouseleave(function(c){c.relatedTarget!==b.hoverEle[0]?a.OmniMenu.hide():g()}).appendTo(a("body"))}function i(){var c=a(b.hoverEle).offset(),e=a(b.hoverEle).outerHeight();a("#"+d.MENU_BOX_ID).css({left:c.left+"px",top:c.top+e+"px"})}function j(){var c=a(document.createElement("div")).attr("id","OmniMenuDepth1").appendTo("#"+
d.MENU_BOX_ID);a.each(b.buttons,function(e,f){if(typeof f=="object")a.each(b.buttons,function(){});else typeof f=="string"&&a(document.createElement("div")).html(e).attr("class",d.MENU_ITEM).appendTo(c).click(function(){window.location=f})})}function g(){b.hoverEle.mouseleave(function(c){b.hoverEle.unbind("mouseleave");b.isVisible&&c.relatedTarget.id!=d.MENU_BOX_ID&&c.relatedTarget.className!=d.MENU_ITEM&&c.relatedTarget&&a.OmniMenu.hide()})}a(window).ready(function(){h()});var d={MENU_BOX_ID:"omniMenuContainer",
MENU_ITEM:"omniMenuItem"},b={hoverEle:null,buttons:null,isVisible:false};a.OmniMenu={show:function(c,e,f){if(!b.isVisible)if(a(c).exists()&&e&&typeof e=="object"){f&&typeof f=="object"&&a("#"+d.MENU_BOX_ID).css(f);a("#"+d.MENU_BOX_ID).html("");b.hoverEle=c;b.buttons=e;g();a("#"+d.MENU_BOX_ID).css("minWidth",b.hoverEle.outerWidth());j();i();a("#"+d.MENU_BOX_ID).show(0,function(){b.isVisible=true})}},hide:function(){b.isVisible&&a("#"+d.MENU_BOX_ID).hide(0,function(){b.hoverEle.unbind("mouseleave");
b.isVisible=false})}}})(jQuery);

/**
 * OmniPicker
 * OmniTools v1.1.4
 *
 * Copyright 2008-2010 NOTOsoft Web Designs Inc.
 * Licensed under the GPLv3 license
 *
 * You should have received a copy of the GNU General Public License
 * along with this file.  If not, see <http://www.gnu.org/licenses/>.
 */
(function(b){function i(){b("#"+a.PICKER_CONTAINER_ID).remove();b(document.createElement("div")).attr("id",a.PICKER_CONTAINER_ID).click(function(c){c.stopPropagation()}).appendTo(b("body"));b("body").click(function(){b.OmniPicker.hide()})}function h(){b.ajax({type:"POST",url:a.ajaxPickerFile,data:a.postParams,success:function(c){b("#"+a.PICKER_CONTAINER_ID).html(c).show()},error:function(){throw Error("Ajax request failed");}});a.b_PickerShowing=true}var a={PICKER_CONTAINER_ID:"omniPickerContainer",
b_PositionSet:false,b_PickerShowing:false,postParams:{},ajaxPickerFile:""};b(document).ready(function(){i()});b.OmniPicker={show:function(c,e,d){if(a.b_PickerShowing)b.OmniPicker.hide();else{d=!d?{}:d;a.ajaxPickerFile=!e||typeof e!="string"?"ajax/omnipicker.ajax.php":e;if(!c||!c.match(/^[0-9]{4}\/[0-9]{2}\/[0-9]{2}$/))throw Error("The picker date parameter must be in the form yyyy/mm/dd and must be a string");if(typeof d!="object")throw Error("$.OmniPicker.showCalendar() param 2 needs to be an object. Type "+
typeof d+" was passed");a.postParams={date:c,calBeginBox:b("#calBeginBox"),calEndBox:b("#calEndBox"),calType:"DEFAULT",eventType:"BEGIN"};b.extend(a.postParams,d);d=a.postParams.calBeginBox;delete a.postParams.calBeginBox;var f=a.postParams.calEndBox;delete a.postParams.calEndBox;if(d.length<=0||typeof d!="object"||a.postParams.eventType!="SINGLE"&&(f.length<=0||typeof f!="object"))throw Error("One or both of the text box elements passed to OmniPicker::show() is/are invalid (beginning: "+d.attr("id")+
") (ending: "+f.attr("id")+")");if(a.postParams.eventType=="BEGIN"||a.postParams.eventType=="SINGLE"){a.postParams.eventBoxID=d.attr("id");f.attr("value","CHOOSE END DATE")}else if(a.postParams.eventType=="END"){a.postParams.eventBoxID=f.attr("id");if(d.attr("value").match(/^[0-9]{2}\/[0-9]{2}\/[0-9]{4}$/)){a.postParams.earliestDate=d.attr("value");c=a.postParams.earliestDate.split("/");e=a.postParams.date.split("/");a.postParams.date=c[2]+"/"+c[0]+"/"+e[2]}else{alert("Please choose a beginning date first");
return}}else throw Error("The eventType parameter must be either BEGIN or END or SINGLE");c=a.postParams.eventType=="END"?f.offset():d.offset();e=a.postParams.eventType=="END"?f.outerHeight():d.outerHeight();d=a.postParams.eventType=="END"?f.outerWidth():d.outerWidth();f=c.left+d/2;var j=b(window).width()+b(window).scrollLeft(),k=b(window).height()+b(window).scrollTop(),g=c.left;e=c.top+e;if(j-c.left<b("#"+a.PICKER_CONTAINER_ID).outerWidth()){g=c.left-b("#"+a.PICKER_CONTAINER_ID).outerWidth()+d;if(g<
b("#"+a.PICKER_CONTAINER_ID).outerWidth())g=f-b("#"+a.PICKER_CONTAINER_ID).outerWidth()/2}if(k-c.top<b("#"+a.PICKER_CONTAINER_ID).outerHeight())e=c.top-b("#"+a.PICKER_CONTAINER_ID).outerHeight();b("#"+a.PICKER_CONTAINER_ID).css({left:g+"px",top:e+"px"}).draggable();a.b_PositionSet=true;h()}},hide:function(){a.b_PositionSet=false;a.b_PickerShowing=false;b("#"+a.PICKER_CONTAINER_ID).fadeOut("fast")},changeDate:function(c){a.postParams.date=c;h()}}})(jQuery);

/**
 * OmniTab
 * OmniTools v1.1.4
 *
 * Copyright 2008-2010 NOTOsoft Web Designs Inc.
 * Licensed under the GPLv3 license
 *
 * You should have received a copy of the GNU General Public License
 * along with this file.  If not, see <http://www.gnu.org/licenses/>.
 */
(function(a){function i(c){var e=null,d=null,f=null,g=a(document.createElement("ul")).attr("class",b.TAB_NAVBAR_ID);a(c).prepend(g);a(c).children("."+b.TAB_CONTENT_ID).each(function(){a(this).addClass(b.skinClass);f||(f=a(this));e=a(this).attr("title")?a(this).attr("title"):"UNDEFINED_TITLE";if(a(this).hasClass(b.TAB_INITTAB_ID))d=a(this);var j=a(this),k=a(document.createElement("li")).attr({id:"tab"+b.tabInc,className:b.skinClass}).appendTo(g);a(document.createElement("div")).attr({title:e,className:b.skinClass}).html(e).click(function(){h(j)}).appendTo(k);
a(this).removeAttr("title");b.tabInc++});d||(d=f);a(c).attr("class",b.TAB_CONTAINER_ID);h(d)}function l(c){a(c).siblings("."+b.TAB_CONTENT_ID).addClass(b.TAB_HIDDENTABS_ID);a(c).addClass(b.TAB_HIDDENTABS_ID);a(c).siblings("."+b.TAB_NAVBAR_ID).children().each(function(){a(this).attr("class",b.TAB_INACTIVETAB_ID)})}function h(c){l(c);a(c).removeClass(b.TAB_HIDDENTABS_ID);var e=a(c).prevAll("."+b.TAB_CONTENT_ID).length,d=0;a(c).siblings("."+b.TAB_NAVBAR_ID).children().each(function(){d==e&&a(this).attr("class",
b.TAB_ACTIVETAB_ID);d++})}a(window).ready(function(){a(".omniTabPreMarker").each(function(){i(a(this))})});var b={TAB_CONTAINER_ID:"omniTabContainer",TAB_NAVBAR_ID:"omniTabs",TAB_HIDDENTABS_ID:"hiddenTabContent",TAB_ACTIVETAB_ID:"activeTab",TAB_INACTIVETAB_ID:"inactiveTab",TAB_CONTENT_ID:"omniTabContent",TAB_INITTAB_ID:"INIT_OMNI_TAB",tabInc:0}})(jQuery);

/**
 * OmniTip
 * OmniTools v1.1.4
 *
 * Copyright 2008-2010 NOTOsoft Web Designs Inc.
 * Licensed under the GPLv3 license
 *
 * You should have received a copy of the GNU General Public License
 * along with this file.  If not, see <http://www.gnu.org/licenses/>.
 */
(function(a){function h(c){c.find("."+d.TIP_CONTENTAREA_CLASS).html(e.tipContent);c.fadeIn("fast")}a(document).ready(function(){});var d={TIP_CONTAINER_CLASS:"omniTipContainer",TIP_TOPSPACE_CLASS:"omniTipTopSpace",TIP_CONTENTAREA_CLASS:"omniTipContent",TIP_BOTTOMSPACE_CLASS:"omniTipBottomSpace"},e={tipContent:"OmniTip Content Goes Here"};a.OmniTip={show:function(c,f){if(c){var b=a(document.createElement("div")).attr("class",d.TIP_CONTAINER_CLASS).appendTo(a("body"));a(document.createElement("div")).attr("class",
d.TIP_TOPSPACE_CLASS).appendTo(b);a(document.createElement("div")).attr("class",d.TIP_CONTENTAREA_CLASS).appendTo(b);a(document.createElement("div")).attr("class",d.TIP_BOTTOMSPACE_CLASS).appendTo(b);b.siblings().mousemove(function(g){b.css({left:g.pageX+15+"px",top:g.pageY+"px"})});e=a.extend(e,!f||typeof f!="object"?{}:f);c.mouseout(function(){c.unbind("mouseout");b.siblings().unbind("mousemove");b.remove()});h(b)}else throw Error("Param one of OmniTip can not be empty");}}})(jQuery);
