// Cufon
Cufon.replace('#content #home_cta_cv span, #content #home_cta ul, #content #home_cta div.content p.title, #content div.adpanel div.title, #content div.graduates blockquote, #sidebar div.title, #main h1, #support_finder div.title, div.title, #support_finder label.desc, #support_finder div.label, body.pedigree div.subtitle, body.startups div.subtitle, body.employment div.subtitle, #subnav div.subnav_title, #subnav a.support_training, div.subtitle, .sub_title, p.casestudytitle');

// JQuery
$(function() {
	// IE 6 & 7  can't do line-height in Cufon, this tricks it into it!
	$('#content #home_cta ul .cufon-vml, #content #home_cta div.content p.title .cufon-vml').css('float','left');
	
	// Clear text on click
	//$('#content #home_cta #form_postcode, #support_finder #form_postcode').click(function() { this.value = ""; });
	
	// Sub menu
	/*$("#nav_people a").hover(
		function () {
			$("#subnav").show();
			return false;
	  	},
	  	function () {
			$("#subnav").hide();
			return false;
	  	}
	);
	*/
	
	$("#nav_people a").hover(function () { 
	  $('#subnav').show();
	 /* $('#subnav').doTimeout('prodenhanced', 5000, function(){
		$('#subnav').hide();
	  });*/
	},
	function () {
		$("#subnav").hide();
	});
	
	$("#subnav").hover(function () {
		$.doTimeout( 'prodenhanced' );
		$(this).show();	
      }, 
      function () {
        $(this).hide();
      }
	);
	
	
	// More / Close
	/*
	$('#content div.workshops div.more a.more').click(function(){
		$('#content div.workshops div.row_2').hide();
		$('#content div.workshops div.row_full').show();
		return false;
	});;
	
	$('#content div.workshops div.row_full a.close').click(function(){
		$('#content div.workshops div.row_2').show();
		$('#content div.workshops div.row_full').hide();
		return false;
	});*/
	
	
	// Zebra tables
	//$("div.row:nth-child(odd)").addClass("alt");
	
	$("#left_sidebar ul.nav li:nth-child(even)").addClass("alt");
	
	// Clear value when clicked
   	$("#form_postcode").focus(function() {
		$(this).val('');
	});

});

// Google map

