// JavaScript Document

var Scrn_w = 512;
var Scrn_h = 310;
var WinStatus = 'closed';
var SignIn_open = 0;

function CreateControl(movie, h, w)
{
 document.write('<embed style="margin: 0px;" id="' +  movie + '" style="width: ' + w + 'px; height: ' + h + 'px;" name="COV_' + movie + '" src="flash/' + movie + '.swf" quality="high"></embed>');
}

function SetMenu_SignIn() {
	var R = parent.document.all.Right_Menu; 	
	R.innerHTML = '<br>Name: <input size="12" name="loginname"><br><br>';
   R.innerHTML += 'Pass: <input type="password" size="12" name="passphrase"><br><br>';
   	R.innerHTML += '<input type="submit" value="Go" target="float_frame">';
}

function SetMenu(page,a,b,c,d,e,f,g,h) {
	var R = parent.document.all.Right_Menu; 
	R.innerHTML = '<li class="rm"><a href="' + page + '#Top" target="float_frame">Top</a></li>';
	R.innerHTML += (a) ? '<li class="rm"><a href="' + page + '#' + a + '" target="float_frame">' + a +'</a></li>' : ' ';
	R.innerHTML += (b) ? '<li class="rm"><a href="' + page + '#' + b + '" target="float_frame">' + b +'</a></li>': ' ';
	R.innerHTML += (c) ? '<li class="rm"><a href="' + page + '#' + c + '" target="float_frame">' + c +'</a></li>' : ' ';
	R.innerHTML += (d) ? '<li class="rm"><a href="' + page + '#' + d + '" target="float_frame">' + d +'</a></li>': ' ';
	R.innerHTML += (e) ? '<li class="rm"><a href="' + page + '#' + e + '" target="float_frame">' + e +'</a></li>' : ' ';
	R.innerHTML += (f) ? '<li class="rm"><a href="' + page + '#' + f + '" target="float_frame">' + f +'</a></li>': ' ';
	R.innerHTML += (g) ? '<li class="rm"><a href="' + page + '#' + g + '" target="float_frame">' + g +'</a></li>': ' ';
	R.innerHTML += (h) ? '<li class="rm"><a href="' + page + '#' + h + '" target="float_frame">' + h +'</a></li>': ' ';
	
}

function setV() 
 {
 try { 
  var movie = parent.document.MenuRight; 
  var argv = setV.arguments;
  var argc = argv.length;
  var txtVars = new Array();
  for (var i = 1; i < argc; i++) {
   	   txtVars[i] = "txtVars" + i;
   	   movie.SetVariable(txtVars[i], argv[i]);
     }
  movie.SetVariable("pageURL", argv[0]);
  movie.TGotoLabel("/Menu/", "ReloadFrame"); 
  movie.TPlay("/Menu");
} 
catch(er) {
      //alert("Error 1 Please contact system Administrator")

}

 }
 
function setOptions(lvl) 
 {
  var movie = parent.document.MenuLeft; 
  movie.SetVariable("Review", lvl); 
  movie.TGotoLabel("/Menu/", "Review"); 
  movie.TPlay("/Menu");
 }
  function SignIn() 
 {
	var movie = parent.document.MenuLeft;
	movie.TGotoLabel("/Menu/", "SignInFrame"); 
	movie.TPlay("/Menu");
 }

  function Neutral(menu)
  {
	  if (menu == 'Left')
	  {
  var movie = parent.document.MenuLeft; 
  movie.TGotoLabel("/Menu/", "Neutral"); 
  movie.TPlay("/Menu");
	  }
	   else if (menu == 'Right')
	  {
		  var movie = parent.document.MenuRight; 
  movie.TGotoLabel("/Menu/", "Neutral"); 
  movie.TPlay("/Menu");  
	  }
  }

  function Change_Flash( side, location)
  {
	  if (side == 'Left')
	  {
  var movie = parent.document.MenuLeft; 
  movie.TGotoLabel("/Menu/", location); 
  movie.TPlay("/Menu");
	  }
	   else if (side == 'Right')
	  {
		  var movie = parent.document.MenuRight; 
  movie.TGotoLabel("/Menu/", location); 
  movie.TPlay("/Menu");  
	  }
  }
  
var message="Function Disabled!";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

