$('head').append('<link href="/shared/css/noflicker.css" media="all" rel="stylesheet" type="text/css" />')$(document).ready(function(){	(function($){$.belowthefold=function(element,settings){var fold=$(window).height()+$(window).scrollTop();return fold<=$(element).offset().top-settings.threshold;};$.abovethetop=function(element,settings){var top=$(window).scrollTop();return top>=$(element).offset().top+$(element).height()-settings.threshold;};$.rightofscreen=function(element,settings){var fold=$(window).width()+$(window).scrollLeft();return fold<=$(element).offset().left-settings.threshold;};$.leftofscreen=function(element,settings){var left=$(window).scrollLeft();return left>=$(element).offset().left+$(element).width()-settings.threshold;};$.inviewport=function(element,settings){return!$.rightofscreen(element,settings)&&!$.leftofscreen(element,settings)&&!$.belowthefold(element,settings)&&!$.abovethetop(element,settings);};$.extend($.expr[':'],{"below-the-fold":function(a,i,m){return $.belowthefold(a,{threshold:0});},"above-the-top":function(a,i,m){return $.abovethetop(a,{threshold:0});},"left-of-screen":function(a,i,m){return $.leftofscreen(a,{threshold:0});},"right-of-screen":function(a,i,m){return $.rightofscreen(a,{threshold:0});},"in-viewport":function(a,i,m){return $.inviewport(a,{threshold:0});}});})(jQuery);		// 		$(window).bind("scroll", function(event) {							if( $('a#top').is(':in-viewport') ){				$('#backUp').hide();			}			else{								if ( $('#backUp').length == 0 ){					$('body').prepend('<a id="backUp" href="#top"></a>');				}				else{					$('#backUp').show();				};							};				});				$('.paginate a').click(function(){						$('.paginate li').removeClass();											var page = $(this).attr('rel');			var contentType = $('div.type').attr('id');						$('a[rel='+page+']').parent('li').addClass('selected');			getContents(page,contentType,allDone);			return false;		});				$('#search a').click(function(){						var theForm = '<form action=\"/search/\" method=\"get\"><input name=\"CRITERIA\" id=\"CRITERIA\" type=\"text\" value=\"\" size=\"20\" />&nbsp;&nbsp;<input type=\"submit\" name=\"search\" value=\"Search\" class=\"button\" /></form>';										$(this).parent('li').append(theForm);			$(this).remove();			return false;		});															// get Contents		function getContents(page,contentType,callback){						$('#'+contentType).hide().empty().addClass('loading-content');						$.ajax({			   type: 'GET',			   url: '/content/action/getContent.cfm',			   data: 'contentType='+contentType+'&page='+page+'',			   success: function(data){			   							$('#'+contentType).append(data).removeClass('loading-content');																					callback();					return false;								   },			   error: function(msg){			   		alert(msg);			   }			 });			 return false;		};				function allDone(){			$('.type').fadeIn('slow').show();		};					// blog detail icons		$('#comment, #tags, #star').click(function(){									// set the state of whatever was clicked, remove the state from others			$('a.active').removeClass('active');			$(this).addClass('active');						// get the hash of whatever was clicked						var thisHash = this.hash;						// show the div of whatever the hash was													$('aside#extras div'+thisHash+'').show();						// loop through all children, hide them if they are not the hash			$('aside#extras').children().each(function(i){				var thisID = '#' + $(this).attr('id');				if(thisID != thisHash){					$(thisID).hide();				}			});						a2a_fluids();			// go to it			var $target = $(this.hash);	        $target = $target.length && $target || $('[name=' + this.hash.slice(1) + ']');			var targetOffset = $target.offset().top - 120;			$('html,body').animate({scrollTop: targetOffset}, 500);				return false;											});				$(".colorbox,.thickbox").colorbox();		});