//begin 
$(document).ready(function(){

//cufon

	Cufon.now(); 	 
	Cufon.replace('h2', {hover: 'true'});
	Cufon.replace('#home h3', {hover: 'true', textShadow: '2px 2px #000'});
	Cufon.replace('#left h3', {hover: 'true', textShadow: '2px 2px #000'});
	Cufon.replace('h4', {hover: 'true'});
	Cufon.replace('h5', {hover: 'true'});
	Cufon.replace('.title p', {hover: 'true'});

// submenu
	
	$('.home').mouseenter(function () {
 		$(this).find('.submenu').stop().animate({
			top: '102px',
			opacity: 1,
			filter:''
		}, 300);
 		$(this).find('.topimage').stop().animate({
			top: '-102px',
			opacity: 1
		}, 300);
	});
	
	$('.home').mouseleave(function () {
 		$(this).find('.topimage').stop().animate({
			top: '0px',
			opacity: 0
		}, 300);
 		$(this).find('.submenu').stop().animate({
			top: '0px',
			opacity: 0,
			filter:'0',
			filter: 'alpha(opacity=0)'
		}, 300);
	});

    $('.home:last').find('.submenu').hide();
    $('.home:last').find('.topimage').hide();


// the end
}); 

// iPad
jQuery.extend(jQuery.browser,
{SafariMobile : navigator.userAgent.toLowerCase().match(/iPad/i) }
);

$(function(){
  if($.browser.SafariMobile){
	$('bodyhtml').addClass('ipadhtml');
	$('body').addClass('ipadbody');
	$('#topbar').addClass('ipadtopbar');
	$('#close').addClass('ipadclose');
  }
})



