<!--
//************************************************************
$(function(){
	$("a").focus(function(){this.blur()});
	$("area").focus(function(){this.blur()});
	//$(document).bind('contextmenu',function(){return false;});
	//$(document).bind('selectstart',function(){return false;});
});
//************************************************************
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//************************************************************
function flash(FlashSrc,FlashWidth,FlashHeight){
	var flashStr=
	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+FlashWidth+"' height='"+FlashHeight+"' align='middle'>"+
	"<param name='allowScriptAccess' value='always' />"+
	"<param name='movie' value='"+FlashSrc+"' />"+
	"<param name='menu' value='false' />"+
	"<param name='quality' value='high' />"+
	"<param name='wmode' value='transparent' />"+
	"<embed src=\""+FlashSrc+"\" quality=\"high\" width=\""+FlashWidth+"\" height=\""+FlashHeight+"\" wmode=\"transparent\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></embed>"+
	"</object>";
	document.write(flashStr);
}

function DrawImage(ImgD,ImgDWidth,ImgDHeight){
	var image=new Image();
	image.src=ImgD.src;
	if(image.width/image.height>=ImgDWidth/ImgDHeight){
		if(image.width>ImgDWidth){
			ImgD.width=ImgDWidth;
			ImgD.height=(image.height*ImgDWidth)/image.width;
		}
		else{
			ImgD.width=image.width;
			ImgD.height=image.height;
		}
	}
	else{
		if(image.height>ImgDHeight){
			ImgD.width=(image.width*ImgDHeight)/image.height;
			ImgD.height=ImgDHeight;
		}
		else{
			ImgD.width=image.width;
			ImgD.height=image.height;
		}
	}
}



$(function(){
	$(".pro").each(function($i){
		$(this).click(function(){
			$(".pro").removeClass("pro_over");
			$(this).addClass("pro_over");
			$(".pro_content").hide();
			$(".pro_content:eq("+$i+")").show();
		});
	});
});

//************************************************************
$(function(){
	$("#register").submit(function(){
		if ($("#username").val()==''){
			alert("用户名不能为空！");
			return false;
		}
		if ($("#password").val()==''){
			alert("账号密码不能为空！");
			return false;
		}
		if ($("#password").val()!=$("#rpassword").val()){
			alert("账号密码和确认密码不一致！");
			return false;
		}	
	});
	
	$("#login").submit(function(){
		if ($("#username").val()==''){
			alert("请输入您的用户名！");
			return false;
		}
		if ($("#password").val()==''){
			alert("请输入您的密码！");
			return false;
		}
	});
	
	$("#questionnaire").submit(function(){
		if ($("#name").val()==''){
			alert("请输入您的姓名！");
			$("#name").focus();
			return false;
		}
		if ($("#tel").val()==''){
			alert("请输入您的联系电话！");
			$("#tel").focus();
			return false;
		}
		if ($("#company").val()==''){
			alert("请输入您的单位名称！");
			$("#company").focus();
			return false;
		}
		if ($("#phone").val()==''){
			alert("请输入您的手机号码！");
			$("#phone").focus();
			return false;
		}
		if ($("#email").val()==''){
			alert("请输入您的邮箱地址！");
			$("#email").focus();
			return false;
		}
		if ($("#address").val()==''){
			alert("请输入您的联系地址！");
			$("#address").focus();
			return false;
		}
	});
});



//************************************************************
$(function(){
	$("#keywords").click(function(){$(this).val("")});
	$("#search").submit(function(){
		if ($("#keywords").val()=='' || $("#keywords").val()=='站内信息搜索'){
			alert("请输入需要查询的关键字！");
			return false;
		}
	});
})
//************************************************************
$(function(){
	if ($("#scroll_pic").length>0){
		new Marquee("scroll_pic",2,1,837,90,30,0,0);
	}
});
//************************************************************
//-->
