$(function() {


	//NAVIGATION
	//parents are not clickable, rest done in css
	//$('.parent > a').click(function () { return false; })
	
	//remove title tags
	//$('#navigation a').removeAttr('title')

	//disable image links this way
	//$('.image_slide a').click(function () { return false; }).removeAttr('title').css('cursor','default');

	//SEARCH / FORM BLUR/FOCUS
	$('#searchform #s').each(function() { //for forms... form input[type=text], form textarea
	
		var default_value = this.value;
		$(this).css('color','#aaa');
		
		$(this).focus(function(){
			if(this.value == default_value) {
				this.value = '';
				$(this).css('color','#333');
			}
		});
		
		$(this).blur(function(){
			if(this.value == '') {
				this.value = default_value;
				$(this).css('color','#aaa');
			}
		});
	
	});



	/*

	### SOME USEFUL JQUERY ###

	//STYLISTIC CSS CROSS BROWSER FIXES
		// for browsers not supporting last-child... for all ie and ff3.0 - for example...
	$("li:last-child").css("display", "none");


	//ADD CLASS EXTERNAL TO ALL OUTGOING LINKS
	$('a').filter(function() {
	   return this.hostname && this.hostname !== location.hostname;
	}).addClass("external");
		//OPEN THEM IN NEW WINDOW
		$(document).ready(function(){
			$("a.external").attr('target','_blank');
		});

	*/

	/*
	DEBUGGIN

	OUTPUT BODY ID TO TOP OF PAGE
	var bodyId = $("body").attr("id");
	$("span.here").text(bodyId);

	//put this at top of page to...
	//<strong><span class="here"></span></strong>

	*/



	/*************************************************
		PLUGINS
	*************************************************/

	
	$('html').removeClass('no-js');
	
	/*
	CSS Browser Selector v0.3.5 (Feb 05, 2010)
	Rafael Lima (http://rafael.adm.br)
	http://rafael.adm.br/css_browser_selector
	License: http://creativecommons.org/licenses/by/2.5/
	Contributors: http://rafael.adm.br/css_browser_selector#contributors
	*/
	function css_browser_selector(u){var ua = u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1;},g='gecko',w='webkit',s='safari',o='opera',h=document.documentElement,b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3')?g+' ff3':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.$1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.$2:'')):is('konqueror')?'konqueror':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?'mobile':is('iphone')?'iphone':is('ipod')?'ipod':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win':is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; css_browser_selector(navigator.userAgent);



	

}); /* end document ready */


