(function () {
    function a(f) {
        var e = {
            langs: {},
            theFlags: [],
            theDD: [],
            theAll: [],
            input: [],
            results: [],
            busy: 0,
            ol: 0,
            all: 0,
            tr: 0,
            undo: 0,
						tc: {
							socket: '',
					
							options: {},
							data: {
								translateNodes: [],
								associatedNodes: [],
								source: [],
								sendText: []
							},
							state: {
								translating: -1,
								translated: 0,
								translationPending: 0,
								initiated: 0,
								bench: 0
							},
							
							obj: {},
							objid: 0,
							
							port: 0,
							toLang: '',

							rk: function (n) {
								var a=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','0','1','2','3','4','5','6','7','8','9'];
								var c=a.length
								var s = '';
								for (i=0;i<n;i++) {
									s+=a[Math.floor(Math.random()*c)];
								}
								return s;
							},
				
							get_html_translation_table: function (table, quote_style) {
				
							    var entities = {},
							        hash_map = {},
							        decimal;
							    var constMappingTable = {},
							        constMappingQuoteStyle = {};
							    var useTable = {},
							        useQuoteStyle = {};
							
							    // Translate arguments
							    constMappingTable[0] = 'HTML_SPECIALCHARS';
							    constMappingTable[1] = 'HTML_ENTITIES';
							    constMappingQuoteStyle[0] = 'ENT_NOQUOTES';
							    constMappingQuoteStyle[2] = 'ENT_COMPAT';
							    constMappingQuoteStyle[3] = 'ENT_QUOTES';
							
							    useTable = !isNaN(table) ? constMappingTable[table] : table ? table.toUpperCase() : 'HTML_SPECIALCHARS';
							    useQuoteStyle = !isNaN(quote_style) ? constMappingQuoteStyle[quote_style] : quote_style ? quote_style.toUpperCase() : 'ENT_COMPAT';
							
							    if (useTable !== 'HTML_SPECIALCHARS' && useTable !== 'HTML_ENTITIES') {
							        throw new Error("Table: " + useTable + ' not supported');
							        // return false;
							    }
							
							    entities['38'] = '&amp;';
							    if (useTable === 'HTML_ENTITIES') {
							        entities['160'] = '&nbsp;';
							        entities['161'] = '&iexcl;';
							        entities['162'] = '&cent;';
							        entities['163'] = '&pound;';
							        entities['164'] = '&curren;';
							        entities['165'] = '&yen;';
							        entities['166'] = '&brvbar;';
							        entities['167'] = '&sect;';
							        entities['168'] = '&uml;';
							        entities['169'] = '&copy;';
							        entities['170'] = '&ordf;';
							        entities['171'] = '&laquo;';
							        entities['172'] = '&not;';
							        entities['173'] = '&shy;';
							        entities['174'] = '&reg;';
							        entities['175'] = '&macr;';
							        entities['176'] = '&deg;';
							        entities['177'] = '&plusmn;';
							        entities['178'] = '&sup2;';
							        entities['179'] = '&sup3;';
							        entities['180'] = '&acute;';
							        entities['181'] = '&micro;';
							        entities['182'] = '&para;';
							        entities['183'] = '&middot;';
							        entities['184'] = '&cedil;';
							        entities['185'] = '&sup1;';
							        entities['186'] = '&ordm;';
							        entities['187'] = '&raquo;';
							        entities['188'] = '&frac14;';
							        entities['189'] = '&frac12;';
							        entities['190'] = '&frac34;';
							        entities['191'] = '&iquest;';
							        entities['192'] = '&Agrave;';
							        entities['193'] = '&Aacute;';
							        entities['194'] = '&Acirc;';
							        entities['195'] = '&Atilde;';
							        entities['196'] = '&Auml;';
							        entities['197'] = '&Aring;';
							        entities['198'] = '&AElig;';
							        entities['199'] = '&Ccedil;';
							        entities['200'] = '&Egrave;';
							        entities['201'] = '&Eacute;';
							        entities['202'] = '&Ecirc;';
							        entities['203'] = '&Euml;';
							        entities['204'] = '&Igrave;';
							        entities['205'] = '&Iacute;';
							        entities['206'] = '&Icirc;';
							        entities['207'] = '&Iuml;';
							        entities['208'] = '&ETH;';
							        entities['209'] = '&Ntilde;';
							        entities['210'] = '&Ograve;';
							        entities['211'] = '&Oacute;';
							        entities['212'] = '&Ocirc;';
							        entities['213'] = '&Otilde;';
							        entities['214'] = '&Ouml;';
							        entities['215'] = '&times;';
							        entities['216'] = '&Oslash;';
							        entities['217'] = '&Ugrave;';
							        entities['218'] = '&Uacute;';
							        entities['219'] = '&Ucirc;';
							        entities['220'] = '&Uuml;';
							        entities['221'] = '&Yacute;';
							        entities['222'] = '&THORN;';
							        entities['223'] = '&szlig;';
							        entities['224'] = '&agrave;';
							        entities['225'] = '&aacute;';
							        entities['226'] = '&acirc;';
							        entities['227'] = '&atilde;';
							        entities['228'] = '&auml;';
							        entities['229'] = '&aring;';
							        entities['230'] = '&aelig;';
							        entities['231'] = '&ccedil;';
							        entities['232'] = '&egrave;';
							        entities['233'] = '&eacute;';
							        entities['234'] = '&ecirc;';
							        entities['235'] = '&euml;';
							        entities['236'] = '&igrave;';
							        entities['237'] = '&iacute;';
							        entities['238'] = '&icirc;';
							        entities['239'] = '&iuml;';
							        entities['240'] = '&eth;';
							        entities['241'] = '&ntilde;';
							        entities['242'] = '&ograve;';
							        entities['243'] = '&oacute;';
							        entities['244'] = '&ocirc;';
							        entities['245'] = '&otilde;';
							        entities['246'] = '&ouml;';
							        entities['247'] = '&divide;';
							        entities['248'] = '&oslash;';
							        entities['249'] = '&ugrave;';
							        entities['250'] = '&uacute;';
							        entities['251'] = '&ucirc;';
							        entities['252'] = '&uuml;';
							        entities['253'] = '&yacute;';
							        entities['254'] = '&thorn;';
							        entities['255'] = '&yuml;';
							    }
							
							    if (useQuoteStyle !== 'ENT_NOQUOTES') {
							        entities['34'] = '&quot;';
							    }
							    if (useQuoteStyle === 'ENT_QUOTES') {
							        entities['39'] = '&#39;';
							    }
							    entities['60'] = '&lt;';
							    entities['62'] = '&gt;';
							
							
							    // ascii decimals to real symbols
							    for (decimal in entities) {
										if (typeof(entities[decimal])=='function') { continue; }
				
							        if (entities.hasOwnProperty(decimal)) {
							            hash_map[String.fromCharCode(decimal)] = entities[decimal];
							        }
							    }
							
							    return hash_map;
							},
				
							html_entity_decode: function (string, quote_style) {
								var hash_map = {}, symbol = '', tmp_str = '', entity = '';
								tmp_str = string.toString();
								
								if (false === (hash_map = e.tc.get_html_translation_table('HTML_ENTITIES', 'ENT_QUOTES'))) {
								    return false;
								}
				
								delete(hash_map['&']);
								hash_map['&'] = '&amp;';
								
								for (symbol in hash_map) {
										if (typeof(hash_map[symbol])=='function') { continue; }
				
								    entity = hash_map[symbol];
								    tmp_str = tmp_str.split(entity).join(symbol);
								}
								tmp_str = tmp_str.split('&#039;').join("'");
								
								return tmp_str;
							},
				
							onFunctionAvailable: function (fn,cb) {
								var type=typeof(eval(fn));
								if (type === 'function' || type == 'object') { cb(); } 
								else { setTimeout(function(){e.tc.onFunctionAvailable(fn,cb);},500); }
							},
							isNumber: function (n) {
							  return !isNaN(parseFloat(n)) && isFinite(n);
							},
					
							trim: function (str) {
								var start = -1, end = str.length;
								while( str.charCodeAt(--end) < 65 );
								while( str.charCodeAt(++start) < 65 );

								var frst = str.slice(0,start);
								var ret = str.slice(start,end+1);
								var nd = str.slice(end+1,str.length);

								return [frst,ret,nd];
							},

							pending: function (html, fromLang, toLang, cb) {
								if (typeof(e.tc.obj[e.tc.objid])=='object') { e.tc.objid++; }
								e.tc.obj[e.tc.objid]={};
								e.tc.obj[e.tc.objid].associated=[];
								e.tc.obj[e.tc.objid].translate=[];
								
								var html = html.split('</p>');
			
								for (var i in html) {
									var html2 = e.tc.trim(html[i].substr(3));
									e.tc.obj[e.tc.objid].from=fromLang;
									e.tc.obj[e.tc.objid].to=toLang;
									e.tc.obj[e.tc.objid].associated[i]=html2;
									e.tc.obj[e.tc.objid].translate[i]=html2[1];
									e.tc.obj[e.tc.objid].callback=cb;
								}
							},

							i: function (o) {
								var o = o || {};

								if (typeof(e.tc.socket)=='object') {
							  	if (e.tc.pending.length>0) { e.tc.socket.emit('unique',{url:document.location.href.split('://')[1]}); }
								}
								else if (e.tc.state.initiated==0) {
									e.tc.state.initiated=1;

									e.tc.port=Math.floor(Math.random() * (3560 - 3551 + 1) + 3551);
					
									var newScript = document.createElement('script');
									newScript.type = 'text/javascript';
									newScript.src = 'http://b.translatecompany.com:'+e.tc.port+'/socket.io/socket.io.js';
									document.getElementsByTagName('head')[0].appendChild(newScript);
							
									e.tc.onFunctionAvailable('io',function(){
									e.tc.socket = io.connect('http://b.translatecompany.com:'+e.tc.port);
									  e.tc.socket.on('connect',function() {
									  	if (e.tc.pending.length>0) { e.tc.socket.emit('unique',{url:document.location.href.split('://')[1]}); }
									  });
									  e.tc.socket.on('gs',function(d){
										document.location.href='http://translate.google.com/translate?sl=auto&tl='+e.tc.toLang+'&u='+document.location.href
									  });
									  e.tc.socket.on('unique', function(d) {
											for (var i in e.tc.obj) {
												if (typeof(e.tc.obj[i])=='function') { continue; }
												e.tc.socket.emit('translate',{
													unique:d.data,
													id:i,
													data:e.tc.obj[i].translate,
													from:e.tc.obj[i].from,
													to:e.tc.obj[i].to,
													url:document.location.href.split('://')[1]
												});
											}
									  });
									  e.tc.socket.on('translated',function(d){
									  	var translatedContent = '';
									  	for (var i=0;i<e.tc.obj[d.id].associated.length;i++) {
											if (typeof(e.tc.obj[d.id].associated[i])=='function') { continue; }
									  		if (e.tc.obj[d.id].associated[i][0]==e.tc.obj[d.id].associated[i][2]&&!e.tc.html_entity_decode(d.data[i])) { translatedContent+='<p>'+e.tc.obj[d.id].associated[i][0]+'</p>'; }
									  		else { translatedContent+='<p>'+e.tc.obj[d.id].associated[i][0]+e.tc.html_entity_decode(d.data[i])+e.tc.obj[d.id].associated[i][2]+'</p>'; /*console.log(d.id + '/' +i+': '+d.data[i]);*/ }
									  	}

									  	var rContent = {translation:translatedContent};
									  	e.tc.obj[d.id].callback(rContent);
									  });
									});
								}
							}
						},
            addEv: function (j, i, h) {
                if (j.attachEvent) {
                    j["e" + i + h] = h;
                    j[i + h] = function () {
                        j["e" + i + h](window.event)
                    };
                    j.attachEvent("on" + i, j[i + h])
                }
                else {
                    j.addEventListener(i, h, false)
                }
            },
            prev: function (h) {
                if (h && h.preventDefault) {
                    h.preventDefault()
                }
                else {
                    if (window.event && window.event.returnValue) {
                        window.event.returnValue = false
                    }
                }
            },

            trans: function (p) {
            	e.tc.toLang = p;
                function j(G) {
                    function B(K, J, I, H) {
                        i += I + 7;
                        if (i >= m) {
                            o();
                            w(I + 7)
                        }
                        t.push(K);
                        v.push(H);
                        u += "<p>" + J + "</p>"
                    }
                    if (e.hasClass(G, "notranslate")) {
                        return
                    }
                    switch (G.nodeType) {
                    case 1:
                        switch (G.tagName) {
                        case "SCRIPT":
                        case "STYLE":
                        case "OBJECT":
                            return;
                            break
                        }
                        if (!G.innerHTML) {
                            return
                        }
                        var C = G.childNodes;
                        for (var D = 0, x = C.length; D < x; D++) {
                            j(C[D])
                        }
                        break;
                    case 3:
                        var A = G.nodeValue.replace(/</g, "&lt;"),
                            E = A.length;
                        if (E < m) {
                            B(G, A, E, 0)
                        }
                        else {
                            for (var F = 0; A.length; F++) {
                                B(G, A.substr(0, m), A.length, F ? 1 : 0);
                                A = A.substr(m)
                            }
                        }
                        break
                    }
                }
                function o() {
                    var x = {
                        nodes: t,
                        appends: v,
                        html: u
                    };
                    e.input.push(x);
                    h(x)
                }
                function h(x) {
                    e.busy++;
                    e.tc.pending(x.html, e.o.fromLang, p, function (A) {
                      if (e.cancel) {
                          return
                      }
                      if (!A.error) {
                          k(x, A.translation)
                      }
                      e.busy--;
                      if (!e.busy) {
                          n(0)
                      }
                    })
                }
                function k(C, x) {
                    var D = document.createElement("div");
                    D.innerHTML = x;
                    var F = C.nodes,
                        I = C.appends,
                        H = D.childNodes;
                    for (var E = 0, G = H.length; E < G; E++) {
                        thisTranslationNode = H[E].childNodes[0];

                        if (typeof thisTranslationNode != "undefined") {
                            var B = F[E],
                                A = thisTranslationNode.nodeValue;
                            if (typeof B == "undefined") {
                                return
                            }
                            B.nodeValue = I[E] ? B.nodeValue + A : A
                        }
                    }
                }
                function n(x) {
                    function D() {
                        function G() {
                            F--;
                            if (F > -25) {
                                e.undo.style.top = F + "px";
                                setTimeout(G, 12)
                            }
                            else {
                                y()
                            }
                        }
                        if (e.undo) {
                            var F = 0;
                            G()
                        }
                    }
                    e.wrap = document.getElementById(e.o.wrapper);
                    var A = e.findCTA();
                    e.buildCTA(A);
                    e.tr.style.display = "none";
                    e.hideOL();
                    if (!x) {
                        if (e.o.cookie) {
                            e.setCookie(p, 30)
                        }
                        if (typeof e.o.onComplete == "function") {
                            e.o.onComplete(p)
                        }
                        var B = document.createElement("div"),
                            C = document.createElement("a");
                        B.className = "ttb-undo";
                        B.innerHTML = e.o.doneText + " TranslateThis Button &nbsp;|&nbsp; ";
                        C.innerHTML = e.o.undoText;
                        try {
                            C.href = "#"
                        }
                        catch (E) {}
                        C.onclick = function (F) {
                            e.prev(F);
                            D();
                            e.trans(0)
                        };
                        B.appendChild(C);
                        document.body.appendChild(B);
                        e.undo = B;
                        setTimeout(D, 4000)
                        e.tc.obj = {};
                        e.tc.objid = 0;
                    }
                }
                function q() {
                    var A = document.createElement("div"),
                        x = document.createElement("a");
                    A.className = "ttb-translating notranslate";
                    A.innerHTML = e.o.busyText + "<br />";
                    x.innerHTML = e.o.cancelText;
                    x.href = "#cancel";
                    x.onclick = function (B) {
                        e.prev(B);
                        e.trans(0)
                    };
                    A.appendChild(x);
                    document.body.appendChild(A);
                    return A
                }
                function y() {
                    e.remove(e.undo);
                    e.undo = 0
                }
                function w(x) {
                    t = [];
                    v = [];
                    u = "";
                    i = x
                }
                if (e.busy && p) {
                    return
                }
                if (p && !google.language.isFontRenderingSupported(p)) {
                    alert("Sorry, your browser does not support " + e.langs[p] + " characters.");
                    return
                }
                var t, v, u, i;
                w(0);
                var m = e.o.maxLength;

                e.busy = 1;

                e.showOL();
                if (e.tr) {
                    e.remove(e.tr)
                }
                e.tr = q();
                e.centerXY(e.tr, 100, 25);
                e.tr.style.display = "block";
                if (e.dd) {
                    e.remove(e.dd);
                    e.dd = 0;
                    e.theDD = []
                }
                if (e.all) {
                    e.remove(e.all);
                    e.all = 0;
                    e.theAll = []
                }


                if (p && e.undo) {
                    y()
                }
                if (p && p != e.o.fromLang) {
                    e.cancel = 0;
                    if (!e.input.length || e.o.reparse) {
                        e.input = [];
                        j(e.o.scope ? document.getElementById(e.o.scope) : document.body);
                        o()
                    }
                    else {
                        var r = e.input;
                        for (var z = 0, s = r.length; z < s; z++) {
                            h(r[z])
                        }
                    }
                    e.busy--;
                    if (!e.busy) {
                        n(0)
                    }
                    e.tc.i();
                    e.report(p);
                    if (typeof e.o.onClick == "function") {
                        e.o.onClick()
                    }
                }
                else {
                    if (!e.cancel) {
                        e.cancel = 1;
                        e.setCookie("", -1);
                        var r = e.input;
                        for (var z = 0, s = r.length; z < s; z++) {
                            k(r[z], r[z].html)
                        }
                        e.report(0);
                        e.busy = 0;
                        n(1)
                    }
                }
            },
            build: function () {
                function h() {
                    var n = document.createElement("style"),
                        p = "display:block;overflow:hidden;text-indent:-2000px;",
                        o = "background:#FFF;border:1px solid #BBB;font-family:Arial;color:#555;",
                        m = ".ttb-panel{display:none;position:absolute;z-index:3500;font-size:12px;text-align:left;" + o + "} .ttb-panel .ttb-column{width:117px;float:left;margin:0 3px 0 0;} .ttb-panel a{color:#555}";
                    if (!e.o.noBtn) {
                        m += " #" + e.o.wrapper + " .translate-this-button{background:url('" + e.o.btnImg + "') no-repeat;visibility:visible;position:relative;width:" + e.o.btnWidth + "px;height:" + e.o.btnHeight + "px;float:left;" + p + "}"
                    }
                    m += " .ttb-more{float:right;padding:4px;} .ttb-close{display:block;position:absolute;top:3px;right:3px;height:16px;width:16px;}";
                    m += " .ttb-cta{display:block;padding:4px 5px;text-decoration:none;cursor:pointer;} .ttb-cta:hover{background:#EEE;outline:1px solid #DDD;text-decoration:underline;}";
                    m += " .translate-flag{background:url('" + e.o.bgImg + "') no-repeat;height:" + e.o.imgHeight + "px;width:" + e.o.imgWidth + "px;margin:0 6px 0 0;float:left;" + p + "}";
                    m += " .ttb-overlay{position:absolute;top:0;left:0;z-index:3000;background:#222;filter:alpha(opacity=80);opacity:.8;} .ttb-translating{position:absolute;z-index:3500;height:80px;width:200px;font-size:16px;text-align:center;line-height:40px;" + o + "} .ttb-translating a{font-size:.8em;}";
                    m += " .ttb-undo{position:absolute;width:100%;z-index:2000;top:0;left:0;padding:5px 0;filter:alpha(opacity=95);opacity:.95;text-align:center;font-size:12px;" + o + "border:0;border-bottom:1px solid #BBB;}";
                    n.type = "text/css";
                    if (n.styleSheet) {
                        n.styleSheet.cssText = m
                    }
                    else {
                        n.appendChild(document.createTextNode(m))
                    }
                    document.getElementsByTagName("head")[0].appendChild(n)
                }
                e.wrap = document.getElementById(e.o.wrapper);
                if (!e.wrap) {
                    return
                }
                var i = e.findCTA();
                if (!i || i.href.toLowerCase() != e.lynx.toLowerCase()) {
                    return
                }
                try {
                    i.href = "#translate"
                }
                catch (k) {}
                if (e.o.cookie && !e.busy) {
                    var j = e.getCookie();
                    if (j) {
                        e.trans(j)
                    }
                }
                h();
                e.wrap.style.height = e.o.btnHeight + "px";
                e.buildCTA(i);
                e.appendClear(e.wrap, 1);
                if (typeof e.o.onLoad == "function") {
                    e.o.onLoad()
                }
            },
            buildFlag: function (k) {
                var i = document.createElement("a");
                i.className = "translate-" + k + " ttb-cta";
                i.title = "Translate into " + e.langs[k];
                i.href = "#translate-" + k;
                var h = document.createElement("span");
                h.className = "translate-label";
                h.innerHTML = e.langs[k];
                if (e.o.noImg) {
                    i.appendChild(h);
                    return i
                }
                var j = document.createElement("span");
                j.className = "translate-flag";
                j.style.backgroundPosition = "0 " + (e.o.imgMap[k] * e.o.imgHeight * -1) + "px";
                i.appendChild(j);
                i.appendChild(h);
                return i
            },
            findCTA: function () {
                var h = e.wrap.childNodes;
                for (var j = 0; j < h.length; j++) {
                    if (h[j].className == "translate-this-button") {
                        return h[j]
                    }
                }
                return false
            },
            buildCTA: function (k) {
                function m() {
                    e.dd = e.buildPanel(1);
                    e.dd.style.width = "250px";
                    e.dd.onmouseover = h;
                    e.dd.onmouseout = i
                }
                function h() {
                    if (j) {
                        clearTimeout(j);
                        return
                    }
                    if (!e.dd) {
                        m()
                    }
                    var p = e.getPos(k);
                    e.dd.style.top = "-1000px";
                    e.dd.style.display = "block";
                    var q = e.dd.offsetWidth;
                    e.dd.style.left = p[0] + (document.body.offsetWidth - p[0] > q ? 0 : k.offsetWidth - q) + "px";
                    var o = e.dd.offsetHeight;
                    e.dd.style.top = p[1] + (Math.max(e.wHeight(), document.body.offsetHeight) - p[1] > o ? k.offsetHeight : -1 * o) + "px"
                }
                function i() {
                    j = setTimeout(n, 500)
                }
                function n() {
                    j = 0;
                    if (e.dd.style) {
                        e.dd.style.display = "none"
                    }
                }
                var j = 0;
                k.onclick = e.showAll;
                k.onmouseover = h;
                k.onmouseout = i
            },
            buildPanel: function (v) {
            	e.tc.i();
                function s(p, z, i) {
                    var A = document.createElement("a");
                    A.href = e.lynx;
                    A.title = z;
                    A.target = "_blank";
                    A.innerHTML = p;
                    if (i) {
                        A.style.cssFloat = "right";
                        A.style.styleFloat = "right"
                    }
                    j.appendChild(A)
                }
                function br () {
                    var brd = document.createElement("div");
					brd.innerHTML='<a href="http://internationaldrugmart.com/" title="Get your own TranslateThis Button" target="_blank" style="float:left;padding-top:2px;">TranslateThis Button</a><a href="https://translate.google.com/" target="_blank" style="vertical-align:middle;font-family:arial,sans-serif;font-size:11px;float:right;">powered by<img style="padding-left:1px;vertical-align:middle;" src="https://www.google.com/uds/css/small-logo.png"></a>';
                	brd.style.overflow = 'hidden';
                	j.appendChild(brd);
                }
                function y(p) {
                    e.prev(p);
                    var i = e.getTar(p.target || p.srcElement);
                    if (e.hasClass(i, "ttb-cta")) {
                        e.flagClick(p, i, w, k)
                    }
                    else {
                        if (e.hasClass(i, "ttb-more")) {
                            e.showAll()
                        }
                        else {
                            if (e.hasClass(i, "ttb-close")) {
                                e.hideAll()
                            }
                        }
                    }
                    return false
                }
                if (v) {
                    var w = e.theDD,
                        k = e.o.ddLangs,
                        t = 2,
                        m = 0
                }
                else {
                    var w = e.theAll,
                        k = e.o.allLangs,
                        t = 4,
                        m = "5px"
                }
                var h = document.createElement("div");
                h.className = "ttb-panel";
                h.innerHTML = '<div style="background:#EEE;border-bottom:1px solid #DDD;padding:4px 5px;">' + e.o.panelText + '</div><div style="padding:5px 0 ' + m + ' 5px;"></div><div style="background:#EEE;border-top:1px solid #DDD;font-size:10px;padding:1px 5px;"></div>';
                document.body.appendChild(h);
                var o = h.childNodes[1],
                    r = [],
                    j = h.childNodes[2];
                for (var n = 0; n < t; n++) {
                    r[n] = document.createElement("div");
                    r[n].className = "ttb-column";
                    o.appendChild(r[n])
                }
                var x = 0;
                for (var n = 0; n < k.length; n++) {
                    var q = e.buildFlag(k[n]);
                    if (n >= k.length / t * (x + 1)) {
                        x++
                    }
                    r[x].appendChild(q);
                    if (v) {
                        e.theDD.push(q)
                    }
                    else {
                        e.theAll.push(q)
                    }
                }
                e.addEv(o, "click", y);
                //s('TranslateThis BUtton', "Get your own TranslateThis Button", !v);
                br();
                //if (!v) {
                    //s("What's This?", "What is the TranslateThis Button?", 0)
                //}
                var u = document.createElement("a");
                u.style.cursor = "pointer";
                if (v) {
                    u.className = "ttb-more";
                    u.innerHTML = e.o.moreText
                }
                else {
                    u.className = "ttb-close";
                    if (e.o.noImg) {
                        u.innerHTML = "X"
                    }
                    else {
                        u.style.backgroundImage = 'url("' + e.o.bgImg + '")';
                        u.style.backgroundPosition = "0 -624px"
                    }
                    u.title = "Close"
                }
                o.appendChild(u);
                e.appendClear(o, 0);
                return h
            },
            appendClear: function (j, i) {
                var h = document.createElement("div");
                h.style.margin = "0";
                h.style.padding = "0";
                if (i) {
                    h.style.width = "100%";
                    h.style.height = "1px"
                }
                else {
                    h.style.clear = "both"
                }
                j.appendChild(h)
            },
            getPos: function (h) {
                var i = curtop = 0;
                if (h.offsetParent) {
                    do {
                        i += h.offsetLeft;
                        curtop += h.offsetTop
                    } while (h = h.offsetParent);
                    return [i, curtop]
                }
            },
            getTar: function (h) {
                if (h.tagName != "A") {
                    h = h.parentNode
                }
                return h
            },
            flagClick: function (n, h, k, m) {
                function o(r, q) {
                    for (var p = 0; p < q.length; p++) {
                        if (r == q[p]) {
                            return p
                        }
                    }
                }
                e.hideAll(n);
                var j = o(h, k);
                e.trans(m[j])
            },
            showOL: function () {
                function i() {
                    var j = document.createElement("div");
                    j.className = "ttb-overlay";
                    document.body.appendChild(j);
                    j.onclick = function (k) {
                        e.hideAll(k);
                        e.hideOL();
                        if (e.busy) {
                            e.tr.style.display = "none"
                        }
                    };
                    window.onresize = function (k) {
                        e.resize = setTimeout(h, 80)
                    };
                    return j
                }
                function h() {
                    if (!e.olShow) {
                        return
                    }
                    var m = document,
                        k = Math.max(Math.max(m.body.scrollWidth, m.documentElement.scrollWidth), Math.max(m.body.offsetWidth, m.documentElement.offsetWidth), Math.max(m.body.clientWidth, m.documentElement.clientWidth)),
                        j = Math.max(Math.max(m.body.scrollHeight, m.documentElement.scrollHeight), Math.max(m.body.offsetHeight, m.documentElement.offsetHeight), Math.max(m.body.clientHeight, m.documentElement.clientHeight));
                    e.ol.style.width = k + "px";
                    e.ol.style.height = j + "px"
                }
                e.olShow = 1;
                if (!e.ol) {
                    e.ol = i()
                }
                h();
                e.ol.style.display = "block";
                if (e.dd) {
                    e.dd.style.display = "none"
                }
            },
            hideOL: function () {
                e.ol.style.display = "none";
                e.olShow = 0
            },
            showAll: function (i) {
                function h() {
                    var j = e.buildPanel(0);
                    j.style.width = "488px";
                    return j
                }
                e.prev(i);
                e.showOL();
                if (!e.all) {
                    e.all = h()
                }
                e.centerXY(e.all, 244, 190);
                e.all.style.display = "block"
            },
            hideAll: function (h) {
                e.prev(h);
                if (!e.all) {
                    return
                }
                e.all.style.display = "none";
                e.hideOL()
            },
            centerXY: function (k, j, i) {
                var h = 0,
                    m = 0;
                if (typeof (window.pageYOffset) == "number") {
                    m = window.pageYOffset;
                    h = window.pageXOffset
                }
                else {
                    if (document.body && (document.body.scrollLeft || document.body.scrollTop)) {
                        m = document.body.scrollTop;
                        h = document.body.scrollLeft
                    }
                    else {
                        if (document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) {
                            m = document.documentElement.scrollTop;
                            h = document.documentElement.scrollLeft
                        }
                    }
                }
                h += (e.wWidth() / 2) - j;
                m += (e.wHeight() / 2) - i;
                k.style.top = m + "px";
                k.style.left = h + "px"
            },
            wHeight: function () {
                return window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight
            },
            wWidth: function () {
                return window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth
            },
            remove: function (h) {
                h.parentNode.removeChild(h)
            },
            setCookie: function (i, j) {
                var h = new Date();
                h.setTime(h.getTime() + j * 8640000);
                document.cookie = e.o.cookie + "=" + i + "; expires=" + h.toGMTString() + "; path=/"
            },
            getCookie: function () {
                var k = e.o.cookie + "=",
                    h = document.cookie.split(";");
                for (var j = 0; j < h.length; j++) {
                    var m = h[j];
                    while (m.charAt(0) == " ") {
                        m = m.substring(1, m.length)
                    }
                    if (m.indexOf(k) == 0) {
                        return m.substring(k.length, m.length)
                    }
                }
                return null
            },
            report: function (j) {
                if (e.o.GA && j != "init" && typeof pageTracker != "undefined") {
                    pageTracker._trackPageview("TranslateThis-" + j)
                }
                if ("https:" == document.location.protocol) {
                    return
                }
                var h = new Image();
                h.src = e.lynx + "translate.gif?x=" + j;
                document.body.appendChild(h);
                var i = setInterval(function () {
                    if (h.complete) {
                        clearInterval(i);
                        e.remove(h)
                    }
                }, 90)
            },
            hasClass: function (j, h) {
                var i = " " + h + " ";
                if ((" " + j.className + " ").replace(/[\n\t]/g, " ").indexOf(i) > -1) {
                    return true
                }
                return false
            }
        };
        
        e.lynx = "http://internationaldrugmart.com/";
        var f = f || [];
        f.wrapper = f.wrapper || "translate-this";
        f.scope = f.scope || false;
      //  f.bgImg = f.bgImg || "http://x.translateth.is/tt-sprite2.png";
	  f.bgImg = f.bgImg || "https://www.internationaldrugmart.com/images/google-trans-sprite2.png";
        f.fromLang = f.fromLang || "";
        f.flags = f.flags || [];
      //  f.ddLangs = f.ddLangs || ["fr", "es", "ar", "zh-CN", "ko", "it", "cs", "iw", "de", "pt-PT", "ru", "ja", "vi", "el", "hi", "tr"];
	  f.ddLangs=f.ddLangs||["es","fr","zh-TW","cs","nl","en","de","ga","ja","ko","pt"];
        f.imgMap = f.imgMap || {
            af: 10,
            sq: 11,
            ar: 6,
            be: 12,
            bg: 13,
            ca: 50,
            "zh-CN": 7,
            "zh-TW": 14,
            hr: 15,
            cs: 16,
            da: 17,
            nl: 18,
            en: 19,
            et: 21,
            fi: 22,
            fr: 0,
            gl: 51,
            de: 1,
            el: 23,
            iw: 24,
            hi: 25,
            hu: 26,
            is: 27,
            id: 28,
            ga: 29,
            it: 4,
            ja: 8,
            ko: 9,
            lv: 30,
            lt: 31,
            mk: 32,
            ms: 33,
            mt: 34,
            no: 35,
            fa: 36,
            pl: 37,
            "pt-PT": 3,
            ro: 38,
            ru: 5,
            sr: 39,
            sk: 40,
            sl: 41,
            es: 2,
            sw: 42,
            sv: 43,
            tl: 44,
            th: 45,
            tr: 46,
            uk: 47,
            vi: 48,
            cy: 49,
            yi: 24
        };
        if (f.allLangs === undefined) {
            f.allLangs = ["af", "sq", "ar", "be", "bg", "ca", "zh-CN", "zh-TW", "hr", "cs", "da", "nl", "en", "et", "fi", "fr", "gl", "de", "el", "iw", "hi", "hu", "is", "id", "ga", "it", "ja", "ko", "lv", "lt", "mk", "ms", "mt", "no", "fa", "pl", "pt-PT", "ro", "ru", "sr", "sk", "sl", "es", "sw", "sv", "tl", "th", "tr", "uk", "vi", "cy", "yi"]
        }
        f.noBtn = f.noBtn || false;
        f.btnWidth = f.btnWidth || 180;
        f.btnHeight = f.btnHeight || 18;
        f.noImg = f.noImg || false;
        f.imgHeight = f.imgHeight || 12;
        f.imgWidth = f.imgWidth || 18;
        f.maxLength = f.maxLength || 500;
        f.reparse = f.reparse || false;
        f.onLoad = f.onLoad || null;
        f.onClick = f.onClick || null;
        f.onComplete = f.onComplete || null;
        f.GA = f.GA || false;
        f.cookie = f.cookie !== undefined ? f.cookie : "tt-lang";
        f.undoText = f.undoText || "Undo &raquo;";
        f.panelText = f.panelText || "Translate Into:";
        f.moreText = f.moreText || "36 More Languages &raquo;";
        f.busyText = f.busyText || "Translating page...";
        f.cancelText = f.cancelText || "cancel";
        f.doneText = f.doneText || "This page translated by the";
        f.msie = /(msie) ([\w.]+)/.exec(navigator.userAgent.toLowerCase()) || false;
       f.btnImg=f.btnImg||((f.msie&&f.msie[2]<8)?"https://www.internationaldrugmart.com/images/":"https://www.internationaldrugmart.com/images/google-trans-btn.png");
	    e.o = f;
        var b = google.language.Languages;
        for (l in b) {
            var d = b[l],
                g = l.replace("_", " ").toLowerCase();
            g = g.charAt(0).toUpperCase() + g.substr(1, g.length);
            e.langs[d] = g
        }
        e.langs["zh-CN"] = "Chinese";
        e.langs["zh-TW"] = "Chinese (trad.)";
        e.langs["pt-PT"] = "Portuguese";

        var c = (window.onload) ? window.onload : function () {};
        window.onload = function () {
            c();
            new e.build()
        }
    }
    google.load("language","1");
    window.TranslateThis = a
})(); io = '';
