$(function(){
     
	$(".search-submit").click(function(event){
		$(this).removeAttr("name");
		event.preventDefault();
		var val = $.trim($(".search-title").val());
		if(val!==""){
			$(".wp-search").find("form").submit();
		}else{
			alert("请输入关键词");
		}
		return false;
	});
	
	/*导航*/
	/*$.fn.sudyNav = function(){};
	$(".wp-menu li").hover(function() {
		$(this).siblings().find('.sub-menu').stop(true,true).slideUp(150)
		$(this).children('.sub-menu').stop(true,true).slideDown(200);
		$(this).addClass('hover');
	}, function() {
		$(this).children('.sub-menu').stop(true,true).slideUp(150);
		$(this).removeClass('hover');
    });
	
	$(".wp-menu li").each(function(){
		$(this).children(".menu-switch-arrow").appendTo($(this).children(".menu-link"));
	});*/
	

	/*媒体链接*/
	$(".shares li").each(function(){
		$(this).children("a").hover(function(){
			$(this).parent().find(".con").stop(true,true).fadeIn();			
		},function(){
			$(this).parent().find(".con").stop(true,true).fadeOut();
		});
	});	
if( !('placeholder' in document.createElement('input')) ){
	  $('input[placeholder],textarea[placeholder]').each(function(){
		  var that = $(this),
		  text= that.attr('placeholder');
		  // console.log(text);
		  if(that.val()===""){
			  that.val(text).addClass('placeholder');
		  }
		  that.focus(function(){
			  if(that.val()===text){
				  that.val("").removeClass('placeholder');
			  }
		  }).blur(function(){
			  if(that.val()===""){
				  that.val(text).addClass('placeholder');
			  }
		  }).closest('form').submit(function(){
			  if(that.val() === text){
			  that.val('');
			  }
		  });
	  });
	}
});

	if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.match(/7./i)=="7.") {
		alert("检测到您的浏览器内核版本过低，无法达到完美的浏览体验，请使用新版本浏览器浏览！");
	}
	else if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.match(/8./i)=="8.") {
		alert("检测到您的浏览器内核版本过低，无法达到完美的浏览体验，请使用新版本浏览器浏览！");
	}
	else if(navigator.appName == "Microsoft Internet Explorer") {
		alert("检测到您的浏览器内核版本过低，无法达到完美的浏览体验，请使用新版本浏览器浏览！");
	}
