// JavaScript Document setcode
var J = jQuery.noConflict();

J(document).ready(function(){
	MM_preloadurlimgimages(urlimg+'images/bt_home_over.gif',urlimg+'images/bt_rentals_over.gif',urlimg+'images/bt_travel_over.gif',urlimg+'images/bt_faq_over.gif',urlimg+'images/bt_contact_over.gif',urlimg+'images/bt_terms_over.gif',urlimg+'images/bt_members_over.gif',urlimg+'images/b_main.jpg');
	Nifty("div.t_holiday_home,div.search_book,div#search-book-apartment,div.search-desc","22px");
	Nifty("div.title_city,div.bloq-apartments,div.title-apartment","4px");
					   
	function GEBI(id){ return document.getElementById(id);}

	 //HOME
	 J('li#home').mouseover(function(){ GEBI('img_home').src=urlimg+'images/bt_home_over.gif'; } );
	 J('li#home').mouseout(function(){ GEBI('img_home').src=urlimg+'images/bt_home.gif';   });
	 J('li#home').click(function(){ window.location="index.php";  });
	 
	 //RENT  YOUR PLACE
 	 J('li#rent').mouseover(function(){ GEBI('img_rentals').src=urlimg+'images/bt_rentals_over.gif';  });
	 J('li#rent').mouseout(function(){ GEBI('img_rentals').src=urlimg+'images/bt_rentals.gif';   });
	 
	 //TRAVEL GUIDE
     J('li#travel').mouseover(function(){ GEBI('img_travel').src=urlimg+'images/bt_travel_over.gif'; });
	 J('li#travel').mouseout(function(){ GEBI('img_travel').src=urlimg+'images/bt_travel.gif';  });
	 
	 //FAQ
     J('li#faq').mouseover(function(){ GEBI('img_faq').src=urlimg+'images/bt_faq_over.gif';   });
	 J('li#faq').mouseout(function(){ GEBI('img_faq').src=urlimg+'images/bt_faq.gif';  });
	 
	 //CONTACT US
     J('li#contact').mouseover(function(){ GEBI('img_contact').src=urlimg+'images/bt_contact_over.gif';  });
	 J('li#contact').mouseout(function(){ GEBI('img_contact').src=urlimg+'images/bt_contact.gif';  });
	 
 	 //TERMS CONDITION
     J('li#how').mouseover(function(){ GEBI('img_how').src=urlimg+'images/bt_how_book_over.gif';  });
	 J('li#how').mouseout(function(){ GEBI('img_how').src=urlimg+'images/bt_how_book.gif';  });	
	 
	 //TERMS CONDITION
     J('li#terms').mouseover(function(){ GEBI('img_terms').src=urlimg+'images/bt_terms_over.gif';  });
	 J('li#terms').mouseout(function(){ GEBI('img_terms').src=urlimg+'images/bt_terms.gif';  });	 
	 
	// MEMBERS
     J('li#members').mouseover(function(){ GEBI('img_members').src=urlimg+'images/bt_members_over.gif';  });
	 J('li#members').mouseout(function(){ GEBI('img_members').src=urlimg+'images/bt_members.gif';  });
	 
     J('img#how,img#chat,img#here_aparment,img#vienna,img#search,img.details, img.book_now').css({cursor:'pointer'});
	 //SEARCH
	 J('img#search').mouseover(function(){ this.src="urlimgimages/bt_search_over.gif"; });
	 J('img#search').mouseout(function(){ this.src="urlimgimages/bt_search.gif"; });
	 
	//SCROLL HOME
	J('#scroller').cycle({ 
		fx: 'scrollHorz',
		timeout: 5000
		});
	
	J("area#mapview").fancybox({ 'zoomSpeedIn': 0, 'zoomSpeedOut': 0, 'overlayShow': true , 'frameWidth': 736, 'frameHeight': 478}); 
	
	});


