

var GLOBAL_MainFile="";

var GLOBAL_str_onmouseover="onmouseenter";
var GLOBAL_str_onmouseout="onmouseleave";
if (isNS)
{
	GLOBAL_str_onmouseover="onmouseover";
	GLOBAL_str_onmouseout="onmouseout";
}

var GLOBAL_FilterFade250="filter:progid:DXImageTransform.Microsoft.Fade(Overlap=1.00,Duration=0.350);";
var GLOBAL_FilterFade250b="progid:DXImageTransform.Microsoft.Fade(Overlap=1.00,Duration=0.350);";
var GLOBAL_FilterFade250c="progid:DXImageTransform.Microsoft.Fade(Overlap=1.00,Duration=0.450);";
if (isNS)
{
	GLOBAL_FilterFade250="";
	GLOBAL_FilterFade250b="";
	GLOBAL_FilterFade250c="";
}

var GLOBAL_FilterFade750="filter:progid:DXImageTransform.Microsoft.Fade(Overlap=1.00,Duration=0.750);";
var GLOBAL_FilterFade750b="progid:DXImageTransform.Microsoft.Fade(Overlap=1.00,Duration=0.750);";
if (isNS)
{
	GLOBAL_FilterFade750="";
	GLOBAL_FilterFade750b="";

}
// shorten 'write' function

function _dw(str)
{
	document.write(str);
}


// check what browser

var isNS=false;

if (navigator.appName=="Netscape")
	isNS=true;

isNS4 = (document.layers) ? true : false;
isIE4 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 4.")!=-1)) ? true : false;

// access objects by browsers

function funcGetElmByID(aID)
{ 
	var element = null; 

	if (isNS4) 
		element=document.layers[aID] 
	else 
		if (isIE4) 
			element=document.all[aID]; 
		else
			element = document.getElementById(aID);

	return element; 
} 

function _id(aID)
{
	return (funcGetElmByID(aID));
}

function funcGetElmByID2(objMain,aID)
{ 
	var element = null; 

	if (isNS4) 
		element=objMain.layers[aID] 
	else 
		if (isIE4) 
			element=objMain.all[aID]; 
		else
			element = objMain.getElementById(aID);

	return element; 
} 

//----------------------------- TIME AND FILTER SUPPORT
function FltApply(obj)
{
 if (!isNS)
  obj.filters[0].Apply();
}

function FltPlay(obj)
{
 if (!isNS)
  obj.filters[0].Play();
}

function funcSetHeader(sLogoPic,sBannerPic,sTitleText)
{
	_id("imgHeaderLogo").src="images/header/"+sLogoPic;
	_id("imgHeaderBanner").src="images/header/"+sBannerPic;
	//	_id("aTitleText").innerHTML=sTitleText;
}

function funcBuildHeaderBackground()
{
	var s="";

	s=	"<div style='height:122px;width:100%;position:absolute;left:0px;top:0px;'>"
		+"	<table width='100%' height='122px' border='0' CELLSPACING='0' CELLPADDING='0' background='images/header/Side-Background-8x122.gif'>"
		+"		<tr>"
		+"			<td width='50%'></td>"
		+"			<td><table width='8px' height='122px' border='0' CELLSPACING='0' CELLPADDING='0' background='images/header/Side-Background-Inner-Left-8x122.gif'><tr><td></td></tr></table></td>"
		+"			<td><table width='854px' height='122px' border='0' CELLSPACING='0' CELLPADDING='0' background='images/header/Side-Background-Inner-8x122.gif'><tr><td></td></tr></table></td>"
		+"			<td><table width='8px' height='122px' border='0' CELLSPACING='0' CELLPADDING='0' background='images/header/Side-Background-Inner-Right-8x122.gif'><tr><td></td></tr></table></td>"
		+"			<td width='50%'></td>"
		+"		</tr>"
		+"	</table>"
		+"</div>";

	return s;
}

function funcSetFooter()
{
	_id("dFooter").innerHTML=""
	+"<table width='870px' border='0' CELLSPACING='0' CELLPADDING='0'>"
	+"	<tr><td height='5px'></td></tr>"
	+"	<tr>"
	+"		<td width='100%' align='center' style='padding-bottom:5px'>"
	+"			<a class='aFooterLink' href='http://www.supportspace.com'>Home</a>"
	+"			<span class='sFooterSep'>|</span><a class='aFooterLink' href='http://corporate.supportspace.com'>About Us</a>"
	+"			<span class='sFooterSep'>|</span><a class='aFooterLink' href='http://www.supportspace.com/home/legal.s2'>Legal</a>"
	+"			<span class='sFooterSep'>|</span><NOBR><a class='aContentTextGray'>Copyright &copy; 2007 SupportSpace, Ltd. All rights reserved.</a></NOBR>"
	+"		</td>"
	+"	</tr>"
	+"</table>";
}

