
function onSWFInit()
{
	//alert("onSWFInit");
	//startSWFAddress();
}
function getInitialSection()
{	
	if(specificPage!=undefined && specificPage!='')	
	{
		return specificPage;
	} 
	else 
	{
		var index = top.location.href.indexOf('#');
		if (index != -1) 
		{
			var flash_path = /#(.*)\??/.exec(top.location.href);
			
			if (flash_path != null)
			{
				if (flash_path.length > 1)
				{
					
					var what_we_need = flash_path[1].split("?");						
					return what_we_need[0];
				}
				else
				{	
							
					return '/healthy water, healthy you';
				}
			}
			else
			{					
				return '/healthy water, healthy you';
			}
		}
		return '/healthy water, healthy you';
	}
}
function writeFlash() {
		soID = "index";
		var cachebuster= new Date().getTime();
		so = new SWFObject("index.swf?"+cachebuster, soID, "100%", "100%", "8", "#0F1A08");
		so.setProxy(null, "swfobject_js_gateway.swf");
		so.addVariable("initialSection", getInitialSection());
		so.addParam("quality", "best");
		so.addParam("scale", "noscale");
		so.addParam("salign", "lt");
		so.write("flashContent");
}

function bwwNewWindow(strMyPage, strMyName, intWidth, intheight, scroll) {
	var intWidth;   // width and height of the popup window, these values are in the anchor link
	var intheight;  //

	var intWinLeft = 25; // location of the popup window, this is set at the center of screen
	var intWinTop = 25;
	var strWinprops = 'height='+intheight+',width='+intWidth+',top='+intWinTop+',left='+intWinLeft+',scrollbars='+scroll+',resizable=no, scrollbars=yes, menubar=yes'; 
	var strwin = window.open(strMyPage, strMyName, strWinprops);
	if (parseInt(navigator.appVersion) >= 4) { strwin.window.focus(); }
}
function MM_openBrWindow (theURL, winName, features){
	window.open (theURL, winName, features);
}
//Used by flash to open windows
function openBrWindow (s)
{
	var a = s.split ("||"); 
	window.open (a[0], a[1], a[2]);
}