<!--
	function setFocus(){
		var mainMovie = document.getElementById('main');
		if(mainMovie && mainMovie.focus){
			mainMovie.focus();
		}
	}
	
	function saveSession(sessionText){
		//alert(sessionText);
		sessionText = sessionText.replace(/(<[\/]*TEXTFORMAT[\w\"= ]*>)|(size=[\d\"]+)|(<\/p>)/gi,"");
		sessionText = sessionText.replace(/<p[\w\d\"= ]*>/gi,"<br>");
		newWindow = window.open();
		
		newWindow.document.write("<html><head><title>Flash Chat Session File</title><style>font{font-size : 15px; font : sans-serif; font-family : sans-serif;}</style></head><body bgcolor=#E8E8E8><table width=100% border=0 cellspacing=1 cellpadding=4 bgcolor=#003366 height=100%><tr><td valign=top bgcolor=#FFFFFF>");
		newWindow.document.write(sessionText);
		newWindow.document.write("</td></tr></table></body></html>");
	}
	
	
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function main_DoFSCommand(command, args) {
  var mainObj = InternetExplorer ? main : document.main;
  switch(command){
  	case "saveSession":
		saveSession(args);
	break;
  }
  //
  // Place your code here...
  //
}
// Hook for Internet Explorer 
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
	  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub main_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call main_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}
// -->


<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
<!-- 
function print(){  
if (NS) {
    window.print() ;  
} else {
    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
    WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML = "";  
}
}
// -->
<!--
function initArray() {
 for (var i = 0; i < initArray.arguments.length; i++)
  this[i] = initArray.arguments[i];
 this.length = initArray.arguments.length;
}
var chrome = new initArray(
 "menubar",
 "menubar,toolbar",
 "menubar,status,resizable,scrollbars",
 "resizable,scrollbars",
 "");
var popUpWin = '';
var describeIt = '';
var picture = '';
var winFeatures = '';
function PopUp(pic,high,wide,text,features) {
 var tall = high + 0
 var side = wide + 0
 describeIt = text
 picture = pic
 winFeatures = features
if (popUpWin && !popUpWin.closed) {
  popUpWin.close();
 }
   popUpWin = eval("window.open('"+picture+"','newWin','"+chrome[winFeatures]+",height="+tall+",width="+side+"')");
   if (!popUpWin.opener) popUpWin.opener = self;
}
// -->
<!-- 
function Search() {
        var words;
        words = document.crawl.query.value;
        var searchitems;
        searchitems=escape(words);
        var index;
        //
        index = document.crawl.engine.selectedIndex;
        var site;
        site = document.crawl.engine.options[index].value;
        site+=searchitems;
        if (notEmpty(searchitems))   {
            window.location = site;
        }
        return false;
}
//
function notEmpty(word)  {
        if (word == "" || word == null) {
            self.status="ENTER SEARCH searchitems";
            alert("Please enter your search items");   
            return false;
        }
        else {
            self.status = "CRAWLING: *" + word + "*.  Waiting for reply..." ;
            return true;
        }
}
//-->

