function changeToWindow(uri,_width,_height){
    myLightWindow.deactivate();
    myLightWindow.activateWindow({
        href: uri,
        width: _width,
        height: _height
    });
}

function showWindow(uri,_width,_height){
    myLightWindow.activateWindow({
        href: uri,
        width: _width,
        height: _height
    });
}

function popup(p,w,h){
    var left = (screen.availWidth/2) - (w/2);
    var top = (screen.availHeight/2) - (h/2);
    window.open(p,'','width='+w+',height='+h+',s crollbars=0,status=0, left='+left+', top='+top)
}

function hoverBlogItem(getid){
    $(getid).className = 'blogitem-hover';
}

function normailzeBlogItem(getid){
    $(getid).className = 'blogitem';
}

$j(document).ready(function(){

if (jQuery.browser.msie && jQuery.browser.version.substr(0,1)<7) {
   jQuery("body").hide();
   if(confirm("Ön egy régi Internet Explorert verziót használ. Kérjük frissítse a böngészőjét és látogasson vissza oldalunkra!")){
       window.location="/";
   }else{
       window.location="http://www.mozilla-europe.org/hu/firefox/";
   }
}


$j('#hirek-body').before('<ul id="cyclenav">').cycle({
    speed:       1000,
    timeout:     3000,
    requeueTimeout: 200,
    pager:      '#cyclenav',
    pagerEvent: 'click',
    fx:     'fade', 
    pause: false,
    pauseOnPagerHover: false,
    // callback fn that creates a thumbnail to use as pager anchor
    pagerAnchorBuilder: function(idx, slide) {        
        if (idx>0){         
         return '<li><a href="#">' + idx +'</a></li>';
        }
    },
    before: function(currSlideElement, nextSlideElement, options, forwardFlag){        
        if(nextSlideElement.id!=""){
            $j("#hirek-body").css("background-image", "url('" + nextSlideElement.id +"')");
        }
        
        
    }
});

});