/**
 * www.lastsecond.nl
 *
 * @category   Bwm
 * @package    Bwm
 * @copyright  Copyright (c) 2000-2009 Brokerhof Web Marketing (http://www.bwm.nl)
 * @version    $Id: script.js 25 2010-02-26 13:46:05Z arie $
 */

$(document).ready(function() {
		
	$('#tabs').tabs();

	$("#accordion").accordion({
		collapsible: true
	});
	$("#topoffers").accordion({
		collapsible: true
	});
	$("#offers").accordion({
		collapsible: true
	});
	$("#searchoptions").accordion({
		collapsible: true
	});
	$("#banner").accordion({
		collapsible: true
	});
	
	$(function() {
		$("#tabs").tabs();
	});
			
	$(function(){
		$('a.new-window').click(function(){
		  pageTracker._trackEvent('External_URL', 'Click', this.href);
	      window.open(this.href);
	      return false;
	      });
    });

	$(function(){
		$('a.front_link').click(function(){
		  pageTracker._trackEvent('Front_URL', 'Click', this.cref);
	      });
    });

	$(".stars-wrapper").stars({
			disabled: true,
		     inputType: "option",
		     split: 2
	});
	
	$("div.list div.accommodation").mouseover(function(){
		$(this).find("div.more-info").show();
	    }).mouseout(function(){
	    	$(this).find("div.more-info").hide();
	});

	$("table.acco-list tbody tr").hover(
		      function () {
		        $(this).addClass("highlight");
		      }, 
		      function () {
		    	  $(this).removeClass("highlight");
		      }
	);

	$("table.acco-list tbody tr").click(
		      function () {
			       anchor = $(this).find("a").attr('href');
			       window.location = anchor;
		      }
	);	
	
	$("div.trips table tbody tr").hover(
		      function () {
		        $(this).addClass("highlight");
		      }, 
		      function () {
		    	  $(this).removeClass("highlight");
		      }
	);

	$("div.trips table tbody tr").click(
		      function () {
			       anchor = $(this).find("a").attr('href');
			       window.open(anchor);
				      return false;
		      }
	);		
	
});
