<!-- hide script from old browsers
var activex = ((navigator.userAgent.indexOf('Win')  != -1) && (navigator.userAgent.indexOf('MSIE') != -1) && (parseInt(navigator.appVersion) >= 4 ));
var CantDetect = ((navigator.userAgent.indexOf('Safari')  != -1) || (navigator.userAgent.indexOf('Opera')  != -1));

function oopsPopup() {
    if((navigator.language && navigator.language.indexOf("ja") != -1) || (navigator.systemLanguage && navigator.systemLanguage.indexOf("ja") != -1) || (navigator.userLanguage && navigator.userLanguage.indexOf("ja") != -1)) {
        var URLtoOpen = "http://download.skype.com/share/skypebuttons/oops/oops_ja.html";
    } else {
        var URLtoOpen = "http://download.skype.com/share/skypebuttons/oops/oops.html";
    }
	var windowName = "oops";
	var popW = 540, popH = 305;
	var scrollB = 'no';
	w = screen.availWidth;
	h = screen.availHeight;
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	oopswindow = window.open(URLtoOpen, windowName,'width=' + popW + ',height=' + popH + ',scrollbars=' + scrollB + ',screenx=' +leftPos +',screeny=' +topPos +',top=' +topPos +',left=' +leftPos);
	return false;
}

if(typeof(detected) == "undefined" && activex) {
    document.write(
        ['<script language="VBscript">',
        'Function isSkypeInstalled()',
        'on error resume next',
        'Set oSkype = CreateObject("Skype.Detection")',
        'isSkypeInstalled = IsObject(oSkype)',
        'Set oSkype = nothing',
        'End Function',
        '</script>'].join("\n")
    );
}

function skypeCheck() {
    if(CantDetect) {
        return true;
    } else if(!activex) {
        var skypeMime = navigator.mimeTypes["application/x-skype"];
        detected = true;
        if(typeof(skypeMime) == "object") {
            return true;
        } else {
            return oopsPopup();
        }
    } else {
        if(isSkypeInstalled()) {
            detected = true;
            return true;
        }
    }
    
    detected = true;
    return oopsPopup();
}

function loadDetection() {
    if(document.getElementById && document.getElementsByTagName) {
        if (window.addEventListener) window.addEventListener('load', addDetection, false);
        else if (window.attachEvent) window.attachEvent('onload', addDetection);
    }
}

function addDetection() {
    var pageLinks = document.getElementsByTagName("a");
    for (var i=0; i < pageLinks.length; i++) {
        if(pageLinks[i].childNodes[0] && pageLinks[i].childNodes[0].src) {
            if((pageLinks[i].childNodes[0].src.indexOf('download.skype.com\/share\/skypebuttons') != -1 || pageLinks[i].childNodes[0].src.indexOf('mystatus.skype.com') != -1) && (typeof(pageLinks[i].onclick) == "undefined" || pageLinks[i].onclick == null)) {
                pageLinks[i].onclick = function sChk() { return skypeCheck(); }
            }
        }
    }
}

loadDetection();
document.write('<!-- Footer -->');
document.write('<div class="spacer">&nbsp;</div>');
document.write('\n');
document.write('<div class="footer">');
document.write('	<div>');
document.write('	<a title="NeuroTran - Gramatički prevoditelj i rječnik" href="http://www.tranexp.hr/NeuroTran-cro.htm">NeuroTran</a>');
document.write('	<a title="NeuroGrammar - Napredna provjera gramatike" href="http://www.tranexp.hr/NeuroGrammar.html">NeuroGrammar</a>');
document.write('	<a title="SearchTran - Cijeli Internet na hrvatskom" href="http://www.tranexp.hr/SearchTran-desktop.html">SearchTran</a>');
document.write('	<a title="WordTran - Interaktivni prevoditelj i rječnik" href="http://www.tranexp.hr/WordTran.html">WordTran</a>');
document.write('	<a title="PocketDict - Veliki rječnik na dlanovniku" href="http://www.tranexp.hr/PocketDict.html">PocketDict</a> ');
document.write('	<a title="PocketTran - Prevoditelj i rječnik u Pocket PC-u" href="http://www.tranexp.hr/PocketTran.html">PocketTran</a> ');
document.write('	<a title="PalmDict - Veliki rječnik na dlanu" href="http://www.tranexp.hr/PalmDict.html">PalmDict</a>');
document.write('	<a title="PalmTran - Prevoditelj i rječnik na dlanu" href="http://www.tranexp.hr/PalmTran.html">PalmTran</a>');
document.write('	<a title="MobileTran - Prevoditelj i rječnik u mobitelu" href="http://www.tranexp.hr/MobileTran.html">MobileTran</a>');
document.write('	</div>');
document.write('</div>');
document.write('\n');
document.write('<div class="footer">');
document.write('	<div>');
document.write('	<a title="SimulTran - Simultano prevođenje" href="http://www.tranexp.hr/SimulTran.html">SimulTran</a>');
document.write('	<a title="TravelTran - Mali rječnik na dlanu" href="#traveltrananchor">TravelTran</a>');
document.write('	<a title="LetterTran - 100% točan prevoditelj pisama" href="http://www.tranexp.hr/LetterTran.html">LetterTran</a>');
document.write('	<a title="InterTran - Serverski prevoditelj i rječnik" href="http://www.tranexp.hr/InterTran.html">InterTran</a>');
document.write('	<a title="Rječnik - Rječnik na CD-u" href="http://www.tranexp.hr/Rjecnik.html">Rječnik</a>');
document.write('	<a title="Rječnik s izgovorom" href="http://www.tranexp.hr/Rjecnik-s-izgovorom.html">Rječnik s izgovorom</a>');
document.write('	<a title="Veliki rječnik - Najveći rječnik na CD-u" href="http://www.tranexp.hr/VelikiRjecnik.html">Veliki rječnik</a>');
document.write('	<a title="HumanTran - Stručno ljudsko prevođenje" href="https://www.tranexp.com/win/HumanTran-cro.html">HumanTran</a>');
document.write('	<a title="TelDict - Telefonski rječnik" href="http://www.tranexp.hr/TelDict.html">TelDict</a>');
document.write('	<a title="KnowledgeSearch - Pronalazi odgovor na svako pitanje" href="http://www.tranexp.hr/KnowledgeSearch.html">KnowledgeSearch</a>');
document.write('	</div>');
document.write('</div>');
document.write('\n');
document.write('<div class="contact">');
document.write('	<div>');
document.write('	');
document.write('	<span class="link-small" style="font-weight: bold;">Informacije: 01/2313-015</span><br>');
document.write('	<span class="link-small" style="font-weight: bold;">Tehnička podrška: 060/500-777</span><br>');
document.write('	</div>');
document.write('</div>');
document.write('\n');
document.write('<div class="contact">');
document.write('	<div>');
document.write('	<a class="link-small" title="Pošaljite nam e-mail" href="mailto:info@tranexp.com">Pošaljite nam e-mail</a><br><br>');
document.write('	<a href="skype:translationexperts?call"><img src="http://www.tranexp.com/win/skype_online.png" style="border: none;" alt="My status"></a><br><br>');
document.write('	<a class="link-small" title="Pridružite se našem timu" href="http://www.tranexp.hr/Zaposlenje.html">Pridružite se našem timu</a>');
document.write('	</div>');
document.write('</div>');
document.write('\n');
document.write('<div class="footer">');
document.write('	<div>');
document.write("<b><a class='link-small' title='Translation Experts - Početna stranica' href='http://www.tranexp.hr'>&copy; 1992-" + new Date().getFullYear() + " Translation Experts d.o.o.<\/a><\/b>");
document.write('	</div>');
document.write('</div>');
document.write('\n');
document.write('<div class="spacer">&nbsp;</div>');
document.write('\n');
document.write('<!-- End Footer -->');

// end hiding script from old browsers -->