		$(document).ready(function()
 			{
				
				
				
				
				/***********
				~~~~~ COde for Left Nav
				****************/
				$("#are_you_standards_compliant").hide();
				$("#adopt_standards").hide();
				$("#tools_and_resources").hide();
				
				$("#are_you_using_original").hide();
				$("#move_to_original_software").hide();
				
				var sPath = window.location.pathname;
				//var sPage = sPath.substring(sPath.lastIndexOf('\\') + 1);
				var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
				
				highlight("link-why_standards");
				if (sPage == "home_index.aspx")
					highlight("link-benefits_of_original_software");
				//$(".navitem").hover(function(){ $(this).addClass("red")});
				
				$(".navitem").click(function(){
					
					item_id = $(this).attr("id");
					highlight(item_id);
					item_id = item_id.split('-');
					item_id = item_id[1];
					
					$("#contentspace").children().hide();
					$("#"+item_id).show();
				
				});
				
				
				/***********
				~~~~~ COde for The Modals
				****************/
				
				$("#validation").click(function()
						{
							$("#validation_modal").show();
							
						});
				$("#gallery").click(function()
						{
							$("#gallery_modal").show();
							
						});
				$("#customers").click(function()
						{
							$("#customers_modal").show();
							$("#customers_modal").css("margin-top","320");
							
						});
										
				$(".close").click(function()
						{
							$(this).parent().parent().parent().hide();
						}
				);
				
				
				/***********
				~~~~~ COde for Rotating the Hero Spot Images
				****************/
				x= Math.random()*1000000;
				//alert(x);
				change_hero();
				
				
			});


function change_hero()
{
	y=0;

	y = Math.round((Math.random()*10)/2);
	
	$(".promoimg").attr("src","images/promo_biz"+y+".jpg");
}

/***********
~~~~ Some fucntions fothe Left Nav
****************/
function highlight(link)
{
	$(".contentnav").children().removeClass("highlighted");
	$("#"+link).addClass("highlighted");
}

function highlightThis(which)
{
	$("#"+which).addClass("highlighted");
}