$(document).ready(function(){
	Cufon.replace('h1');
	Cufon.replace('h2');
	Cufon.replace('h3');
	Cufon.replace('h4');
	Cufon.replace('h5');
	Cufon.replace('li.mega a.mega-tab');
	Cufon.replace('#mininav ul li');
	Cufon.replace('#mininav ul li a');
	Cufon.replace('#testimonial-home p');
	Cufon.replace('.mega-menu li a', {hover: true});
	
$("#searchbutton").hover(function() { $(this).stop().fadeTo(250,.7); }, function() { $(this).stop().fadeTo(100,1); }); 
$("#minisocial ul li a").hover(function() { $(this).stop().fadeTo(250,.7); }, function() { $(this).stop().fadeTo(100,1); }); 

var feedbackTab = {
 
    speed:300,
    containerWidth:$('#feedback-panel').outerWidth(),
    containerHeight:$('#feedback-panel').outerHeight(),
    tabWidth:$('.feedback-tab').outerWidth(),
 
 
    init:function(){
        $('#feedback-panel').css('height',feedbackTab.containerHeight + 'px');
 
        $('a.feedback-tab').click(function(event){
            if ($('#feedback-panel').hasClass('open')) {
                $('#feedback-panel')
                .animate({right:'-' + feedbackTab.containerWidth}, feedbackTab.speed)
                .removeClass('open');
            } else {
                $('#feedback-panel')
                .animate({right:'0'},  feedbackTab.speed)
                .addClass('open');
            }
            event.preventDefault();
        });
    }
};
 
feedbackTab.init();
});


