Page = function(pageID, imageID, navItemID, subNavID, subNavItemID, textID, swfFile)
{
	this.PageID = pageID;
	this.ImageID = imageID;
	this.NavItemID = navItemID;
	this.SubNavID = subNavID;
	this.SubNavItemID = subNavItemID;
	this.TextID = textID;
	this.SWFFile = swfFile;
}

var _container = null;
var _isVideoActive = false;
var _isMenuEnabled = true;
var _isSLIQuestionActive = false;
var _watchTheTrailerID = "Play";
var _seeSLIInActionID = "Play2";
var _watchTheTrailerButton = null;
var _seeSLIInActionButton = null;
var _video = null;
var _videoID = "Video";
var _sliQuestion = null;
var _sliQuestionID = "SLIQuestion";
var _isWatchTheTrailerButtonActive = false;
var _isSeeSLIInActionButtonActive = false;
var _isSLIQuestionActive = false;
var _getSLIComponents = null;
var _getSLIDesktops = null;
var _getSLINotebooks = null;
var _textGetSLINow = "El hardware NVIDIA&reg; SLI<sup>TM</sup> está disponible de muchas formas: tarjetas gráficas, placas base y PC con certificación SLI Ready, así como PC fijos y portátiles preconfigurados con SLI.  Tú eliges: comprar, ensamblar o actualizar un sistema con opciones SLI para todos los bolsillos.";
var _textGetSLIComponents = "¿Tienes claro lo que quieres para tu máquina de juegos? ¿No te da miedo lanzarte a montar tu propio sistema? Muchas veces, la forma más barata de conseguir que el PC tenga las especificaciones que quieres es ensamblarlo tú mismo. Pincha aquí para crear tu propio sistema a partir de dos tarjetas gráficas GeForce y una placa nForce de NVIDIA.";
var _textGetSLIDesktops = "Si lo que quieres es empezar a jugar desde ya, puedes optar por un sistema preconfigurado con NVIDIA&reg; SLI<sup>TM</sup>. Hay muchos fabricantes que comercializan sistemas de sobremesa con SLI. Pincha aquí para ver la lista completa de productos SLI de escritorio. Los encontrarás de todas las marcas y precios.";
var _textGetSLINotebooks = "Ahora puedes jugar con las máximas prestaciones donde tú quieras si utilizas un portátil preconfigurado con NVIDIA&reg; SLI<sup>TM</sup>.  Ya tienes todo tipo de portátiles SLI de primeras marcas equipados con gráficos espectaculares. Pincha aquí para ver la lista.";

var _pageMain = new Page("PageMain", "ImageMain", null, null, null, "TextMain", null);
var _pageMain2 = new Page("PageMain2", "ImageMain2", null, null, null, "TextMain", null);
var _pageMain3 = new Page("PageMain3", "ImageMain3", null, null, null, "TextMain", null);
var _pageTheGames = new Page("PageTheGames", "ImageTheGames", "NavTheGames", "SubNavTheGames", null, "TextTheGames", null);
var _pageWhatIsSLI = new Page("PageWhatIsSLI", "ImageWhatIsSLI", "NavWhatIsSLI", null, null, "TextWhatIsSLI", "SLI_demo.swf");
//var _pageClubSLI = new Page("PageClubSLI", "ImageClubSLI", "NavClubSLI", null, null, "TextClubSLI", null);
var _pageGetSLINow = new Page("PageGetSLINow", "ImageGetSLINow", "NavGetSLINow", null, null, "TextGetSLINow", null);
var _pageWIC = new Page("PageWIC", "ImageWIC", "NavTheGames", "SubNavTheGames", "SubNavGamesWIC", "TextTheGames", "WIC_demo.swf");
var _pageBS = new Page("PageBS", "ImageBS", "NavTheGames", "SubNavTheGames", "SubNavGamesBS", "TextTheGames", "Bioshock_demo.swf");
var _pageHGL = new Page("PageHGL", "ImageHGL", "NavTheGames", "SubNavTheGames", "SubNavGamesHGL", "TextTheGames", "Hellgate_demo.swf");
var _pageCOH = new Page("PageCOH", "ImageCOH", "NavTheGames", "SubNavTheGames", "SubNavGamesCOH", "TextTheGames", "COH_demo.swf");
var _pageLP = new Page("PageLP", "ImageLP", "NavTheGames", "SubNavTheGames", "SubNavGamesLP", "TextTheGames", "Crysis_demo.swf");

var _activePage = _pageMain;

function LoadMainInitial()
{
	var randomNumber = Math.round(Math.random()*(2));
	if(MenuEnabled())
	{
		DisableMenu();

		if(randomNumber == 0)
		{
			ShowPageImage(_pageMain);
			ShowPageText(_pageMain);
			SetActivePage(_pageMain);
		}
		else if(randomNumber == 1)
		{
			ShowPageImage(_pageMain2);
			ShowPageText(_pageMain2);
			SetActivePage(_pageMain2);
		}
		else
		{
			ShowPageImage(_pageMain3);
			ShowPageText(_pageMain3);
			SetActivePage(_pageMain3);
		}
		
		EnableMenuTimed(1.0);
	}
}

function LoadMain()
{
	var randomNumber = Math.round(Math.random()*(2));
	if(MenuEnabled())
	{
		//_hbLink('Main');
		DisableMenu();
		ExitActivePage(_pageMain);
			
		if(randomNumber == 0)
		{
			ShowPageImage(_pageMain);
			ShowPageText(_pageMain);
			SetActivePage(_pageMain);
		}
		else if(randomNumber == 1)
		{
			ShowPageImage(_pageMain2);
			ShowPageText(_pageMain2);
			SetActivePage(_pageMain2);
		}
		else
		{
			ShowPageImage(_pageMain3);
			ShowPageText(_pageMain3);
			SetActivePage(_pageMain3);
		}
		
		EnableMenuTimed(1.0);
	}
}

function LoadWhatIsSLI()
{
	if(MenuEnabled())
	{
		//_hbLink('What_Is_SLI');
		DisableMenu();
		ExitActivePage(_pageWhatIsSLI);
		SetNavItem(_pageWhatIsSLI);
		ShowPageImage(_pageWhatIsSLI);
		ShowSeeSLIInActionButton();
		ShowPageText(_pageWhatIsSLI);
		SetActivePage(_pageWhatIsSLI);
		EnableMenuTimed(2.0);
	}
}

function LoadTheGames()
{
	if(MenuEnabled())
	{
		//_hbLink('The_Games');
		DisableMenu();
		ExitActivePage(_pageTheGames);
		SetNavItem(_pageTheGames);
		ShowPageImage(_pageTheGames);
		ShowPageText(_pageTheGames);
		ShowSLIQuestion();
		ShowPageSubNav(_pageTheGames);
		SetActivePage(_pageTheGames);
		EnableMenuTimed(2.0);
	}
}

function LoadWIC()
{
	if(MenuEnabled())
	{
		//_hbLink('World_In_Conflict');
		DisableMenu();
		ExitActivePage(_pageWIC);
		SetNavItem(_pageWIC);
		SetSubNavItem(_pageWIC);
		ShowPageImage(_pageWIC);
		ShowWatchTheTrailerButton();
		ShowPageText(_pageWIC);
		ShowPageSubNav(_pageWIC);
		SetActivePage(_pageWIC);
		EnableMenuTimed(2.0);
	}
}

function LoadBS()
{
	if(MenuEnabled())
	{
		//_hbLink('BioShock');
		DisableMenu();
		ExitActivePage(_pageBS);
		SetNavItem(_pageBS);
		SetSubNavItem(_pageBS);
		ShowPageImage(_pageBS);
		ShowWatchTheTrailerButton();
		ShowPageText(_pageBS);
		ShowPageSubNav(_pageBS);
		SetActivePage(_pageBS);
		EnableMenuTimed(2.0);
	}
}

function LoadHGL()
{
	if(MenuEnabled())
	{
		//_hbLink('Hellgate_London');
		DisableMenu();
		ExitActivePage(_pageHGL);
		SetNavItem(_pageHGL);
		SetSubNavItem(_pageHGL);
		ShowPageImage(_pageHGL);
		ShowWatchTheTrailerButton();
		ShowPageText(_pageHGL);
		ShowPageSubNav(_pageHGL);
		SetActivePage(_pageHGL);
		EnableMenuTimed(2.0);
	}
}

function LoadLP()
{
	if(MenuEnabled())
	{
		//_hbLink('Lost_Planet');
		DisableMenu();
		ExitActivePage(_pageLP);
		SetNavItem(_pageLP);
		SetSubNavItem(_pageLP);
		ShowPageImage(_pageLP);
		ShowWatchTheTrailerButton();
		ShowPageText(_pageLP);
		ShowPageSubNav(_pageLP);
		SetActivePage(_pageLP);
		EnableMenuTimed(2.0);
	}
}

function LoadCOH()
{
	if(MenuEnabled())
	{
		//_hbLink('Company_of_Heros');
		DisableMenu();
		ExitActivePage(_pageCOH);
		SetNavItem(_pageCOH);
		SetSubNavItem(_pageCOH);
		ShowPageImage(_pageCOH);
		ShowWatchTheTrailerButton();
		ShowPageText(_pageCOH);
		ShowPageSubNav(_pageCOH);
		SetActivePage(_pageCOH);
		EnableMenuTimed(2.0);
	}
}

//function LoadClubSLI()
//{
//	if(MenuEnabled())
//	{
//		//_hbLink('Club_SLI');
//		DisableMenu();
//		ExitActivePage(_pageClubSLI);
//		SetNavItem(_pageClubSLI);
//		ShowPageImage(_pageClubSLI);
//		ShowPageText(_pageClubSLI);
//		SetActivePage(_pageClubSLI);
//		EnableMenuTimed(1.0);
//	}
//}

function LoadGetSLINow()
{
	if(MenuEnabled())
	{
		//_hbLink('Get_SLI_Now');
		DisableMenu();
		ExitActivePage(_pageGetSLINow);
		SetNavItem(_pageGetSLINow);
		ShowPageImage(_pageGetSLINow);
		ShowPageText(_pageGetSLINow);
		SetActivePage(_pageGetSLINow);
		EnableMenuTimed(1.0);
	}
}

function ShowWatchTheTrailerButton()
{
	if(!_isWatchTheTrailerButtonActive)
	{
		//_watchTheTrailerButton.style.display = "";
		new Effect.Move(_watchTheTrailerID, {x: 19, y: 290, mode: 'absolute', duration: 0.5, delay: 1.5, fps: 30});
		new Effect.Appear(_watchTheTrailerID, {from: 0.0, to: 1.0, duration: 0.1, delay: 1.5, fps: 30});
		_isWatchTheTrailerButtonActive = true;
	}
}

function ShowSeeSLIInActionButton()
{
	if(!_isSeeSLIInActionButtonActive)
	{
		//_seeSLIInActionButton.style.display = "";
		new Effect.Move(_seeSLIInActionID, {x: 19, y: 290, mode: 'absolute', duration: 0.5, delay: 1.5, fps: 30});
		new Effect.Appear(_seeSLIInActionID, {from: 0.0, to: 1.0, duration: 0.1, delay: 1.5, fps: 30});
		_isSeeSLIInActionButtonActive = true;
	}
}

function HideWatchTheTrailerButton()
{
	if(_isWatchTheTrailerButtonActive)
	{
		new Effect.Move(_watchTheTrailerID, {x: 19, y: 418, mode: 'absolute', duration: 0.2, delay: 0.0, fps: 30});
		_watchTheTrailerButton.style.display = "none";
		
		_isWatchTheTrailerButtonActive = false;
	}
}

function HideSeeSLIInActionButton()
{
	if(_isSeeSLIInActionButtonActive)
	{
		new Effect.Move(_seeSLIInActionID, {x: 19, y: 418, mode: 'absolute', duration: 0.2, delay: 0.0, fps: 30});
		_seeSLIInActionButton.style.display = "none";
		
		_isSeeSLIInActionButtonActive = false;
	}
}

function ShowSLIQuestion()
{
	if(!_isSLIQuestionActive)
	{
		new Effect.Move(_sliQuestionID, {x: 24, y: 180, mode: 'absolute', duration: 0.5, delay: 1.5, fps: 30});
		new Effect.Appear(_sliQuestionID, {from: 0.0, to: 1.0, duration: 0.1, delay: 1.5, fps: 30});
		_isSLIQuestionActive = true;
	}
}

function HideSLIQuestion()
{
	if(_isSLIQuestionActive)
	{
		new Effect.Move(_sliQuestionID, {x: 24, y: 418, mode: 'absolute', duration: 0.2, delay: 0.0, fps: 30});
		_sliQuestion.style.display = "none";
		
		_isSLIQuestionActive = false;
	}
}

function SetNavItem(page)
{
	var newNavItem = null;
	
	if(page.NavItemID != null)
	{
		newNavItem = document.getElementById(page.NavItemID + "On");
		
		if(newNavItem == null || newNavItem == 'undefined')
		{
			newNavItem = document.getElementById(page.NavItemID);
		}
		
		if(newNavItem != null && newNavItem != 'undefined')
		{
			newNavItem.id = page.NavItemID + "On";
		}
	}
}

function SetSubNavItem(page)
{
	var newSubNavItem = null;
	
	if(page.SubNavItemID != null)
	{
		newSubNavItem = document.getElementById(page.SubNavItemID + "On");
		
		if(newSubNavItem == null || newSubNavItem == 'undefined')
		{
			newSubNavItem = document.getElementById(page.SubNavItemID);
		}
		
		if(newSubNavItem != null && newSubNavItem != 'undefined')
		{
			newSubNavItem.id = page.SubNavItemID + "On";
		}
	}
}

function ShowPageImage(page)
{
	if(page.ImageID != null)
	{
		new Effect.Appear(page.ImageID, {from: 0.0, to: 1.0, duration: 0.5, delay: 0.5, fps: 30});
	}
}

function ShowPageText(page)
{
	if(page.TextID != null && page.TextID != _activePage.TextID)
	{
		new Effect.Appear(page.TextID, {from: 0.0, to: 1.0, duration: 0.9, delay: 0.5, fps: 30});
	}
}

function ShowPageSubNav(page)
{
	if(page.SubNavID != null && page.SubNavID != _activePage.SubNavID)
	{
		new Effect.Appear(page.SubNavID, {from: 0.0, to: 1.0, duration: 0.9, delay: 0.5, fps: 30});
		new Effect.SlideDown(page.SubNavID, {duration: 0.5, delay: 0.5, fps: 30});
	}
}

function EnableMenu()
{
	_isMenuEnabled = true;
}

function EnableMenuTimed(Seconds)
{
	window.setTimeout('EnableMenu();', Seconds*1000);
}

function DisableMenu()
{
	_isMenuEnabled = false;
}

function MenuEnabled()
{
	return _isMenuEnabled;
}

function ActivateVideo()
{
	_isVideoActive = true;
}

function DeactivateVideo()
{
	_isVideoActive = false;
}

function VideoActive()
{
	return _isVideoActive;
}

function SetActivePage(page)
{
	_activePage = page;
}

function _hideLayer(id)
{
	var layer = document.getElementById(id);
	
	if(layer != null && layer != 'undefined')
	{
		layer.style.display = 'none';
	}
}
	
function ExitActivePage(page)
{
	var activeNavItem = null;
	var activeSubNavItem = null;
	
	if(VideoActive())
	{
		CloseVideo(false);
	}
	
	if(_activePage.ImageID != null)
	{
		new Effect.Appear(_activePage.ImageID, {from: 1.0, to: 0.0, duration: 0.5, fps: 30});
		window.setTimeout("_hideLayer('" + _activePage.ImageID + "');", 500);
	}
	
	HideWatchTheTrailerButton();
	HideSeeSLIInActionButton();
	HideSLIQuestion();
	
	if(_activePage.SubNavID != null && page.SubNavID != _activePage.SubNavID)
	{
		new Effect.Appear(_activePage.SubNavID, {from: 1.0, to: 0.0, duration: 0.5, fps: 30});
		window.setTimeout("_hideLayer('" + _activePage.SubNavID + "');", 500);
	}
	
	if(_activePage.TextID != null && page.TextID != _activePage.TextID)
	{
		new Effect.Appear(_activePage.TextID, {from: 1.0, to: 0.0, duration: 0.5, fps: 30});
		window.setTimeout("_hideLayer('" + _activePage.TextID + "');", 500);
	}
	
	if(_activePage.NavItemID != null)
	{
		activeNavItem = document.getElementById(_activePage.NavItemID + "On");
		
		if(activeNavItem != null && activeNavItem != 'undefined')
		{
			activeNavItem.id = _activePage.NavItemID;
		}
	}
	
	if(_activePage.SubNavItemID != null)
	{
		activeSubNavItem = document.getElementById(_activePage.SubNavItemID + "On");
		
		if(activeSubNavItem != null && activeSubNavItem != 'undefined')
		{
			activeSubNavItem.id = _activePage.SubNavItemID;
		}
	}
	
	return;
}

function PlayTrailer()
{				
	if(_video != null && _video != 'undefined' && _activePage.SWFFile != null)
	{
		DisableMenu();
		ActivateVideo();
		HideWatchTheTrailerButton();
		new Effect.Appear('VideoContainer', {from: 0.0, to: 1.0, duration: 0.5, fps: 30, afterFinish: WriteVideo});
		EnableMenuTimed(1.0);
	}

	return;
}

function PlaySLIVideo()
{
	if(_video != null && _video != 'undefined' && _activePage.SWFFile != null)
	{
		DisableMenu();
		ActivateVideo();
		HideSeeSLIInActionButton();
		new Effect.Appear('VideoContainer', {from: 0.0, to: 1.0, duration: 0.5, fps: 30, afterFinish: WriteVideo});
		EnableMenuTimed(1.0);
	}

	return;
}

function CloseVideo(showButton)
{				
	if(_video != null && _video != 'undefined')
	{
		DisableMenu();
		_video.style.display = 'none';
		_video.innerHTML = '';
		new Effect.Appear('VideoContainer', {from: 1.0, to: 0.0, duration: 0.2, fps: 30, afterFinish: HideContainer});
		
		if(showButton)
		{
			if(_activePage == _pageWhatIsSLI)
			{
				ShowSeeSLIInActionButton();
			}
			else
			{
				ShowWatchTheTrailerButton();
			}
		}
		
		EnableMenuTimed(2.0);
	}
	
	DeactivateVideo();
}

function HideContainer()
{
	var VideoContainer = document.getElementById('VideoContainer');
	VideoContainer.style.display = 'none';
}

function init()
{
	_container = document.getElementById('Container');
	_watchTheTrailerButton = document.getElementById(_watchTheTrailerID);
	_seeSLIInActionButton = document.getElementById(_seeSLIInActionID);
	_video = document.getElementById(_videoID);
	_getSLIComponents = document.getElementById("GetSLIComponents");
	_getSLIDesktops = document.getElementById("GetSLIDesktops");
	_getSLINotebooks = document.getElementById("GetSLINotebooks");
	_sliQuestion = document.getElementById(_sliQuestionID);
	
	window.onresize = center;
	centerElement(_container);
	
	_container.style.display = "";
	
	LoadMainInitial();
}

function WindowHeight()
{
	if(window.innerHeight)
	return window.innerHeight;
	if(document.body.clientHeight)
	return document.body.clientHeight;
	if(document.documentElement.clientHeight)
	return document.documentElement.clientHeight;
	return (null);
}

function WindowWidth()
{
	if(window.innerWidth)
	return window.innerWidth;
	if(document.body.clientWidth)
	return document.body.clientWidth;
	if(document.documentElement.clientWidth)
	return document.documentElement.clientWidth;
	return (null);
}

function centerElement(Element)
{
	var top = 0;
	var left = 0;
	var elementWidth = Element.style.width;
	var elementHeight = Element.style.height;
	
	top = (document.documentElement.clientHeight - parseInt(elementHeight))/2;
	left = (document.documentElement.clientWidth - parseInt(elementWidth))/2;

	if(top >= 0)
	{
		Element.style.top = top + "px";
	}
	else
	{
		Element.style.top = "0px";
	}
	
	if(left >= 0)
	{
		Element.style.left = left + "px";
	}
	else
	{
		Element.style.left = "0px";
	}
}

function center(e)
{
	if(_container != null)
	{
		centerElement(_container);
	}
}

function MouseOverNavItem(NavItem, page)
{
	if(_activePage != page)
	{
		NavItem.id = page.NavItemID + "On";
	}
}

function MouseOutNavItem(NavItem, page)
{
	if(_activePage != page)
	{
		NavItem.id = page.NavItemID;
	}
}

function MouseOverSubNavItem(SubNavItem, page)
{
	if(_activePage != page)
	{
		SubNavItem.id = page.SubNavItemID + "On";
	}
}

function MouseOutSubNavItem(SubNavItem, page)
{
	if(_activePage != page)
	{
		SubNavItem.id = page.SubNavItemID;
	}
}

function MouseOverGetSLI(item)
{
	item.id = item.id + "On";
	var text = document.getElementById('TextGetSLINow');
	
	switch(item)
	{
		case _getSLIComponents:
			text.innerHTML = _textGetSLIComponents;
			break;
		case _getSLIDesktops:
			text.innerHTML = _textGetSLIDesktops;
			break;
		case _getSLINotebooks:
			text.innerHTML = _textGetSLINotebooks;
			break;
	}
}

function MouseOutGetSLI(item)
{
	item.id = item.id.substr(0, item.id.length-2);
	var text = document.getElementById('TextGetSLINow');
	text.innerHTML = _textGetSLINow;
}
			
function WriteVideo()
{
	var video = document.getElementById('Video');
	
	if(video != null && video != 'undefined' && _activePage.SWFFile !=  null)
	{
		video.innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='480' height='310' id='GAMEVideo' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='http://uk.download.nvidia.com/slizone/" + _activePage.SWFFile + "' /><param name='quality' value='high' /><param name='bgcolor' value='#000000' /><embed src='http://uk.download.nvidia.com/slizone/" + _activePage.SWFFile + "' quality='high' bgcolor='#000000' width='480' height='310' name='GameVideo' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>";
	
		video.style.display = '';
	}
}

function WindowOpen(URL)
{
	window.open(URL, "_blank");
}

//START: Browser Detection
function GetOSCode()
{
	var userAgent = navigator.userAgent.split(";");
	var osCode = "";
	var userAgentLower = "";
	
	for(var i = 0; i < userAgent.length; i++)
	{
		userAgentLower = userAgent[i].toLowerCase();
		
		if((userAgentLower.indexOf("windows") > -1 || userAgentLower.indexOf("win") > -1) && userAgentLower.lastIndexOf(" ") > -1)
		{
			if(userAgentLower.indexOf("windows 95") > -1)
			{
				osCode = "4.0"
			}
			else if(userAgentLower.indexOf("windows 98") > -1)
			{
				osCode = "4.1"
			}
			else
			{
				osCode = parseFloat(userAgentLower.substr(userAgentLower.lastIndexOf(" "), userAgentLower.length));
			}
			
			if(!isNaN(osCode))
			{
				break;
			}
		}
		else if(userAgentLower.indexOf("linux") > -1 && !(userAgentLower.indexOf("x86_64") > -1))
		{
			osCode = "linux32";
			break;
		}
		else if(userAgentLower.indexOf("linux") > -1 && userAgentLower.indexOf("x86_64") > -1)
		{
			osCode = "linux64";
			break;
		}
		else if(userAgentLower.indexOf("sunos") > -1)
		{
			osCode = "sunos";
			break;
		}
		else if(userAgentLower.indexOf("freebsd") > -1)
		{
			osCode = "freebsd";
			break;
		}
	}
	
	return osCode;
}


var BrowserDetect = {
	init: function () {
		this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
		this.version = this.searchVersion(navigator.userAgent)
			|| this.searchVersion(navigator.appVersion)
			|| "an unknown version";
		this.OS = this.searchString(this.dataOS) || "an unknown OS";
	},
	searchString: function (data) {
		for (var i=0;i<data.length;i++)	{
			var dataString = data[i].string;
			var dataProp = data[i].prop;
			this.versionSearchString = data[i].versionSearch || data[i].identity;
			if (dataString) {
				if (dataString.indexOf(data[i].subString) != -1)
					return data[i].identity;
			}
			else if (dataProp)
				return data[i].identity;
		}
	},
	searchVersion: function (dataString) {
		var index = dataString.indexOf(this.versionSearchString);
		if (index == -1) return;
		return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
	},
	dataBrowser: [
		{ 	string: navigator.userAgent,
			subString: "OmniWeb",
			versionSearch: "OmniWeb/",
			identity: "OmniWeb"
		},
		{
			string: navigator.vendor,
			subString: "Apple",
			identity: "Safari"
		},
		{
			prop: window.opera,
			identity: "Opera"
		},
		{
			string: navigator.vendor,
			subString: "iCab",
			identity: "iCab"
		},
		{
			string: navigator.vendor,
			subString: "KDE",
			identity: "Konqueror"
		},
		{
			string: navigator.userAgent,
			subString: "Firefox",
			identity: "Firefox"
		},
		{
			string: navigator.vendor,
			subString: "Camino",
			identity: "Camino"
		},
		{		// for newer Netscapes (6+)
			string: navigator.userAgent,
			subString: "Netscape",
			identity: "Netscape"
		},
		{
			string: navigator.userAgent,
			subString: "MSIE",
			identity: "Explorer",
			versionSearch: "MSIE"
		},
		{
			string: navigator.userAgent,
			subString: "Gecko",
			identity: "Mozilla",
			versionSearch: "rv"
		},
		{ 		// for older Netscapes (4-)
			string: navigator.userAgent,
			subString: "Mozilla",
			identity: "Netscape",
			versionSearch: "Mozilla"
		}
	],
	dataOS : [
		{
			string: navigator.platform,
			subString: "Win",
			identity: "Windows"
		},
		{
			string: navigator.platform,
			subString: "Mac",
			identity: "Mac"
		},
		{
			string: navigator.platform,
			subString: "Linux",
			identity: "Linux"
		}
	]

};
BrowserDetect.init();
//END: Browser Detection