$(document).ready(function(){

	//Open all links with rel="external" in new window
	$('a[rel="external"]').click( function() {
		window.open( $(this).attr('href') );
		return false;
	});
	
	$(function(){
	$.extend($.fn.disableTextSelect = function() {
		return this.each(function(){
			if($.browser.mozilla){//Firefox
				$(this).css('MozUserSelect','none');
			}else if($.browser.msie){//IE
				$(this).bind('selectstart',function(){return false;});
			}else{//Opera, etc.
				$(this).mousedown(function(){return false;});
			}
		});
	});
	$('.title').disableTextSelect();//No text selection on elements with a class of 'title'
	});

    
	$('.show-hide').addClass('hide');
	$('.title').css('cursor','pointer');
	
    $('.show-hide .title').click( function() {
		if ($(this).parent().hasClass('show')) {
			$(this).parent().removeClass('show');
			$(this).parent().addClass('hide');
		} else if($(this).parent().hasClass('hide')) {
			$(this).parent().removeClass('hide');
			$(this).parent().addClass('show');
		}
	});
	
	
});
