function createPlayer(strNode, strFile)
{
	objNode = document.getElementById(strNode);
	if (window.GeckoActiveXObject)
	{
		if ((strFile == null) || '' == strFile)
			objNode.innerHTML = '<object type=\"application/x-mplayer2\" pluginspage=\"../../../http/microsoft.com/windows/mediaplayer/en/download/MS_432.html" showControls=\"1\" width=\"280\" height=\"46\"><param name=\"autostart\" value=\"true\" /></object>';
		else
			objNode.innerHTML = '<object type=\"application/x-mplayer2\" pluginspage=\"../../../http/microsoft.com/windows/mediaplayer/en/download/MS_432.html" showControls=\"1\" width=\"280\" height=\"46\" src="' + strFile + '"><param name=\"autostart\" value=\"true\" /></object>';
	}
	else
	{
		objNode.innerHTML = '<object id="Player" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"' + 
	' standby="Loading Microsoft Windows Media Player components..."' + 
	' type="application/x-oleobject" width="280" height="46">\n' +
	' <param name="url" value="' + strFile + '">\n' +
    ' <param name="ShowStatusBar" value="true" />\n' +
    ' <param name="AutoStart" value="true" />\n' +
	' <param name="AutoSize" value="false" />\n' +
    ' <param name="ShowAudioControls" value="true" />\n' +
    ' <param name="ShowDisplay" value="false" />\n' +
    ' <param name="ShowGotoBar" value="false" />\n' +
    ' <param name="ShowTracker" value="false" />\n' +
    ' <param name="ShowPositionControls" value="false" />\n' +
	' <param name="uiMode" value="mini" />\n' +
	' </object>';
	}
}

function changeStream(strFile)
{
	if ((document.Player) && (document.Player.controls))
	{
		document.Player.URL=strFile;
		document.Player.controls.play();
	}
	if(document.getElementById("mediaPlayerMozilla"))
	{
		document.getElementById("mediaPlayerMozilla").innerHTML = '<embed type="application/x-mplayer2" pluginspage="../../../http/microsoft.com/windows/mediaplayer/en/download/MS_433.html" showControls="1" width="280" height="46" src="' + strFile + '"></embed>';
	}
}

function fixIEObject(strObject)
{
	obj = document.getElementById(strObject);
	if (obj && document.all)
	{
		var parent=obj.parentNode;
		h = parent.innerHTML;
		parent.removeChild(obj);
		//parent.innerHTML=h;
		parent.innerHTML = '<object id="objSWF" type="application/x-shockwave-flash" data="skins/Skin_7/resources/products.swf" width="250" height="160"> <param name="movie" value="skins/Skin_7/resources/products.swf" /></object>';
	}
}

/* tooltips */
function showTooltip()
{
	objA = document.getElementById('tooltipA');
	objH = document.getElementById('tooltipH');
	objH.style.display = "block"; // "display: block; position: absolute; top: 10px;";
	objH.style.position = "absolute";
	objH.style.top = "0px";
	objH.style.left = "75px";
	objH.style.border = "2px solid #CCCCCC";
	objH.style.padding = "0px";
	objH.style.width = "399px";
	objH.style.height = "350px";
	objH.style.margin = "0px;";
	objH.style.pading = "0px;";
}

function hideTooltip()
{
	objH = document.getElementById('tooltipH');
	objH.style.display = "none";
}


/* checks/unchecks all the unsub checkboxes */
checkedUnsub = 0;
function checkAllUnsub()
{
	if (checkedUnsub == 0)
	{
		document.getElementById('chkThird').checked = "checked";
		document.getElementById('chkNews').checked = "checked";
		document.getElementById('chkBill').checked = "checked";
		document.getElementById('chkVacc').checked = "checked";
		checkedUnsub = 1;
	}
	else
	{
		document.getElementById('chkThird').checked = "";
		document.getElementById('chkNews').checked = "";
		document.getElementById('chkBill').checked = "";
		document.getElementById('chkVacc').checked = "";
		checkedUnsub = 0;
	}
}

/*children for the registration form*/
/*
function updateChildren()
{
	objDiv = document.getElementById('divChildren');
	objSel = document.getElementById('selChildren');
	nChildren = objSel.value;

	if (nChildren == "")
	{
		objDiv.innerHTML = "";
	}
	else
	{
		strC = '<table width="100%"><tbody>';
		for (i=0; i < nChildren; i++)
		{
			strC = strC + '<tr><td>Childs\' Name: </td><td>Date of Birth (M/D/Y)</td><td>Gender</td></tr>\n';
			strC = strC + '<tr><td><input type="text" id="chName' + i + '" name="chName' + i + '" /></td><td><input type="text" size="2" maxlengh="2" id="chDOBm' + i + '" name="chDOBm' + i +'" />/';
			strC = strC + '<input type="text" size="2" maxlengh="2" id="chDOBd' + i + '" name="chDOBd' + i +'" />';
			strC = strC + '<input type="text" size="4" maxlengh="4" id="chDOBy' + i + '" name="chDOBy' + i +'" /></td>\n<td>';
			strC = strC + '<select name="chGender' + i + '">\n';
			strC = strC + '<option value="" selected>Select</option><option value="m">M</option><option value="f">F</option></select>';
			strC = strC + '</td></tr>';
		}
		strC = strC + '</tbody></table>';
		objDiv.innerHTML = strC;
	}
	//alert ("Children: " + nChildren);
}
*/
