﻿// Domain System Names
var HeaderSite = 'ColorLife';

var MAXHEIGHTTOOL = 680;
var MAXWIDTHTOOL = 950;
var USEMAXMEASURES = false;
var USEMODALIFRAME = false;
var INNERMODALDIALOGOFFSET = -70;

var TOOLKEY_VD = "VD";//VirtualDecorator
var TOOLKEY_MC = "MC";//MaterialCalculator
var TOOLKEY_SL = "SL";//StoreLocator
var TOOLKEY_CE = "CE";//Cenefas
var TOOLKEY_FX = "FX";//SpecialEfects
var TOOLKEY_EX = "EX";//Experiment
var TOOLKEY_OD = "OD";//OrderDirect
var TOOLKEY_LE = "LE";//Legals
var TOOLKEY_IR = "IR";//IteractiveRack
var TOOLKEY_CD = "CD";//ColorDay
var TOOLKEY_CS = "CS";//ColorDaySearcher
var TOOLKEY_CL = "CL";//ColorLab
var TOOLKEY_AM = "AM";//Ambienta
var TOOLKEY_CU = "CU";//ContactUs
var TOOLKEY_FO = "FO";//Forum
var TOOLKEY_PL = "PL";//Plugin
var COMPKEY_IN = "IN";//Init
var TENDENCIAS_IN = "TN";//Tendendias


function getMenuPreviewForcingTarget(position, target)
{
    ToolManager.init(COMPKEY_IN);
    ToolManager.url = ToolManager.url.replace('[POS]',position);
    ToolManager.url = ToolManager.url.replace('[TARGET]',target);
    ToolManager.open();
}

function getMenuPreview(position)
{
    ToolManager.init(COMPKEY_IN);
    ToolManager.url = ToolManager.url.replace('[POS]',position);
    ToolManager.url = ToolManager.url.replace('&target=[TARGET]','');
    ToolManager.open();
}


//--------SiteMap required functions
function getcontactus()
{
    ToolManager.init(TOOLKEY_CU);
    //USEMODALIFRAME = true;
    //openWindow(ToolManager.url, ToolManager.windowName, ToolManager.height, ToolManager.width, 0, false);
    ToolManager.open();
    //USEMODALIFRAME = false;
}
function getforum()
{
    ToolManager.init(TOOLKEY_FO);
    //USEMODALIFRAME = true;
    //openWindow(ToolManager.url, ToolManager.windowName, ToolManager.height, ToolManager.width, 0, false);
    ToolManager.open();
    //USEMODALIFRAME = false;
}
function redirectToHelper()
{
    window.location.href='/ColorLife/webapp/Helper.aspx';
}
function redirectToSearcher()
{
    window.location.href='/ColorLife/webapp/Searcher.aspx';
}
function redirectToSplash()
{
    window.location.href='/ColorLife/webapp/Splash.aspx';
}
function redirectToTargetSelector()
{
    window.location.href='/ColorLife/webapp/TargetSelector.aspx';
}
function SetupSettingsFromSiteMap(origin,params,destiny)
{
    SetupSettings();
}
function SetupSettings()
{
    var url = '/ColorLife/webapp/Settings.aspx';
    
    // Giving the arguments to the dialog
    BrowserDetect.init();
    if(BrowserDetect.browser=="Explorer")
    {
        var args=new Object();
        args.window = window;
        args.__doPostBack = __doPostBack;
        
        window.showModalDialog(url, args, 'dialogWidth:340px;dialogHeight:480px;resizable:1;help:0;center:1;scroll:0');
    }
    else
    {
        openurl(url,'SiteMap',480,340);
    }
}

function forceHomePage()
{
    setCookie('COMEX:CL:Region','',1);
    setCookie('COMEX:CL:Bandwidth','',1);
    window.location.href = "/ColorLife/webapp/Default.aspx";
}
//--------

//--------Components required functions

function getEncodedQueryString()
{
    return URLEncode(window.location.href);
}

function redirectToLogin()
{
    window.location.replace('/ColorLife/Logon.aspx?referer=' + getEncodedQueryString());
}

function redirectToUnderConstruction()
{
    window.location.href='/ColorLife/UnderConstruction.htm';
}
//--------

function redirectToTendenciasES()
{
    window.location.href='ES/Resources/Content/Components.aspx?indexSection=2&indexPage=1';
}

function redirectToTendenciasEN()
{
    window.location.href='EN/Resources/Content/Components.aspx?indexSection=2&indexPage=1';
}

function getShowroomEN()
{
    window.location.href='EN/Resources/Content/Components.aspx?target=professional&indexSection=2&indexPage=8';
}

function getShowroomES()
{
    window.location.href='ES/Resources/Content/Components.aspx?target=professional&indexSection=2&indexPage=8';
}


//--------Popups
function closeTool()
{
    if(!USEMODALIFRAME)
    { top.window.close();
    }else
    { if(ToolManager.inParent){ parent.ShowInnerModalDialog(); } else { ShowInnerModalDialog(); }
    }
}

function openWindow(url, windowName, height, width, offset, inParent)
{
    if(USEMODALIFRAME)
    {
        if(inParent)
        {
            parent.OpenCustomInnerModalDialog(url, height, width, getHeaderOffset(offset), false);            
        }
        else
        {
            OpenCustomInnerModalDialog(url, height, width, getHeaderOffset(offset), false);
        }
    }
    else
    {
        openurl(url, windowName, height, width);
    }
}

function getHeaderOffset(pxDefault)
{
    //aspect ratio formula : width/height = 1.33 (04:03) ; 1.6 (16:10)
    //1280x1024 : aspect ratio 04:03
    //1440x900  : aspect ratio 16:10
//    var isTargetSelectorRequest = (this.location.href.indexOf('TargetSelector.aspx') > 0 || parent.location.href.indexOf('TargetSelector.aspx') > 0);
//    var substractPixels = (isTargetSelectorRequest ? 70 : 0);
//    return (pxDefault - substractPixels);
    return pxDefault;
}

//LEGALES
function getlegalessite(twoLettersISOLanguageName)
{
    ToolManager.init(TOOLKEY_LE);
    ToolManager.url = ToolManager.url.replace('[LANG]',twoLettersISOLanguageName);
    ToolManager.open();
}

//AMBIENTA
function getambientasite()
{
    ToolManager.init(TOOLKEY_AM);
    ToolManager.open();
}
//--
//IRACK
function getracksitepro()
{
    getracksite('Professional');
}
function getracksitediy()
{
    getracksite('DoItYourself');
}
function getracksite(target)
{
    ToolManager.init(TOOLKEY_IR);
    ToolManager.url = ToolManager.url+"?Target="+target    
    ToolManager.open();
}
//--
//COLORDAY
function getcolordaysite()
{
    ToolManager.init(TOOLKEY_CD);
    ToolManager.open();
}

function getcolordaysearcher()
{
    ToolManager.init(TOOLKEY_CS);
    ToolManager.open();
}

function getclabsite()
{
    ToolManager.init(TOOLKEY_CL);
    ToolManager.open();
}

//--
//Plugins
function getpluginsite(twoLettersISOLanguageName)
{
    ToolManager.init(TOOLKEY_PL);
    ToolManager.url = ToolManager.url.replace('[LANG]',twoLettersISOLanguageName);
    ToolManager.open();
}
//VD

function getvdsite()
{
    ToolManager.init(TOOLKEY_VD);
    ToolManager.open();
}
function getvdloginsite()
{
    openurl('/ColorLife/Tools/VirtualDecorator/UserActions.aspx', 'Login', 420, 327);
}


//OD
function getodsite()
{
    ToolManager.init(TOOLKEY_OD);
    ToolManager.open();
}
//--
//CALC
function getcalcsite()
{
    ToolManager.init(TOOLKEY_MC);
    ToolManager.open();
}
//--
//STORE LOCATOR
function getstoresite()
{
    ToolManager.init(TOOLKEY_SL);
    ToolManager.open();
}
//--
//CENEFAS
function getcenesite(twoLettersISOLanguageName)
{
    ToolManager.init(TOOLKEY_CE);
    ToolManager.open();
}
//--
//FX
function getefecsite(twoLettersISOLanguageName)
{
    ToolManager.init(TOOLKEY_FX);
    ToolManager.open();
}
//--
//EXPERIMENT
function getexpsite()
{
    ToolManager.init(TOOLKEY_EX);
    ToolManager.open();
}
//--------

//--------Common required functions
//Popups Openner
function openurl(url,windowname,popH,popW)
{
    var w = 800, h = 600;
    if (document.all || document.layers)
    {
       w = screen.availWidth;
       h = screen.availHeight;
    }
    if(popH==0 && popW==0)
    {
       popW = screen.availWidth;
       popH = screen.availHeight;
    }
    var leftPos = (w-popW)/2, topPos = (h-popH)/2;

    wOpen = window.open(url,windowname,'location=no,resizable=no,alwaysraised,width='+popW+',height='+popH+',top='+topPos+',left='+leftPos);
}
//Cookies Handling
function getCookie(c_name)
{
    if (document.cookie.length>0)
      {
      c_start=document.cookie.indexOf(c_name + "=");
      if (c_start!=-1)
        { 
        c_start=c_start + c_name.length+1;
        c_end=document.cookie.indexOf(";",c_start);
        if (c_end==-1) c_end=document.cookie.length;
        return unescape(document.cookie.substring(c_start,c_end));
        } 
      }
    return "";
}
function setCookie(c_name,value,expiredays)
{
    var exdate=new Date();
    exdate.setDate(exdate.getDate()+expiredays);
    document.cookie=c_name+ "=" +escape(value)+
    ((expiredays==null) ? "" : "; expires="+exdate.toGMTString())+"; path=/";
}
function URLEncode(plaintext)
{
	// The Javascript escape and unescape functions do not correspond
	// with what browsers actually do...
	var SAFECHARS = "0123456789" +					// Numeric
					"ABCDEFGHIJKLMNOPQRSTUVWXYZ" +	// Alphabetic
					"abcdefghijklmnopqrstuvwxyz" +
					"-_.!~*'()";					// RFC2396 Mark characters
	var HEX = "0123456789ABCDEF";
	var encoded = "";
	for (var i = 0; i < plaintext.length; i++ ) {
		var ch = plaintext.charAt(i);
	    if (ch == " ") {
		    encoded += "+";				// x-www-urlencoded, rather than %20
		} else if (SAFECHARS.indexOf(ch) != -1) {
		    encoded += ch;
		} else {
		    var charCode = ch.charCodeAt(0);
			if (charCode > 255) {
			    alert( "Unicode Character '" 
                        + ch 
                        + "' cannot be encoded using standard URL encoding.\n" +
				          "(URL encoding only supports 8-bit characters.)\n" +
						  "A space (+) will be substituted." );
				encoded += "+";
			} else {
				encoded += "%";
				encoded += HEX.charAt((charCode >> 4) & 0xF);
				encoded += HEX.charAt(charCode & 0xF);
			}
		}
	} // for

	return encoded;
};

function URLDecode(encoded)
{
   // Replace + with ' '
   // Replace %xx with equivalent character
   // Put [ERROR] in output if %xx is invalid.
   var HEXCHARS = "0123456789ABCDEFabcdef"; 
   var plaintext = "";
   var i = 0;
   while (i < encoded.length) {
       var ch = encoded.charAt(i);
	   if (ch == "+") {
	       plaintext += " ";
		   i++;
	   } else if (ch == "%") {
			if (i < (encoded.length-2) 
					&& HEXCHARS.indexOf(encoded.charAt(i+1)) != -1 
					&& HEXCHARS.indexOf(encoded.charAt(i+2)) != -1 ) {
				plaintext += unescape( encoded.substr(i,3) );
				i += 3;
			} else {
				alert( 'Bad escape combination near ...' + encoded.substr(i) );
				plaintext += "%[ERROR]";
				i++;
			}
		} else {
		   plaintext += ch;
		   i++;
		}
	} // while
   return plaintext;
};

var ToolManager = {
    init: function(toolObjectName) {
        this.flush();
        this.searchString(this.toolObject, toolObjectName);
        this.height = (this.isStandard && USEMAXMEASURES ? MAXHEIGHTTOOL : this.height);
        this.width = (this.isStandard && USEMAXMEASURES ? MAXWIDTHTOOL : this.width);
    },
    debug: function(){
        var message = "===========ToolManager State===========\nName: "+this.name+"\nHeight: "+this.height+"\nWidth: "+this.width+"\nUrl: "+this.url+"\nWindow Name: "+this.windowName+"\n Title ES: "+this.titleES+"\n Title EN: "+this.titleEN+"\n USEMAXMEASURES: "+USEMAXMEASURES+"\n Standard: "+this.isStandard;
        top.alert(message);
    },
    open: function(){
        USEMODALIFRAME = !this.isStandard;
        this.offset = (USEMODALIFRAME ? INNERMODALDIALOGOFFSET : this.offset);
        openWindow(this.url, this.windowName, this.height, this.width, this.offset, this.inParent);
        USEMODALIFRAME = !USEMODALIFRAME;
    },
    flush: function(){
        this.name = '';
        this.height = '';
        this.width = '';
        this.url = '';
        this.windowName = '';
        this.titleES = '';
        this.titleEN = '';
        this.isStandard = false;
        this.offset = 0;
        this.inParent = false;
    },
	searchString: function (data, objectName) {
		for (var i=0;i<data.length;i++)	{
		    if(data[i].name == objectName){
		        this.name = data[i].name;
		        this.height = data[i].height;
		        this.width = data[i].width;
		        this.url = data[i].url;
		        this.windowName = data[i].windowName;
		        this.titleES = data[i].titleES;
		        this.titleEN = data[i].titleEN;
		        this.isStandard = data[i].isStandard;
		        this.offset = data[i].offset;
		        this.inParent = data[i].inParent;
		    }
		}
	},
	toolObject: [
		{ 	name: TOOLKEY_VD,
			height: MAXHEIGHTTOOL,
			width: MAXWIDTHTOOL,
			url: "/ColorLife/Tools/VirtualDecorator",
			windowName: "Ambienta",
			titleES: "Decorador virtual",
			titleEN: "Virtual decorator",
			isStandard: true,
			offset: 0,
			inParent: true
		},
		{ 	name: TOOLKEY_MC,
			height: MAXHEIGHTTOOL,
			width: MAXWIDTHTOOL,
			url: "/ColorLife/Tools/MaterialCalculator",
			windowName: "Ambienta",
			titleES: "Calculador de materiales",
			titleEN: "Material calculator",
			isStandard: true,
			offset: 0,
			inParent: true
		},
		{ 	name: TOOLKEY_SL,
			height: MAXHEIGHTTOOL,
			width: MAXWIDTHTOOL,
			url: "/ColorLife/Tools/StoreSearcher",
			windowName: "Ambienta",
			titleES: "Buscador de tiendas",
			titleEN: "Store Locator",
			isStandard: true,
			offset: 0,
			inParent: true
		},
		{ 	name: TOOLKEY_CE,
			height: MAXHEIGHTTOOL,
			width: MAXWIDTHTOOL,
			url: "/ColorLife/Tools/Cenefas",
			windowName: "Ambienta",
			titleES: "Cenefas",
			titleEN: "Borders",
			isStandard: true,
			offset: 0,
			inParent: true
		},
		{ 	name: TOOLKEY_FX,
			height: MAXHEIGHTTOOL,
			width: MAXWIDTHTOOL,
			url: "/ColorLife/Tools/Fx",
			windowName: "Ambienta",
			titleES: "Efectos especiales",
			titleEN: "Special effects",
			isStandard: true,
			offset: 0,
			inParent: true
		},
		{ 	name: TOOLKEY_EX,
			height: 454,
			width: 856,
			url: "/ColorLife/UnderConstruction.htm",
			windowName: "Ambienta",
			titleES: "Experimenta",
			titleEN: "Experiment",
			isStandard: true,
			offset: 0,
			inParent: true
		},
		{ 	name: TOOLKEY_OD,
			height: 640,
			width: 800,
			url: "http://www.colorlifeorderdirect.com",
			windowName: "ODSite",
			titleES: "Order Direct",
			titleEN: "Order Direct",
			isStandard: true,
			offset: 0,
			inParent: true
		},
		{ 	name: TOOLKEY_LE,
			height: 450,
			width: 850,
			url: "/ColorLife/webapp/[LANG]/Resources/Html/terminosycondiciones/default.htm",
			windowName: "Legals",
			titleES: "Legales",
			titleEN: "Legals",
			isStandard: true,
			offset: 0,
			inParent: true
		},
		{ 	name: TOOLKEY_IR,
			height: MAXHEIGHTTOOL,
			width: MAXWIDTHTOOL,
			url: "/ColorLife/files/flash/InteractiveRack/Default.aspx",
			windowName: "Ambienta",
			titleES: "Rack Interactivo",
			titleEN: "Interactive Rack",
			isStandard: true,
			offset: 0,
			inParent: true
		},
		{ 	name: TOOLKEY_CD,
			height: 450,
			width: 850,
			url: "/ColorLife/files/flash/ColorDay",
			windowName: "ColorDay",
			titleES: "El color del dia",
			titleEN: "ColorDay",
			isStandard: false,
			offset: 0,
			inParent: true
		},
		{ 	name: TOOLKEY_CS,
			height: MAXHEIGHTTOOL,
			width: MAXWIDTHTOOL,
			url: "/ColorLife/Tools/ColorDay/ColorCatalogue.aspx",
			windowName: "Ambienta",
			titleES: "Catalogo de color",
			titleEN: "ColorCatalogue",
			isStandard: true,
			offset: 0,
			inParent: true
		},
		{ 	name: TOOLKEY_CL,
			height: MAXHEIGHTTOOL,
			width: MAXWIDTHTOOL,
			url: "/ColorLife/Tools/ColorLab/Default.aspx",
			windowName: "Ambienta",
			titleES: "Laboratorio de color",
			titleEN: "ColorLab",
			isStandard: true,
			offset: 0,
			inParent: true
		},		
		{ 	name: TOOLKEY_AM,
			height: MAXHEIGHTTOOL,
			width: MAXWIDTHTOOL,
			url: "/ColorLife/files/flash/AmbientaSplash/Default.aspx",
			windowName: "Ambienta",
			titleES: "Ambienta",
			titleEN: "Ambienta",
			isStandard: true,
			offset: 0,
			inParent: true
		},
		{ 	name: TOOLKEY_CU,
			height: 450,
			width: 850,
			url: "/ColorLife/ContactUs/Default.aspx",
			windowName: "Contact Us",
			titleES: "Contáctanos",
			titleEN: "Contact Us",
			isStandard: false,
			offset: 0,
			inParent: true
		},
		{ 	name: TOOLKEY_FO,
			height: 450,
			width: 850,
			url: "/ColorLife/Forum/Default.aspx",
			windowName: "Forum",
			titleES: "Foro",
			titleEN: "Forum",
			isStandard: false,
			offset: 0,
			inParent: true
		},
		{ 	name: TOOLKEY_PL,
			height: MAXHEIGHTTOOL,
			width: MAXWIDTHTOOL,
			url: "/ColorLife/Tools/Plugins/Default.aspx",
			windowName: "Ambienta",
			titleES: "Plugins",
			titleEN: "Plugins",
			isStandard: true,
			offset: 0,
			inParent: true
		},
		{ 	name: COMPKEY_IN,
			height: 450,
			width: 850,
			//url: "/ColorLife/webapp/[LANG]/Resources/Html/preview/[POS]/default.htm",
			url: "/ColorLife/webapp/SectionIntro.aspx?sectionIndex=[POS]&target=[TARGET]",
			windowName: "Preview",
			titleES: "Preview",
			titleEN: "Preview",
			isStandard: false,
			offset: 0,
			inParent: true
		}	

	]
};

var VDUrl = '';
//--------iRack required variables
var configTrailer = getConfigTrailer();

function getConfigTrailer()
{
    var trailer = '';
    //set toolName to VirtualDecorator and then it´s going on through other tools
    //'se absence of break reserve word in switch block
    var toolName = TOOLKEY_VD;
    switch(toolName)
    {
        case TOOLKEY_VD:
            ToolManager.init(TOOLKEY_VD);
            VDUrl = ToolManager.url;
            trailer += 'VDTitleSPA='+ToolManager.titleES+'&VDTitleENG='+ToolManager.titleEN;            
            //trailer += 'VDTitleSPA='+ToolManager.titleES+'&VDTitleENG='+ToolManager.titleEN+'&VDWSURL="ColorLife/Tools/VirtualDecorator/Services/nvdservice.asmx?wsdl" &VDColorsURL="ColorLife/files/flash/InteractiveRack/doityourself/ComexGroup/colores.xml"';            
//            eval(document.write(' entre en VD '));
//            eval(document.write(trailer));
//        case TOOLKEY_IR:        
//            ToolManager.init(TOOLKEY_IR);                                   
//            trailer +='&VDWSURL=http://localhost:8085/ColorLife/Tools/VirtualDecorator/Services/nvdservice.asmx?wsdl &VDColorsURL=http://localhost:8085/ColorLife/files/flash/InteractiveRack/doityourself/ComexGroup/colores.xml'
//            eval(document.write(' entre en IR '));
//            eval(document.write(trailer));
        case TOOLKEY_MC:
            ToolManager.init(TOOLKEY_MC);
            trailer += '&CalcTitleSPA='+ToolManager.titleES+'&CalcTitleENG='+ToolManager.titleEN;
        case TOOLKEY_SL:
            ToolManager.init(TOOLKEY_SL);
            trailer += '&StoreTitleSPA='+ToolManager.titleES+'&StoreTitleENG='+ToolManager.titleEN;
        case TOOLKEY_CE:
            ToolManager.init(TOOLKEY_CE);
            trailer += '&CeneTitleSPA='+ToolManager.titleES+'&CeneTitleENG='+ToolManager.titleEN;
        case TOOLKEY_FX:
            ToolManager.init(TOOLKEY_FX);
            trailer += '&EFecTitleSPA='+ToolManager.titleES+'&EFecTitleENG='+ToolManager.titleEN;
        case TOOLKEY_EX:
            ToolManager.init(TOOLKEY_EX);
            trailer += '&ExpTitleSPA='+ToolManager.titleES+'&ExpTitleENG='+ToolManager.titleEN;
        case TOOLKEY_OD:
            ToolManager.init(TOOLKEY_OD);
            trailer += '&ODTitleSPA='+ToolManager.titleES+'&ODTitleENG='+ToolManager.titleEN;
    }
//    eval(document.write(' trailerFin : '));
//    eval(document.write(trailer));
    return trailer;
    
}

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"
		}
	]

};
//--------
