var toploc=new String(top.location);$(function(){var a=0;$(".counter").each(function(){if($(this).hasClass("blog"))a=5E3;if($(this).hasClass("guestbook"))a=800;if($(this).hasClass("contact"))a=400;chars_left($(this).attr("id"),a,$(this).attr("id").replace(/\D/g,""))})});var over=false;
function chars_left(a,c,f){if($("#"+a).length>0){var e=$("#"+a).val().length;$("#"+a).css("border-left-color");e=c-e;if(e<0){e=$("#"+a).val();$("#"+a).val(e.substr(0,c));e=$("#"+a).val().length;e=c-e;$("#"+f).css("color","red")}else $("#"+f).css("color","#999999");$("#"+f).text(e)}}function check(){if(over==true){document.getElementById("formInputButton").disabled=true;document.getElementById("warning").innerHTML="Your message is to long, please shorten it."}}typeof jQuery=="undefined"&&document.write('<script type="text/javascript" src="js/jquery-1.3.2.min.js"><\/script>');
function writeFlash(a){writeEmbed("D27CDB6E-AE6D-11cf-96B8-444553540000","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0","application/x-shockwave-flash",a)}function writeShockWave(a){writeEmbed("166B1BCA-3F9C-11CF-8075-444553540000","http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0","application/x-director",a)}
function writeQuickTime(a){writeEmbed("02BF25D5-8C17-4B23-BC80-D3488ABDDC6B","http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0","video/quicktime",a)}function writeRealMedia(a){writeEmbed("CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0","audio/x-pn-realaudio-plugin",a)}
function writeWindowsMedia(a){a.url=a.src;writeEmbed("6BF52A52-394A-11D3-B153-00C04F79FAA6","http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701","application/x-mplayer2",a)}
function writeEmbed(a,c,f,e){var m="",q;m+='<object classid="clsid:'+a+'" codebase="'+c+'"';m+=typeof e.id!="undefined"?'id="'+e.id+'"':"";m+=typeof e.name!="undefined"?'name="'+e.name+'"':"";m+=typeof e.width!="undefined"?'width="'+e.width+'"':"";m+=typeof e.height!="undefined"?'height="'+e.height+'"':"";m+=typeof e.align!="undefined"?'align="'+e.align+'"':"";m+=">";for(q in e)m+='<param name="'+q+'" value="'+e[q]+'">';m+='<embed type="'+f+'"';for(q in e)m+=q+'="'+e[q]+'" ';m+="></embed></object>";
document.write(m)}
(function(a){function c(h){return a.data(h,"tooltip")}function f(h){if(c(this).delay)s=setTimeout(m,c(this).delay);else m();D=!!c(this).track;a(document.body).bind("mousemove",q);q(h)}function e(){if(!(a.tooltip.blocked||this==j||!this.tooltipText&&!c(this).bodyHandler)){j=this;t=this.tooltipText;if(c(this).bodyHandler){g.title.hide();var h=c(this).bodyHandler.call(this);h.nodeType||h.jquery?g.body.empty().append(h):g.body.html(h);g.body.show()}else if(c(this).showBody){h=t.split(c(this).showBody);g.title.html(h.shift()).show();
g.body.empty();for(var n=0,E;E=h[n];n++){n>0&&g.body.append("<br/>");g.body.append(E)}g.body.hideWhenEmpty()}else{g.title.html(t).show();g.body.hide()}c(this).showURL&&a(this).url()?g.url.html(a(this).url().replace("http://","")).show():g.url.hide();g.parent.addClass(c(this).extraClass);c(this).fixPNG&&g.parent.fixPNG();f.apply(this,arguments)}}function m(){s=null;if((!k||!a.fn.bgiframe)&&c(j).fade)if(g.parent.is(":animated"))g.parent.stop().show().fadeTo(c(j).fade,j.tOpacity);else g.parent.is(":visible")?
g.parent.fadeTo(c(j).fade,j.tOpacity):g.parent.fadeIn(c(j).fade);else g.parent.show();q()}function q(h){if(!a.tooltip.blocked)if(!(h&&h.target.tagName=="OPTION")){!D&&g.parent.is(":visible")&&a(document.body).unbind("mousemove",q);if(j==null)a(document.body).unbind("mousemove",q);else{g.parent.removeClass("viewport-right").removeClass("viewport-bottom");var n=g.parent[0].offsetLeft,E=g.parent[0].offsetTop;if(h){n=h.pageX+c(j).left;E=h.pageY+c(j).top;h="auto";if(c(j).positionLeft){h=a(window).width()-
n;n="auto"}g.parent.css({left:n,right:h,top:E})}h={x:a(window).scrollLeft(),y:a(window).scrollTop(),cx:a(window).width(),cy:a(window).height()};var x=g.parent[0];if(h.x+h.cx<x.offsetLeft+x.offsetWidth){n-=x.offsetWidth+20+c(j).left;g.parent.css({left:n+"px"}).addClass("viewport-right")}if(h.y+h.cy<x.offsetTop+x.offsetHeight){E-=x.offsetHeight+20+c(j).top;g.parent.css({top:E+"px"}).addClass("viewport-bottom")}}}}function p(){function h(){g.parent.removeClass(n.extraClass).hide().css("opacity","")}
if(!a.tooltip.blocked){s&&clearTimeout(s);j=null;var n=c(this);if((!k||!a.fn.bgiframe)&&n.fade)g.parent.is(":animated")?g.parent.stop().fadeTo(n.fade,0,h):g.parent.stop().fadeOut(n.fade,h);else h();c(this).fixPNG&&g.parent.unfixPNG()}}var g={},j,t,s,k=a.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),D=false;a.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){a.tooltip.blocked=!a.tooltip.blocked}};a.fn.extend({tooltip:function(h){h=
a.extend({},a.tooltip.defaults,h);if(!g.parent){g.parent=a('<div id="'+h.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();a.fn.bgiframe&&g.parent.bgiframe();g.title=a("h3",g.parent);g.body=a("div.body",g.parent);g.url=a("div.url",g.parent)}return this.each(function(){a.data(this,"tooltip",h);this.tOpacity=g.parent.css("opacity");this.tooltipText=this.title;a(this).removeAttr("title");this.alt=""}).mouseover(e).mouseout(p).click(p)},fixPNG:k?function(){return this.each(function(){var h=
a(this).css("backgroundImage");if(h.match(/^url\(["']?(.*\.png)["']?\)$/i)){h=RegExp.$1;a(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+h+"')"}).each(function(){var n=a(this).css("position");n!="absolute"&&n!="relative"&&a(this).css("position","relative")})}})}:function(){return this},unfixPNG:k?function(){return this.each(function(){a(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){a(this)[a(this).html()?
"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}})})(jQuery);
$(function(){if(jQuery.inArray("gallery",page_types)!=-1){$(".show_caption").tooltip({track:true,delay:0,top:0,showURL:false,bodyHandler:function(){var e=$(this).find(".hidden_caption").text();return e!=""?e:false}});jQuery.support.cssFloat||$(".thumbnail_nofooter").css("height","24px")}design_mode||$.post("log-statistics.php",{data:stats_data},function(e){if(e.enabled=="yes"){var m="http://media.freeola.com/images/addons/hitcounter/images/"+e.style+"/",q='<table style="clear:both;" width="116" border="0" cellspacing="0" cellpadding="0" align="center"><tr><td colspan="8" align="center" style="padding-top: 6px;"><span style="font: 11px arial;">Visitor Counter:</span></td></tr><tr>';
q+='<td valign="bottom" class="'+e.style+'hcleftcol" width="4" style="background:url(http://media.freeola.com/images/addons/hitcounter/images/'+e.style+'/left.gif) no-repeat;"></td>';for(var p=0;p<=e.num_digits;p++)if(e.digits[p]!="")q+='<td width="18"><img src="'+m+e.digits[p]+'.gif" alt="'+e.digits[p]+'" /></td>';q+='<td valign="bottom" class="'+e.style+'hcrightcol" width="4" style="background:url(http://media.freeola.com/images/addons/hitcounter/images/'+e.style+'/right.gif) no-repeat;"></td></tr><tr><td colspan="8" style="padding-bottom: 6px;">&nbsp;</td></tr></table>';
$("#hit-counter-box").html(q)}},"json");jQuery.support.cssFloat||$("#banner_small").width(690);var a=$("#hidden_menu_ul").width()+2,c=$("#top_navigation1").width();$("#top_navigation1").css("height",$("#top_navigation").css("height"));$("#top_navigation1>ul").css("width",a+"px");if($("#hidden_menu_ul").width()>=$("#top_navigation1").width()){$("#navarrowleft").show();$("#navarrowright").show()}var f=0;if($(".navigation_selected:hidden")){$("#top_navigation1>ul>li").each(function(){if($(this).children().hasClass(".navigation_selected"))return false;
f+=$(this).width()});if(f>a-c)f=a-c;f=0-f;f<0&&$("#top_navigation1>ul").css("left",f+"px")}$(".navigation_scroll_right").mouseover(function(){scrollmenu("right")}).mouseout(function(){clearTimeout(timeout)});$(".navigation_scroll_left").mouseover(function(){scrollmenu("left")}).mouseout(function(){clearTimeout(timeout)})});
function scrollmenu(a){var c;c=$("#top_navigation1>ul").css("left");c=c.replace("pt","");c=c.replace("px","");if(a=="right"){c=jQuery.support.cssFloat?c*1+5:c*1+3;c<=0?$("#top_navigation1>ul").css("left",c):$("#top_navigation1>ul").css("left",0)}else{var f=$("#top_navigation1").width()-$("#hidden_menu_ul").width();c=jQuery.support.cssFloat?c*1-5:c*1-3;$("#top_navigation1>ul").width()>$("#top_navigation1").width()&&c>f&&$("#top_navigation1>ul").css("left",c)}timeout=setTimeout("scrollmenu('"+a+"')",
10)}$.browser.msie6=$.browser.msie&&/MSIE 6\.0/i.test(window.navigator.userAgent)&&!/MSIE 7\.0/i.test(window.navigator.userAgent);function getRandomNumber(a){return Math.floor(Math.random()*a)}function getRandomChar(){return"0123456789abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ".substr(getRandomNumber(62),1)}function randomID(a){for(var c="",f=0;f<a;f++)c+=getRandomChar();return c}$.browser.msie6=$.browser.msie&&/MSIE 6\.0/i.test(window.navigator.userAgent)&&!/MSIE 7\.0/i.test(window.navigator.userAgent);
function getRandomNumber(a){return Math.floor(Math.random()*a)}function getRandomChar(){return"0123456789abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ".substr(getRandomNumber(62),1)}function randomID(a){for(var c="",f=0;f<a;f++)c+=getRandomChar();return c}var tb_pathToImage="http://media.freeola.com/images/images/loadingAnimation.gif";$(document).ready(function(){tb_init("a.thickbox, area.thickbox, input.thickbox");imgLoader=new Image;imgLoader.src=tb_pathToImage});
function tb_init(a){$(a).click(function(){tb_show(this.rev||this.name||false,this.href||this.alt,this.rel||false);this.blur();return false})}
function tb_show(a,c,f){try{if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){$("body").append("<iframe src='javascript:false;' id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove)}}else if(document.getElementById("TB_overlay")===null){$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");
$("#TB_overlay").click(tb_remove)}tb_detectMacXFF()?$("#TB_overlay").addClass("TB_overlayMacFFBGHack"):$("#TB_overlay").addClass("TB_overlayBG");if(a===null)a="";$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");$("#TB_load").show();var e=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/,m=(c.indexOf("?")!==-1?c.substr(0,c.indexOf("?")):c).toLowerCase().match(e);if(m==".jpg"||m==".jpeg"||m==".png"||m==".gif"||m==".bmp"){TB_imageCount=TB_NextHTML=TB_NextURL=TB_NextCaption=TB_PrevHTML=
TB_PrevURL=TB_PrevCaption="";TB_FoundURL=false;if(f){TB_TempArray=$("a[rel="+f+"]").get();for(TB_Counter=0;TB_Counter<TB_TempArray.length&&TB_NextHTML==="";TB_Counter++){TB_TempArray[TB_Counter].href.toLowerCase().match(e);if(TB_TempArray[TB_Counter].href!=c)if(TB_FoundURL){TB_NextCaption=TB_TempArray[TB_Counter].rev;TB_NextURL=TB_TempArray[TB_Counter].href;TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>"}else{TB_PrevCaption=TB_TempArray[TB_Counter].rev;TB_PrevURL=TB_TempArray[TB_Counter].href;
TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>"}else{TB_FoundURL=true;TB_imageCount="Image "+(TB_Counter+1)+" of "+TB_TempArray.length}}}imgPreloader=new Image;imgPreloader.onload=function(){imgPreloader.onload=null;var j=tb_getPageSize(),t=j[0]-170,s=j[1]-170;j=imgPreloader.width;var k=imgPreloader.height;if(j>t){k*=t/j;j=t;if(k>s){j*=s/k;k=s}}else if(k>s){j*=s/k;k=s-30;if(j>t){k*=t/j;j=t}}TB_WIDTH=j+30;if(TB_WIDTH<200)TB_WIDTH+=200-TB_WIDTH;TB_HEIGHT=k+100;if(a.indexOf("##")>=
0){t=a.split("##");s=t[1].replace("##","");if(s.replace(/<(?:.|\s)*?>/g,"")!=s)s="";$("#TB_window").append("<div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div><a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+c+"' width='"+j+"' height='"+k+"' alt=\""+s+"\"/></a><div id='TB_caption'><div class='caption'>"+t[0].replace("##","")+"</div><div class='description'>"+t[1].replace("##","")+"</div><div id='TB_secondLine'>"+TB_imageCount+
TB_PrevHTML+TB_NextHTML+"</div></div>")}else $("#TB_window").append("<div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div><a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+c+"' width='"+j+"' height='"+k+"' alt=\""+a.replace("##","")+"\"/></a><div id='TB_caption'>"+a.replace("##","")+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"</div></div>");$("#TB_closeWindowButton").click(tb_remove);if(TB_PrevHTML!==""){var D=
function(){$(document).unbind("click",D)&&$(document).unbind("click",D);$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_PrevCaption,TB_PrevURL,f);return false};$("#TB_prev").click(D)}if(TB_NextHTML!==""){var h=function(){$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_NextCaption,TB_NextURL,f);return false};$("#TB_next").click(h)}document.onkeydown=function(n){keycode=n==null?event.keyCode:n.which;if(keycode==27)tb_remove();else if(keycode==
190){if(TB_NextHTML!=""){document.onkeydown="";h()}}else if(keycode==188)if(TB_PrevHTML!=""){document.onkeydown="";D()}};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"})};imgPreloader.src=c}else{var q=c.replace(/^[^\?]+\??/,""),p=tb_parseQuery(q);TB_WIDTH=p.width*1+30||630;TB_HEIGHT=p.height*1+40||440;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;if(c.indexOf("TB_iframe")!=-1){urlNoQuery=c.split("TB_");$("#TB_iframeContent").remove();
if(p.modal!="true")$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+a+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1E3)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' > </iframe>");else{$("#TB_overlay").unbind();$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+
urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1E3)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;'> </iframe>")}}else if($("#TB_window").css("display")!="block")if(p.modal!="true"){ajaxContentW=$.browser.msie?"100%":ajaxContentW+"px";if(p.width=="auto")ajaxContentW="auto";ajaxContentH=p.height=="auto"?"auto":ajaxContentH+"px";$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+a+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div></div><div id='TB_ajaxContent' style='width:"+
ajaxContentW+";height:"+ajaxContentH+";'></div>")}else{$("#TB_overlay").unbind();$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>")}else{if(p.width=="auto")$("#TB_ajaxContent")[0].style.width="auto";else $("#TB_ajaxContent")[0].style.width=ajaxContentW+"px";if(p.height=="auto")$("#TB_ajaxContent")[0].style.height="auto";else $("#TB_ajaxContent")[0].style.height=ajaxContentH+"px";$("#TB_ajaxContent")[0].scrollTop=0;
$("#TB_ajaxWindowTitle").html(a)}$("#TB_closeWindowButton").click(tb_remove);if(c.indexOf("TB_inline")!=-1){$("#TB_ajaxContent").append($("#"+p.inlineId).children());$("#TB_window").unload(function(){$("#"+p.inlineId).append($("#TB_ajaxContent").children())});tb_position();$("#TB_load").remove();$("#TB_window").css({display:"block"})}else if(c.indexOf("TB_iframe")!=-1){tb_position();if($.browser.safari){$("#TB_load").remove();$("#TB_window").css({display:"block"})}}else $("#TB_ajaxContent").load(c+=
"&random="+(new Date).getTime(),function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"})})}if(!p.modal)document.onkeyup=function(j){keycode=j==null?event.keyCode:j.which;keycode==27&&tb_remove()}}catch(g){}}function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"})}
function tb_remove(){$("#TB_imageOff").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("fast",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove()});$("#TB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","")}document.onkeydown="";document.onkeyup="";return false}
function tb_position(){$("#TB_window").css({marginLeft:"-"+parseInt(TB_WIDTH/2,10)+"px",width:TB_WIDTH+"px"});jQuery.browser.msie6||$("#TB_window").css({marginTop:"-"+parseInt(TB_HEIGHT/2,10)+"px"})}function tb_parseQuery(a){var c={};if(!a)return c;a=a.split(/[;&]/);for(var f=0;f<a.length;f++){var e=a[f].split("=");if(!(!e||e.length!=2)){var m=unescape(e[0]);e=unescape(e[1]);e=e.replace(/\+/g," ");c[m]=e}}return c}
function tb_getPageSize(){var a=document.documentElement;return arrayPageSize=[window.innerWidth||self.innerWidth||a&&a.clientWidth||document.body.clientWidth,window.innerHeight||self.innerHeight||a&&a.clientHeight||document.body.clientHeight]}function tb_detectMacXFF(){var a=navigator.userAgent.toLowerCase();if(a.indexOf("mac")!=-1&&a.indexOf("firefox")!=-1)return true}
(function(a,c){function f(d,i){d=d?' id="'+z+d+'"':"";return a("<div"+d+(i?' style="'+i+'"':"")+"/>")}function e(d,i){i=i===n?B.width():B.height();return typeof d==="string"?Math.round(d.match(/%/)?i/100*parseInt(d,10):parseInt(d,10)):d}function m(d){d=a.isFunction(d)?d.call(u):d;return b.photo||d.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i)}function q(){for(var d in b)if(a.isFunction(b[d])&&d.substring(0,2)!==h)b[d]=b[d].call(u);b.rel=b.rel||u.rel||D;b.href=b.href||a(u).attr("href");
b.title=b.title||u.title}function p(d){u=d;b=a.extend({},a(u).data(x));q();if(b.rel!==D){v=a("."+T).filter(function(){return(a(this).data(x).rel||this.rel)===b.rel});r=v.index(u);if(r===-1){v=v.add(u);r=v.length-1}}else{v=a(u);r=0}if(!F){F=Q=k;aa=u;try{aa.blur()}catch(i){}a.event.trigger(qa);b.onOpen&&b.onOpen.call(u);H.css({opacity:+b.opacity,cursor:b.overlayClose?"pointer":s}).show();b.w=e(b.initialWidth,n);b.h=e(b.initialHeight,t);l.position(0);ba&&B.bind(j+Y+" scroll."+Y,function(){H.css({width:B.width(),
height:B.height(),top:B.scrollTop(),left:B.scrollLeft()})}).trigger("scroll."+Y)}ca.add(U).add(V).add(I).add(da).hide();ea.html(b.close).show();l.slideshow();l.load()}var g="click",j="resize.",t="y",s="auto",k=true,D="nofollow",h="on",n="x",E={transition:"elastic",speed:300,width:false,initialWidth:"600",innerWidth:false,maxWidth:false,height:false,initialHeight:"450",innerHeight:false,maxHeight:false,scalePhotos:k,scrolling:k,inline:false,html:false,iframe:false,photo:false,href:false,title:false,
rel:false,opacity:0.9,preloading:k,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:false,loop:k,slideshow:false,slideshowAuto:k,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false,overlayClose:k,escKey:k,arrowKey:k},x="colorbox",z="cbox",qa=z+"_open",Z=z+"_load",fa=z+"_complete",ga=z+"_cleanup",oa=z+"_closed",R=a.browser.msie&&!a.support.opacity,ba=R&&a.browser.version<
7,Y=z+"_IE6",H,y,M,C,ha,ia,ja,ka,v,B,A,W,X,da,ca,I,V,U,ea,N,O,J,K,u,aa,r,b,F,Q,l,T=z+"Element";l=a.fn[x]=a[x]=function(d,i){var o=this;if(!o[0]&&o.selector)return o;d=d||{};if(i)d.onComplete=i;if(!o[0]||o.selector===undefined){o=a("<a/>");d.open=k}o.each(function(){a(this).data(x,a.extend({},a(this).data(x)||E,d)).addClass(T)});d.open&&p(o[0]);return o};l.init=function(){B=a(c);y=f().attr({id:x,"class":R?z+"IE":""});H=f("Overlay",ba?"position:absolute":"").hide();M=f("Wrapper");C=f("Content").append(A=
f("LoadedContent","width:0; height:0"),X=f("LoadingOverlay").add(f("LoadingGraphic")),da=f("Title"),ca=f("Current"),V=f("Next"),U=f("Previous"),I=f("Slideshow"),ea=f("Close"));M.append(f().append(f("TopLeft"),ha=f("TopCenter"),f("TopRight")),f().append(ia=f("MiddleLeft"),C,ja=f("MiddleRight")),f().append(f("BottomLeft"),ka=f("BottomCenter"),f("BottomRight"))).children().children().css({"float":"left"});W=f(false,"position:absolute; width:9999px; visibility:hidden; display:none");a("body").prepend(H,
y.append(M,W));C.children().hover(function(){a(this).addClass("hover")},function(){a(this).removeClass("hover")}).addClass("hover");N=ha.height()+ka.height()+C.outerHeight(k)-C.height();O=ia.width()+ja.width()+C.outerWidth(k)-C.width();J=A.outerHeight(k);K=A.outerWidth(k);y.css({"padding-bottom":N,"padding-right":O}).hide();V.click(l.next);U.click(l.prev);ea.click(l.close);C.children().removeClass("hover");a("."+T).live(g,function(d){if(d.button!==0&&typeof d.button!=="undefined"||d.ctrlKey||d.shiftKey||
d.altKey)return k;else{p(this);return false}});H.click(function(){b.overlayClose&&l.close()});a(document).bind("keydown",function(d){if(F&&b.escKey&&d.keyCode===27){d.preventDefault();l.close()}if(F&&b.arrowKey&&!Q&&v[1])if(d.keyCode===37&&(r||b.loop)){d.preventDefault();U.click()}else if(d.keyCode===39&&(r<v.length-1||b.loop)){d.preventDefault();V.click()}})};l.remove=function(){y.add(H).remove();a("."+T).die(g).removeData(x).removeClass(T)};l.position=function(d,i){function o(L){ha[0].style.width=
ka[0].style.width=C[0].style.width=L.style.width;X[0].style.height=X[1].style.height=C[0].style.height=ia[0].style.height=ja[0].style.height=L.style.height}var w,G=Math.max(B.height()-b.h-J-N,0)/2+B.scrollTop(),P=Math.max(B.width()-b.w-K-O,0)/2+B.scrollLeft();w=y.width()===b.w+K&&y.height()===b.h+J?0:d;M[0].style.width=M[0].style.height="9999px";y.dequeue().animate({width:b.w+K,height:b.h+J,top:G,left:P},{duration:w,complete:function(){o(this);Q=false;M[0].style.width=b.w+K+O+"px";M[0].style.height=
b.h+J+N+"px";i&&i()},step:function(){o(this)}})};l.resize=function(d){if(F){d=d||{};if(d.width)b.w=e(d.width,n)-K-O;if(d.innerWidth)b.w=e(d.innerWidth,n);A.css({width:b.w});if(d.height)b.h=e(d.height,t)-J-N;if(d.innerHeight)b.h=e(d.innerHeight,t);if(!d.innerHeight&&!d.height){d=A.wrapInner("<div style='overflow:auto'></div>").children();b.h=d.height();d.replaceWith(d.children())}A.css({height:b.h});l.position(b.transition==="none"?0:b.speed)}};l.prep=function(d){function i(G){var P,L,la,ma,S=v.length,
na=b.loop;l.position(G,function(){function pa(){R&&y[0].style.removeAttribute("filter")}if(F){R&&o&&A.fadeIn(100);b.iframe&&a("<iframe frameborder=0"+(b.scrolling?"":" scrolling='no'")+(R?" allowtransparency='true'":"")+"/>").appendTo(A).attr({src:b.href,name:(new Date).getTime()});A.show();da.show().html(b.title);if(S>1){ca.html(b.current.replace(/\{current\}/,r+1).replace(/\{total\}/,S)).show();V[na||r<S-1?"show":"hide"]().html(b.next);U[na||r?"show":"hide"]().html(b.previous);P=r?v[r-1]:v[S-1];
la=r<S-1?v[r+1]:v[0];if(b.slideshow){I.show();r===S-1&&!na&&y.is("."+z+"Slideshow_on")&&I.click()}if(b.preloading){ma=a(la).data(x).href||la.href;L=a(P).data(x).href||P.href;if(m(ma))a("<img/>")[0].src=ma;if(m(L))a("<img/>")[0].src=L}}X.hide();b.transition==="fade"?y.fadeTo(w,1,function(){pa()}):pa();B.bind(j+z,function(){l.position(0)});a.event.trigger(fa);b.onComplete&&b.onComplete.call(u)}})}if(F){var o,w=b.transition==="none"?0:b.speed;B.unbind(j+z);A.remove();A=f("LoadedContent").html(d);A.hide().appendTo(W.show()).css({width:function(){b.w=
b.w||A.width();b.w=b.mw&&b.mw<b.w?b.mw:b.w;return b.w}(),overflow:b.scrolling?s:"hidden"}).css({height:function(){b.h=b.h||A.height();b.h=b.mh&&b.mh<b.h?b.mh:b.h;return b.h}()}).prependTo(C);W.hide();a("#"+z+"Photo").css({cssFloat:"none"});ba&&a("select").not(y.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(ga,function(){this.style.visibility="inherit"});b.transition==="fade"?y.fadeTo(w,0,function(){i(0)}):i(w)}};l.load=function(){var d,
i,o,w=l.prep;Q=k;u=v[r];b=a.extend({},a(u).data(x));q();a.event.trigger(Z);b.onLoad&&b.onLoad.call(u);b.h=b.height?e(b.height,t)-J-N:b.innerHeight&&e(b.innerHeight,t);b.w=b.width?e(b.width,n)-K-O:b.innerWidth&&e(b.innerWidth,n);b.mw=b.w;b.mh=b.h;if(b.maxWidth){b.mw=e(b.maxWidth,n)-K-O;b.mw=b.w&&b.w<b.mw?b.w:b.mw}if(b.maxHeight){b.mh=e(b.maxHeight,t)-J-N;b.mh=b.h&&b.h<b.mh?b.h:b.mh}d=b.href;X.show();if(b.inline){f("InlineTemp").hide().insertBefore(a(d)[0]).bind(Z+" "+ga,function(){a(this).replaceWith(A.children())});
w(a(d))}else if(b.iframe)w(" ");else if(b.html)w(b.html);else if(m(d)){i=new Image;i.onload=function(){var G;i.onload=null;i.id=z+"Photo";a(i).css({margin:s,border:"none",display:"block",cssFloat:"left"});if(b.scalePhotos){o=function(){i.height-=i.height*G;i.width-=i.width*G};if(b.mw&&i.width>b.mw){G=(i.width-b.mw)/i.width;o()}if(b.mh&&i.height>b.mh){G=(i.height-b.mh)/i.height;o()}}if(b.h)i.style.marginTop=Math.max(b.h-i.height,0)/2+"px";setTimeout(function(){w(i)},1);v[1]&&(r<v.length-1||b.loop)&&
a(i).css({cursor:"pointer"}).click(l.next);if(R)i.style.msInterpolationMode="bicubic"};i.src=d}else f().appendTo(W).load(d,function(G,P,L){w(P==="error"?"Request unsuccessful: "+L.statusText:this)})};l.next=function(){if(!Q){r=r<v.length-1?r+1:0;l.load()}};l.prev=function(){if(!Q){r=r?r-1:v.length-1;l.load()}};l.slideshow=function(){function d(){I.text(b.slideshowStop).bind(fa,function(){o=setTimeout(l.next,b.slideshowSpeed)}).bind(Z,function(){clearTimeout(o)}).one(g,function(){i()});y.removeClass(w+
"off").addClass(w+h)}var i,o,w=z+"Slideshow_";I.bind(oa,function(){I.unbind();clearTimeout(o);y.removeClass(w+"off "+w+h)});i=function(){clearTimeout(o);I.text(b.slideshowStart).unbind(fa+" "+Z).one(g,function(){d();o=setTimeout(l.next,b.slideshowSpeed)});y.removeClass(w+h).addClass(w+"off")};if(b.slideshow&&v[1])b.slideshowAuto?d():i()};l.close=function(){if(F){F=false;a.event.trigger(ga);b.onCleanup&&b.onCleanup.call(u);B.unbind("."+z+" ."+Y);H.fadeTo("fast",0);y.stop().fadeTo("fast",0,function(){y.find("iframe").attr("src",
"about:blank");A.remove();y.add(H).css({opacity:1,cursor:s}).hide();try{aa.focus()}catch(d){}setTimeout(function(){a.event.trigger(oa);b.onClosed&&b.onClosed.call(u)},1)})}};l.element=function(){return a(u)};l.settings=E;a(l.init)})(jQuery,this);
$(function(){$(".colorbox").colorbox({transition:"none",opacity:0.75,maxHeight:"90%",maxWidth:"90%",previous:"<span>&laquo;</span><strong>previous</strong>",next:"<strong>next</strong><span>&raquo;</span>",close:"<strong>close</strong><span>x</span>",onComplete:function(){var a={};if($("#cboxPhoto").width()<300)a.innerWidth=300;$("#cboxTitle").hide();var c=$(this).attr("rev").split("##");$('<div id="cboxTitle">'+(c[1]?"<p><strong>"+c[0]+"</strong></p>":"")+"<p>"+(c[1]||c[0])+"</p></div>").insertAfter("#cboxPhoto");
$.fn.colorbox.resize(a)}})});