// google cdn jquery host
var _uri_jquery = 'http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js';

// check if jquery exists
try { 
	if ($().jquery) { 
		// do nothing - jquery has already been included		
	}
	
		
}

// ignore the 'exception' and require jquery
catch (ignore) { 

	var element = null;
	
	// this is the prefered method, as its both faster and a document.write after
	// content has been loaded to page, causes shyte problems (replaces content on page)
	if ((element = document.getElementById('script_jquery')) != null) { 
		element.src = _uri_jquery;
	}
	
	// this is the fallback method if no other options are available
	else { 
		document.write(
			'<scr' + 'ipt language="javascript" type="text/javascript" src="' + _uri_jquery + '" ></script>'
		);
	}
}

