﻿var langdropon = false
var cssBackup
var cssBackupisactive = false
var globalcid




function resetField() {
    document.getElementById("search_input").value = ""; 
}

$(document).ready(function() {
    $('.hoverClass').find('a').bind('mouseover', function() {
        $(this).css({ 'color': '#D0001F'});
    });
});



function countryonof(cid, aktiv) {

    if (document.getElementById('subM_' + cid) == null)
        return
    if (aktiv == true) {
        document.getElementById('subM_' + cid).style.display = 'block'
        langdropon = true
    }
    else {
        document.getElementById('subM_' + cid).style.display = 'none'
    }
}

function outtimeout() {
    if (langdropon == false) {
        document.getElementById('subM_' + globalcid).style.display = 'none'
    }
}
function countryoftimeout(cid) {
    globalcid = cid
    langdropon = false
    window.setTimeout("outtimeout()", 5000)

}

$(document).ready(function() {
    $("ul.sf-menu_splrn").supersubs({
        minWidth: 12,   // minimum width of sub-menus in em units 
        maxWidth: 21,   // maximum width of sub-menus in em units 
        extraWidth: 1     // extra width can ensure lines don't sometimes turn over 
        // due to slight rounding differences and font-family 
    }).superfish().find('ul') ;
});
        
