// JavaScript Document
/*Images = new Array();
Images[0] = new Image(239,215);
Images[0].src = "beta2.gif";

Images[1] = new Image(239,215);
Images[1].src = "beta2_over.gif";
*/
var platform;
var browser;
var window_size;

if(navigator.userAgent.indexOf('Win') == -1) {
	platform = 'MAC'; 
} else { 
	platform = 'WIN'; 
} 

if(navigator.appName.indexOf('Netscape') == -1) {
	browser = 'IE'; 
} else { 
	browser = 'NN';
}

var mode;
var w = screen.width - 12;
var h = screen.height - 31;
	
function openWindow(arg,file_path){

    mode = arg;
	
	if(platform == 'WIN' && browser == 'IE'){
		
		if(mode == 'fullscreen') {	
			newwin=window.open(file_path,"main_win","fullscreen=1,scrollbars=1,resizable=no,location=no,menubar=no,status=no");
		}
		else if (mode == 'pop_up'){
			w = screen.width;
			h = screen.height - 25;
	
			newwin=window.open(file_path,"main_win","channelmode=1","scrollbars=0,resizable=no,location=no,menubar=no,status=no,left=0,top=0");
			newwin.resizeTo(w,h);
		}
		
	}else if(platform == 'MAC' && browser == 'IE'){
		h = screen.height - 35;	
		newwin=window.open(file_path,"main_win","scrollbars=0,resizable=no,location=no,menubar=no,status=no,left=0,top=0");
		newwin.resizeTo(w,h);
	}else if(platform == 'MAC' && browser == 'NN'){
		h = screen.height - 54;
		window_size = "width=" + w + ",height=" + h +",innerWidth=" + w + ",innerHeight=" + h;
		newwin=window.open(file_path,"main_win","scrollbars=0,resizable=no,location=no,menubar=no,status=no," + window_size);
		newwin.moveTo(0,0);
	}else if( platform == 'WIN' && browser == 'NN'){
		window_size = "width=" + w + ",height=" + h +",innerWidth=" + w + ",innerHeight=" + h;
		newwin=window.open(file_path,"main_win","scrollbars=0,resizable=no,location=no,menubar=no,status=no," + window_size);
		newwin.moveTo(0,0);
	}		
}
		
/*
function Over(){
	document.ASYLogo.src = Images[1].src;
	return true;
}
function Out(){
	document.ASYLogo.src = Images[0].src;
	return true;
}
*/