$(document).ready(function(){

// Set external links - XHTML Compatibility reasons
    $("a[rel='external']").attr("target","_blank");
    
// Logo onclick return home
    $("#logo").click(function () {
        window.location = "/";
    });

    $("#holderFeatured").addClass("active");
    $("#navFeatured").addClass("active");
	$("#navFeatured").jFlow({
		slides: "#featured",
		width: "698px",
		height: "182px",
		duration: 400
	});

   $("#trig_memLogin").toggle(function(e){
     e.preventDefault();
     $("#quickLogin").show('slow');
     $("#trig_memLogin").addClass("current");
   },function(e){
     e.preventDefault();
     $("#quickLogin").hide('slow');
     $("#trig_memLogin").removeClass("current");
   });

    $('.rte').wysiwyg({
        controls : {
            separator04 : { visible : true },

            insertOrderedList : { visible : true },
            insertUnorderedList : { visible : true }
        }
    });

	var ie	= document.all;
	if (ie)	{
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];

			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}



});

function confirmDel(url) {
	if (confirm('Please confirm Deletion')) {
		window.location=url;
	}
}

function validate() {
    if (document.getElementById('param_agree').checked) {
        return true;
        }
    else {
        alert("Please read and agree to the Terms of Service before submitting your membership request.");
        return false;
        }
    }
