﻿function getAbsolutePath() { 
    var loc = window.location; 
    var pathName = loc.pathname.substring(0, loc.pathname.lastIndexOf('.aspx') + 5); 
    return loc.href.substring(0, loc.href.length - ((loc.pathname + loc.search + loc.hash).length - pathName.length)); 
} 

function createCookie(name,value,days)
{
	if (days)
	{
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name)
{
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++)
	{
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function SwitchStylesheet(stylesheetName)
{
	$('link[@rel*=style][title]').each(function(i) 
	{
		this.disabled = true;
		if (this.getAttribute('title') == stylesheetName)
		{
			this.disabled = false;
		}
		
		createCookie('style', stylesheetName, 0);
	});
}

styleCookie = readCookie('style');
if (styleCookie)
{
	if (styleCookie != 'sFwww-Calibri')
	{
		SwitchStylesheet(styleCookie);
	}
}

var navShown = true;
var searchTextBoxHasFocus = false;
var loginTextBoxHasFocus = false;
var loginMessageTimer = null;

var imgNavBarLogin = new Image(57,30); imgNavBarLogin.src = '/images/Navbar/Login.jpg';
var imgNavBarLoginOn = new Image(57,30); imgNavBarLoginOn.src = '/images/Navbar/LoginGreenOn.jpg';
var imgNavBarMenuOn = new Image(57,30); imgNavBarMenuOn.src = '/images/Navbar/MenuGreenOn.jpg';
var imgNavBarAbout = new Image(57,30); imgNavBarAbout.src = '/images/Navbar/About.jpg';
var imgNavBarAboutOn = new Image(57,30); imgNavBarAboutOn.src = '/images/Navbar/AboutOn.jpg';
var imgNavBarProducts = new Image(71,30); imgNavBarProducts.src = '/images/Navbar/Products.jpg';
var imgNavBarProductsOn = new Image(71,30); imgNavBarProductsOn.src = '/images/Navbar/ProductsOn.jpg';
var imgNavBarSolutions = new Image(74,30); imgNavBarSolutions.src = '/images/Navbar/Solutions.jpg';
var imgNavBarSolutionsOn = new Image(74,30); imgNavBarSolutionsOn.src = '/images/Navbar/SolutionsOn.jpg';
var imgNavBarSupport = new Image(68,30); imgNavBarSupport.src = '/images/Navbar/Support.jpg';
var imgNavBarSupportOn = new Image(68,30); imgNavBarSupportOn.src = '/images/Navbar/SupportOn.jpg';
var imgNavBarContact = new Image(66,30); imgNavBarContact.src = '/images/Navbar/Contact.jpg';
var imgNavBarContactOn = new Image(66,30); imgNavBarContactOn.src = '/images/Navbar/ContactOn.jpg';

var imgSearchBoxBG = new Image(132,30); imgSearchBoxBG.src = '/images/Navbar/SearchBG.jpg';
var imgSearchBoxBGOn = new Image(132,30); imgSearchBoxBGOn.src = '/images/Navbar/SearchBGOn.jpg';
var imgLoginBoxUsernameOn = new Image(73,30); imgLoginBoxUsernameOn.src = '/images/Navbar/UsernameOn.jpg';
var imgLoginBoxPasswordOn = new Image(65,30); imgLoginBoxPasswordOn.src = '/images/Navbar/PasswordOn.jpg';
var imgLoginBoxStartOn = new Image(10,30); imgLoginBoxStartOn.src = '/images/Navbar/LoginBoxStartOn.jpg';
var imgLoginBoxEndOn = new Image(11,30); imgLoginBoxEndOn.src = '/images/Navbar/LoginBoxEndOn.jpg';
//var imgBox = new Image(2,30); imgBox.src = '/images/Navbar/Box.jpg';
var imgBoxOn = new Image(2,30); imgBoxOn.src = '/images/Navbar/BoxOn.jpg';
var imgNavBarSearchIcon = new Image(14,12); imgNavBarSearchIcon.src = '/images/Navbar/SearchIcon.jpg';
var imgNavBarSearchIconOn = new Image(14,12); imgNavBarSearchIconOn.src = '/images/Navbar/SearchIconOn.jpg';

var imgIcon60Overview = new Image(22,22); imgIcon60Overview.src = '/images/Footer/60OverviewGray.jpg';
var imgIcon60OverviewOn = new Image(22, 22); imgIcon60OverviewOn.src = '/images/Footer/60OverviewRed.jpg';
var imgIconOurCustomers = new Image(22,22); imgIconOurCustomers.src = '/images/Footer/OurCustomersGray.jpg';
var imgIconOurCustomersOn = new Image(22,22); imgIconOurCustomersOn.src = '/images/Footer/OurCustomersRed.jpg';
var imgIconNews = new Image(22,22); imgIconNews.src = '/images/Footer/NewsGray.jpg';
var imgIconNewsOn = new Image(22,22); imgIconNewsOn.src = '/images/Footer/NewsRed.jpg';
var imgIconWorkWithUs = new Image(22,22); imgIconWorkWithUs.src = '/images/Footer/WorkWithUsGray.jpg';
var imgIconWorkWithUsOn = new Image(22,22); imgIconWorkWithUsOn.src = '/images/Footer/WorkWithUsRed.jpg';
var imgIconGlobalOffices = new Image(22,22); imgIconGlobalOffices.src = '/images/Footer/GlobalOfficesGray.jpg';
var imgIconGlobalOfficesOn = new Image(22,22); imgIconGlobalOfficesOn.src = '/images/Footer/GlobalOfficesRed.jpg';
var imgIconFollowUsTwitter = new Image(22,22); imgIconFollowUsTwitter.src = '/images/Footer/FollowUsTwitter.png';
var imgIconFollowUsTwitterOn = new Image(22,22); imgIconFollowUsTwitterOn.src = '/images/Footer/FollowUsTwitterOn.png';
var imgIconFollowUsLinkedIn = new Image(23,22); imgIconFollowUsLinkedIn.src = '/images/Footer/FollowUsLinkedIn.png';
var imgIconFollowUsLinkedInOn = new Image(23,22); imgIconFollowUsLinkedInOn.src = '/images/Footer/FollowUsLinkedInOn.png';

var imgFastHand = new Image(53,53); imgFastHand.src = '/images/Hands/FastHand.jpg';
var imgFastHandOn = new Image(53,53); imgFastHandOn.src = '/images/Hands/FastHandOn.jpg';
var imgPreciseHand = new Image(53,53); imgPreciseHand.src = '/images/Hands/PreciseHand.jpg';
var imgPreciseHandOn = new Image(53,53); imgPreciseHandOn.src = '/images/Hands/PreciseHandOn.jpg';
var imgCompleteHand = new Image(53,53); imgCompleteHand.src = '/images/Hands/CompleteHand.jpg';
var imgCompleteHandOn = new Image(53,53); imgCompleteHandOn.src = '/images/Hands/CompleteHandOn.jpg';
var imgReliableHand = new Image(53,53); imgReliableHand.src = '/images/Hands/ReliableHand.jpg';
var imgReliableHandOn = new Image(53,53); imgReliableHandOn.src = '/images/Hands/ReliableHandOn.jpg';
var imgValueHand = new Image(53,53); imgValueHand.src = '/images/Hands/ValueHand.jpg';
var imgValueHandOn = new Image(53,53); imgValueHandOn.src = '/images/Hands/ValueHandOn.jpg';

function SetSearchBox(args)
{
	if (!searchTextBoxHasFocus)
	{
		tbSearchKeyword = document.getElementById("tbSearchKeyword");
	
		if (args == 0)
		{
			document.getElementById("searchBoxBG").style.background = 'url(/images/Navbar/SearchBG.jpg)';

			if (tbSearchKeyword != null)
			{
				if (tbSearchKeyword.value == '')
				{
					tbSearchKeyword.value = 'Search...';
				}
	
				document.getElementById("tbSearchKeyword").style.color = 'gray';
			}
		}
		else
		{
			document.getElementById("searchBoxBG").style.background = 'url(/images/Navbar/SearchBGOn.jpg)';

			if (args == 2)
			{
				if (tbSearchKeyword != null)
				{
					if (tbSearchKeyword.value == 'Search...')
					{
						tbSearchKeyword.value = '';
					}
				}

				searchTextBoxHasFocus = true;
				document.getElementById("tbSearchKeyword").style.color = '#333333';
			}
		}
	}
}

function SetLoginBox(args)
{
	if (!loginTextBoxHasFocus)
	{
		if (args == 0)
		{
			document.getElementById("tbSearchKeyword").style.color = 'gray';
		}
		else
		{
			document.getElementById("loginBoxUsernameCenter").style.background.src = imgBoxOn.src;

			if (args == 2)
			{
				loginTextBoxHasFocus = true;
				document.getElementById("tbSearchKeyword").style.color = '#333333';
			}	
		}
	}
}

function ShowLogin()
{
	if (navShown)
	{
		document.getElementById("loginBar").style.visibility = 'visible';
		document.getElementById("loginBar").style.display = 'block';
		document.getElementById("navBar").style.visibility = 'hidden';
		document.getElementById("navBar").style.display = 'none';
		document.getElementById("navBarLogin").src = imgNavBarMenuOn.src;
//		document.getElementById("navBarLogin").parentNode.className = 'navbar-login-cursoronly';

		loginMessageTimer = setTimeout(function() { $('div#loginMessage').fadeIn(); }, 3000);
//		document.getElementById("loginMessage").style.display = 'block';
		
		document.getElementById("tbNavBarLoginUsername").focus();

		navShown = false;
	}
	else
	{
		clearTimeout(loginMessageTimer);
		document.getElementById("loginMessage").style.display = 'none';
		
		document.getElementById("navBar").style.visibility = 'visible';
		document.getElementById("navBar").style.display = 'block';	
		document.getElementById("loginBar").style.visibility = 'hidden';
		document.getElementById("loginBar").style.display = 'none';
		document.getElementById("navBarLogin").src = imgNavBarLogin.src;
//		document.getElementById("navBarLogin").parentNode.className = 'navbar-login';

		document.getElementById("tbSearchKeyword").style.color = 'gray';
		document.getElementById("tbSearchKeyword").focus();
		document.getElementById("tbSearchKeyword").blur();
		
		navShown = true;
	}
}

function OverNav(thisNavBar, over)
{
	if (!(thisNavBar == 'Login' && !navShown))
	{
		if (over)
		{
			document.getElementById("navBar" + thisNavBar).src = eval('imgNavBar' + thisNavBar+ 'On.src');
		}
		else
		{
			document.getElementById("navBar" + thisNavBar).src = eval('imgNavBar' + thisNavBar+ '.src');
		}
	}
}

function OverImg(thisImg, over)
{
	if (over)
	{
		document.getElementById("img" + thisImg).src = eval('img' + thisImg + 'On.src');
	}
	else
	{
		document.getElementById("img" + thisImg).src = eval('img' + thisImg + '.src');
	}
}

function OverKeyFeatures(thisKeyFeature, over, home)
{
	if (over)
	{
		document.getElementById("img" + thisKeyFeature).src = eval('img' + thisKeyFeature + 'On.src');
		if (home)
        {
		    eval('document.getElementById("heading' + thisKeyFeature + '").className = "icon-heading-over"');
		    eval('document.getElementById("desc' + thisKeyFeature + '").className = "icon-description-over"');
		}
		else
        {
            eval('document.getElementById("heading' + thisKeyFeature + '").className = "icon-heading-product-over"');
            eval('document.getElementById("desc' + thisKeyFeature + '").className = "icon-description-product-over"');
        }
	}
	else
	{
	    document.getElementById("img" + thisKeyFeature).src = eval('img' + thisKeyFeature + '.src');
	    if (home)
        {
	        eval('document.getElementById("heading' + thisKeyFeature + '").className = "icon-heading"');
	        eval('document.getElementById("desc' + thisKeyFeature + '").className = "icon-description"');
	    }
	    else
        {
	        eval('document.getElementById("heading' + thisKeyFeature + '").className = "icon-heading-product"');
	        eval('document.getElementById("desc' + thisKeyFeature + '").className = "icon-description-product"');
	    }
	}
}

function OverFooter(thisIcon, over)
{
	if (over)
	{
		document.getElementById("img" + thisIcon).src = eval('imgIcon' + thisIcon + 'On.src');
		eval('document.getElementById("heading' + thisIcon + '").className = "level3-heading-over"');
	}
	else
	{
		document.getElementById("img" + thisIcon).src = eval('imgIcon' + thisIcon + '.src');
		eval('document.getElementById("heading' + thisIcon + '").className = "level3-heading"');
	}
}

var Detector = function()
{
	var h = document.getElementsByTagName("BODY")[0];
	var d = document.createElement("DIV");
	var s = document.createElement("SPAN");

	d.appendChild(s);
	d.style.fontFamily = "sans";
	s.style.fontFamily = "sans";
	s.style.fontSize = "72px";
	s.innerHTML = "mmmmmmmmmmlil";
	h.appendChild(d);

	var defaultWidth = s.offsetWidth;
	var defaultHeight = s.offsetHeight;

	h.removeChild(d);

	function debug(font)
	{
		h.appendChild(d);

		var f = [];

		f[0] = s.style.fontFamily = font;
		f[1] = s.offsetWidth;
		f[2] = s.offsetHeight;
		h.removeChild(d);
		font = font.toLowerCase();

		if (font == "serif")
		{
			f[3] = true;
		}
		else
		{
			f[3] = (f[1] != defaultWidth || f[2] != defaultHeight);	// Detected?
		}
		
		return f;
	}

	function test(font)
	{
		f = debug(font);
		return f[3];
	}

	this.detailedTest = debug;
	this.test = test;	
}

function TabClick(n, panesnobgcolor)
{
	if (!isNaN(n))
	{
		if (n > -1)
		{
            if (!panesnobgcolor)
            {
		        var api = $("ul.tabs").tabs("div.panes > div", { api: true, current: 'current' }),  // , history: true // Problem with 'history' when clicking other tabs via this method.
				    lhash = window.location.hash, initab, pane;
            }
            else
            {
                var api = $("ul.tabs").tabs("div.panesnobgcolor > div", { api: true, current: 'current' }),  // , history: true // Problem with 'history' when clicking other tabs via this method.
				    lhash = window.location.hash, initab, pane;
            }

			window.scrollTo(0, 0);
            api.click(n);
		}
	}
}

function TabNavClick(url)
{
    var urlLowerCase = url.toLowerCase();
    var path = urlLowerCase.replace(/#tab(\d{1})/g, "");
	var location = window.location.href.toLowerCase().split('/');
	var loc = "";

	pageNameWithoutTab = location[location.length - 1].replace(/#\w*/g, "");

	if (location.length > 4)
    {
	    var i = 3;

	    while (i < location.length - 1)
        {
	        loc = loc + '/' + location[i];
	        i++;
	    }
	}

    loc = loc + '/' + location[location.length - 1].replace(/#\w*/g, "");

	if (path != loc)
	{
	    window.location.href = url;
	}
	else if (urlLowerCase.indexOf('#tab') > -1)
	{
	    var n = parseInt(urlLowerCase.substring(urlLowerCase.lastIndexOf('#tab') + 4));

	    window.location.href = url;

	    if (loc.indexOf('login.aspx') > -1)
	    {
	        TabClick(n - 1, true);
	    }
	    else
	    {
	        TabClick(n - 1, false);
	    }
	}
}

function Initialise()
{
	document.getElementById("tbSearchKeyword").blur();

	if (!styleCookie)
	{
		var d = new Detector();
		
		if (!d.test('Calibri'))
		{
			SwitchStylesheet('sFwww-NoCalibri');
		}
		else
		{
			createCookie('style', 'sFwww-Calibri', 0);
		}
	}
}

function addOnloadEvent(fnc)
{
    if (typeof window.addEventListener != "undefined")
    {
        window.addEventListener("load", fnc, false);
    }
    else if (typeof window.attachEvent != "undefined")
    {
        window.attachEvent("onload", fnc);
    }
    else
    {
        if (window.onload != null)
        {
            var oldOnload = window.onload;

            window.onload = function (e) {
                oldOnload(e);
                window[fnc]();
            };
        }
        else
        {
            window.onload = fnc;
        }
    }
}

var e0 = new Array('&#98;&#32;&#115;&#105;&#116;&#101;','&#110;&#100;&#101;&#114;&#32;&#119;&#101;','&#112;&#97;&#114;&#101;&#115;&#70;&#105;','&#x20;&#x66;&#x72;&#x6f;&#x6d;&#x20;&#x73;','&#67;&#111;&#110;&#116;&#97;&#99;&#116;','&#x72;&#x2e;&#x63;&#x6f;&#x6d;&#x3f;&#x73;','&#x65;&#x73;&#x66;&#x69;&#x6e;&#x64;&#x65;','&#117;&#115;&#64;&#115;&#112;&#97;&#114;','&#x6d;&#x61;&#x69;&#x6c;&#x74;&#x6f;&#x3a;','&#x63;&#x6f;&#x6e;&#x74;&#x61;&#x63;&#x74;','&#117;&#98;&#106;&#101;&#99;&#116;&#61;');
var e1 = new Array('&#116;','&#x65;&#x73;','&#114;&#101;','&#x74;&#x3d;','&#x65;&#x63;','&#98;&#106;','&#x73;&#x75;','&#x6d;&#x3f;','&#x63;&#x6f;','&#x72;&#x2e;','&#100;&#101;','&#115;&#102;','&#114;&#101;','&#112;&#97;','&#x72;&#x74;','&#x70;&#x6f;','&#58;&#115;','&#116;&#111;','&#105;&#108;','&#109;&#97;','&#117;&#112;','&#64;&#115;','&#105;&#110;','&#x53;&#x75;','&#x70;&#x70;','&#x6f;&#x72;','&#116;&#32;','&#113;&#117;');
var e2 = new Array('&#101;','&#x20;&#x77;','&#110;&#100;','&#x46;&#x69;','&#97;&#114;','&#109;&#32;','&#32;&#102;','&#99;&#116;','&#x74;&#x61;','&#111;&#110;','&#111;&#109;','&#46;&#99;','&#101;&#114;','&#110;&#100;','&#102;&#105;','&#97;&#64;','&#101;&#114;','&#x74;&#x68;','&#111;&#114;','&#x3a;&#x6e;','&#x74;&#x6f;','&#109;&#97;','&#105;&#108;','&#97;&#109;','&#x69;&#x63;','&#115;&#112;','&#x61;&#x72;','&#x65;&#x73;','&#x3f;&#x73;','&#x75;&#x62;','&#106;&#101;','&#99;&#116;','&#61;&#67;','&#114;&#111;','&#115;&#112;','&#101;&#115;','&#101;&#114;','&#x65;&#x62;','&#32;&#115;','&#105;&#116;');
var e3 = new Array('&#115;&#105;&#116;&#101;','&#99;&#116;&#32;&#102;&#114;&#111;&#109;&#32;&#115;&#112;&#97;&#114;&#101;&#115;&#70;&#105;&#110;&#100;&#101;&#114;&#32;&#119;&#101;&#98;&#32;','&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#115;&#111;&#117;&#116;&#104;&#97;&#109;&#101;&#114;&#105;&#99;&#97;&#64;&#115;&#112;&#97;&#114;&#101;','&#x73;&#x66;&#x69;&#x6e;&#x64;&#x65;&#x72;&#x2e;&#x63;&#x6f;&#x6d;&#x3f;&#x73;&#x75;&#x62;&#x6a;&#x65;&#x63;&#x74;&#x3d;&#x43;&#x6f;&#x6e;&#x74;&#x61;');
var e4 = new Array('&#x6d;&#x61;&#x69;&#x6c;&#x74;&#x6f;&#x3a;&#x6e;&#x6f;&#x72;&#x64;&#x69;&#x63;&#x73;&#x40;&#x73;','&#x70;&#x61;&#x72;&#x65;&#x73;&#x66;&#x69;&#x6e;&#x64;&#x65;&#x72;&#x2e;&#x63;&#x6f;&#x6d;&#x3f;','&#x73;&#x75;&#x62;&#x6a;&#x65;&#x63;&#x74;&#x3d;&#x43;&#x6f;&#x6e;&#x74;&#x61;&#x63;&#x74;&#x20;','&#102;&#114;&#111;&#109;&#32;&#115;&#112;&#97;&#114;&#101;&#115;&#70;&#105;&#110;&#100;&#101;','&#x72;&#x20;&#x77;&#x65;&#x62;&#x20;&#x73;&#x69;&#x74;&#x65;');
var e5 = new Array('&#x69;&#x6e;&#x64;&#x65;&#x72;&#x20;&#x77;&#x65;&#x62;&#x20;&#x73;&#x69;&#x74;&#x65;','&#99;&#111;&#109;&#63;&#115;&#117;&#98;&#106;&#101;&#99;&#116;&#61;&#67;&#111;&#110;&#116;','&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#115;&#111;&#117;&#116;&#104;&#97;&#102;&#114;&#105;','&#x63;&#x61;&#x40;&#x73;&#x70;&#x61;&#x72;&#x65;&#x73;&#x66;&#x69;&#x6e;&#x64;&#x65;&#x72;&#x2e;','&#x61;&#x63;&#x74;&#x20;&#x66;&#x72;&#x6f;&#x6d;&#x20;&#x73;&#x70;&#x61;&#x72;&#x65;&#x73;&#x46;');
var e6 = new Array('&#116;&#32;&#102;&#114;&#111;&#109;&#32;&#115;&#112;&#97;','&#x65;&#x63;&#x74;&#x3d;&#x43;&#x6f;&#x6e;&#x74;&#x61;&#x63;','&#x70;&#x61;&#x72;&#x65;&#x73;&#x66;&#x69;&#x6e;&#x64;&#x65;','&#x6d;&#x61;&#x69;&#x6c;&#x74;&#x6f;&#x3a;&#x61;&#x75;&#x73;','&#x74;&#x72;&#x61;&#x6c;&#x61;&#x73;&#x69;&#x61;&#x40;&#x73;','&#x72;&#x2e;&#x63;&#x6f;&#x6d;&#x3f;&#x73;&#x75;&#x62;&#x6a;','&#114;&#101;&#115;&#70;&#105;&#110;&#100;&#101;&#114;&#32;','&#x77;&#x65;&#x62;&#x20;&#x73;&#x69;&#x74;&#x65;');
var e7 = new Array('&#x6e;&#x64;&#x65;&#x72;&#x20;&#x77;&#x65;&#x62;&#x20;&#x73;&#x69;&#x74;&#x65;','&#x66;&#x69;&#x6e;&#x64;&#x65;&#x72;&#x2e;&#x63;&#x6f;&#x6d;&#x3f;&#x73;&#x75;&#x62;&#x6a;&#x65;&#x63;&#x74;&#x3d;&#x43;','&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#103;&#108;&#111;&#98;&#97;&#108;&#64;&#115;&#112;&#97;&#114;&#101;&#115;','&#x6f;&#x6e;&#x74;&#x61;&#x63;&#x74;&#x20;&#x66;&#x72;&#x6f;&#x6d;&#x20;&#x73;&#x70;&#x61;&#x72;&#x65;&#x73;&#x46;&#x69;');
var e8 = new Array('&#x20;&#x72;&#x65;&#x71;&#x75;&#x65;&#x73;&#x74;', '&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#109;&#97;&#114;&#107;&#101;&#116;&#105;&#110;&#103;&#64;', '&#115;&#112;&#97;&#114;&#101;&#115;&#102;&#105;&#110;&#100;&#101;&#114;&#46;&#99;&#111;&#109;&#63;', '&#115;&#117;&#98;&#106;&#101;&#99;&#116;&#61;&#77;&#97;&#114;&#107;&#101;&#116;&#105;&#110;&#103;');

function BEA(e)
{
	var a;

	switch(e)
	{
		case 'contactus': /* e: contactus, s: Contact from sparesFinder web site, t: address */
			a = e0;
			document.write("<a href='"+a[8]+a[9]+a[7]+a[6]+a[5]+a[10]+a[4]+a[3]+a[2]+a[1]+a[0]+"'>"+"&#99;&#111;&#110;&#116;&#97;&#99;&#116;&#117;&#115;&#64;&#115;&#112;&#97;&#114;&#101;&#115;&#102;&#105;&#110;&#100;&#101;&#114;&#46;&#99;&#111;&#109;"+"<"+"/a>");
			break;
	
		case 'support': /* e: support, s: Support request, t: address */
			a = e1;
			document.write("<a href='"+a[19]+a[18]+a[17]+a[16]+a[20]+a[15]+a[14]+a[21]+a[13]+a[12]+a[11]+a[22]+a[10]+a[9]+a[8]+a[7]+a[6]+a[5]+a[4]+a[3]+a[23]+a[24]+a[25]+a[26]+a[2]+a[27]+a[1]+a[0]+"'>"+"&#115;&#117;&#112;&#112;&#111;&#114;&#116;&#64;&#115;&#112;&#97;&#114;&#101;&#115;&#102;&#105;&#110;&#100;&#101;&#114;&#46;&#99;&#111;&#109;"+"<"+"/a>");
			break;

		case 'northamerica': /* e: northamerica, s: Contact from sparesFinder web site, t: address */
			a = e2;
			document.write("<a href='"+a[21]+a[22]+a[20]+a[19]+a[18]+a[17]+a[23]+a[16]+a[24]+a[15]+a[25]+a[26]+a[27]+a[14]+a[13]+a[12]+a[11]+a[10]+a[28]+a[29]+a[30]+a[31]+a[32]+a[9]+a[8]+a[7]+a[6]+a[33]+a[5]+a[34]+a[4]+a[35]+a[3]+a[2]+a[36]+a[1]+a[37]+a[38]+a[39]+a[0]+"'>"+"&#110;&#111;&#114;&#116;&#104;&#97;&#109;&#101;&#114;&#105;&#99;&#97;&#64;&#115;&#112;&#97;&#114;&#101;&#115;&#102;&#105;&#110;&#100;&#101;&#114;&#46;&#99;&#111;&#109;"+"<"+"/a>");
			break;

		case 'southamerica': /* e: southamerica, s: Contact from sparesFinder web site, t: address */
			a = e3;
			document.write("<a href='"+a[2]+a[3]+a[1]+a[0]+"'>"+"&#115;&#111;&#117;&#116;&#104;&#97;&#109;&#101;&#114;&#105;&#99;&#97;&#64;&#115;&#112;&#97;&#114;&#101;&#115;&#102;&#105;&#110;&#100;&#101;&#114;&#46;&#99;&#111;&#109;"+"<"+"/a>");
			break;

		case 'nordics': /* e: nordics, s: Contact from sparesFinder web site, t: address */
			a = e4;
			document.write("<a href='"+a[0]+a[1]+a[2]+a[3]+a[4]+"'>"+"&#x6e;&#x6f;&#x72;&#x64;&#x69;&#x63;&#x73;&#x40;&#x73;&#x70;&#x61;&#x72;&#x65;&#x73;&#x66;&#x69;&#x6e;&#x64;&#x65;&#x72;&#x2e;&#x63;&#x6f;&#x6d;"+"<"+"/a>");
			break;

		case 'southafrica': /* e: southafrica, s: Contact from sparesFinder web site, t: address */
			a = e5;
			document.write("<a href='"+a[2]+a[3]+a[1]+a[4]+a[0]+"'>"+"&#x73;&#x6f;&#x75;&#x74;&#x68;&#x61;&#x66;&#x72;&#x69;&#x63;&#x61;&#x40;&#x73;&#x70;&#x61;&#x72;&#x65;&#x73;&#x66;&#x69;&#x6e;&#x64;&#x65;&#x72;&#x2e;&#x63;&#x6f;&#x6d;"+"<"+"/a>");
			break;

		case 'australasia': /* e: australasia, s: Contact from sparesFinder web site, t: address */
			a = e6;
			document.write("<a href='"+a[3]+a[4]+a[2]+a[5]+a[1]+a[0]+a[6]+a[7]+"'>"+"&#97;&#117;&#115;&#116;&#114;&#97;&#108;&#97;&#115;&#105;&#97;&#64;&#115;&#112;&#97;&#114;&#101;&#115;&#102;&#105;&#110;&#100;&#101;&#114;&#46;&#99;&#111;&#109;"+"<"+"/a>");
			break;

		case 'global': /* e: global, s: Contact from sparesFinder web site, t: address */
			a = e7;
			document.write("<a href='"+a[2]+a[1]+a[3]+a[0]+"'>"+"&#103;&#108;&#111;&#98;&#97;&#108;&#64;&#115;&#112;&#97;&#114;&#101;&#115;&#102;&#105;&#110;&#100;&#101;&#114;&#46;&#99;&#111;&#109;"+"<"+"/a>");
			break;

        case 'marketing': /* e: marketing, s: Marketing request, t: address */
            a = e8;
            document.write("<a href='" + a[1] + a[2] + a[3] + a[0] + "'>" + "&#x6d;&#x61;&#x72;&#x6b;&#x65;&#x74;&#x69;&#x6e;&#x67;&#x40;&#x73;&#x70;&#x61;&#x72;&#x65;&#x73;&#x66;&#x69;&#x6e;&#x64;&#x65;&#x72;&#x2e;&#x63;&#x6f;&#x6d;" + "<" + "/a>");
            break;

		default: /* e: contactus, s: Contact from sparesFinder web site, t: address */
			a = e0;
			document.write("<a href='"+a[8]+a[9]+a[7]+a[6]+a[5]+a[10]+a[4]+a[3]+a[2]+a[1]+a[0]+"'>"+"&#99;&#111;&#110;&#116;&#97;&#99;&#116;&#117;&#115;&#64;&#115;&#112;&#97;&#114;&#101;&#115;&#102;&#105;&#110;&#100;&#101;&#114;&#46;&#99;&#111;&#109;"+"<"+"/a>");
			break;
	}
}

