2009-05-18 04:25:42 +01:00
|
|
|
/* The following serves to stretch the content div to the bottom of the margin images, or vice versa*/
|
2009-05-13 05:25:17 +01:00
|
|
|
|
2009-05-18 04:25:42 +01:00
|
|
|
function contentHeight(){
|
|
|
|
setMaxHeight($(".rightMargin,#content,.leftMargin,#col2"),$("#content"));
|
|
|
|
};
|
|
|
|
|
|
|
|
function setMaxHeight(group, target) {
|
|
|
|
tallest = 0;
|
|
|
|
group.each(function() {
|
|
|
|
thisHeight = $(this).height();
|
|
|
|
if(thisHeight > tallest) {
|
|
|
|
tallest = thisHeight;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
target.height(tallest);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*This is the jquery comment stuff */
|
2009-05-13 06:22:07 +01:00
|
|
|
$(document).ready(function() {
|
|
|
|
|
|
|
|
$('.searchable li').quicksearch({
|
|
|
|
position: 'before',
|
|
|
|
attached: 'ul.searchable',
|
|
|
|
labelText: '',
|
|
|
|
loaderText: '',
|
|
|
|
delay: 100
|
|
|
|
})
|
|
|
|
|
|
|
|
$('table.searchable tr').quicksearch({
|
|
|
|
position: 'before',
|
|
|
|
attached: 'table.searchable:first',
|
|
|
|
});
|
|
|
|
|
|
|
|
$(".toggleEyeCandy").click(function () {
|
|
|
|
$(".leftMargin,.rightMargin").toggle("fade");
|
|
|
|
$(".toggleEyeCandy").toggle();
|
|
|
|
});
|
|
|
|
|
2009-05-18 04:25:42 +01:00
|
|
|
$(".toggleMenu").click(function () {
|
|
|
|
$("ul.dropdown li:not(.toggleMenu)").toggle();
|
|
|
|
$(".toggleMenu").toggle();
|
|
|
|
});
|
|
|
|
|
2009-05-13 06:22:07 +01:00
|
|
|
$(".nav").css('opacity','7')
|
|
|
|
$(".footer").hide();
|
|
|
|
$(".fadeIn").hide();
|
|
|
|
setTimeout("$('.leftMargin.fadeIn').fadeIn(3000);",1000);
|
|
|
|
setTimeout("$('.rightMargin.fadeIn').fadeIn(3000);",2000);
|
|
|
|
|
|
|
|
|
|
|
|
/*$("#footerLinks").hover(
|
|
|
|
function() {$(".footer").fadeIn("slow")},
|
|
|
|
function() {$(".footer").fadeOut("slow")}
|
|
|
|
);*/
|
|
|
|
|
|
|
|
function linkHover(hoverLink,image){
|
|
|
|
|
|
|
|
$(hoverLink).hover(
|
|
|
|
function() {
|
|
|
|
$(image).fadeIn("slow");
|
2009-05-18 04:25:42 +01:00
|
|
|
/* $(hoverLink).css("background","gray");*/
|
2009-05-13 06:22:07 +01:00
|
|
|
},
|
|
|
|
function() {
|
|
|
|
$(image).fadeOut("slow");
|
2009-05-18 04:25:42 +01:00
|
|
|
/* $(hoverLink).css("background","black");*/
|
2009-05-13 06:22:07 +01:00
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2009-05-18 04:25:42 +01:00
|
|
|
linkHover("#cavesLink","#richardBanner");
|
|
|
|
linkHover("#caversLink","#timeMachine");
|
2009-05-13 06:22:07 +01:00
|
|
|
linkHover("#surveyBinderLink","#surveyHover");
|
|
|
|
linkHover("#troggle","#timeMachine");
|
|
|
|
|
2009-05-18 04:25:42 +01:00
|
|
|
/*dropdown (well, up actually) menu code from http://css-tricks.com/simple-jquery-dropdowns/*/
|
|
|
|
$("ul.dropdown li").hover(
|
|
|
|
function(){
|
|
|
|
$(this).addClass("hover");
|
|
|
|
$('ul:first',this).css('visibility','visible')
|
|
|
|
},
|
|
|
|
|
|
|
|
function(){
|
|
|
|
$(this).removeClass("hover");
|
|
|
|
$('ul:first',this).css('visibility', 'hidden');
|
2009-05-13 06:22:07 +01:00
|
|
|
});
|
2009-05-13 05:25:17 +01:00
|
|
|
|
2009-05-18 04:25:42 +01:00
|
|
|
$("ul.dropdown li ul li:has(ul)").find("a:first").append(" » ");
|
|
|
|
/* end dropdown menu code */
|
|
|
|
|
|
|
|
});
|
2009-05-13 06:22:07 +01:00
|
|
|
|