$(document).ready(function(){ 
 


						 
	FontChange();// to Change the Font					

						   
		$('#mycarousel').jcarousel({
			auto: 6,
			wrap: 'last',
			initCallback: mycarousel_initCallback
		});
		
							   
		$("ul.sf-menu").superfish(); 
		
	

		//Diagnal Sliding
		$('.boxgrid.thecombo').hover(function(){
			$(".cover", this).stop().animate({top:'80px', left:'0px'},{queue:false,duration:200});
		}, function() {
			$(".cover", this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:200});
		});

		//Full Caption Sliding (Hidden to Visible)
		$('.boxgrid.captionfull').hover(function(){
			$(".cover", this).stop().animate({top:'120px'},{queue:false,duration:160});
		}, function() {
			$(".cover", this).stop().animate({top:'200px'},{queue:false,duration:160});
		});
	
	
		$(".captionfull   .cover", this).stop().animate({top:'200px'},{queue:false,duration:0});
	});











function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};




	// Credits: Robert Penners easing equations (http://www.robertpenner.com/easing/).
	jQuery.easing['BounceEaseOut'] = function(p, t, b, c, d) {
		if ((t/=d) < (1/2.75)) {
			return c*(7.5625*t*t) + b;
		} else if (t < (2/2.75)) {
			return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
		} else if (t < (2.5/2.75)) {
			return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
		} else {
			return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
		}
	};

	


function FontChange(){
	if(getVersion()!='IE6'){
		 Cufon.replace('h1'); // font Replace 
	}
}
/**************FontChange End *********************/


/**************getVersion Start*********************/
// This Function will 
// Return the Browser Version and 
// Browser Name
// by Ronty (20050829)
// Last Modified (20090115)
/**************getVersion Start *********************/

function getVersion(){
 browserName=navigator.appName.toLowerCase();
 // Get the Browser Version
 browserVersion=parseInt(navigator.appVersion);
  // Now check for differing versions
 if (browserName=="netscape" && browserVersion==5)
  	// Netscape 6 has version number 5
  	return "FF6";
 else if (browserName=="netscape" && browserVersion==4)
	return "FF4";
 else if (browserName=="netscape" && browserVersion==3)
	return "FF3";
 else if (browserName=="netscape" && browserVersion==2)
	return "FF2";
 else if (browserName=="microsoft internet explorer" && browserVersion==4 
 	&& navigator.appVersion.indexOf("MSIE 8.0") != -1)
 
	return "IE8";
 else if (browserName=="microsoft internet explorer" && browserVersion==4 
 	&& navigator.appVersion.indexOf("MSIE 7.0") != -1)
 	
	return "IE7";
 else if (browserName=="microsoft internet explorer" && browserVersion==4 
 	&& navigator.appVersion.indexOf("MSIE 6.0") != -1)
 	// both MSIE 6, 5.5  and 5.0 return browser version of 4
	return "IE6";
 else if (browserName=="microsoft internet explorer" && browserVersion==4 
 	&& navigator.appVersion.indexOf("MSIE 5.5") != -1)
	return "IE5.5";
 else if (browserName=="microsoft internet explorer" && browserVersion==4 
 	&& navigator.appVersion.indexOf("MSIE 5.0") != -1)
	return "IE5.0";
 else if (browserName=="microsoft internet explorer" && browserVersion==4)
	return "IE4.0";
 else if (browserName=="microsoft internet explorer" && browserVersion<4)
	return "IE3.0";
 else if (browserName=="opera" && browserVersion==2)
	return "OP2.0";
 else if (browserName=="opera" && browserVersion==3)
	return "OP3.0";
 else if (browserName=="opera" && browserVersion==4)
 	return "OP4.0";
 else if (browserName=="opera" && browserVersion==5)
	return "OP5.0";
 // If here then not NN or IE or Opera
	else return "Unknown";
}
/**************getVersion End *********************/