// JavaScript Document
	/*//---------------------------------------------*/
	/*// Name: Site - Default Scripts				 */
	/*// Language: JavaScript						 */
	/*//---------------------------------------------*/


	/*//---------------------------------------------*/
	/*// Name: InitializeSite()						 */
	/*// Desc: Entry Point for Onload Event			 */
	/*//---------------------------------------------*/
	function InitializeSite()
	{
		if ( window.location.href.match( /^https:/i ) )
			siteRoot = secureSiteRoot;
	}

	/*//---------------------------------------------*/
	/*// Declare/Define Global Variables			 */
	/*//---------------------------------------------*/
	var secureSiteRoot = "https://clients3.bannerview.com/~uptime";
	
	/*//---------------------------------------------*/
	/*// Name: createFlashObject()					 */
	/*// Desc: Creates A String That Embeds SWF File */
	/*//---------------------------------------------*/
	
	function createFlashObject()
	{
		var fileLocation = createFlashObject.arguments[0];
		var fileWidth = createFlashObject.arguments[1];
		var fileHeight = createFlashObject.arguments[2];
		
		if (createFlashObject.arguments[3])
		{
			var embedBackgroundAtt = 'bgcolor="' + createFlashObject.arguments[3] + '"';
			var paramBackgroundTag = '<param name="bgcolor" value=" \/>' + createFlashObject.arguments[3] + '"';
		}
		else
		{
			var embedBackgroundAtt = 'style="background: transparent;"';
			var paramBackgroundTag = '<param name="wmode" value="transparent" \/>';
		}
		
		var flashObject = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"'
		+ 'width="' + createFlashObject.arguments[1] + '"'
		+ 'height="' + createFlashObject.arguments[2] + '"' + '>'
		+ '<param name="movie" value="' + createFlashObject.arguments[0] + '" \/>'
		+ '<param name="quality" value="high" \/>'
		+ paramBackgroundTag
		+ '<embed src="' + createFlashObject.arguments[0] + '"' + 'pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"'
		+ 'width="' + createFlashObject.arguments[1] + '"'
		+ 'height="' + createFlashObject.arguments[2] + '"'
		+ embedBackgroundAtt + '><\/embed>'
		+ '<\/object>';
		
		document.write( flashObject );
	}
