function MM_jumpMenu(targ,selObj,restore){ //v3.0
  //eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'.html");
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function showHideLoadin() {
	$('#loading').hide('fade');	
}

//-------- search box
$(document).ready(function(){
    $("#searchBox").focus(function() {
        if ($(this).val() == "търси...") {
            $(this).val("");
            $(this).css({color: '#666'});
        }
    });
    $("#searchBox").blur(function() {
        if ($(this).val() == "") {
            $(this).val("търси...");
            $(this).css({color: '#C3C3C3'});
        }
    });
    
    //$('iframe').contents().find('body').css({"min-height": "100", "overflow" : "hidden"});
    //setInterval( "$('iframe').height($('iframe').contents().find('body').height() + 20)", 1 );

    
});


function sizeIFrame() {
    var helpFrame = jQuery("#helpFrame");
    var innerDoc = (helpFrame.get(0).contentDocument) ? helpFrame.get(0).contentDocument : helpFrame.get(0).contentWindow.document;
    console.log(helpFrame.get(0))
    if (innerDoc)
        helpFrame.height(innerDoc.body.scrollHeight + 35);
    else
        helpFrame.height(1000);
}

function resizeIfream(){
    sizeIFrame();
    jQuery("#helpFrame").load(sizeIFrame);
    
    
}

function startResizeIframe(){
    //setTimeout("resizeIfream()",100);
}
