
function writeLayer(layerID,txt){
            if(document.getElementById){
                  document.getElementById(layerID).innerHTML=txt;
            }else if(document.all){
                  document.all[layerID].innerHTML=txt;
            }else if(document.layers){
                  with(document.layers[layerID].document){
                        open();
                        write(txt);
                        close();
                  }
            }
      }

var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function lf_DoFSCommand(command, args) {
  var lfObj = InternetExplorer ? lf : document.lf;
  //
  // Place your code here...
  // 
	//alert("Here's the Flash message: " + args);
	if (command == "call_alert") { 
  		//  alert("Here's the Flash message: " + args);
		writeLayer("flashtext",args);
  	}
	
}


function rg_DoFSCommand(command, args) {
  var rgObj = InternetExplorer ? rg : document.rg;
  //
  // Place your code here...
  // 
	//alert("Here's the Flash message: " + args);
	
	if (command == "call_alert2") { 
  		//  alert("Here's the Flash message: " + args);
		writeLayer("flashtext2",args);
  	}
}
// 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 lf_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call lf_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}


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 rg_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call rg_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}


var tlimit="loc";
if (screen.width>1024) {
	tlimit="loc1024";
}

var isff="";

if(navigator.userAgent.indexOf("Firefox") != -1)
{
  isff="yes";
}
if((navigator.userAgent.indexOf("Netscape") == -1) && (navigator.userAgent.indexOf("Gecko") != -1 ))
{
  
  isff="yes";
}