
var movieName = "swMainMenu_Top";


function ShowGraphicInWindow(imgFolderAndName,intWidth,intHeight,Title)
{
		intHeight=intHeight+75 //heading space
		intWidth=intWidth+25 //scroll bar space
		newWin=window.open("","","scrollbars=yes,resizable,width="+intWidth +",height="+intHeight);
		CurrentDoc = newWin.document;
		CurrentDoc.write("<html><head></head><body marginheight=0 marginwidth=0 topmargin=0 leftmargin=0>");
		CurrentDoc.write("<br><p>&nbsp;&nbsp;&nbsp;<FONT face=Courier size=2><STRONG>" + Title + "</STRONG></p><p><img src='" + imgFolderAndName + "'></p>");
		CurrentDoc.write("</body></html>") 

		//strLoginCode = 'image:' + Title
		//SetCookie("LoginReason", strLoginCode)
		//window.open("Login.aspx","","scrollbars=yes,resizable,width=800,height=640") 

}

function OpenPageInNewWindow(PageName)
{
	//PageName=PageName + '?HideMainMenu=1'
	window.open(PageName,"","scrollbars=yes,resizable,width=830,height=640")
}

function OpenURL(pageName)
{
	//window.location.href(pageName)
	//window.frames("main").location.href=pageName
	//location.href=pageName
	location.href=pageName
}


function thisMovie(movieName) {
  // IE and Netscape refer to the movie object differently.
  // This function returns the appropriate syntax depending on the browser.
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return document.all[movieName]
  }	else {
    return document[movieName]
  }
}

// Checks if movie is completely loaded.
// Returns true if yes, false if no.
function movieIsLoaded (theMovie) {
  if (typeof(theMovie) != "undefined") 
  {
	//alert(theMovie.PercentLoaded())
    return theMovie.PercentLoaded() == 100;
  } 
  else 
  {
    return false;
  }
}

function go(theFrame) {
  if (movieIsLoaded(thisMovie(movieName))) 
  {
	//alert('go to frame');
    thisMovie(movieName).GotoFrame(theFrame);
  }
}

function OpenLogin()
{
	window.open("Login.aspx","","scrollbars=yes,resizable,width=800,height=640") 	
	//document.execCommand("Delete")
	with (document.all.ReqLogin){innerText=''; clearAttributes()}

}
/*
// FSCommand handler for Netscape
	// Detect Browser
	var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;  
function Flash_FSCommand(command, args) {
	var FlashMenuTop = InternetExplorer ? document.all['swMainMenu_Top'] : document.swMainMenu_Top;
  if (command=="LoadMovieInSprite") {
    // ADD YOUR CODE HERE
//alert('Name:=' + FlashMenuTop.name);
//alert('ID:=' + FlashMenuTop.id);
    FlashMenuTop.TGotoFrame('_level0',args);
  } else if (command=="FullScreen") {
    // ADD YOUR CODE HERE
  }
}
*/