function UnCryptMailto(s) {
	var n=0;
	var r="";
	for(var i=0; i < s.length; i++) {
		n=s.charCodeAt(i);
		if (n>=8364) {n = 128;}
		r += String.fromCharCode(n-(1));
	}
	return r;
}
function linkTo_UnCryptMailto(s)	{
	location.href=UnCryptMailto(s);
}

function resize() {
	jQuery('#slideshow').height(jQuery('#slideshow .current').height() + 40);
	cowH = jQuery('#content_outer_wrapper').height();
	cowH = jQuery('#content_wrapper').height();
	wH = jQuery(window).height();
	if((cowH+425) < (wH)) {
		jQuery('#content_outer_wrapper').height(wH-425);
	} else if((cowH+425) > (wH)) {
		jQuery('#content_outer_wrapper').height(cowH);
	}
}








jQuery(function() {
	resize();
	jQuery(window).resize(function() {
		resize();
	});
	//var resizer = window.setInterval("resize()", 250);
	
	jQuery('.start_link, #subnavi a').hover(function() {jQuery(this).addClass('hover');}, function() {jQuery(this).removeClass('hover');});
	
	jQuery('.start_link').click(function() { location.href = jQuery(this).attr('href'); });
	
	
	
	jQuery('.gototop a').unbind().click(function(e) {
		e.preventDefault(); e.stopPropagation();
		jQuery(document).scrollTo(0, 400);
	});
	
});
