(function(a){function m(f,c,g){var d=this,i=a(this),n;a.each(g,function(h,b){a.isFunction(b)&&i.bind(h,b)});a.extend(this,{click:function(h){d.getCurrentPane();var b=f.eq(h);if(typeof h=="string"&&h.replace("#","")){b=f.filter("[href*="+h.replace("#","")+"]");h=Math.max(f.index(b),0)}if(g.rotate){var j=f.length-1;if(h<0)return d.click(j);if(h>j)return d.click(0)}if(!b.length){if(n>=0)return d;h=g.initialIndex;b=f.eq(h)}j=a.Event("onBeforeClick");i.trigger(j,[h]);if(!j.isDefaultPrevented()){if(h===
n)return d;b.addClass(g.current);k[g.effect].call(d,h,function(){i.trigger("onClick",[h])});f.removeClass(g.current);b.addClass(g.current);n=h;return d}},getConf:function(){return g},getTabs:function(){return f},getPanes:function(){return c},getCurrentPane:function(){return c.eq(n)},getCurrentTab:function(){return f.eq(n)},getIndex:function(){return n},next:function(){return d.click(n+1)},prev:function(){return d.click(n-1)},bind:function(h,b){i.bind(h,b);return d},onBeforeClick:function(h){return this.bind("onBeforeClick",
h)},onClick:function(h){return this.bind("onClick",h)},unbind:function(h){i.unbind(h);return d}});f.each(function(h){a(this).bind(g.event,function(b){d.click(h);return b.preventDefault()})});location.hash?d.click(location.hash):d.click(g.initialIndex);c.find("a[href^=#]").click(function(){d.click(a(this).attr("href"))})}a.tools=a.tools||{};a.tools.tabs={version:"1.0.3",conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",api:false,rotate:false},
addEffect:function(f,c){k[f]=c}};var k={"default":function(f,c){this.getPanes().hide().eq(f).show();c.call()},fade:function(f,c){var g=this.getConf(),d=g.fadeOutSpeed,i=this.getCurrentPane();d?i.fadeOut(d):i.hide();this.getPanes().eq(f).fadeIn(g.fadeInSpeed,c)},slide:function(f,c){this.getCurrentPane().slideUp(200);this.getPanes().eq(f).slideDown(400,c)},ajax:function(f,c){this.getPanes().eq(0).load(this.getTabs().eq(f).attr("href"),c)}},l;a.tools.tabs.addEffect("horizontal",function(f,c){l||(l=this.getPanes().eq(0).width());
this.getCurrentPane().animate({width:0},function(){a(this).hide()});this.getPanes().eq(f).animate({width:l},function(){a(this).show();c.call()})});a.fn.tabs=function(f,c){var g=this.eq(typeof c=="number"?c:0).data("tabs");if(g)return g;if(a.isFunction(c))c={onBeforeClick:c};var d=a.extend({},a.tools.tabs.conf),i=this.length;c=a.extend(d,c);this.each(function(){var n=a(this),h=n.find(c.tabs);h.length||(h=n.children());var b=f.jquery?f:n.children(f);b.length||(b=i==1?a(f):n.parent().find(f));g=new m(h,
b,c);n.data("tabs",g)});return c.api?g:this}})(jQuery);
(function(a){function m(c){if(c){var g=f.contentWindow.document;g.open().close();g.location.hash=c}}var k=a.tools.tabs;k.plugins=k.plugins||{};k.plugins.history={version:"1.0.1",conf:{api:false}};var l,f;a.fn.onHash=function(c){var g=this;if(a.browser.msie&&a.browser.version<"8"){if(!f){f=a("<iframe/>").attr("src","javascript:false;").hide().get(0);a("body").append(f);setInterval(function(){var d=f.contentWindow.document.location.hash;if(l!==d){a.event.trigger("hash",d);l=d}},100);m(location.hash||
"#")}g.bind("click.hash",function(){m(a(this).attr("href"))})}else setInterval(function(){var d=location.hash,i=g.filter("[href$="+d+"]");if(!i.length){d=d.replace("#","");i=g.filter("[href$="+d+"]")}if(i.length&&d!==l){l=d;a.event.trigger("hash",d)}},100);a(window).bind("hash",c);return this};a.fn.history=function(c){var g=a.extend({},k.plugins.history.conf);c=a.extend(g,c);this.each(function(){var d=a(this).tabs(),i=d.getTabs();i.onHash(function(n,h){if(!h||h=="#")h=d.getConf().initialIndex;d.click(h)});
i.click(function(){location.hash=a(this).attr("href").replace("#","")})});return c.api?void 0:this}})(jQuery);
jQuery.fn.nospam=function(a){a=jQuery.extend({replaceText:false,filterLevel:"normal"},a);return this.each(function(){e=null;if(e=a.filterLevel=="low"?$(this).is("a[rel]")?$(this).attr("rel").replace("//","@").replace(/\//g,"."):$(this).text().replace("//","@").replace(/\//g,"."):$(this).is("a[rel]")?$(this).attr("rel").split("").reverse().join("").replace("//","@").replace(/\//g,"."):$(this).text().split("").reverse().join("").replace("//","@").replace(/\//g,"."))if($(this).is("a[rel]")){$(this).attr("href",
"mailto:"+e);a.replaceText&&$(this).text(e)}else $(this).text(e)})};
$.fn.jcaption=function(){$(this).each(function(){var a=$(this),m,k;a.load(function(){if(a.data("loaded"))return false;a.data("loaded",true);a.removeAttr("width").removeAttr("height").css({width:"",height:""});m=this.width;k=this.height;var i=a.attr("src");a.css("width",m+"px").css("height",k+"px").css("background-image","url("+i+")");a.attr("src","images/alpha.gif")});var l=a.src;a.src="";a.src=l;l=a.attr("title").length;var f=a.attr("alt").length;if(l>0||f>0){var c=a.parent("a").length>0,g=c?a.parent():
a;g.wrap('<div class="photo"></div>');var d=function(i){c>0?g.parent().append($(document.createElement("p")).addClass(i).append($(document.createElement("a")).attr("href",a.parent().attr("href")).text(a.attr(i)))):a.parent().append($(document.createElement("p")).addClass(i).text(a.attr(i)))};l>0&&d("title");f>0&&d("alt")}if(this.complete||this.naturalWidth>0)$(this).trigger("load")})};
var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",decode:function(a){var m="",k,l,f,c,g,d,i=0;for(a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");i<a.length;){f=this._keyStr.indexOf(a.charAt(i++));c=this._keyStr.indexOf(a.charAt(i++));g=this._keyStr.indexOf(a.charAt(i++));d=this._keyStr.indexOf(a.charAt(i++));k=(c&15)<<4|g>>2;l=(g&3)<<6|d;m+=String.fromCharCode(f<<2|c>>4);if(g!=64)m+=String.fromCharCode(k);if(d!=64)m+=String.fromCharCode(l)}return m=Base64._utf8_decode(m)},
_utf8_decode:function(a){for(var m="",k=0,l=c1=c2=0;k<a.length;){l=a.charCodeAt(k);if(l<128){m+=String.fromCharCode(l);k++}else if(l>191&&l<224){c2=a.charCodeAt(k+1);m+=String.fromCharCode((l&31)<<6|c2&63);k+=2}else{c2=a.charCodeAt(k+1);c3=a.charCodeAt(k+2);m+=String.fromCharCode((l&15)<<12|(c2&63)<<6|c3&63);k+=3}}return m}};
$(function(){function a(b,j){if(b=="ok"){$("a#email").nospam({replaceText:true});$("#css-panes > .panes:eq("+j+") #strip img").bind("contextmenu",function(){return false}).jcaption()}}function m(b){if(g[b].indexOf("http://")!=-1)window.location=g[b];$("#css-panes > .panes").eq(b).find("a").not(".photo a").size()>0||i[b]=="bare"?$("#safe").hide():$("#safe").show()}function k(b){var j=[].slice.call(arguments,1),o=0;b=$.event.fix(b||window.event);b.type="mousewheel";if(b.wheelDelta)o=b.wheelDelta/120;
if(b.detail)o=-b.detail/3;j.unshift(b,o);return $.event.handle.apply(this,j)}var l=window.location.hostname.toLowerCase().replace("www.",""),f=function(b){b=$("meta[name="+b+"]").attr("content");return b=Base64.decode(b.substr(2).slice(0,-2).split("").reverse().join("")).split(",")}("verid"),c,g=[],d=[],i=[],n="";if($.inArray(l,f)>=0)c=true;else{$("body").html("");$("body").html(Base64.decode("T2ggbm8sIHNvbWV0aGluZyB3ZW50IHdyb25nICA6ICg="))}$("#css-tabs li").each(function(b){if(b>0)n+='<div class="panes"></div>'});
$("#css-panes").append(n);$("#css-tabs li a").each(function(b){var j;for(j=$(this).attr("href").replace($("input[@name=base_url]").val(),"");j.substring(0,1)=="/";)j=j.substring(1,j.length);j=j;g[b]=j;if(j.indexOf("http://")==-1){j=j.replace(/([^.]*)\.(.*)/,"$1");this.href="#"+j;d[b]=b>1?$(this).text():"";i[b]=this.className==undefined?"":this.className}});$("ul#css-tabs").tabs("div#css-panes div",{onBeforeClick:function(b,j){if(c)var o=this.getPanes().eq(j),p;if(o.is(":empty")){p!==undefined&&p.abort();
p=$.ajax({url:g[j],success:function(q){o.html(q);a("ok",j);m(j)}})}else m(j)}}).history();var h=["DOMMouseScroll","mousewheel"];$.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var b=h.length;b;)this.addEventListener(h[--b],k,false);else this.onmousewheel=k},teardown:function(){if(this.removeEventListener)for(var b=h.length;b;)this.removeEventListener(h[--b],k,false);else this.onmousewheel=null}};$.fn.extend({mousewheel:function(b){return b?this.bind("mousewheel",b):this.trigger("mousewheel")},
unmousewheel:function(b){return this.unbind("mousewheel",b)}});$("html").bind("mousewheel",function(b,j){window.parent.scrollBy(-120*j,0);return false})});