jQuery.fn.nospam=function(a){a=jQuery.extend({replaceText:false,filterLevel:"normal"},a);return this.each(function(){e=null;if(a.filterLevel=="low"){if($(this).is("a[rel]")){e=$(this).attr("rel").replace("//","@").replace(/\//g,".")}else{e=$(this).text().replace("//","@").replace(/\//g,".")}}else{if($(this).is("a[rel]")){e=$(this).attr("rel").split("").reverse().join("").replace("//","@").replace(/\//g,".")}else{e=$(this).text().split("").reverse().join("").replace("//","@").replace(/\//g,".")}}if(e){if($(this).is("a[rel]")){$(this).attr("href","mailto:"+e);if(a.replaceText){$(this).text(e)}}else{$(this).text(e)}}})};$(function(){var b=document.title;var c=[];var g=[];var l;var j="";var h=true;function d(){if(a.search(/chrissiewhite.com/)=="-1"){h=false;$("body").html("");alert("please don't copy my website")}}var i=location.href;var a=i.toLowerCase();d();$("#css-tabs > li").each(function(m){if(m>0){j+='<div class="panes"></div>'}});$("#css-panes").append(j);$("#css-tabs > li > a").each(function(m){var n=$(this).attr("href").replace($("input[@name=base_url]").val(),"").replace("/","");c[m]=n;n=n.replace(/([^.]*)\.(.*)/,"$1");this.href="#"+n;g[m]=$(this).text()});$("ul#css-tabs").tabs("div#css-panes > div",{history:true,onBeforeClick:function(m){var o=this.getPanes().eq(m);var n=this.getTabs().eq(m).attr("href").substring(1);if(o.is(":empty")&&h){if(l!==undefined){l.abort()}l=$.ajax({url:c[m],success:function(p){o.html(p)}})}if(m!=0){document.title=b+" | "+g[m]}$("#css-panes").bind("contextmenu",function(p){return false})}});var f=["DOMMouseScroll","mousewheel"];$.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var m=f.length;m;){this.addEventListener(f[--m],k,false)}}else{this.onmousewheel=k}},teardown:function(){if(this.removeEventListener){for(var m=f.length;m;){this.removeEventListener(f[--m],k,false)}}else{this.onmousewheel=null}}};$.fn.extend({mousewheel:function(m){return m?this.bind("mousewheel",m):this.trigger("mousewheel")},unmousewheel:function(m){return this.unbind("mousewheel",m)}});function k(o){var m=[].slice.call(arguments,1),p=0,n=true;o=$.event.fix(o||window.event);o.type="mousewheel";if(o.wheelDelta){p=o.wheelDelta/120}if(o.detail){p=-o.detail/3}m.unshift(o,p);return $.event.handle.apply(this,m)}$(window).bind("mousewheel",function(m,n){window.parent.scrollBy(-120*n,0)})});