$(document).ready(function(){
	$('a[href=#]').live('click', function(){return false;});
	
	Cufon.replace('h2')('#top_menu a',{hover: true});
	
	$('textarea, input[type=text]').each(function(index, el){
		var val = el.value;
		
		$(el).focus(function(){
			if(el.value == val){
				el.value = "";
			}
		});
		
		$(el).blur(function(){
			if(el.value == ""){
				el.value = val;
			}
		});
	});
	
	$('ul.partners li img').each(function(){
		var t=$(this);
		var src1= t.attr('src');
		var newSrc = src1.substring(0, src1.lastIndexOf('.'));
		t.hover(
			function(){
				$(this).attr('src', newSrc+ '_color.' + /[^.]+$/.exec(src1)); 
			},
			function(){
				$(this).attr('src', newSrc + '.' + /[^.]+$/.exec(src1));
			}
		);
	});
	
	$('.colorbox').colorbox();


});

