var base = "/";Cufon.replace('.work-item,.hoverable', {hover: true});

Cufon.replace('h1, h2, h3, h4', {
	hover: true
});

function goTo(url) {
	window.location = url;
}

function setHints() {
	$('.hint').each(function() {
		if($(this).hasClass('required')) $(this).addClass('notDefault');
		if($(this).val() == '')	$(this).val(this.title).addClass('hinttxt');
		$(this).focus(function(){if ($(this).val() == this.title) $(this).val("").removeClass('hinttxt');})
	});
}
function unsetHints(form) {
	$('#'+form+' .hint').each(function() {
		if ($(this).val() == this.title) $(this).val("");
	});
}
$(function() {
	$('#go').hide();
	/*$('#workcat').change(function() {
		$.ajax({url:base+'modules/ajax.php?getWork', 
			   dataType: 'json', 
			   type: "POST",
			   data: 'output=1&cat='+$(this).val(), 
			   success:function(response) {
				   $('#work').html(response.data);
				   Cufon.replace('h2, h3');
				   Cufon('.two-col .projects-left h3 a', {	fontFamily: 'Ronnia',	hover: 'true'});
				}
		});
	});*/
	$('.workcat').click(function() {
		$('.workcat').removeClass('active');
		$(this).addClass('active');
		$.ajax({url:base+'modules/ajax.php?getWork', 
			   dataType: 'json', 
			   type: "POST",
			   data: 'output=1&cat='+$(this).attr("title"), 
			   success:function(response) {
				   $('#work').html(response.data);
				   Cufon.replace('.work-item,.hoverable', {hover: true});
				   Cufon.replace('h2');
				   Cufon('h2, .two-col .projects-left h3 a', {fontFamily: 'Ronnia',	hover: 'true'});
				}
		});
	});
});
