// JavaScript Document
$(document).ready(function(){
	var browser=navigator.appName 
	var b_version=navigator.appVersion 
	var version=b_version.split(";"); 
	var trim_Version=version[1].replace(/[ ]/g,""); 
	if(browser=="Microsoft Internet Explorer" && trim_Version!="MSIE6.0"){ 
		
			$("div#aboutMe a").hover(function(){
				$(this.parentNode).stop().animate({
						 top:"0px"
				},300);
				},function(){
				$(this.parentNode).stop().animate({
						 top:"-30px"
				},300);
			});
			
			$("div#history a").hover(function(){
				$(this.parentNode).stop().animate({
						 top:"0px"
				},300);
				},function(){
				$(this.parentNode).stop().animate({
						 top:"-30px"
				},300);
			});

	};
//
//
//		$("div#headerBox").animate({
//				 backgroundPositionX:"50000px"
//		},1000000,"linear");
//		
//
//		$("div#headerNavBox a").hover(function(){
//			$(this).animate({
//			color:"#FFF"	
//			},300);
//		},function(){
//			$(this).animate({
//			color:"#300"	
//			},300);
//		});

//		$("div#categoryBox a").hover(function(){
//			$(this).stop().animate({marginLeft:"12px"},400);
//		},function(){
//			$(this).stop().animate({marginLeft:"0px"},400);
//		});


		$("div#categoryBox a").hover(function(){
			$(this).parent().prev().children().stop().animate({
				textIndent:"5px"
			},300);
			$(this).stop().animate({
				textIndent:"15px"
			},300);
			$(this).parent().next().children().stop().animate({
				textIndent:"5px"
			},300);
		},function(){
			$(this).parent().prev().children().stop().animate({
				textIndent:"0px"
			},300);
			$(this).stop().animate({
				textIndent:"0px"
			},300);
			$(this).parent().next().children().stop().animate({
				textIndent:"0px"
			},300);
		});
		
		$("input.typeButton").hover(function(){
			$(this).stop().animate({
				backgroundColor:"#ffaf1f"
			},300);
		},function(){
			$(this).stop().css("background-color","#F60");
		});

//
//		$("div#headerNavBox li").hover(function(){
//			$(this).stop().animate({
//				backgroundPositionY:"0px"
//			},300);
//		},function(){
//			$(this).stop().animate({
//				backgroundPositionY:"30px"
//			},300);
//		});
//		$("div#categoryBox a").mouseout(function(){
//			$(this).parent().prev().children().animate({
//				textIndent:"0px"
//			},300);
//			$(this).animate({
//				textIndent:"0px"
//			},300);
//			$(this).parent().next().children().animate({
//				textIndent:"0px"
//			},300);
//		});

//	function aa(){
//		$("div#headerBox").animate({
//				 backgroundPositionX:"3000px"
//		},3000,bb)
//	}
//	
//	function bb(){
//		$("div#headerBox").animate({
//				 backgroundPositionX:"0px"
//		},3000,aa)
//	}	
//	
//	aa();
});