var useSifr = false;
$(function() {
    if(typeof sIFR == "function" && useSifr){
    sIFR.replaceElement("span.fl", "/swf/fc.swf", "#A50022", null, null, null, 0, 0, 0, 0);
    sIFR.replaceElement(named({sSelector:"span.ol", 
        sFlashSrc:"/swf/fc.swf", sColor:"#000000"}));
    };
});

$(function(){
    $('label.required').attr('title','required');
})

function doRefresh() {
    window.setInterval(function(){var obj = document.getElementById('progressRedirect'); obj.innerHTML = (parseInt(obj.innerHTML) - 1);},1000);
    window.setTimeout(function(){window.location.href = window.location.href.replace('?sendok','')},5000);
}

function openWin(pic, lang)
{
  var temp = '/showpic.php?pic=' + pic + '&lang=' + lang;
  var xpos = (screen.width-100)/2;
  var ypos = (screen.height-100)/2;
  window.open(temp,'displayWindow','fullscreen=no,channelmode=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1,height=1,top='+ypos+',left='+xpos); 
}

