


jQuery.noConflict();
(function($){

$(document).ready(function(){


	Cufon.replace('#header .phone', { fontFamily: 'Verdana' });
	Cufon.replace('#header .topLinks a, #menu > ul > li > a', { fontFamily: 'Verdana',  hover: true });
	Cufon.replace('#content h2, #wrapSec h3, #video-box h3, #map-mod h3', { fontFamily: 'Avant Garde Book' });
	Cufon.replace('#map-mod h4', { fontFamily: 'Verdana' });
	Cufon.replace('#nav1 .first', { fontFamily: 'Avant Garde Book' });
	Cufon.replace('.box3 a.more', { fontFamily: 'Avant Garde Book',  hover: true });

	if ($.fn.jCarouselLite)
	{
		$('#slideshow1 .slider').jCarouselLite({
			btnPrev: '#slideshow1 a.prev',
			btnNext: '#slideshow1 a.next',
			visible: 1,
			scroll: 1,
			speed: 400,
			auto: 5000,
			speed:500,
			circular: true
		});
		// remove this if slideshow is circular
		$('#slideshow1 a.prev').addClass('disabled');

		$('#slideshow2 .slider').jCarouselLite({
		    btnPrev: '#slideshow2 a.prev',
		    btnNext: '#slideshow2 a.next',
		    visible: 1,
		    scroll: 1,
		    speed: 400,
		    auto: 5000,
		    speed: 500,
		    circular: true,
		    afterEnd: function() {

		        var currentPage = $('#slideshow2').find("span.pagenr").text();
		        var totalPage = $('#slideshow2').find("span.pagetotal").text();
		        if (currentPage < totalPage) {
		            currentPage++
		        } else {
		            currentPage = 1
		        }
		        $('#slideshow2').find("span.pagenr").text(currentPage);

		    }
		});
		// remove this if slideshow is circular
		$('#slideshow2 a.prev').addClass('disabled');
}



	

	if ($.browser.msie) {
		try {document.execCommand("BackgroundImageCache", false, true);} catch(err){};
		if (typeof(DD_belatedPNG) != 'undefined')
		{
			DD_belatedPNG.fix('img, .box3 a.more, #slideshow1 .nav a, #menu li div.div1, #menu li div.div1 div');
		}
	}

});



})(jQuery);

function change(state) {

    jQuery('area').hover(function() {
        jQuery('.image-map').attr('src', '/images/map-' + state + '.png');
    }, function() {
        jQuery('.image-map').attr('src', '/images/map-default.png');
    });

}
