$(document).ready(function(){

	$("#h1").css("cursor","pointer").click(function(){
		history.go(-1);
	})

	$("#h2").css("cursor","pointer").click(function(){
		window.print();
	})

	$("#h3").css("cursor","pointer").click(function(){
		window.scrollTo(0,0);
	})
	$("#mlogin").css("cursor","pointer").click(function(){
		document.m1.submit();
	})
	$("#blogin").css("cursor","pointer").click(function(){
		document.m2.submit();
	})

    
    $.each( $(".allintro img"), function(i, n){
        if(n.width>650) n.width=650;
    }); 

    $("#addhomepage").click(function(){
        this.style.behavior='url(#default#homepage)';
        this.setHomePage('http://www.tsft.com.cn');return(false);
    }) 
    $("#addfav").click(function(){
        window.external.AddFavorite('http://www.tsft.com.cn','台州市社会发展投资有限公司');
    })
    
    $("#swfobj").html('<object type="application/x-shockwave-flash" data="/js/ad.swf" width="468" height="63"><param name="movie" value="/js/ad.swf" /><param name="wmode" value="opaque" /><embed wmode="opaque"></embed></object>');
   
    $("#topswf").html('<object type="application/x-shockwave-flash" data="/images/tt.swf" width="978" height="221"><param name="movie" value="/images/tt.swf" /><param name="wmode" value="transparent" /><embed wmode="transparent"></embed></object>');
    $("#mapswf").html('<object type="application/x-shockwave-flash" data="main.swf" width="896" height="519"><param name="movie" value="main.swf" /><param name="wmode" value="transparent" /><embed wmode="transparent"></embed></object>');
   

    $("#link1").css("cursor","pointer").click(function(){location.href='gzjl.htm'});
    $("#link2").css("cursor","pointer").click(function(){location.href='mtbd.htm'});
    $("#link3").css("cursor","pointer").click(function(){location.href='hyzx.htm'});
    $("#link4").css("cursor","pointer").click(function(){location.href='gsdt.htm'});
    $("#link5").css("cursor","pointer").click(function(){location.href='jyxx.htm'});
    $("#link6").css("cursor","pointer").click(function(){location.href='xmxw.htm'});
    $("#link7").css("cursor","pointer").click(function(){location.href='djdt.htm'});


})
