function insertFlash(url, width, height, alt_text, is_transparent, object_id)
{
	document.write('<object ');
	if(object_id) document.write('id="'+object_id+'" ');
	document.writeln('classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" alt="'+alt_text+'">');
	document.writeln('<param name=movie value="'+url+'"');
	document.writeln('<param name=quality value=high>');
	if(is_transparent>0) document.writeln('<param name="wmode" value="transparent">');
	document.write('<embed src="'+url+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" ');
	if(is_transparent>0) document.write('wmode="transparent" ');
	document.writeln('alt="'+alt_text+'"></embed>');
	document.writeln('</object>');
}

function closer_view(url, title, desc, is_root)
{
	current_url=url;
	current_description=desc;
	current_title=title;
	viewer_url='closer_view.html';
	if(is_root) viewer_url='closer_view.html';
	var obj=window.open(viewer_url, 'viewer', 'width=300,height=300,left=200,top=200,status=no,scrollbars=no,resizable=yes,location=no,menubar=no,toolbar=no');

	if(obj==null || typeof(obj)=="undefined")
	{
		alert("Please disable pop-up blocker feature of your browser.");
	}
}

function getDesc()
{
	if(current_description) return current_description;
	else return "";
	current_description=null;
}

function getTitle()
{
	if(current_title) return current_title;
	else return "";
	current_title=null;
}

function getImageUrl()
{
	if(current_url) return current_url;
	else return "";
	current_url=null;
}

function getWidth()
{
	if(current_width) return current_width;
	else return 0;
	current_width=null;
}

function getHeight()
{
	if(current_height) return current_height;
	else return 0;
	current_height=null;
}
