Cufon.replace('.frame #header h2') ('.frame #header h3') ('.article h3') ('.gallery-container h3') ('.slogan h2') ('.contact-form .bottom h3') ('.sidebar-form .bottom h3') ('.buttons a')('.box .link p')('.shell h2')('.shell h3')('.newswrap h4');

$(document).ready(function() {
	if ($('#slideshow').size() == '1') {
		$('#slideshow').cycle();	
	}
	
	$('.colorboximg').colorbox();
	
	// menu
	var config = {    
         sensitivity: 3, // number = sensitivity threshold (must be 1 or higher)    
         interval: 200,  // number = milliseconds for onMouseOver polling interval    
         over: doOpen,   // function = onMouseOver callback (REQUIRED)    
         timeout: 200,   // number = milliseconds delay before onMouseOut    
         out: doClose    // function = onMouseOut callback (REQUIRED)    
    };
    
    function doOpen() {
        $(this).addClass("hover");
        $('ul:first',this).css('visibility', 'visible');
    }
 
    function doClose() {
        $(this).removeClass("hover");
        $('ul:first',this).css('visibility', 'hidden');
		$('a', this).removeClass("hover");
    }

    $("ul.sf-menu li").hoverIntent(config);
    
    $("ul.sf-menu li:has(ul)").addClass("hassub");					   
	
	$("ul.sf-menu ul a").mouseover(function() {
		$("a", $(this).closest('ul').parent()).eq(0).addClass("hover");
	 });
	
	$('.portfolioViewThumbs img').mouseover(function() {
		$('img.portfolioViewMain').attr("src", $(this).parent('a').attr('href'));													 
	 });
});
