//<![CDATA[
// --------------------------------------------
function show_panorama()
	{
	var option='left=200,top=150,width=450,height=360,resizable=no,scrollbars=no,menubar=no,status=no';
	window.open('pan_popup.html','popup',option);
	return false;
	}

// --------------------------------------------
// DHTML micro-API from http://www.quirksmode.org/ - Thanks !!!
function getObj(name)
{
	if (document.getElementById)
		{
		this.obj = document.getElementById(name);
		this.style = document.getElementById(name).style;
		}
	else if (document.all)
		{
		this.obj = document.all[name];
		this.style = document.all[name].style;
		}
	else if (document.layers)
		{
		this.obj = document.layers[name];
		this.style = document.layers[name];
		}
	}

// --------------------------------------------
function external_links()
	{
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) 
		{
		var anchor = anchors[i];
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
		anchor.target = "_blank";
		}
	}

// --------------------------------------------
function info()
	{
	var obj = new getObj("info");
	var block = "block";
	var none = "none";
	if (obj)
		{
		if (obj.style.display == none || obj.style.display == '')
			obj.style.display = block;
		else
			obj.style.display = none;
		}
	}
	
// --------------------------------------------
function flash_player(autoplay)
	{
	var so = new SWFObject("playerMini.swf", "mymovie", "75", "30", "7", "#3971a8");
	if (autoplay == true)
		so.addVariable("autoPlay", "yes");
	else
		so.addVariable("autoPlay", "no");
	so.addVariable("soundPath", "song.mp3");
	so.addVariable("playerSkin","2");
	so.addVariable("overColor","#000033");
	so.write("flashPlayer");
	}

// --------------------------------------------
function hide_ad()
	{
	var obj = new getObj("ad");
	if (obj)
		{
		obj.style.display = "none";
		}
	}

// --------------------------------------------
// --------------------------------------------
function common_init(autoplay)
	{
	external_links();
	flash_player(autoplay);
	}
	
//]]>


