// JavaScript Document
function show_scene_window(marker,Scene_ID,SI_Name)
{
	if (Scene_ID>0)
	{
		Lightview.show({title: SI_Name,href: '/pano/gpano.aspx?scene_id='+Scene_ID,rel: 'iframe',options:{width:parseInt(document.body.clientWidth*0.98),height:parseInt(document.body.clientHeight*0.98)}});
		//top.openWindow("/pano/gpano.aspx?scene_id="+Scene_ID, parseInt(document.body.clientWidth), parseInt(document.body.clientHeight)-32, SI_Name, "no");
	}
	else
	{
		parent._msg_show('对不起,没有默认漫游场景!', '', '65', '提示');	
	}
}
function show_tour_window(marker,Tour_ID,TI_Name)
{
	if (Tour_ID>0)
	{
		Lightview.show({title: TI_Name,href: '/pano/tourpano.aspx?tour_id='+Tour_ID,rel: 'iframe',options:{width:parseInt(document.body.clientWidth*0.98),height:parseInt(document.body.clientHeight*0.98)}});
	//top.openWindow("/pano/tourpano.aspx?tour_id="+Tour_ID, parseInt(document.body.clientWidth), parseInt(document.body.clientHeight)-32, TI_Name, "no");
	}
	else
	{
		parent._msg_show('对不起,没有默认漫游!', '', '65', '提示');	
	}
}

function show_company_window(marker,Company_ID,DefTour_ID,CI_Name)
{
	if ((DefTour_ID=="0")||(DefTour_ID==""))
	{
		parent._msg_show('对不起,没有默认漫游!', '', '65', '提示');
	}
	else
	{
		Lightview.show({title: CI_Name,href: '/pano/tourpano.aspx?tour_id='+DefTour_ID,rel: 'iframe',options:{width:parseInt(document.body.clientWidth*0.98),height:parseInt(document.body.clientHeight*0.98)}});
		
		//top.openWindow("/pano/tourpano.aspx?tour_id="+DefTour_ID, parseInt(document.body.clientWidth), parseInt(document.body.clientHeight)-30, CI_Name, "no");
	}
}

function show_tour(Tour_ID,Name)
{
	if ((Tour_ID=="0")||(Tour_ID==""))
	{
		parent._msg_show('对不起,当前项目没有默认漫游!', '', '65', '提示');
	}
	else
	{
		Lightview.show({title: Name,href: '/pano/tourpano.aspx?tour_id='+Tour_ID,rel: 'iframe',options:{width:parseInt(document.body.clientWidth*0.98),height:parseInt(document.body.clientHeight*0.98)}});
		//top.openWindow("/pano/tourpano.aspx?tour_id="+Tour_ID, parseInt(document.body.clientWidth), parseInt(document.body.clientHeight), Name, "no");
		//openWindow("/pano/tourpano.aspx?tour_id="+Tour_ID, 800, 600, Name, "no");
	}
}

function show_lv_window(_title,_url)
{
	Lightview.show({title: _title,href:_url,rel: 'iframe',options:{width:parseInt(document.body.clientWidth*0.98),height:parseInt(document.body.clientHeight*0.98)}});
	//top.openWindow("/pano/gpano.aspx?scene_id="+Scene_ID, parseInt(document.body.clientWidth), parseInt(document.body.clientHeight)-32, SI_Name, "no");
}

function show_lv_flash(_title,_url)
{
	Lightview.show({title: _title,href:_url,rel: 'flash',options:{width:parseInt(document.body.clientWidth*0.98),height:parseInt(document.body.clientHeight*0.98)}});
	//top.openWindow("/pano/gpano.aspx?scene_id="+Scene_ID, parseInt(document.body.clientWidth), parseInt(document.body.clientHeight)-32, SI_Name, "no");
}

