// JavaScript Document
//<![CDATA[
// google translate
function doTranslate(lang_pair) {
        if (location.hostname == 'www.pillaraberdeen.co.uk' && lang_pair == 'en|en') return;
        else if(location.hostname != 'www.pillaraberdeen.co.uk' && lang_pair == 'en|en') location.href = gfg('u');
		
        <!--else if(location.hostname == 'www.n-web.com' && lang_pair != 'en|en') location.href = 'http://translate.google.com/translate_p?client=tmpg&hl=en&langpair=' + lang_pair + '&u=' + location.href;-->
      	else if(location.hostname == 'www.pillaraberdeen.co.uk' && lang_pair != 'en|en') location.href = 'http://66.102.9.104/translate_c?hl=en&langpair=' + lang_pair + '&u=' + location.href;
	<!--else location.href = 'http://66.102.9.104/translate_c?hl=en&langpair=' + lang_pair + '&u=' + gfg('u');-->
	else location.href = 'http://66.102.9.104/translate_c?hl=en&langpair=' + lang_pair + '&u=' + gfg('u');
}
// get from get
function gfg(name) {
        name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
        var regexS = "[\\?&]"+name+"=([^&#]*)";
        var regex = new RegExp(regexS);
        var results = regex.exec(location.href);
        if(results == null) return '';
        return results[1];
}
//]]>