function adjust() {
	var leftBorderDiv=document.getElementById('leftBorder');
	var rightBorderDiv=document.getElementById('rightBorder');
	if(document.body.clientWidth>=790){
		leftBorderDiv.style.width="3px"
		rightBorderDiv.style.width="7px"
	} else if(document.body.clientWidth>=788){
		leftBorderDiv.style.width="2px"
		rightBorderDiv.style.width="6px"
	} else if(document.body.clientWidth>=786){
		leftBorderDiv.style.width="1px"
		rightBorderDiv.style.width="5px"
	} else if(document.body.clientWidth>=784){
		leftBorderDiv.style.width="1px"
		rightBorderDiv.style.width="3px"
	} else if(document.body.clientWidth>=782){
		leftBorderDiv.style.width="1px"
		rightBorderDiv.style.width="1px"
	} else {
		 leftBorderDiv.style.width="0px";
		 rightBorderDiv.style.width="0px";
	}
}
	function runSlideShow(){
		if(document.all){
			document.images.SlideShow.style.filter="blendTrans(duration=2)"
			document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
			document.images.SlideShow.filters.blendTrans.Apply()
		}
		document.images.SlideShow.src = preLoad[j].src
		if(document.all){
			document.images.SlideShow.filters.blendTrans.Play()
		}
		j = j + 1
		if (j > (p-1)) j=0
		tx = setTimeout('runSlideShow()', slideShowSpeed)
	}
	function runSlideShow2(){
		if(document.all){
			document.images.SlideShow2.style.filter="blendTrans(duration=2)"
			document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration)"
			document.images.SlideShow2.filters.blendTrans.Apply()
		}
		document.images.SlideShow2.src = preLoad2[k].src
		if(document.all){
			document.images.SlideShow2.filters.blendTrans.Play()
		}
		k = k + 1
		if (k > (q-1)) k=0
		ty = setTimeout('runSlideShow2()', slideShowSpeed2)
	}
	function addCSSRule (selectorText, declarations) {
		var styleSheet;
		if (document.styleSheets) {
			if (document.styleSheets.length === 0) {
				var styleElement;
				if (document.createElement && (styleElement = document.createElement('style'))) {
					styleElement.type = 'text/css';
					document.getElementsByTagName('head')[0].appendChild(styleElement);
					styleSheet = styleElement.sheet;
				}
			}
			if (document.styleSheets.length > 0) {
				styleSheet = document.styleSheets[document.styleSheets.length - 1];
				if (styleSheet.insertRule) {
					styleSheet.insertRule(selectorText + ' { ' + declarations + ' }', styleSheet.cssRules.length);
				}
				else if (styleSheet.addRule) {
					styleSheet.addRule(selectorText, declarations);
				}
			}
		}
	}
	function ValidateForm() {
		field = document.login.email;
		if ( isBlank(field, "Email Address") ) {
			document.login.email.focus();
			document.login.email.blur();
			document.login.email.select();
			return false;
		}
		if ( isShort(field, "Email Address", 8) ) {
			document.login.email.focus();
			document.login.email.blur();
			document.login.email.select();
			return false;
		}
		if (!ValidateEmail(document.login.email)){
			alert('There seems to ba a problem with the email address you\nentered. Please be sure to enter a valid email address.');
			document.login.email.focus();
			document.login.email.blur();
			document.login.email.select();
			return false;
		}
		field = document.login.password;
		if ( isBlank(field, "Password") ) {
			document.login.password.focus();
			document.login.password.blur();
			document.login.password.select();
			return false;
		}
		if ( isShort(field, "Password", 6) ) {
			document.login.password.focus();
			document.login.password.blur();
			document.login.password.select();
			return false;
		}
	}
	function trimLeft(s) {
		var whitespaces = " \t\n\r";
		for(n = 0; n < s.length; n++) { if (whitespaces.indexOf(s.charAt(n)) == -1) return (n > 0) ? s.substring(n, s.length) : s; }
		return("");
	}
	function trimRight(s){
		var whitespaces = " \t\n\r";
		for(n = s.length - 1; n	> -1; n--) { if (whitespaces.indexOf(s.charAt(n)) == -1) return (n < (s.length - 1)) ? s.substring(0, n+1) : s; }
		return("");
	}
	function trim(s) {return ((s == null) ? "" : trimRight(trimLeft(s))); }
	function isBlank(field, strFieldName) {
		strTrimmed = trim(field.value);
		if (strTrimmed.length > 0 && field.value!=strFieldName) return false;
		alert("\"" + strFieldName + "\" is a required field. Please fill it out.");
		return true;
	}
	function isShort(field, strFieldName, size) {
		strTrimmed = trim(field.value);
		if (strTrimmed.length >= size && field.value!=strFieldName) return false;
		alert("\"" + strFieldName + "\" must be at least " + size + " character in length. Please try again.");
		return true;
	}
	function ValidateEmail(field) {
		Ctrl = field;
		var supported = 0;
		if (window.RegExp) {
			var tempStr = "a";
			var tempReg = new RegExp(tempStr);
			if (tempReg.test(tempStr)) supported = 1;
		}
		if (!supported) return (Ctrl.value.indexOf(".") > 2) && (Ctrl.value.indexOf("@") > 0);
		var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
		var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
		return (!r1.test(Ctrl.value) && r2.test(Ctrl.value));
	}
	var isnn,isie
	if(navigator.appName=='Microsoft Internet Explorer') { isie=true; } 
	if(navigator.appName=='Netscape') { isnn=true; } 
	function right(e) { 
		var copyrightMessage = '\n\nAll material on this Web site, including all images and\ntext, is protected by international copyright law.';
		if (isnn && (e.which == 3 || e.which == 2 )) {
			alert("Sorry, you do not have permission to right click on this page." + copyrightMessage); 
			return false;
		}
		if (isnn && (e.which == 1)) {
			noMove();
			return false;
		}
		if (isie && (event.button == 2 || event.button == 3)) {
			alert("Sorry, you do not have permission to right click on this page." + copyrightMessage); 
			return false;
		}
		if (isie && (event.button == 1)) { 
			noMove(); 
			return false;
		}
		return true;
	} 
	function noMove() { 
		return false;
	} 
	if (document.layers) window.captureEvents(Event.MOUSEDOWN);
	if (document.layers) window.captureEvents(Event.MOUSEUP);
	if (document.layers) window.captureEvents(Event.MOUSEMOVE);

	document.onmousedown=right; 
	document.onmouseup=right;
	document.onmousemove=right;

