function openPopup( url, name, width, height, scroll, resize )
{
    if ( width < 1 )
    {
        width = 600;
    }
    if ( height < 1 )
    {
        height = 700;
    }
    if ( scroll == 1 )
    {
        scrollbar = 'yes';
    }
    else
    {
        scrollbar = 'no';
    }
    if ( resize == 1 )
    {
        resizable = 'no';
    }
    else
    {
        resizable = 'no';
    }
    w=window.open( url, name, 'width='+width+',height='+height+
        ',directories=no,location=no,menubar=no,scrollbars='+scrollbar+',status=yes,resizable='+resizable+',toolbar=no,top=50,left=50' );
    w.focus();
}
function MoveSprite (x,y) {
    $('.promo').css ( 'background', 'url(/res/img/0820/budai_egeszsegkozpont_en.jpg) '+x+'px '+y+'px' );

}
function PrintPage () {

    PrintWindow = window.open ("", "mywindow1","directories=1,fullscreen=1,location=1,menubar=1,resizable=1,scrollbars=1,status=1,titlebar=1,width=800,height=600");
    PrintWindow.document.write ($('#rightbar').html ());
    PrintWindow.document.write ('<p style="clear:both">Az oldal az alábbi linken érhető el: '+window.location.href+'</p>');

}



function getChildren (node,type,attribute) {
    var collection = new Array();
    var j=0;
    for( var i = 0; node.childNodes[i]; i++ )
    	if (node.childNodes[i].nodeName==type) {
    	 	collection[j++]=node.childNodes[i].getAttribute(attribute);
    	}
    return (collection);
}

function HideChildren (TabBox,ParentBox,Current) {
    $("div#"+TabBox).children().removeClass();
    $("div#menu"+Current).addClass("current");

    $('div#'+ParentBox).children().hide();
    $('div#box'+Current).show();
    $('div#tab_headline').show(); 
}

function SetElementWidth (elementName,newWidth) {
    document.getElementById (elementName).style.width = newWidth;
}

$(document).ready (function () {
    $('input[@type=checkbox]').css({width:"30px"});
    $('div#multibox_headline').children().hide();
    $('div#box0').show();
    $('div#tab_headline').show();

    $("div.title h1").flashText ({
    source: "/swf/stonesanssemibold-1.0.0.swf"
    });
    $("h2").flashText ({
    source: "/swf/stonesanssemibold-1.0.0.swf"
    });
    $("h3").flashText ({
    source: "/swf/stonesanssemibold-1.0.0.swf"
    });
    $(".partners p").flashText ({
    source: "/swf/trebuchet-1.0.0.swf"
    });
});
