//-----------------------------------------------------------------
// Full Screen
//-----------------------------------------------------------------

var Mac = navigator.appVersion.indexOf('Mac',0) != -1;
var Win = navigator.appVersion.indexOf('Win',0) != -1;
var IE  = navigator.appName.indexOf("Microsoft Internet Explorer",0) != -1;
var NN  = navigator.appName.indexOf("Netscape",0) != -1;
var GE  = navigator.userAgent.indexOf("Gecko") != -1;
var SA  = navigator.appVersion.indexOf("Safari") != -1;

sw = screen.width;
sh = screen.height;

function opentym(){

//Mac IE
	if( Mac && IE ) {
		msw=sw;
		msh=sh-44;
		macIE = window.open('home.html','tym','width='+sw+',height='+sh+',left=0,top=0,toolbar=no,directories=no,location=no,toolbar=no,menubar=no,resizable=no,scrollbars=no');
		macIE.resizeTo(msw,msh);
	}

//Mac Safari
	else if( Mac ) {
		window.open('home.html','tym','width='+sw+',height='+sh+',left=0,top=0,toolbar=no,directories=no,location=no,toolbar=no,menubar=no,resizable=no,scrollbars=no');
	}
	

//Windows IE
	else if( IE ){
		if(sw >= 1024 && sh >= 768){
			window.open('home.html','FullScreen','fullscreen=yes');
		} else {
			window.open('home2.html','tym','width='+(sw-12)+',height='+(sh-57)+',left=0,top=0,toolbar=no,directories=no,location=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes');
		}
	}

//Netscape 6
	else if( GE ){
		if(sw >= 1024 && sh >= 768){
			window.open('home.html','tym','width='+(sw-6)+',height='+(sh-25)+',left=0,top=0,toolbar=no,directories=no,location=no,toolbar=no,menubar=no,resizable=no,scrollbars=no');
		} else {
			window.open('home2.html','tym','width='+(sw-6)+',height='+(sh-25)+',left=0,top=0,toolbar=no,directories=no,location=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes');
		}
	} 

//Netscape
	else if( NN ){
			if(sw >= 1024 && sh >= 768){
			window.open('home.html','tym','width='+(sw-12)+',height='+(sh-57)+',left=0,top=0,toolbar=no,directories=no,location=no,toolbar=no,menubar=no,resizable=no,scrollbars=no');
		} else {
			window.open('home2.html','tym','width='+(sw-12)+',height='+(sh-57)+',left=0,top=0,toolbar=no,directories=no,location=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes');
		}
	} 

//Other
	else{
		if(sw >= 1024 && sh >= 768){
			window.open('home.html','tym','width='+sw+',height='+sh+',left=0,top=0,toolbar=no,directories=no,location=no,toolbar=no,menubar=no,resizable=no,scrollbars=no');
		} else {
			window.open('home2.html','tym','width='+sw+',height='+sh+',left=0,top=0,toolbar=no,directories=no,location=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes');
		}
	} 
}
