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