<!--

var mywindow=null;
if (mywindow) {
	mywindow.close();
}

function popupopen(pagina,titolo,l,h,scroll,pos,menusi) {
	
	menu = "no";

	win_name = "mywindow";

	if(menusi != null) {
		if(menusi == true) {
			menu = "yes";
		}
	}

	if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-l)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
	if(pos=="center"){LeftPosition=(screen.width)?(screen.width-l)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
	if(pos=="right"){LeftPosition=screen.width-l-20;TopPosition=20;}
	else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
	settings='width='+l+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar='+menu+',toolbar=no,resizable=no';
	eval(win_name+"=window.open(pagina,titolo,settings)");
}

function credits() {
	popupopen('http://www.tlcws.com/credits.html','credits',253,260,'no','center');
}


var offsetX = 0;
var offsetY = 0;


// Detect if the browser is IE or not.
// If it is not IE, we assume that the browser is NS.
var IE = document.all?true:false

// If NS -- that is, !IE -- then set up for mouse capture
if (!IE) document.captureEvents(Event.MOUSEMOVE)

// Set-up to use getMouseXY function onMouseMove
document.onmousemove = getMouseXY;

// Temporary variables to hold mouse x-y pos.s
var mouseX = 0;
var mouseY = 0;

// Main function to retrieve mouse x-y pos.s
function getMouseXY(e) {
  if (IE) { // grab the x-y pos.s if browser is IE
    mouseX = event.clientX + document.body.scrollLeft
    mouseY = event.clientY + document.body.scrollTop
  } else {  // grab the x-y pos.s if browser is NS
    mouseX = e.pageX
    mouseY = e.pageY
  }  
  // catch possible negative values in NS4
  if (mouseX < 0){mouseX = 0}
  if (mouseY < 0){mouseY = 0}  
  // show the position values in the form named Show
  // in the text fields named MouseX and MouseY
  
//  window.status = "mouseX = " + mouseX + ": mouseY = " + mouseY

  return true
}

function MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

	function MM_showHideLayersTLC2() {
		var i,v,obj,args=MM_showHideLayersTLC2.arguments;
		
		for (i=0; i<args.length; i++) {
			if (((obj=MM_findObj("fr_" + args[i]))!=null) && ((obj_ref=MM_findObj(args[i]))!=null)) {
				if ((obj.style) && (obj_ref.style)) {
					obj=obj.style;
					obj_ref=obj_ref.style;
					if (i==0) {
						if(obj.display == 'inline') {
							v='none';
						} else {
							obj.left = (offsetX + mouseX - (parseInt(obj_ref.width)/2)).toString() + "px";
							obj.top = (offsetY + mouseY - parseInt(obj_ref.height)).toString() + "px";
							v='inline';
						}
					} else {
						v='none';
					}
					
					obj.display=v;
				}
			}
		}
		for (i=0; i<args.length; i++) {
			if ((obj=MM_findObj(args[i]))!=null) {
				if (obj.style) {
					obj=obj.style;
					if(i==0) {
						if(obj.visibility == 'visible') {
							v='hidden';
						} else {
							obj.left = (offsetX + mouseX - (parseInt(obj.width)/2)).toString() + "px";
							obj.top = (offsetY + mouseY - parseInt(obj.height)).toString() + "px";
							v='visible';
						}
					} else {
						v='hidden';
					}
					
					obj.visibility=v;
					setLayerOffset(0, 0)
				}
			}
		}
	} 

	function setLayerOffset(x, y) {
		offsetX = x;
		offsetY = y;
   	 return true;
	} 
// -->