// JavaScript Document setcode
var J = jQuery.noConflict();
MM_preloadImages('http://www.getreadyrentals.com/images/bt_home_over.gif','http://www.getreadyrentals.com/images/bt_rentals_over.gif','http://www.getreadyrentals.com/images/bt_travel_over.gif','http://www.getreadyrentals.com/images/bt_faq_over.gif','http://www.getreadyrentals.com/images/bt_contact_over.gif','http://www.getreadyrentals.com/images/bt_terms_over.gif','http://www.getreadyrentals.com/images/bt_members_over.gif','http://www.getreadyrentals.com/images/b_main.jpg','http://www.getreadyrentals.com/images/bt_bt_how_book_over.gif');
J(document).ready(function(){
	Nifty("div.t_holiday_home,div.search_book,div#search-book-apartment,div.search-desc","22px");
	Nifty("div.title_city,div.bloq-apartments,div.bloq-hotels,div.bloq-hotels-kitty,div.title-apartment","4px");
					   
	function GEBI(id){ return document.getElementById(id);} 
	 //HOME
	 J('li#home').mouseover(function(){ GEBI('img_home').src='http://www.getreadyrentals.com/images/bt_home_over.gif'; } );
	 J('li#home').mouseout(function(){ GEBI('img_home').src='http://www.getreadyrentals.com/images/bt_home.gif';   });
	 J('li#home').click(function(){ window.location=urlimg;  });
	 
	 //RENT  YOUR PLACE
 	 J('li#rent').mouseover(function(){ GEBI('img_rentals').src='http://www.getreadyrentals.com/images/bt_rentals_over.gif';  });
	 J('li#rent').mouseout(function(){ GEBI('img_rentals').src='http://www.getreadyrentals.com/images/bt_rentals.gif';   });
	 
	 //TRAVEL GUIDE
     J('li#travel').mouseover(function(){ GEBI('img_travel').src='http://www.getreadyrentals.com/images/bt_travel_over.gif'; });
	 J('li#travel').mouseout(function(){ GEBI('img_travel').src='http://www.getreadyrentals.com/images/bt_travel.gif';  });
	 
	 //FAQ
     J('li#faq').mouseover(function(){ GEBI('img_faq').src='http://www.getreadyrentals.com/images/bt_faq_over.gif';   });
	 J('li#faq').mouseout(function(){ GEBI('img_faq').src='http://www.getreadyrentals.com/images/bt_faq.gif';  });
	 
	 //CONTACT US
     J('li#contact').mouseover(function(){ GEBI('img_contact').src='http://www.getreadyrentals.com/images/bt_contact_over.gif';  });
	 J('li#contact').mouseout(function(){ GEBI('img_contact').src='http://www.getreadyrentals.com/images/bt_contact.gif';  });

	//WHY US
     J('li#whyus').mouseover(function(){ GEBI('img_whyus').src='http://www.getreadyrentals.com/images/bt_whyus_over.gif';  });
	 J('li#whyus').mouseout(function(){ GEBI('img_whyus').src='http://www.getreadyrentals.com/images/bt_whyus.gif';  });

 	 //TERMS CONDITION
     J('li#how').mouseover(function(){ GEBI('img_how').src='http://www.getreadyrentals.com/images/bt_how_book_over.gif';  });
	 J('li#how').mouseout(function(){ GEBI('img_how').src='http://www.getreadyrentals.com/images/bt_how_book.gif';  });	
	 
	 //TERMS CONDITION
     J('li#terms').mouseover(function(){ GEBI('img_terms').src='http://www.getreadyrentals.com/images/bt_terms_over.gif';  });
	 J('li#terms').mouseout(function(){ GEBI('img_terms').src='http://www.getreadyrentals.com/images/bt_terms.gif';  });	 
	 
	// MEMBERS
     J('li#members').mouseover(function(){ GEBI('img_members').src='http://www.getreadyrentals.com/images/bt_members_over.gif';  });
	 J('li#members').mouseout(function(){ GEBI('img_members').src='http://www.getreadyrentals.com/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="http://www.getreadyrentals.com/images/bt_search_<? echo $langref; ?>_over.gif"; });
	 J('img#search').mouseout(function(){ this.src="http://www.getreadyrentals.com/images/bt_search_<? echo $langref; ?>.gif"; });
	 
	//SCROLL HOME
	J('#scroller').cycle({ 
		fx: 'scrollHorz',
		timeout: 5000
		});
	
	J("area#mapview").fancybox({ 'zoomSpeedIn': 0, 'zoomSpeedOut': 0, 'overlayShow': true , 'frameWidth': 890, 'frameHeight': 480 }); 
	
	});
	
	
animatedcollapse.ontoggle=function($, divobj, state){ //fires each time a DIV is expanded/contracted
	//$: Access to jQuery
	//divobj: DOM reference to DIV being expanded/ collapsed. Use "divobj.id" to get its ID
	//state: "block" or "none", depending on state
}

animatedcollapse.init()
	