function change_default_text(p_object, p_default, p_event)
{
    if (p_event == "focus") {
        if (p_object.value == p_default) {
            p_object.value = "";
        }
    } else {
        if (p_object.value == "") {
            p_object.value = p_default;
        }
    }
}

$(document).ready(function()
{
    $("#nav-one li").hover(
    function(){ $("ul", this).fadeIn("fast"); },
    function() { }
    );
    if (document.all) {
        $("#nav-one li").hoverClass ("sfHover");
    }
});

$.fn.hoverClass = function(c) {
    return this.each(function(){
        $(this).hover(
        function() { $(this).addClass(c);  },
        function() { $(this).removeClass(c); }
        );
    });
};

function pixsell_show_login()
{

    $( '#user_login' ).show();
    $( '#input_login_username' ).focus();

}

function pixsell_hide_search_form()
{
    $('#id_search_dropdown').hide();
}

function pixsell_show_search_form()
{
    $('#id_search_dropdown').show();
}

function show_image( p_slika_id )
{
	obj_win = window.open( APP_REWRITE_BASE + 'index.php?cmd=show_slika&slika_id=' + p_slika_id, 'obj_win', 'width=1100,height=750,scrollbars=1,resizable=1' );
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}