<!--
$(document).ready(function() {
	// top nav
	$(".TopNav").hover(
	function() {
		$(this).removeClass("TopNav");
		$(this).addClass("TopNavOn");
	},
	function() {
		$(this).removeClass("TopNavOn");
		$(this).addClass("TopNav");
	});
	
	// alpha effect
	$(".Alpha50").hover(
	function() {
		$(this).removeClass("Alpha50");
	},
	function() {
		$(this).addClass("Alpha50");
	});
	
	// remove error css
	$(".__required").focus(function () {
		 $(this).removeClass("BoxError");
	});
	
	// button roll over
	$(".BtnStd").hover(
	function() {
		$(this).removeClass("BtnStd");
		$(this).addClass("BtnStdOver");
	},
	function() {
		$(this).removeClass("BtnStdOver");
		$(this).addClass("BtnStd");
	});
	
	// button roll over
	$(".BtnSubmit").hover(
	function() {
		$(this).removeClass("BtnSubmit");
		$(this).addClass("BtnSubmitOver");
	},
	function() {
		$(this).removeClass("BtnSubmitOver");
		$(this).addClass("BtnSubmit");
	});
	
	// hover effect
	$(".__hover").hover(
	function() {
		$(this).addClass("BoxHover");
	},
	function() {
		$(this).removeClass("BoxHover");
	});
	
	// hover effect
	$(".__hover").focus(function() {
		$(this).addClass("BoxHover");
	});
	$(".__hover").blur(function() {
		$(this).removeClass("BoxHover");
	});
	
	// inner shadow effect
	$(".__innershadow").hover(
	function() {
		$(this).addClass("InnerShadow");
	},
	function() {
		$(this).removeClass("InnerShadow");
	});
});

// load ajax content 
function AjaxThis(action,id) {
	$.ajax({ 
		url: action,
		cache: false, 
		success: function(html) {
			$(id).html(html);
		}
	});
}

// submit ajax form (serialized)
function AjaxThisForm(action,form_id,target_id) {
	$.ajax({
		type: "POST",
		url: action,
		data: $(form_id).serialize(),
		dataType: "html",
		success: function(html){
			//alert(html)
			$(target_id).html(html);
		}
	});
}

// load url
function loadUrl(url) {
	window.location=url;
}
//-->

