function mycarousel_initCallback_1(carousel_1)
{
	$(".jcarousel-control a").bind("click", function(){
		theSlide = $(this).attr('href');
		$("#feature_nav a").removeClass("active");
		$(this).addClass("active");
		carousel_1.scroll($.jcarousel.intval(theSlide));
		return false;
	});
}
function moveCloseLink()
{ 
    var cb = document.getElementById('sb-nav-close'); 
    var tb = document.getElementById('sb-title'); 
    if(tb) tb.appendChild(cb); 
}
$(document).ready(function(){
	$(document).ajaxStop($.unblockUI);
	$('.blockui').click(function(){
		$.blockUI();
	});
	$('a.window').click(function(){
		window.open(this.href);
		return false;
	});
	$('a.popup').click(function(){
		url = this.href;
		window.open(url, "Ford Country Financing Application", "menubar=no,width=990,height=700,toolbar=no");
		return false;
	});
	$('#feature_rotator').jcarousel({
		initCallback: mycarousel_initCallback_1
	});
	$('#incentive_vehicle').change(function(){
		document.location = $(this).val();
	});
});
Shadowbox.init({
	onOpen: moveCloseLink
});
window.onload = function()
{
	Shadowbox.setup("a.video", {
		//content: data,
		//player: "html",
		height: 500,
		width: 700
	});
	Shadowbox.setup("a.detail_contact", {
		height: 500,
		width: 700
	});
}
