
function closeIt() {
    event.returnValue = "ÇIKARSAN KOTU OLUR.";
  }

function openWin () {
		var SysReqWin;
		SysReqWin=open("systemreq.html","SystemRequirements","HEIGHT=320,WIDTH=700,resizable=no,scrollbars=no,menubar=no,status=no,location=no,toolbar=no,directories=no");
		SysReqWin.focus();
}
function detectVersion(){
	version = parseInt(navigator.appVersion);
	return version;
}

function detectOS(){
	if(navigator.userAgent.indexOf('Win') == -1) {
		OS = 'Macintosh';
	}else {
		OS = 'Windows';
	}
	return OS;
}


function detectBrowser(){
	if(navigator.appName.indexOf('Netscape') == -1) {
		browser = 'IE';
	}
	else {
		browser = 'Netscape';
	}
	return browser;
}

////////////////////////////////////////  DEMO  ////////////////////////////////////////
function FullScreenDemo(){

	var adjWidth;
	var adjHeight;

	if((detectOS() == 'Macintosh') && (detectBrowser() == 'Netscape')) {
		adjWidth = 20;
		adjHeight = 35;
	}
	if((detectOS() == 'Macintosh') && (detectBrowser() == 'IE')) {
		adjWidth = 20;
		adjHeight = 35;
		winOptions = 'fullscreen=yes';
	}

//	Netscape

	if((detectOS() == 'Windows') && (detectBrowser() == 'Netscape')) {
		adjWidth = 9;  //20
		adjHeight = 29;
	}
	if(detectVersion() < 4) {
		self.location.href = 'http://elearning.sunexpress.web.tr//SunexFlyco/DEMO/Demo.swf?';
	}
	else {
		// Netscape
		var winWidth = screen.availWidth - adjWidth;
		var winHeight = screen.availHeight - adjHeight;
		var winSize = 'width=' + winWidth + ',height=' + winHeight;
		var thewindow = window.open('http://elearning.sunexpress.web.tr//SunexFlyco/DEMO/Demo.swf?', 'WindowName', winSize);
		//thewindow.moveTo(0,0);
		//setTimeout('history.back()',10000);
	}
}


function DedektOsAndBrowserDemo(){

if (screen.height >= 600){

	if((detectOS() == 'Windows') && (detectBrowser() == 'IE')) {
		// Windows Internet Explorer
		myNewWindow = open('','windowname','fullscreen=yes, scrollbars=no, toolbar=no, location=no, directories=no,status=no, menubar=no, resizable=no');
		myNewWindow.document.open();
		with (myNewWindow.document) {
			writeln("<html><title>FLYCO E-Learning<\/title><meta name=\"author\" content=\"ORCUN SUFRACI\"><head><\/head>");
			writeln("<frameset cols=\"*\" border=\"0\" framespacing=\"0\" frameborder=\"no\"><frame src=\"http://elearning.sunexpress.web.tr//SunexFlyco/DEMO/Demo.swf?\" noresize scrolling=\"no\" name = \"flash\"><\/frameset>");
			writeln("<\/html>");

		}
		myNewWindow.document.close();
		//setTimeout('history.back()',10000);

	}
	else {
		onload=FullScreenDemo();
	}
}
else{

	document.writeln ("<html><title>screen settings</title> <body text=\"#000000\" bgcolor=\"#6699cc\">");
    document.writeln ("<p>&nbsp;<image src=\"\/CMI\/icons\/company.gif\" width=\"240\" height=\"80\" align=right></p>");
    document.writeln ("<p>sorry...</p><p> Your screen setting does not correspond to the specification. Please set it to 1024 x 600</p>");
    document.writeln ("<p> Return to the <a href=\"javascript:history.go(-2)\">WBT website</a>.</p>");
    document.writeln ("<hr noshade><p><strong>How to cange the <a href=\"\/CMI\/html\/screen_settings.html\">screen_settings</a>.</strong></p>");
    document.writeln ("</body></html>");

	}
	
	
}

////////////////////////////////////////  COM101  ////////////////////////////////////////
function FullScreenCOM101(){
	var adjWidth;
	var adjHeight;
	if((detectOS() == 'Macintosh') && (detectBrowser() == 'Netscape')) {
		adjWidth = 20;
		adjHeight = 35;
	}
	if((detectOS() == 'Macintosh') && (detectBrowser() == 'IE')) {
		adjWidth = 20;
		adjHeight = 35;
		winOptions = 'fullscreen=yes';
	}
//	Netscape
	if((detectOS() == 'Windows') && (detectBrowser() == 'Netscape')) {
		adjWidth = 9;  //20
		adjHeight = 29;
	}
	if(detectVersion() < 4) {
////////////////////////////////////////  ADRES DEGISTIR  ////////////////////////////////////////
		self.location.href = 'http://www.flycolms.com/FLYCOV4/COM101/SwfV4/PrgStart.swf?';
	}
	else {
		// Netscape
		var winWidth = screen.availWidth - adjWidth;
		var winHeight = screen.availHeight - adjHeight;
		var winSize = 'width=' + winWidth + ',height=' + winHeight;
////////////////////////////////////////  ADRES DEGISTIR  ////////////////////////////////////////
		var thewindow = window.open('http://www.flycolms.com/FLYCOV4/COM101/SwfV4/PrgStart.swf?', 'WindowName', winSize);
		//thewindow.moveTo(0,0);
		//setTimeout('history.back()',10000);
	}
}
//
function DedektOsAndBrowserCOM101(){
if (screen.height >= 600){
	if((detectOS() == 'Windows') && (detectBrowser() == 'IE')) {
		// Windows Internet Explorer
		myNewWindow = open('','windowname','fullscreen=yes, scrollbars=no, toolbar=no, location=no, directories=no,status=no, menubar=no, resizable=no');
		myNewWindow.document.open();
		with (myNewWindow.document) {
			writeln("<html><title>FLYCO E-Learning<\/title><meta name=\"author\" content=\"ORCUN SUFRACI\"><head><\/head>");
////////////////////////////////////////  ADRES DEGISTIR  ////////////////////////////////////////
			writeln("<frameset cols=\"*\" border=\"0\" framespacing=\"0\" frameborder=\"no\"><frame src=\"http://www.flycolms.com/FLYCOV4/COM101/SwfV4/PrgStart.swf?\" noresize scrolling=\"no\" name = \"flash\"><\/frameset>");
			writeln("<\/html>");
		}
		myNewWindow.document.close();
		//setTimeout('history.back()',10000);
	}
	else {
		onload=FullScreenCOM101();
	}
}
else{
	document.writeln ("<html><title>screen settings</title> <body text=\"#000000\" bgcolor=\"#6699cc\">");
    document.writeln ("<p>&nbsp;<image src=\"\/CMI\/icons\/company.gif\" width=\"240\" height=\"80\" align=right></p>");
    document.writeln ("<p>sorry...</p><p> Your screen setting does not correspond to the specification. Please set it to 1024 x 600</p>");
    document.writeln ("<p> Return to the <a href=\"javascript:history.go(-2)\">WBT website</a>.</p>");
    document.writeln ("<hr noshade><p><strong>How to cange the <a href=\"\/CMI\/html\/screen_settings.html\">screen_settings</a>.</strong></p>");
    document.writeln ("</body></html>");
	}
}

