document.write('<style>h1 {letter-spacing:-0px;} .menu,.submenu {left:-1000em}</style>');
$(document).ready(function() {

     $('img[src$=.png]').ifixpng();


	
	$("h1,.font").each(function() {
		Cufon.replace(this, {
			hover : true,
			fontFamily : 'font'
		});
		$(this).css( {
			
		});
	});

	$(".submenu,.menu").each(function() {
		Cufon.replace(this, {
			hover : true,
			fontFamily : 'menu'
		});
		$(this).css( {

		});
	});

$(".form label").each(function(){

$(this).next("input").example($(this).text());
$(this).next("textarea").example($(this).text());
$(this).hide();


});
    $(".form textarea").elastic();


$(".header").cycle();

$("#scrollable").scrollable({speed: 1000}).navigator();

$(".map").hover(function(){
 $(this).addClass("map-hover");
},function(){
 $(this).removeClass("map-hover");
})
$(".map").click(function(){
location.href=$(this).find("a").attr("href");
})

$("#next IMG,#prev IMG").hover(
function(){
    var src = $(this);
    src_array = src.attr("src").split(".");
    if(src_array.length == 2){
	src.attr({src:src_array[0]+"-active."+src_array[1]});
    }
},function(){
    var src = $(this);
    src.attr({src:src.attr("src").replace("-active","")});
})

});

$(window).load(function(){
$(".menu").css({marginLeft: -(parseInt($(".menu").width()/2))})
$(".submenu-case").css({marginLeft: -(parseInt($(".submenu-case").width()/2))})
$(".menu,.submenu").css({left:"50%"});
})


