function resizeCurrentWindow()
{
  if (window.screen) 
  {
    window.moveTo(0, 0);
    window.resizeTo(screen.availWidth, screen.availHeight);
  }
}

function plugz(skip) {

var ie = document.all;
var ns = (navigator.appName.toLowerCase().indexOf("netscape") > -1 ? 1:0);
var pc = false, mac = false, flash = false;

	if (navigator.appVersion.toLowerCase().indexOf("win") > -1) {
		pc = true;
	} else if (navigator.appVersion.toLowerCase().indexOf("mac") > -1) {
		if (navigator.appVersion.indexOf("MSIE 4.5") > -1) {			// Mac IE 4.5 can't detect plugins, so weed it out right now.
			flash = "mac4.5";
			mac = false;
		} else {
			mac = true;
		}
	}
	
	if ((ns) || (mac && ie))											// Netscape plugin detection (and IE mac!!!) 
	{
		for (i = 0; i < navigator.plugins.length; i++) {
			plug_description = navigator.plugins[i].description.toLowerCase();
			if (plug_description.indexOf("flash") != -1) {				// Flash plugin Exists
				if (plug_description.indexOf("6.0") != -1) 
				{
					flash = 6;
					break;
				}
				else if ( (plug_description.indexOf("12.") != -1) || (plug_description.indexOf("11.") != -1) || (plug_description.indexOf("7.0") != -1) || (plug_description.indexOf("8.0") != -1) || (plug_description.indexOf("9.0") != -1) || (plug_description.indexOf("10.") != -1)) 
				{
					flash = 6;
					break;
				}				
				else // Plugin is version 5 or less. 
				{												
					flash = 5;
					break;
				}
			}
		}
	} 

	else if (ie && pc) 
	{
		flash = iedetect();
	}
	
	if ((flash < 6 && (ns == 1 || mac == 1)) || (flash == "mac4.5"))  
	{
		if(skip == '992')
			return false;
		else
			window.location = "/no_flash.php";
	}
	else 
	{
		if(skip == '1')
			window.location = "live";
		else if(skip == '992')
			return true;
		//nothing to do.
	}
}

function redirect() {
	window.open("live/fullscreen.php", "fuller", "resizable=yes,scrollbars=no,toolbar=no,location=no,locationbar=no,directories=no,status=no,menubar=no,personalbar=no,top=50,left=50") 
}
