// CONTACT FORM SUBMITED
function SayThanks(btn)
{
	btn.value='Submitting....';
	btn.style.color='#808080';
	setTimeout('document.getElementById("FormArea").style.display="none";document.getElementById("ThanksArea").style.display="inline";',1200);
}

function mozilla_SizeContent(netDiff_W,netDiff_H)
{
	netDiff_H = netDiff_H?netDiff_H : 0;
	netDiff_W = netDiff_W?netDiff_W : 0;
	w=navigator.appName.toLowerCase()=="netscape" ? parseFloat(document.getElementById("THE_CONTENT").style.width)+netDiff_W : document.getElementById("THE_CONTENT").style.width;
	h=navigator.appName.toLowerCase()=="netscape" ? parseFloat(document.getElementById("THE_CONTENT").style.height)+netDiff_H : document.getElementById("THE_CONTENT").style.height;
	document.getElementById("THE_CONTENT").style.width=w;
	document.getElementById("THE_CONTENT").style.height=h;
	document.getElementById("THE_CONTENT").style.display="inline";
}
// SWF
//
function KillAudio()
{
}
function EmbedMP3(mp3,w,h,id)
{
	document.write('<div id="mp3DIV_'+id+'" style="display:none"><OBJECT id="VIDEO" width="'+w+'" height="'+h+'" ');
	document.write('style="position:absolute; left:0;top:0;"');
	document.write('CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"');
	document.write('type="application/x-oleobject">');
	document.write('<PARAM NAME="URL" VALUE="'+mp3+'">');
	document.write('<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">');
	document.write('<PARAM NAME="AutoStart" VALUE="True">');
	document.write('<PARAM name="uiMode" value="mini">');
	document.write('<PARAM name="PlayCount" value="9999">');
	document.write('</OBJECT></div>');
	document.getElementById("mp3DIV_"+id).style.display="inline";
	document.getElementById("mp3DIV_"+id).id = "MP3_Embedded";
}
function EmbedSWF(swf,w,h,id,flshVer)
{
	flshVer = (!flshVer) ? 8 : flshVer;

	document.write('<div id="swfDIV_'+id+'" style="display:none"><object id="'+id+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+flshVer+',0,0,0" width="'+w+'" height="'+h+'" align="middle">');
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<param name="movie" value="'+swf+'" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#000000" />');
	document.write('<param name="menu" value="true"/>');
	document.write('<param name="wmode" value="transparent"/>');
	document.write('<embed wmode="transparent" SWLIVECONNECT=true menu=true id="'+id+'"  src="'+swf+'" quality="high" bgcolor="#000000" width="'+w+'" height="'+h+'" name="bottom" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object></div>');
	document.getElementById("swfDIV_"+id).style.display="inline";
	document.getElementById("swfDIV_"+id).id = "SWF_Embedded";
}
function html_SWF(swf,w,h,flshVer)
{
	flshVer = (!flshVer) ? 8 : flshVer;

	str = "";
	str = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+flshVer+',0,0,0" width="'+w+'" height="'+h+'" align="middle">';
	str += '<param name="allowScriptAccess" value="always" />';
	str += '<param name="movie" value="'+swf+'" />';
	str += '<param name="quality" value="high" />';
	str += '<param name="bgcolor" value="#000000" />';
	str += '<param name="menu" value="true"/>';
	str += '<param name="wmode" value="transparent"/>';
	str += '<embed wmode="transparent" SWLIVECONNECT=true menu=true src="'+swf+'" quality="high" bgcolor="#000000" width="'+w+'" height="'+h+'" name="bottom" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	str += '</object>';

	return str; 
}

// INTERFACE
//
function Transition(nav)
{
	var defSWFWidth        = 1000;
	var defSWFHeight       = 438;

//	if(!glob_SITESTRUCTURE[nav]){ alert("Error (N001) : Cannot find the content for '"+nav+"'. Please contact site administrator."); return; }

//	top.document.getElementById("JSANIM_CONTAINER").innerHTML     = html_SWF("Media/Flash/Interface/"+glob_SITESTRUCTURE[nav].tran,defSWFWidth,defSWFHeight);
//	top.document.getElementById("JSANIM_CONTAINER").style.display = 'inline';
//	setTimeout('LoadHTM("'+glob_SITESTRUCTURE[nav].html+'")',1000);
	LoadHTM(glob_SITESTRUCTURE[nav].html);
}

function KillTransition()
{
	top.document.getElementById("JSANIM_CONTAINER").style.display = 'none';
}

function LoadHTM(htm)
{
	KillTransition();
	top.document.getElementById("JSANIM_CONTAINER").style.display = 'inline';

	var htmlPath                    = (window.JSFRM_CONTENT) ? "Pages/" : "";
	top.JSFRM_CONTENT.location.href = htmlPath+htm;
}

function PopWin(url,w,h,scroll,resize,topleft)
{
	if(topleft)
	{ t=0; l=0; }
	else
	{ t=((screen.availHeight/2)-(h/2)); l=((screen.availHeight/2)-(w/2)); }

	win=open(url,"win"+w+h,"width="+w+",height="+h+",scrollbars="+((scroll)?"yes":"no")+",resizable="+((resize)?"yes":"no")+",menubars=no,location=no,toolbars=no,status=no,top="+t+",left="+l);
	win.focus();
}

function click_Thumbnail(img)
{
	img = img.replace('_th','');
	PopWin("_imageviewer.php?pg_title=Image+Enlarged&image="+escape(img),1,1,false,false,true);
}