//pluginconn.js
//2D和3D插件连接文件
//wl 2008-12-05

//防止和其他变量重名
var drawsee2DCABConn123321;
var drawsee3DCABConn123321;

//得到2D插件的连接字符串
function get2DPlugInString(width, height)
{	
	drawsee2DCABConn123321 = "<object id='oMapViewer' codeBase=/CAB/MeMapViewer.CAB#version=2,0,2,25 width='"+width+"' height='"+height+"' classid=CLSID:D19243C5-D51A-4624-A5CB-ECA63DC9D894></object>";
	
	return drawsee2DCABConn123321;
}

//得到3D插件的连接字符串
function get3DPlugInString(width, height)
{
	//alert("进入JS引用");
	drawsee3DCABConn123321 = "<object id='oEarthViewer'  codeBase='/CAB/MeEarth20.CAB#version=1.2.0.0' width='"+width+"' height='"+height+"' classid='CLSID:C54A9308-CECF-42F4-85DD-96F8AD9A67C6' viewastext></object>";
	
	//alert(drawsee3DCABConn123321);
	return drawsee3DCABConn123321;
}

function get3DPlugInString2(width, height)
{
	drawsee3DCABConn123321 = "<object id='oEarthViewer2' codeBase='/CAB/MeEarth20.CAB#version=1.2.0.0' width='"+width+"' height='"+height+"' classid='CLSID:C54A9308-CECF-42F4-85DD-96F8AD9A67C6' viewastext></object>";
	
	return drawsee3DCABConn123321;
}

