$(document).ready(function(){
    $('a').click(function() {this.blur();});
	$('body').hide().pause(500).fadeIn('slow');
	$('div#content').hide().pause(1000).fadeIn('slow');
	$('div#contentbox').tabs({fxFade: true, fxSpeed: 'slow'});
	$('div.nav').hide().pause(1500).fadeIn('slow');
	$('div.sitelinks').hide().pause(1500).fadeIn('slow');
	$('h3').hide().pause(2000).fadeIn('slow');
	$('h4').hide().pause(2500).fadeIn('slow');
	$('p').hide().pause(3000).fadeIn('slow');
	$('img').hide().pause(3000).fadeIn('slow');
	$('div#bios').tabs({fxFade: true, fxSpeed: 'slow'});
	$('ul.gallery').innerfade({ speed: 'slow', timeout: 3000, type: 'sequence', containerheight: '173px'});
	$('.top').click(function(){$('body').ScrollTo(800);return false});
	});
	
/*
 * Thickbox 2.1 - One Box To Rule Them All.
 * By Cody Lindley (http://www.codylindley.com)
 * Copyright (c) 2006 cody lindley
 * Licensed under the MIT License:
 *   http://www.opensource.org/licenses/mit-license.php
 * Thickbox is built on top of the very light weight jQuery library.
 */

//on page load call TB_init
$(document).ready(TB_init);
	function TB_init(){
		$("a.thickbox").click(function(){
		var t = this.title || this.name || null;
		var g = this.rel || false;
		TB_show(t,this.href,g);
		this.blur();
		return false;
		});
	}

function TB_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link

	try {
		if (document.getElementById("TB_HideSelect") == null) {
		$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");
		}
		
		if(caption==null){caption=""};
		
		
		$("body").append("<div id='TB_load'><img src='images/animated/loading.gif' /></div>");
		$('#TB_load').pause(1000).fadeIn('fast');		
		
		
	   if(url.indexOf("?")!==-1){ //If there is a query string involved
			var baseURL = url.substr(0, url.indexOf("?"));
	   }else{ 
	   		var baseURL = url;
	   }
	   var urlString = /\.jpg|\.jpeg|\.png|\.gif|\.bmp/g;
	   var urlType = baseURL.toLowerCase().match(urlString);
		
		if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){//code to show images
				
			TB_PrevCaption = "";
			TB_PrevURL = "";
			TB_PrevHTML = "";
			TB_NextCaption = "";
			TB_NextURL = "";
			TB_NextHTML = "";
			TB_imageCount = "";
			TB_FoundURL = false;
			if(imageGroup){
				TB_TempArray = $("a[@rel="+imageGroup+"]").get();
				for (TB_Counter = 0; ((TB_Counter < TB_TempArray.length) && (TB_NextHTML == "")); TB_Counter++) {
					var urlTypeTemp = TB_TempArray[TB_Counter].href.toLowerCase().match(urlString);
						if (!(TB_TempArray[TB_Counter].href == url)) {						
							if (TB_FoundURL) {
								TB_NextCaption = TB_TempArray[TB_Counter].title;
								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].title;
								TB_PrevURL = TB_TempArray[TB_Counter].href;
								TB_PrevHTML = "<span id='TB_prev'><a href='#'>&lt; Previous</a>&nbsp;&nbsp;</span>";
							}
						} else {
							TB_FoundURL = true;
							TB_imageCount = "Image " + (TB_Counter + 1) +" of "+ (TB_TempArray.length);											
						}
				}
			}

			imgPreloader = new Image();
			imgPreloader.onload = function(){		
			imgPreloader.onload = null;
				
			// Resizing large images - orginal by Christian Montoya edited by me.
			var pagesize = TB_getPageSize();
			var x = pagesize[0] - 100;
			var y = pagesize[1] - 100;
			var imageWidth = imgPreloader.width;
			var imageHeight = imgPreloader.height;
			if (imageWidth > x) {
				imageHeight = imageHeight * (x / imageWidth); 
				imageWidth = x; 
				if (imageHeight > y) { 
					imageWidth = imageWidth * (y / imageHeight); 
					imageHeight = y; 
				}
			} else if (imageHeight > y) { 
				imageWidth = imageWidth * (y / imageHeight); 
				imageHeight = y; 
				if (imageWidth > x) { 
					imageHeight = imageHeight * (x / imageWidth); 
					imageWidth = x;
				}
			}
			// End Resizing
			
			TB_WIDTH = imageWidth + 22;
			TB_HEIGHT = imageHeight + 40;
			$("#TB_window").append("<div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'><img src='images/icons/close.gif' width='14' height='14' alt='Close' title='Close' /></a></div><div id='TB_caption'>"+caption+"</div>" + "<img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/><div id='TB_secondLine'>" + TB_PrevHTML + TB_imageCount + TB_NextHTML + "</div>"); 		
			
			$("#TB_closeWindowButton").click(TB_remove);
			
			if (!(TB_PrevHTML == "")) {
				function goPrev(){
					if($(document).unclick(goPrev)){$(document).unclick(goPrev)};
					$("#TB_window").remove();
					$("body").append("<div id='TB_window'></div>");
					TB_show(TB_PrevCaption, TB_PrevURL, imageGroup);
					return false;	
				}
				$("#TB_prev").click(goPrev);
			}
			
			if (!(TB_NextHTML == "")) {		
				function goNext(){
					$("#TB_window").remove();
					$("body").append("<div id='TB_window'></div>");
					TB_show(TB_NextCaption, TB_NextURL, imageGroup);				
					return false;	
				}
				$("#TB_next").click(goNext);
				
			}
			
			document.onkeydown = function(e){ 	
				if (e == null) { // ie
					keycode = event.keyCode;
				} else { // mozilla
					keycode = e.which;
				}
				if(keycode == 27){ // close
					TB_remove();
				} else if(keycode == 190){ // display previous image
					if(!(TB_NextHTML == "")){
					document.onkeydown = "";
					goNext();
					}
				} else if(keycode == 188){ // display next image
					if(!(TB_PrevHTML == "")){
					document.onkeydown = "";
					goPrev();
					}
				}	
			}
				
			TB_position();
			$("#TB_load").remove();
			$("#TB_ImageOff").click(TB_remove);
			$("#TB_window").css({display:"block"}); //for safari using css instead of show
			}
	  
			imgPreloader.src = url;
		}else{//code to show html pages
			
			var queryString = url.replace(/^[^\?]+\??/,'');
			var params = TB_parseQuery( queryString );
			
			TB_WIDTH = (params['width']*1) + 30;
			TB_HEIGHT = (params['height']*1) + 40;
			ajaxContentW = TB_WIDTH - 51;
			ajaxContentH = TB_HEIGHT - 65;
			
			if(url.indexOf('TB_iframe') != -1){				
					urlNoQuery = url.split('TB_');		
					$("#TB_window").append("<div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'><img src='images/icons/close.gif' width='14' height='14' alt='close' /></a></div><div id='TB_caption'>"+caption+"</div>" + "<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' onload='TB_showIframe()'> </iframe>"); 		
// ajax				$("#TB_window").append("<div id='TB_closeWindow'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindow' title='Close'><img src='images/icons/close.gif' width='14' height='14' alt='close' /></a></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' onload='TB_showIframe()'> </iframe>");
				}else{
					$("#TB_window").append("<div id='TB_closeWindow'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindow'><img src='images/icons/close.gif' width='14' height='14' alt='close' title='Close' /></a></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");
			}
					
			$("#TB_closeWindowButton").click(TB_remove);
			
				if(url.indexOf('TB_inline') != -1){	
					$("#TB_ajaxContent").html($('#' + params['inlineId']).html());
					TB_position();
					$("#TB_load").remove();
					$("#TB_window").css({display:"block"}); 
				}else if(url.indexOf('TB_iframe') != -1){
					TB_position();
					if(frames['TB_iframeContent'] == undefined){//be nice to safari
						$("#TB_load").remove();
						$("#TB_window").css({display:"block"});
						$(document).keyup( function(e){ var key = e.keyCode; if(key == 27){TB_remove()} });
					}
				}else{
					$("#TB_ajaxContent").load(url, function(){
						TB_position();
						$("#TB_load").remove();
						$("#TB_window").css({display:"block"}); 
					});
				}
			
		}
		
		document.onkeyup = function(e){ 	
			if (e == null) { // ie
				keycode = event.keyCode;
			} else { // mozilla
				keycode = e.which;
			}
			if(keycode == 27){ // close
				TB_remove();
			}	
		}
		
	} catch(e) {
		alert( e );
	}
}

//helper functions below

function TB_showIframe(){
	$("#TB_load").remove();
	$("#TB_window").css({display:"block"});
}

function TB_remove() {
 	$("#TB_imageOff").unclick();
	$("#TB_overlay").unclick();
	$("#TB_closeWindowButton").unclick();
	$("#TB_window").fadeOut("slow",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').remove();});
	$("#TB_load").remove();
	return false;
}

function TB_position() {
     $("#TB_window").css({marginLeft: '-' + parseInt(TB_WIDTH / 2) + 'px', width: TB_WIDTH + 'px'});
     if ( !(jQuery.browser.msie && typeof XMLHttpRequest == 'function') ) { // take away IE6
         $("#TB_window").css({marginTop: '-' + parseInt(TB_HEIGHT / 2) + 'px'});
     }
}


function TB_parseQuery ( query ) {
   var Params = new Object ();
   if ( ! query ) return Params; // return empty object
   var Pairs = query.split(/[;&]/);
   for ( var i = 0; i < Pairs.length; i++ ) {
      var KeyVal = Pairs[i].split('=');
      if ( ! KeyVal || KeyVal.length != 2 ) continue;
      var key = unescape( KeyVal[0] );
      var val = unescape( KeyVal[1] );
      val = val.replace(/\+/g, ' ');
      Params[key] = val;
   }
   return Params;
}

function TB_getPageSize(){
	var de = document.documentElement;
	var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
	var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight
	arrayPageSize = new Array(w,h) 
	return arrayPageSize;
}

/**
 * Flash (http://jquery.lukelutman.com/plugins/flash)
 * A jQuery plugin for embedding Flash movies.
 * 
 * Version 1.0
 * November 9th, 2006
 *
 * Copyright (c) 2006 Luke Lutman (http://www.lukelutman.com)
 * Licensed under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 * 
 * Inspired by:
 * SWFObject (http://blog.deconcept.com/swfobject/)
 * UFO (http://www.bobbyvandersluis.com/ufo/)
 * sIFR (http://www.mikeindustries.com/sifr/)
 * 
 * IMPORTANT: 
 * The packed version of jQuery breaks ActiveX control
 * activation in Internet Explorer. Use JSMin to minifiy
 * jQuery (see: http://jquery.lukelutman.com/plugins/flash#activex).
 *
 **/ 
;(function(){
	
var $$;

$$ = jQuery.fn.flash = function(htmlOptions, pluginOptions, replace, update) {
	var block = replace || $$.replace;
	pluginOptions = $$.copy($$.pluginOptions, pluginOptions);
	if(!$$.hasFlash(pluginOptions.version)) {
		if(pluginOptions.expressInstall && $$.hasFlash(6,0,65)) {
			var expressInstallOptions = {
				flashvars: {  	
					MMredirectURL: location,
					MMplayerType: 'PlugIn',
					MMdoctitle: jQuery('title').text() 
				}					
			};
		} else if (pluginOptions.update) {
			block = update || $$.update;
		} else {
			return this;
		}
	}
	
	htmlOptions = $$.copy($$.htmlOptions, expressInstallOptions, htmlOptions);
	return this.each(function(){
		block.call(this, $$.copy(htmlOptions));
	});
	
};
$$.copy = function() {
	var options = {}, flashvars = {};
	for(var i = 0; i < arguments.length; i++) {
		var arg = arguments[i];
		if(arg == undefined) continue;
		jQuery.extend(options, arg);
		if(arg.flashvars == undefined) continue;
		jQuery.extend(flashvars, arg.flashvars);
	}
	options.flashvars = flashvars;
	return options;
};
$$.hasFlash = function() {
	if(/hasFlash\=true/.test(location)) return true;
	if(/hasFlash\=false/.test(location)) return false;
	var pv = $$.hasFlash.playerVersion().match(/\d+/g);
	var rv = String([arguments[0], arguments[1], arguments[2]]).match(/\d+/g) || String($$.pluginOptions.version).match(/\d+/g);
	for(var i = 0; i < 3; i++) {
		pv[i] = parseInt(pv[i] || 0);
		rv[i] = parseInt(rv[i] || 0);
		if(pv[i] < rv[i]) return false;
		if(pv[i] > rv[i]) return true;
	}
	return true;
};
$$.hasFlash.playerVersion = function() {
	try {
		try {
			var axo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6');
			try { axo.AllowScriptAccess = 'always';	} 
			catch(e) { return '6,0,0'; }				
		} catch(e) {}
		return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1];
	} catch(e) {
		try {
			if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){
				return (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1];
			}
		} catch(e) {}		
	}
	return '0,0,0';
};
$$.htmlOptions = {
	width: 220,
	height: 13,
	flashvars: {},
	pluginspage: 'http://www.adobe.com/go/getflashplayer',
	src: '#',
	type: 'application/x-shockwave-flash',
	wmode: 'transparent',
	scale: 'noscale'
};
$$.pluginOptions = {
	expressInstall: false,
	update: true,
	version: '6'
};
$$.replace = function(htmlOptions) {
	this.innerHTML = '<div class="alt">'+this.innerHTML+'</div>';
	jQuery(this)
		.addClass('flash-replaced')
		.prepend($$.transform(htmlOptions));
};
$$.update = function(htmlOptions) {
	var url = String(location).split('?');
	url.splice(1,0,'?hasFlash=true&');
	url = url.join('');
	var msg = '<p>This content requires the Flash Player. <a href="http://www.adobe.com/go/getflashplayer">Download Flash Player</a>. Already have Flash Player? <a href="'+url+'">Click here.</a></p>';
	this.innerHTML = '<span class="alt">'+this.innerHTML+'</span>';
	jQuery(this)
		.addClass('flash-update')
		.prepend(msg);
};
function toAttributeString() {
	var s = '';
	for(var key in this)
		if(typeof this[key] != 'function')
			s += key+'="'+this[key]+'" ';
	return s;		
};
function toFlashvarsString() {
	var s = '';
	for(var key in this)
		if(typeof this[key] != 'function')
			s += key+'='+escape(this[key])+'&';
	return s.replace(/&$/, '');		
};
$$.transform = function(htmlOptions) {
	htmlOptions.toString = toAttributeString;
	if(htmlOptions.flashvars) htmlOptions.flashvars.toString = toFlashvarsString;
	return '<embed ' + String(htmlOptions) + '/>';		
};
if (window.attachEvent) {
	window.attachEvent("onbeforeunload", function(){
		__flash_unloadHandler = function() {};
		__flash_savedUnloadHandler = function() {};
	});
}
	
})();

// =========================================================

// jq-innerfade.js

// Datum: 2006-09-01
// Firma: Medienfreunde Hofmann & Baldes GbR
// Autor: Torsten Baldes
// Mail: t.baldes@medienfreunde.com
// Web: http://medienfreunde.com

// based on the work of Matt Oakes http://portfolio.gizone.co.uk/applications/slideshow/

// =========================================================


$.fn.innerfade = function(options) {
	return this.each(function(){ 	
		
		var settings = {
			speed: 'normal',
			timeout: 2000,
			type: 'sequence',
			containerheight: 'auto'
		}
		
		if(options)
			$.extend(settings, options);
		
		var elements = $(this).children().get();
	
		if (elements.length > 1) {
		
			$(this).parent().css('position', 'relative');
	
			$(this).css('height', settings.containerheight);
			
			for ( var i = 0; i < elements.length; i++ ) {
				$(elements[i]).css('z-index', elements.length - i).css('position', 'absolute');
				$(elements[i]).hide();
			}
		
			if ( settings.type == 'sequence' ) {
				setTimeout(function(){
					$.innerfade.next(elements, settings, 1, 0);
				}, settings.timeout);
				$(elements[0]).show();
			}
			else if ( settings.type == 'random' ) {
				setTimeout(function(){
					do { current = Math.floor ( Math.random ( ) * ( elements.length ) ); } while ( current == 0 )
					$.innerfade.next(elements, settings, current, 0);
				}, settings.timeout);
				$(elements[0]).show();
			}
			else {
				alert('type must either be \'sequence\' or \'random\'');
			}
			
		}
		
	});
};


$.innerfade = function() {}
$.innerfade.next = function (elements, settings, current, last) {

	$(elements[last]).fadeOut(settings.speed);
	$(elements[current]).fadeIn(settings.speed);
	
	if ( settings.type == 'sequence' ) {
		if ( ( current + 1 ) < elements.length ) {
			current = current + 1;
			last = current - 1;
		}
		else {
			current = 0;
			last = elements.length - 1;
		}
	}
	else if ( settings.type == 'random' ) {
		last = current;
		while (	current == last ) {
			current = Math.floor ( Math.random ( ) * ( elements.length ) );
		}
	}
	else {
		alert('type must either be \'sequence\' or \'random\'');
	}
	setTimeout((function(){$.innerfade.next(elements, settings, current, last);}), settings.timeout);
}



/*
	Sorin Ionescu
	Image Border
*/
$.fn.border = function(prefix){var classNames = ['north','east','south','west','northeast','southeast','southwest','northwest'];this.each(function(){var borderElement = null;var currentElement = this.cloneNode(true);var nodeList = this.childNodes;var nodeArray = new Array();for (var index = classNames.length - 1, className; className = classNames[index]; index--){if (prefix != null){className = prefix + className;}borderElement = document.createElement('div');$(borderElement).addClass(className).css({display: 'block', margin: 0, padding: 0});borderElement.appendChild(currentElement);currentElement = borderElement;}this.parentNode.replaceChild(currentElement, this);/*@cc_on
$(currentElement).css({zoom: '1'});@*/});return this;};


/*
	Jonathan Howard
	jQuery Pause
	version 0.2
*/
$.fn.pause = function(milli,type) {milli = milli || 1000; type = type || "fx"; return this.queue(type,function(){var self = this; setTimeout(function(){$.dequeue(self);},milli);});};
$.fn.clearQueue = $.fn.unpause = function(type) {return this.each(function(){type = type || "fx"; if(this.queue && this.queue[type]) {this.queue[type].length = 0;}});};


/*
	Scroll modified from original at http://jquery.com/demo/thickbox/
	Cody Lindley (http://www.codylindley.com)
	No license or attribution specified by Lindley so I'm attributing to him
*/

jQuery.getPos = function (e){var l = 0;var t  = 0;var w = jQuery.intval(jQuery.css(e,'width'));var h = jQuery.intval(jQuery.css(e,'height'));var wb = e.offsetWidth;var hb = e.offsetHeight;while (e.offsetParent){l += e.offsetLeft + (e.currentStyle?jQuery.intval(e.currentStyle.borderLeftWidth):0);t += e.offsetTop  + (e.currentStyle?jQuery.intval(e.currentStyle.borderTopWidth):0);e = e.offsetParent;}l += e.offsetLeft + (e.currentStyle?jQuery.intval(e.currentStyle.borderLeftWidth):0);t  += e.offsetTop  + (e.currentStyle?jQuery.intval(e.currentStyle.borderTopWidth):0);return {x:l, y:t, w:w, h:h, wb:wb, hb:hb};};jQuery.getClient = function(e){if (e) {w = e.clientWidth;h = e.clientHeight;} else {w = (window.innerWidth) ? window.innerWidth : (document.documentElement && document.documentElement.clientWidth) ? document.documentElement.clientWidth : document.body.offsetWidth;h = (window.innerHeight) ? window.innerHeight : (document.documentElement && document.documentElement.clientHeight) ? document.documentElement.clientHeight : document.body.offsetHeight;}return {w:w,h:h};};jQuery.getScroll = function (e) {if (e) {t = e.scrollTop;l = e.scrollLeft;w = e.scrollWidth;h = e.scrollHeight;} else  {if (document.documentElement && document.documentElement.scrollTop) {t = document.documentElement.scrollTop;l = document.documentElement.scrollLeft;w = document.documentElement.scrollWidth;h = document.documentElement.scrollHeight;} else if (document.body) {t = document.body.scrollTop;l = document.body.scrollLeft;w = document.body.scrollWidth;h = document.body.scrollHeight;}}return { t: t, l: l, w: w, h: h };};jQuery.intval = function (v){v = parseInt(v);return isNaN(v) ? 0 : v;};jQuery.fn.ScrollTo = function(s) {o = jQuery.speed(s);return this.each(function(){new jQuery.fx.ScrollTo(this, o);});};jQuery.fx.ScrollTo = function (e, o){var z = this;z.o = o;z.e = e;z.p = jQuery.getPos(e);z.s = jQuery.getScroll();z.clear = function(){clearInterval(z.timer);z.timer=null};z.t=(new Date).getTime();z.step = function(){var t = (new Date).getTime();var p = (t - z.t) / z.o.duration;if (t >= z.o.duration+z.t) {z.clear();setTimeout(function(){z.scroll(z.p.y, z.p.x)},13);} else {st = ((-Math.cos(p*Math.PI)/2) + 0.5) * (z.p.y-z.s.t) + z.s.t;sl = ((-Math.cos(p*Math.PI)/2) + 0.5) * (z.p.x-z.s.l) + z.s.l;z.scroll(st, sl);}};z.scroll = function (t, l){window.scrollTo(l, t)};z.timer=setInterval(function(){z.step();},13);};

/* ==============================================================================
	Tabs 
============================================================================== */

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(5($){$.1T.9=5(f,2){4(v f==\'2i\')2=f;2=$.2j({f:(f&&v f==\'2r\'&&f>0)?--f:0,u:d,j:$.Y?2f:U,1u:d,1g:d,1i:d,1j:d,17:\'2l\',1A:d,1C:d,1Q:U,P:d,G:d,C:d,F:\'9-2m\',J:\'9-u\',T:\'9-1a\',15:\'1l\'},2||{});$.c.1r=$.c.y&&v 2n==\'5\';3 1x=5(){1B(0,0)};o 6.1b(5(){3 m=6;4(A.7){$(\'>Z:n(0)>19>a\',6).1b(5(i){4(6.7==A.7){2.f=i;4($.c.y||$.c.2o){3 8=$(A.7);3 14=8.w();8.w(\'\');N(5(){8.w(14)},2p)}1x();o U}})}4($.c.y){1x()}3 9=$(\'>Z:n(0)>19>a\',6);$(\'>\'+2.15,6).2s(\':n(\'+2.f+\')\').O(2.T);$(\'>Z:n(0)>19:n(\'+2.f+\')\',6).O(2.F);4(2.1Q){3 13=$(\'>\'+2.15,m);3 1d=5(1R){3 1o=$.2t(13.W(),5(E){3 h,q=$(E);4(1R){4($.c.1r){E.L.2u(\'1U\');E.L.g=\'\';E.18=d}h=q.r({\'1V-g\':\'\'}).g()}l{h=q.g()}o h}).2w(5(a,b){o b-a});4($.c.1r){13.1b(5(){6.18=1o[0]+\'1W\';6.L.2x(\'1U\',\'6.L.g = 6.18 ? 6.18 : "2z"\')})}l{13.r({\'1V-g\':1o[0]+\'1W\'})}};1d();3 16=m.21;3 1e=m.1c;3 1z=$(\'#9-1X-1Y-1y\').W(0)||$(\'<1Z w="9-1X-1Y-1y">M</1Z>\').r({1k:\'2B\',2D:\'2E\',2F:\'1E\'}).2G(s.1w).W(0);3 S=1z.1c;2H(5(){3 Q=m.21;3 1f=m.1c;3 R=1z.1c;4(1f>1e||Q!=16||R!=S){1d((Q>16||R<S));16=Q;1e=1f;S=R}},1p)}3 z={},t={};3 H,K;4(2.1g||2.1u){4(2.1g){z[\'g\']=\'1t\';t[\'g\']=\'1a\'}4(2.1u){z[\'x\']=\'1t\';t[\'x\']=\'1a\'}H=K=2.17}l{4(2.1i){z=2.1i;H=2.1A||2.17}l{z[\'x\']=\'1t\';H=2.j?1p:1}4(2.1j){t=2.1j;K=2.1C||2.17}l{t[\'x\']=\'1a\';K=2.j?1p:1}}3 P=2.P,G=2.G,C=2.C;4(2.j){9.25();$.Y.26()}9.11(\'1M\',5(){3 7=6.7;4($(7).B(\':1E\')&&!$(6.I).B(\'.\'+2.J)){4($.c.y){$(6).10();4(2.j){$.Y.1L(7);A.7=7.1q(\'#\',\'\')}}l 4($.c.1N){3 1J=$(\'<1I 27="\'+7+\'"><1l><28 29="1K" 2a="h" /></1l></1I>\').W(0);1J.1K();$(6).10();4(2.j){$.Y.1L(7)}}l{4(2.j){A.7=7.1q(\'#\',\'\')}l{$(6).10()}}}});9.11(\'1m\',5(){$(6.I).O(2.J)});4(2.u&&2.u.1s){1H(3 i=0,k=2.u.1s;i<k;i++){9.n(--2.u[i]).1P(\'1m\').2c()}};9.11(\'1O\',5(){3 q=$(6.I);q.1n(2.J);4($.c.1N){q.2d(1,1.0).r({1k:\'\',x:1});N(5(){q.r({x:\'\'})},2g)}});9.11(\'10\',5(e){3 1v=$(6.I);4(1v.B(\'.\'+2.J)){o U}4(!1v.B(\'.\'+2.F)){3 8=$(6.7);4(8.1y()>0){4(2.j&&$.c.y){3 14=6.7.1q(\'#\',\'\');8.w(\'\');N(5(){8.w(14)},0)}3 D=6;3 p=$(\'>\'+2.15+\':2y\',m);4(v P==\'5\'){N(5(){P(D,8[0],p[0])},0)}p.23(t,K,5(){$(D.I).O(2.F).2C().1n(2.F);4(v G==\'5\'){G(D,8[0],p[0])}8.1n(2.T).23(z,H,5(){4($.c.y){p[0].L.24=\'\';p.O(2.T).r({1k:\'\',1G:\'\',g:\'\'})}8.r({g:\'\',1G:\'\'});4(v C==\'5\'){C(D,8[0],p[0])}})})}l{2e(\'2h B 2k 2q m.\')}}3 1D=1h.2v||s.12&&s.12.1S||s.1w.1S||0;3 1F=1h.2A||s.12&&s.12.22||s.1w.22||0;N(5(){1h.1B(1D,1F)},0);6.2b();o 2.j})})};3 X=[\'1M\',\'1m\',\'1O\'];1H(3 i=0;i<X.1s;i++){$.1T[X[i]]=(5(20){o 5(V){o 6.1b(5(){3 i=V&&V>0&&V-1||0;$(\'>Z:n(0)>19>a\',6).n(i).1P(20)})}})(X[i])}})(2I);',62,169,'||settings|var|if|function|this|hash|toShow|tabs|||browser|null||initial|height|||bookmarkable||else|container|eq|return|toHide|jq|css|document|hideAnim|disabled|typeof|id|opacity|msie|showAnim|location|is|onShow|clicked|el|selectedClass|onHide|showSpeed|parentNode|disabledClass|hideSpeed|style||setTimeout|addClass|onClick|currentWidth|currentFontSize|cachedFontSize|hideClass|false|tabIndex|get|tabEvents|ajaxHistory|ul|click|bind|documentElement|tabsContents|toShowId|tabStruct|cachedWidth|fxSpeed|minHeight|li|hide|each|offsetHeight|_setAutoHeight|cachedHeight|currentHeight|fxSlide|window|fxShow|fxHide|display|div|disableTab|removeClass|heights|50|replace|msie6|length|show|fxFade|jqLi|body|_unFocus|size|watchFontSize|fxShowSpeed|scrollTo|fxHideSpeed|scrollX|hidden|scrollY|overflow|for|form|tempForm|submit|update|triggerTab|safari|enableTab|trigger|fxAutoHeight|reset|scrollLeft|fn|behaviour|min|px|watch|font|span|tabEvent|offsetWidth|scrollTop|animate|filter|history|initialize|action|input|type|value|blur|end|fadeTo|alert|true|30|There|object|extend|no|normal|selected|XMLHttpRequest|opera|500|such|number|not|map|removeExpression|pageXOffset|sort|setExpression|visible|1px|pageYOffset|block|siblings|position|absolute|visibility|appendTo|setInterval|jQuery'.split('|'),0,{}))

/* ==============================================================================
	History 
============================================================================== */

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(4($){$.z=17 4(){3 7=8.2;3 C=S;3 n;b.k=4(){};5($.u.15){3 r;$(4(){r=$(\'<9 18="1i: 1a;"></9>\').J(l.K).1b(0);3 9=r.B.l;9.R();9.N();9.8.2=7.O(\'#\',\'\')});b.k=4(2){7=2;3 9=r.B.l;9.R();9.N();9.8.2=2.O(\'#\',\'\')};n=4(){3 9=r.B.l;3 m=9.8.2;5(m!=7){7=m;5(m!=\'#\'){$(\'a[@f$="\'+m+\'"]\').h();8.2=m}g{8.2=\'\';3 6=$(\'.d-6\');5(6.x().s()>0)6.y()}}}}g 5($.u.1e||$.u.1f){b.k=4(2){7=2};n=4(){5(8.2){5(7!=8.2){7=8.2;$(\'a[@f$="\'+7+\'"]\').h()}}g 5(7){7=\'\';3 6=$(\'.d-6\');5(6.x().s()>0)6.y()}}}g 5($.u.1g){3 c,o,v;$(4(){c=[];c.j=w.j;o=[]});3 q=D;v=4(2){c.G(2);o.j=0;q=D};b.k=4(2){7=2;v(7)};n=4(){3 p=w.j-c.j;5(p){q=D;5(p<0){F(3 i=0;i<14.13(p);i++)o.V(c.W())}g{F(3 i=0;i<p;i++)c.G(o.Y())}3 H=c[c.j-1];$(\'a[@f$="\'+H+\'"]\').h();7=8.2}g 5(c[c.j-1]==P&&!q){5(l.L.Z(\'#\')>=0){$(\'a[@f$="\'+\'#\'+l.L.11(\'#\')[1]+\'"]\').h()}g{3 6=$(\'.d-6\');5(6.x().s()>0)6.y()}q=16}}}b.19=4(){5(8.2&&1c v==\'P\'){$(\'a.d[@f$="\'+8.2+\'"]\').h()}5(n&&C==S){C=U(n,X)}}};$.M.d=4(6){3 A=$(6).s()&&$(6)||$(\'<E></E>\').J(\'K\');A.10(\'d-6\');I b.12(4(i){3 T=b.f;3 2=\'#d-\'+ ++i;b.f=2;$(b).h(4(e){3 t=e.Q;A.1d(T,4(){5(t){$.z.k(2)}})})})};$.M.w=4(){I b.h(4(e){3 t=e.Q;5(t){$.z.k(b.2)}})}})(1h);',62,81,'||hash|var|function|if|output|_currentHash|location|iframe||this|_backStack|remote||href|else|click||length|update|document|iframeHash|_observeHistory|_forwardStack|historyDelta|isFirst|_historyIframe|size|trueClick|browser|_addHistory|history|children|empty|ajaxHistory|target|contentWindow|_intervalId|false|div|for|push|cachedHash|return|appendTo|body|URL|fn|close|replace|undefined|clientX|open|null|remoteURL|setInterval|unshift|pop|200|shift|indexOf|addClass|split|each|abs|Math|msie|true|new|style|initialize|none|get|typeof|load|mozilla|opera|safari|jQuery|display'.split('|'),0,{}))


/*
 *
 * Copyright (c) 2006 Sam Collett (http://www.texotela.co.uk)
 * Licensed under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 * 
 */

 
/*
 * jQuery Image Replacement. An alternative to using CSS hacks
 * The id attribute is used for the filename
 *
 * @name     jQIR
 * @param    format  Image format/file extension (e.g. png, gif, jpg)
 * @param    path    Path to images folder (optional)
 * @author   Sam Collett (http://www.texotela.co.uk)
 * @example  $(".jqir").jQIR("png", "images/");
 * @before   <h3 id="heading1" class="jqir">Heading 1</h3>
 * @result   <h3 id="heading1" class="jqir"><img alt="Heading 1" src="images/heading1.png"></h3>   
 * @example  $(".jqir").jQIR("gif"); // use same folder as page
 * @before   <h3 id="heading1" class="jqir">Heading 1</h3>
 * @result   <h3 id="heading1" class="jqir"><img alt="Heading 1" src="heading1.gif"></h3>   
 *
 */
jQuery.fn.jQIR = function(format, path)
{
	if(!document.images) return this;
	path = path || "";
	this.each(
		function()
		{
			var img = $("<img>"), self = jQuery(this);
			jQuery(img).attr(
			{
				src: path + self[0].id + "." + format,
				alt: self.text()
			});
			self.empty().append(img);
		}
	)
	return this;
}