$(function() {

$("#news-ticker").weebTicker();

// image slideshow
$('#slideshowimages').cycle({ 
	fx:    'fade', 
	pause:  1,
	delay:  -5000 	
});


$('#productMainImage a').lightBox();



$("#wrapper").rrroundies();

//	var highestCol = Math.max($('#header').height(),$('#content').height());
//	$('#header, #content').height(highestCol);

// Use rel="external" on links to open in a new window

    $('a[rel=external]').click(function(){
		window.open(this.href);
		return false;
	});


// a quick & dirty <hr> fix for IE6

	if($.browser.msie && $.browser.version < 7) {
		$("hr").wrap('<div class="ieHrFix"></div>');
	}


// Use the label over plugin to put form labels into the input

	$('.inputGroup label').css('display','inline').labelOver();


// Make tables sortable by their headings
	
//	$("#example-table").tableSorter({
//		sortColumn: '',
//		sortClassAsc: 'headerSortUp',
//		sortClassDesc: 'headerSortDown',
//		headerClass: 'header',
//		dateFormat: 'dd/mm/yyyy'
//	});


// Add cite to title attribute

$("q, blockquote").hover(function(){
	var getCite = $(this).attr("cite");
	var cite = ('Cite — ' + getCite);
	$(this).attr({ title: cite });
});

// Stip tables, don't use this if using the table sorter

	// $('table').find("tr:even").addClass("striped-tr");		


// Add a print this page link to the page, change body in .appendTo("body") the location

	// $('<a href="#print">Print this page</a>').click(function(){window.print();}).appendTo("body");
	
	
// make aberdeen the persistent default option highlighted in the top nav	

$(".contact-aberdeen a").addClass("hover");	
	
$(".hvr a").hover(
  function () {
    $(".contact-aberdeen a").removeClass("hover");
  }, 
   function () {
    $(".contact-aberdeen a").addClass("hover");	
  }

);
	
	
	
	

});