$(document).ready(function(){
						   
	
	
	$("#footerShell ul li").after("<li>&nbsp; /&nbsp;</li>");
	$("#footerShell ul li:last").hide();
	
	$(".clstable tbody tr:last-child").hide();
	
	$("#news #content .clstable").insertAfter("#news #content center");
	$("#news #content center").remove();
	
	$("#events #content .clstable").insertAfter("#events #content center");
	$("#events #content center").remove();
	
	$("#newsPanel .clstable").insertAfter("#newsPanel center");
	$("#newsPanel center").remove();
	
	$("#events #content style, #newsPanel style, #newsPanel link, #content link").remove();
	
	$("#newsPanel .clstd>a font").addClass("newsDesc");
	$("#newsPanel .clstd>font p").css({'margin' : '-20px 0 0', 'height' : '55px', 'overflow' : 'hidden'});
	$("#newsPanel .clstd>p").css({'margin' : '-20px 0 0', 'height' : '55px', 'overflow' : 'hidden'});
	$("#newsPanel .clstd>p:not(:first-child)").hide();
	$("#newsPanel .clstd font>p:not(:first-child)").hide();
	$("#newsPanel .clstd>p:first-child").show();
	$("#newsPanel .clstd font>p:first-child").show();
	$("#newsPanel .clstable tr:not(:first-child) .newsDesc").addClass("newsDescMargin");
	$("#events #content .clstable tr:not(:first-child) .clstd").addClass("newsDescMargin");
	
	$(".cta").hover(
		function () {
			$(this).find("img").animate({ left: "-10px" }, 200);
		},
		function () {
			$(this).find("img").animate({ left: "0px" }, 200);
		}
	);
	$(".cta").click(function(){
    	window.location=$("span", this).find("a").attr("href");return false;
	});
	$("#sideNav li").click(function(){
    	window.location=$(this).find("a").attr("href");return false;
	});
	
	$("#nav li")
  .hover(
    function(){
      $(this).addClass("hover").find("ul:first:hidden").show();
    },
    function(){
      $(this).removeClass("hover").find("ul:first").hide();
    }
  );
  $("#sideNav li")
  .hover(
    function(){
      $(this).addClass("hover");
    },
    function(){
      $(this).removeClass("hover");
    }
  );
  
    
  var links = $('#content .clstd .og_links a');
//Parse each item in links object
for (var a in links){
//This will allow the for iteration to give the actual link objects that are
//referred to with numeric indexes and not objects that jQuery appends
//Object 'a' should be a number
	if(a == parseInt(a)){
		//Variable b is now the object that is links[a];
		var b = links[a];
		//Variable c is now variable b cast to jQuery so I can use built in jQuery functions
		var c = $(b);
		//Variable temp now contains the href of that link
		var temp = c.attr('href');
		//This should filter out any anchors in the page or any links without an href
		if(temp != undefined){
			//This checks to see if they are inline links, mailto link, OR absolute link
			//This isn't perfect in the case that your link was 'mailsomething.php' or any non http link (ftp or other protocol)
			//The correct scenario here is to use regex but I didn't have the patience
			//or time to do so, so I didn't plus I knew my links didn't apply to these caveats
			var test = temp.substring(0,4);
			if(test != 'mail' && test != 'http' && test != '#'){
				//Now we prepend the abosulte url with the proper and add the relative file location
				c.attr('href','http://www.symantec.com'+temp);
			}
		}
	}
}

});