function show(theID)
{		
	document.getElementById('menudiv' + theID).style.visibility='visible';			
}	
function hide(theID)
{		
	document.getElementById('menudiv' + theID).style.visibility='hidden';			
}

function ShowFlash()
{
	var bReturnVal;
	if ( (pluginlist.indexOf("Flash")!=-1) && (pluginlist.indexOf("opera")==-1) )
	{
		bReturnVal = true;
	}
	else
	{
		bReturnVal = false;
	}
	return bReturnVal;
}

function openEditStaticText(strStaticTextKey,mode)
{
	var strFeatures="width=500,height=400,toolbar=no,locationbar=yes,menubar=yes,directoriesbar=yes,statusbar=yes,resizeable=no";
	name=window.open("/system/da/cms/editstatictext?staticTextKey="+strStaticTextKey+"&mode="+mode,"EditStaticText",strFeatures);
}

function ClearForm(el,defVal)
{
if(el.value==defVal)el.value=""
}
function FillForm(el)
{
if(el.value=="")el.value=el.defaultValue
}


function GetFlashHtml(fileName, width, height)
{
	var cflash = "";
	cflash = "<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" WIDTH=\""+width+"\" HEIGHT=\""+height+"\" id=\"Flash Id\" ALIGN=\"\" VIEWASTEXT VIEWASTEXT>";
	cflash = cflash + "<PARAM NAME=movie VALUE=\"" + fileName + "\">";
	cflash = cflash + "<PARAM NAME=quality VALUE=high>";
	cflash = cflash + "<PARAM NAME=bgcolor VALUE=#FFFFFF>";
	cflash = cflash + "<PARAM NAME=WMode VALUE=\"transparent\">";
	cflash = cflash + "<embed Wmode=\"transparent\" src=\"" + fileName + "\" quality=\"High\" WIDTH=\""+width+"\" HEIGHT=\""+height+"\" loop=\"false\" pluginpage=\"http://www.macromedia.com/go/getflashplayer\"></embed>";
	cflash = cflash + "</OBJECT>";
	return cflash;
}

function openTipFriendWindow(strURL)
{
var strName="TipAFriend";
var strFeatures="width=550,height=320,toolbar=no,locationbar=no,menubar=no,scrollbars=yes,directoriesbar=no,statusbar=no,resizeable=no";
name=window.open(strURL,strName,strFeatures);
}