function ShowSWF(_width,_height,_src)
{
 //针对IE
 document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ _width +'" height="'+ _height +'">');
 document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="'+_src+'"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
 document.write('<param name="menu" value="false"><param name=wmode value="transparent">');
 
//针对filefox
 document.write('<embed src="'+_src+'" bgcolor="#F0F0F0" width="'+ _width +'" height="'+ _height +'" quality="high" wmode="transparent"><embed>')
 document.write('</object>');
}
function createMarker(point, baseIcon, html) {
   var icon = new GIcon(baseIcon);
   var marker = new GMarker(point, icon);

   GEvent.addListener(marker, 'click', function() {
   marker.openInfoWindowHtml(html);
   });

  return marker;
  }

function load() { 
	if (GBrowserIsCompatible()) { 

		var map = new GMap2(document.getElementById("map")); 
		var LatLng=new GLatLng(34.320263, 117.254030);
		
		//在地图上标一个图标，点击就出现字 这里是显示在信息框里的东东，支持HTML
		var html = '<div style="text-align: left;line-height:22px;font-size:12px;color:#333333">徐州三力家具<br />地址：江苏省徐州市经济开发区金水路20号。<br /></div>'; 
		//缩放地图和视图切换
		map.addControl(new GSmallMapControl()); 
		map.addControl(new GMapTypeControl()); 
		//初始化定位
		map.setCenter(LatLng, 13); 
		map.openInfoWindow(map.getCenter(), html);
		
		// 以下是定义一些基本信息
   		// 阴影，阴影偏移，信息框偏移, 什么什么的
		var icon = new GIcon();
		icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png"; 
		icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png"; 
		icon.iconSize = new GSize(12, 20); 
		icon.shadowSize = new GSize(22, 20); 
		icon.iconAnchor = new GPoint(6, 20); 
		var marker = createMarker(LatLng, icon ,html);
		map.addOverlay(marker);
	} 
}
function my_autosize(obj)
{
	if(obj=="[object HTMLImageElement]" || obj=="[object]" )
	{
		var width = obj.width;
		var height = obj.height;
		imgPercent = width / height;
		imgh=height/width;
		if(height>width || height > 360)
		{
			height = 360;
			width = (height / imgh);
		}
		else
		{
			if (width > 750) 
			{
				width = 750;
				height = (width / imgPercent);
			}
		}
		obj.style.height=height+"px";
		obj.style.width=width+"px";
	}
}
function my_autohigth(id)
{
    var kj=document.getElementById(id);
        if(document.body.clientHeight-164>480)
        {
                kj.style.height=document.body.clientHeight-164+"px";
        }
        else
        {
            kj.style.height=480+"px";
        }
        
}

