<!--
var newwindow;
	function popsup(url) {
		newwindow=window.open(url,'name','height=600,width=780,top=30, scrollbars=1, titlebar=0, statusbar=0, menubar=0');
		if (window.focus) {newwindow.focus()}
	}
$(window).load(function() {
	$('#slider').nivoSlider({
		effect:'fade',
		slices:15,
		animSpeed:1000,
		pauseTime:6000,
		startSlide:0, //Set starting Slide (0 index)
		directionNav:false, //Next &amp; Prev
		directionNavHide:true, //Only show on hover
		controlNav:false, //1,2,3...
		keyboardNav:false, //Use left &amp; right arrows
		pauseOnHover:true, //Stop animation while hovering
		manualAdvance:false, //Force manual transitions
		captionOpacity:0.6, //Universal caption opacity
		beforeChange: function(){},
		afterChange: function(){},
		slideshowEnd: function(){} //Triggers after all slides have been shown
	});
});

function SetCookie() {
if(arguments.length < 2) { return; }
var n = arguments[0];
var v = arguments[1];
var d = 0;
if(arguments.length > 2) { d = parseInt(arguments[2]); }
var exp = '';
if(d > 0) {
	var now = new Date();
	then = now.getTime() + (d * 24 * 60 * 60 * 1000);
	now.setTime(then);
	exp = '; expires=' + now.toGMTString();
	}
document.cookie = n + "=" + escape(String(v)) + '; path=/' + exp;
}
function ReadCookie(n) {
var cookiecontent = new String();
if(document.cookie.length > 0) {
	var cookiename = n+ '=';
	var cookiebegin = document.cookie.indexOf(cookiename);
	var cookieend = 0;
	if(cookiebegin > -1) {
		cookiebegin += cookiename.length;
		cookieend = document.cookie.indexOf(";",cookiebegin);
		if(cookieend < cookiebegin) { cookieend = document.cookie.length; }
		cookiecontent = document.cookie.substring(cookiebegin,cookieend);
		}
	}
return unescape(cookiecontent);
}
acookie = ReadCookie("wacte");
if(acookie.length == 0) {
	if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){
		var ieversion=new Number(RegExp.$1)
		if (ieversion<8) {
			alert('Your browser is out of date and non-compliant.\n Please upgrade it. We recommend a compliant\n browser such as Google Chrome or Firefox.');
			SetCookie("wacte", "315",0);
		}
	}
}

function checkform ( form )
{

  // Add blocks of code like this for each input to check
  if (form.name.value == "") {
    alert( "Please enter your name." );
    form.name.focus();
    return false ;
  }
 
	 if (form.address.value == "") {
    alert( "Please enter your address." );
    form.address.focus();
    return false ;
  }

  return true ;

/* Example of a form
<form action="#" method="post" onsubmit="return checkform(this);"> 
	<input type="text" name="name" /> 
	<input type="text" name="address"  />
	<input type='submit' name='submit' value='Submit' />
</form>
*/

}
//-->


