// JavaScript Document/************************************************ jQuery Mega Menu- by JavaScript Kit (www.javascriptkit.com)* This notice must stay intact for usage* Visit JavaScript Kit at http://www.javascriptkit.com/ for full source code***********************************************///jkmegamenu.definemenu("anchorid", "menuid", "mouseover|click")jkmegamenu.definemenu("featuresanchor", "featuresmenu", "mouseover");jkmegamenu.definemenu("newcontentanchor", "newcontentmenu", "mouseover");jkmegamenu.definemenu("orderanchor", "ordermenu", "mouseover");jkmegamenu.definemenu("learnmoreanchor", "learnmoremenu", "mouseover");jkmegamenu.definemenu("contactanchor", "contactmenu", "mouseover");/* The following variables may be adjusted *//* 1 */var bgImageTotal = 3;var randomNumber = Math.round(Math.random()*(bgImageTotal-1))+1;var imgPath = ('image/nova/HomeHero-'+randomNumber+'.jpg');/* 2 */var active_color = '#000'; // Colour of user provided textvar inactive_color = '#ccc'; // Colour of default textvar default_values = new Array();$(document).ready(function() {	/* displays .png images in IE6 */	$(document).pngFix();		/* 1 */	/* randomizes background hero image on home page */	$('#heroimage').css('background-image', ('url(' + imgPath + ')'));		/* 2 */	/* adds helper information to formfields */	/**	* Written by Rob Schmitt, The Web Developer's Blog	* http://webdeveloper.beforeseven.com/	*/		$("input.default-value").css("color", inactive_color);		$("input.default-value").focus(function() {		if (!default_values[this.id]) {			default_values[this.id] = this.value;		}		if (this.value == default_values[this.id]) {			this.value = '';			this.style.color = active_color;		}		$(this).blur(function() {			if (this.value == '') {				this.style.color = inactive_color;				this.value = default_values[this.id];			}		});	});		if (typeof $("img[rel^='#profile']").cluetip == 'function') {		/* Find all images with relationship starting with #profile and add a cluetip */		$("img[rel^='#profile']").cluetip({local:true, cursor: 'pointer' ,  dropShadow: false });	}	if (typeof $.ui != 'undefined') {	    $("#slider-vertical").slider({	        orientation: "vertical",	        value: 100,	        animate: true,	        change: handleBioSliderChange,	        slide: handleBioSliderSlide	    });	}	if (typeof $.ui != 'undefined') {	    $("#highlightlist").tabs({	        event: 'mouseover',	        show: function(event, ui) {	            $('.swapcontent').hide();	            $(ui.tab.hash).show();	        }	    });	}});function handleBioSliderChange(e, ui) {	var maxScroll = $("#scrollable").attr("scrollHeight") - $("#scrollable").height();	$("#scrollable").animate({scrollTop: (100-ui.value) * (maxScroll / 100) }, 1000);}function handleBioSliderSlide(e, ui) {	var maxScroll = $("#scrollable").attr("scrollHeight") - $("#scrollable").height();	$("#scrollable").attr({scrollTop: (100-ui.value) * (maxScroll / 100) });}
