$(document).ready(function(){
　　$("input[type='text']").addClass('input_blur');
　　$("input[type='password']").addClass('input_blur');
    $("input[type='submit']").addClass('button_style');
    $("input[type='reset']").addClass('button_style');
    $("input[type='button']").addClass('button_style');
    $("input[type='radio']").addClass('radio_style');
    $("input[type='checkbox']").addClass('checkbox_style');
    $("input[type='textarea']").addClass('textarea_style');
    $("input[type='file']").addClass('file_style');
　　$("input[type='file']").blur(function () { this.className='input_blur'; } );
　　$("input[type='file']").focus(function () { this.className='input_focus'; } );
　　$("input[type='password']").blur(function () { this.className='input_blur'; } );
　　$("input[type='password']").focus(function () { this.className='input_focus'; } );
　　$("input[type='text']").blur(function () { this.className='input_blur'; } );
　　$("input[type='text']").focus(function () { this.className='input_focus'; } );
    $("textarea").blur(function () { this.className='textarea_style'; } );
　　$("textarea").focus(function () { this.className='textarea_focus'; } )
　　$(".table_list tr").mouseover(function () { this.className='mouseover'; } );
　　$(".table_list tr").mouseout(function () { this.className=''; } );
　　$("#title").focus(function () { this.className='inputtitle'; } );
　　$("#title").blur(function () { this.className='inputtitle'; } );

    $('img[tag]').css({cursor:'pointer'}).click(function(){
       var flag=$(this).attr('tag');
       var fck=$('#'+$(this).attr('fck')+'___Frame');

       var fckh=fck.height();
       (flag==1)?fck.height(fckh+120):fck.height(fckh-120) ;
    });
//by LinQing
	if (document.getElementById("subpic2") !=null)
	{
	var change = document.getElementById("subpic2").getElementsByTagName("td");
	 for (var i=0; i<change.length; i++)
	 {
	      change[i].onmousemove= function(){this.style.backgroundColor="#094f66"; }
          change[i].onmouseout=function(){this.style.backgroundColor="#e7e7e7";}
	 }
	}


});


// JavaScript Document
function changee(here)
{here.style.backgroundColor="#045f81";}
function comeback(here)
{here.style.backgroundColor="#094f66";}
function change1(here)
{here.style.backgroundColor="#fe971e";}
function change1back(here)
{ here.style.backgroundColor="#ffffff";}
function bigfont()
{
  var con= document.getElementById("content");
  con.style.fontSize="16px";
}
function normfont()
{
  var con= document.getElementById("content");
  con.style.fontSize="14px";
}
function smallfont()
{
  var con= document.getElementById("content");
  con.style.fontSize="12px";
}

function listmouse(here)
{
  here.style.backgroundColor="#094f66"	;
}
function listmouseout(here)
{
   here.style.backgroundColor="";
}

//加入收藏 设为首页

function setHomepage()
{
if (document.all)
{
document.body.style.behavior='url(#default#homepage)';
document.body.setHomePage('http://www.chinaspv.com.cn/');
}
else if (window.sidebar)
{
if(window.netscape)
{
try
{
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
}
catch(e)
{
alert("this action was aviod by your browser，if you want to enable，please enter about:config in your address line,and change the value of signed.applets.codebase_principal_support to true");
}
}
var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);
prefs.setCharPref('browser.startup.homepage','http://www.chinaspv.com.cn/');
}
}
//添加收藏
function JSAddFavorite() 
{ 
//判断IE,all只能IE才有的特殊属性,只要IE不为null则当前为IE
if (document.all) 
{ 
window.external.addFavorite('http://www.chinaspv.com.cn/','中国专用汽车网'); 

} 
else if (window.sidebar) //是Firefox特有的属性
{ 
window.sidebar.addPanel('中国专用汽车网','http://www.chinaspv.com.cn/', ""); 
} 
} 
//BaiDu Tongji
/*
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F8014bd4adc3fbc511e57ecae2dd76d02' type='text/javascript'%3E%3C/script%3E"));
*/
