jQuery.noConflict();
jQuery(document).ready(function(){
				   
	Cufon.replace('h1,h2,h3,h4, #topcontact, .menu, #footer, .page');

	jQuery.each(jQuery.browser, function(i) {
		if(jQuery.browser.msie){
			jQuery('.articles h3 a, .portfolio h3 a, .page a').addClass('iehoverlink');
			jQuery('.rubrics li a').addClass('ie');
			jQuery('.foto').hover(
				function(){
					jQuery(this).stop().addClass('transparent');

				}, 
				function () {
					jQuery(this).stop().removeClass('transparent');
				}
			);
		}else{
			jQuery('.menu a, #logo, h2 a, h3 a, .foto img, li a, #logo2, .page a').not('.active').hover(
				function(){
					jQuery(this).stop().animate({opacity: 0.4}, 250);

				}, 
				function () {
					jQuery(this).stop().animate({opacity: 1}, 250);
				}
			);
		}
	});
	jQuery('.inner .portfolio h2').not('h2:first').css({'margin-top': '-10px'});
	
	jQuery('.portfolio:eq(2), .portfolio:eq(5)').css({'margin-right':'0px'});
	if (jQuery('.portfolio').length > 3 ){
		jQuery('.portfolio:eq(3)').before('<div class="separator" style="width:100%;"><!----></div>');
		jQuery('.portfolio:last').after('<div class="clear"><!----></div>');
	}
	jQuery('.sub, ul#topcontact').find('li:last').css('borderBottom',0);		
});

