<!-- Hiding script
var gChanged = 0
var gURL = server_path
var gSURL = "https://" + gURL.substr(7)
var gRURL = (gIsSSL) ? gSURL : gURL
var isNN = (navigator.appName.indexOf("Netscape")!=-1);
var gIsIE3 = (navigator.appVersion.indexOf("MSIE 3") != -1) ? true : false
var gIsIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false
function BtnClassNew(obj, new_style) {
    obj.className = new_style;
}
function go(form, where){
	form.change.value=gChanged
	form.next_page.value=where
	var hash = "";
	if (form.hash_to.value){
		hash = "#" + form.hash_to.value;
	}
	form.action= gRURL + "index.php" + hash
	form.method="POST"
	form.submit();
}
function goHash(form, where, hash){
	form.hash_to.value = hash
	go(form, where)
}
function logout(form){
	form.from_page.value = "login"
	gChanged="2"
	go(form, 'main_body')
}
function goInternal(form, id){
	form.internal_page_id.value=id
	go(form, 'internal_page')
}
function goCatalog(form, id){
	form.category_id.value=id
	go(form, 'catalog')
}
function addCart(form, id){
	form.from_page.value='cart_add'
	form.product_id.value=id
	go(form, 'cart_contents')
}
function goProduct(form, id){
	form.from_page.value=''
	form.product_id.value=id
	go(form, 'prod_view')
}
function goSecure(form, where){
	form.change.value=gChanged
	form.action= gSURL + where
	form.method="POST"
	form.submit();
}
function goUnSecure(form, where){
	form.change.value=gChanged
	form.action= gURL + where
	form.method="POST"
	form.submit();
}
function goTemplate(form, template, where){
	form.change.value=gChanged
	form.next_page.value=where
	form.template_name.value=template
	form.action= gRURL + "index.php"
	form.method="POST"
	form.submit();
}
function makeArray(n){
	this.length = n;
  	for (i=1;i<=n;i++){
	    this[i]="";
	}
  	return this;
}
function popUpWindow( content ){
	var mapWindow = window.open( gURL + "html/" + content + ".html", "PopUpWindow", "height=200, width=300, scrollbars=yes, resizable=yes")
}
function popUpWindowURL( url ){
	var mapWindow = window.open( url, "PopUpWindow", "height=200, width=300, scrollbars=yes, resizable=yes")
}
function popUpWideWindow( content ){
	var mapWindow = window.open( gURL + "html/" + content + ".html", "PopUpWindow", "height=200, width=500, scrollbars=yes, resizable=yes")
}
function popUpBigWindow( url ){
	var mapWindow = window.open( url, "PopUpWindow", "height=400, width=400, scrollbars=yes, resizable=yes")
}
function popUpFullWindow( url ){
	var mapWindow = window.open( url, "PopUpWindow", "scrollbars=yes, resizable=yes")
}
function popUpSpecialWindow( url, winname, options ){
	var mapWindow = window.open( url, winname, options);
	mapWindow.focus();
}
function popUpReport( parameters ){
	var reportWindow = window.open( gURL + "index.php?template_name=report_output" + parameters, "ReportWindow", "toolbar=yes, scrollbars=yes, resizable=yes")
}
function popUpURL( new_url ){
	var newWindow = window.open( "http://" + new_url, "", "")
}
function popUpImage(imgpath){
    var imageWindow = window.open(gURL + imgpath, "", "scrollbars=yes, resizable=yes");
}
function smartWindow(html, width, height){
    var winName = "NW" + parseInt(Math.random() * 100);
    var agt=navigator.userAgent.toLowerCase();
    var is_major = parseInt(navigator.appVersion);
    var is_minor = parseFloat(navigator.appVersion);
    var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
                && (agt.indexOf('webtv')==-1));
    var is_nav3 = (is_nav && (is_major == 3));
    var is_nav4up = (is_nav && (is_major >= 4));
    var is_navonly      = (is_nav && ((agt.indexOf(";nav") != -1) ||
                          (agt.indexOf("; nav") != -1)) );

    var is_ie   = (agt.indexOf("msie") != -1);
    var is_ie3  = (is_ie && (is_major < 4));
    var is_ie4  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")==-1) );
    var is_ie4up  = (is_ie  && (is_major >= 4));
    var is_ie5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
    var is_ie5up  = (is_ie  && !is_ie3 && !is_ie4);

    var is_aol   = (agt.indexOf("aol") != -1);
    var is_aol3  = (is_aol && is_ie3);
    var is_aol4  = (is_aol && is_ie4);

	if (width == 0){
		width=525
	}
	if (height == 0){
		height=550
	}
	if (is_nav3 || is_nav4up){
	    win1 = window.open(html,winName,"scrollbars=no,resizable=no,height=" + height + ",width=" + width)
		win1.focus()
	}else if (is_ie4up){
        win1 = window.open(html,winName,"scrollbars=no,resizable=no,height=" + height + ",width=" + width)
        win1.focus()
    }else{
		win1 = window.open(html,winName,"scrollbars=no,resizable=no,height=" + height + ",width=" + width);
	}
}
function changeOn(){
	gChanged="1"
}
function isEmpty(field){
	var x = field
    if (x == "" || x == null){
    	return true
	}
    return false
}
function isNotEmpty(field){
	var x = field
    if (x != "" && x != null){
    	return true
	}
    return false
}
function selectedItem(selectObject){
	var x = selectObject
	var key = ""
	for (var i = 0; i < x.length; i++){
		if (x.options[i].selected){
			key = x.options[i].value
			i = x.length
		}
	}
	return key
}
function checkedItem(selectObject){
	var x = selectObject
	var key = "";
	for (var i = 0; i < x.length; i++){
		if (x[i].checked){
			key = x[i].value;
			i = x.length;
		}
	}
	return key
}
function selectItem(selectObject, item2Select){
	var key = ""
	for (var i = 0; i < selectObject.length; i++){
		if (selectObject.options[i].value == item2Select){
			key = i
			i = selectObject.length
		}
	}
	return key
}
function fieldFocus(field){
	field.focus()
}
function fieldSelect(field){
	field.focus()
	field.select()
}
function inRange(x, low, hi){
	var z = parseInt(x, 10)
    if (z < low || z > hi){return false}
    return true
}
function stripAlpha(x){
	var rn = ""
	if (x != null){
		for (var i = 0; i < x.length; i++){
			var c = x.charCodeAt(i)
			if (c > 47 && c < 58){rn += x.charAt(i)}
		}
	}
	return rn
}
function stripQuotes(rawx){
	var x = rawx.value
	x=x.replace("'", "");
	x=x.replace('"', "");
	return x
}
function stripDollarSign(rawx){
	var x = rawx.value
	x=x.replace(",", "");
	x=x.replace("$", "");
	x=x.replace("%", "");
	return x
}
function formatNumber(expr, decplaces){
	var neg = false;
    var str  = "" + Math.round(eval(expr) * Math.pow(10, decplaces), decplaces)
    if (str.indexOf("NaN") > -1){str = "0";}
    if (str.indexOf("-") == 0){str = str.substr(1); neg = true;}
	while (str.length <= decplaces){str = "0" + str;}
	var decpoint = str.length - decplaces;
	if (decplaces > 0){
		str = str.substring(0,decpoint) + "." + str.substring(decpoint, str.length);
	}else{str = str.substring(0,decpoint);}
	if (neg){str = "-" + str;}
	return str;
}
function dollarize(expr){
	return "$" + formatNumber(expr, 2);
}
function percentage(expr){
	return "" + formatNumber(expr, 2) + "%";
}
function padNum(num) {
	return (num	< 10)? '0' + num : num ;
}
function setNumeric(y){
	if (y == ""){y = "0"}
	if (y == "f"){y = "0"}
	if (y == "t"){y = "1"}
	if (isNaN(y)){y = "0"}
	if (y.substr(".")){
		var x = parseFloat(y);
	}else{
		var x = parseInt(y, 10);
	}
	return x
}
function requiredOK(required, x){
	if (required && isEmpty(x.value)){return false}
	var badnames = new Array("SELF EMPLOYED")
	for (var i = 0; i < badnames.length; i++){
		if (x.value.toUpperCase().indexOf(badnames[i]) > -1){
			return false
		}
	}
	return true
}
function popUpToggle(x){
	var now_showing = false;
	if (gIsIE){
		var popUp = eval("document.all." + x + ".style")
		if (popUp.visibility == "visible"){
			popUp.visibility = "hidden";
		}else{
			popUp.visibility = "visible";
			now_showing = true;
		}
	}else{
		var popUp = eval("document.layers['" + x + "']")
		if (popUp.visibility == "show"){
			popUp.visibility = "hide";
		}else{
			popUp.visibility = "show";
			now_showing = true;
		}
	}
	return now_showing;
}
//Button Rollover Control
function selOn(ctrl) { 
    ctrl.style.borderColor = '#000000'; 
    ctrl.style.backgroundColor = '#B5BED6'; 
    ctrl.style.cursor = 'hand'; 
} 
function selOff(ctrl) { 
    ctrl.style.borderColor = '#D6D3CE'; 
    ctrl.style.backgroundColor = '#D6D3CE'; 
    ctrl.style.cursor = ''; 
} 
function selDown(ctrl) { 
    ctrl.style.borderColor = '#000000'; 
    ctrl.style.backgroundColor = '#9999AC'; 
    ctrl.style.cursor = 'hand'; 
} 
function selUp(ctrl) { 
    ctrl.style.borderColor = '#000000'; 
    ctrl.style.backgroundColor = '#9999AC'; 
    ctrl.style.cursor = 'hand'; 
} 
function autoTab(input, len, e) {
    var keyCode = (isNN) ? e.which : e.keyCode; 
    var filter = (isNN) ? [0,8,9] : [0,8,9,16,17,18,37,38,39,40,46];
    if(input.value.length >= len && !containsElement(filter,keyCode)) {
        input.value = input.value.slice(0, len);
        input.form[(getIndex(input)+1) % input.form.length].focus();
    }
    function containsElement(arr, ele) {
        var found = false, index = 0;
        while(!found && index < arr.length)
            if(arr[index] == ele)
                found = true;
            else
                index++;
        return found;
    }
    function getIndex(input) {
        var index = -1, i = 0, found = false;
        while (i < input.form.length && index == -1)
            if (input.form[i] == input)
                index = i;
            else i++;
        return index;
    }
    return true;
}

/********************************************************************************
This script is made by and copyrighted to Thomas Brattli at www.bratta.com
Visit for more great scripts. 
This may be used freely as long as this msg is intact!
********************************************************************************
Browsercheck:*/
ie=document.all?1:0
n=document.layers?1:0

/********************************************************************************
Here are the variables you must set:
*/

//The delay between the fades (in milliseconds) smaller value gives less time:
betweendelay=12000

//Do you wan't it to start over on the first one when it's gone trought all the news?
//(set to 0 if not)
var loop=1

//What font do you wan't it use?
FontFace='verdana,arial,helvetica,sans-serif'

//What font-size (in pixel)?
FontSize=10

//Do you wan't it to fade out aswell? 1 for on, 0 for off
fadeback=0

//Set the colors, first color is same as background, last color is the color it stops at:
//You can have upto 7 colors, set the ones you wan't use to 0
colors=new Array()
colors[0]='#FFFFFF'
colors[1]='#EEEEEE'
colors[2]='#CCCCCC'
colors[3]='#999999'
colors[4]='#666666'
colors[5]='#333333'
colors[6]='#000000'

//This is the news you wanna have, set the link and the text. If you don't wan't it to link anywhere
//use a # as the link
news=new Array()
//Copy there three lines and change the info and numbers to get more news.
news[0]=new Array()
news[0]["text"]="First customer quote goes here...what a wonderful resource...greatest thing since sliced bread...<br>Bob P."
news[0]["link"]="http://www.zonji.com"

news[1]=new Array()
news[1]["text"]="Second customer quote goes here...what a deal...can't thank you enough...wow...<br>Neil D."
news[1]["link"]="http://www.zonji.com"

news[2]=new Array()
news[2]["text"]="Third customer quote goes here...I love you man...really...I love you...What's your sign?<br>Sammy G."
news[2]["link"]="http://www.zonji.com" 

/*Dont change anything below this!
*********************************************************************************/
fadeInit=new Function("oNews=new makeObj('divNews','divCont'); fadeNews(0)")
function makeObj(obj,nest){
    nest=(!nest) ? '':'document.'+nest+'.'
    this.css=(n) ? eval(nest+'document.'+obj):eval(obj+'.style')
    this.writeref=(n) ? eval(nest+'document.'+obj+'.document'):eval(obj);		
	this.fadeIt=b_fadeIt
    this.obj = obj + "Object"; 	eval(this.obj + "=this")	
}
function b_fadeIt(text,link,font,size,speed,fn,num,c0,c1,c2,c3,c4,c5,c6){
	if(num<arguments.length && arguments[num]!=0){
		writetext='<a href="'+link+'" style="text-decoration:none; font-size:'+size+'px">'
		+'<font face="'+font+'" color="'+arguments[num]+'">'+text+'</font></a>'
		if(n){this.writeref.write(writetext); this.writeref.close()}
		if(ie) this.writeref.innerHTML=writetext		
		num++
		setTimeout(this.obj+'.fadeIt("'+text+'","'+link+'","'+font+'",'+size+','+speed+',"'
		+fn+'",'+num+',"'+c0+'","'+c1+'","'+c2+'","'+c3+'","'+c4+'","'+c5+'","'+c6+'")',speed)
	}else setTimeout('eval('+fn+')',betweendelay)
}
function fadeNews(num){
	if(num<news.length){
		fn=fadeback?'fadeBack('+num+')':'fadeNews('+(num+1)+')';
		oNews.fadeIt(news[num]["text"],news[num]["link"],FontFace,FontSize,100,fn,7,
		colors[0],colors[1],colors[2],colors[3],colors[4],colors[5],colors[6])
	}else if(loop)fadeNews(0)
}
function fadeBack(num){
	if(num>=0){
		oNews.fadeIt(news[num]["text"],news[num]["link"],FontFace,FontSize,100,'fadeNews('+(num+1)
		+')',7,colors[6],colors[5],colors[4],colors[3],colors[2],colors[1],colors[0])
	}
}

//************************************************************
// Load images and navigation roll-overs
function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}
function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}
var preloadFlag = false;
function preloadImages() {
if (document.images) {
ara_nav_home_over = newImage("images/ara_nav_home_over.gif");
ara_nav_about_over = newImage("images/ara_nav_about_over.gif");
ara_nav_contact_over = newImage("images/ara_nav_contact_over.gif");
ara_nav_events_over = newImage("images/ara_nav_events_over.gif");
ara_nav_membership_over = newImage("images/ara_nav_membership_over.gif");
ara_nav_faq_over = newImage("images/ara_nav_faq_over.gif");
ara_nav_links_over = newImage("images/ara_nav_links_over.gif");
preloadFlag = true;
}
}

//************************************************************
// Email Validation
function isEmail(elm) {
    if (elm.value.indexOf("@") + "" != "-1" &&
        elm.value.indexOf(".") + "" != "-1" &&
        elm.value != "") 
    return true;
    else return false;
}

function isFilled(elm) {
    if (elm.value == "" ||
        elm.value == null) 
    return false;
    else return true;
}

function isReady(form) {

    if (isFilled(form.name) == false) {
    alert("Please enter your name.");
    form.name.focus();
    return false;
    }

    if (isEmail(form.email) == false) { 
    alert("Please enter a valid email address.");
    form.email.focus();
    return false;
    }

    if (isFilled(form.message) == false) {
    alert("Please enter a message.");
    form.message.focus();
    return false;
    }

return true;
}
// End script hiding -->