$(document).ready(function(){
    /*$(".panel H3 A").click(function(){
        if ( $(this).html()=='-' ) {
            $(this).parent().next("UL").hide( 200 );
            $(this).html("+");
        }
        else {
            $(this).parent().next("UL").show( 200 );
            $(this).html("-");
        }
        return false;
    });*/
    $("#footer A[href=#]").click(function(){$('html,body').animate({scrollTop:0},'slow');return false;});
    if ( $(window).height()>$( "BODY" ).height() ) {SetFootPosition();}
    //$(".panel H3 IMG").each(function(){$(this).css("top",Math.floor(($(this).parent().height()-$(this).height())/2));});
});

function SetFootPosition() {
    $("#footer").css( {position:"absolute", top:$(window).height()-$("#footer").height()-1, width:"100%"} );
}

function setAsHome() {
    if (document.all) {
        document.body.style.behavior='url(#default#homepage)';
        document.body.setHomePage('http://www.patikusinfo.hu/');
    }
    return false;
}

function addbookmark() {
    title = 'Egészségfigyelő.hu';
    url = 'http://www.hirfigyelo.hu/';
    if ( window.sidebar )
        window.sidebar.addPanel(title, url,"");
    else if ( window.external )
        window.external.AddFavorite( url, title);
    else
        window.alert( 'Az oldal könyvjelzők közé helyezéséhez nyomja meg a CTRL+D billenytűket!' );
    return false;
}