$(document).ready(function(){
    var r2rajz_ = { 
      url: "images_1024/files/r2_rajz.pdf",
      width: "850px",
      height: "500px",
      pdfOpenParams: { view: "FitV" }
    };
    var r2bizt_ = { 
      url: "images_1024/files/biztonsagiterv.pdf",
      width: "850px",
      height: "500px",
      pdfOpenParams: { view: "FitV" }
    };
    var r2tuzr_ = { 
      url: "images_1024/files/tuzriadoterv.pdf",
      width: "850px",
      height: "500px",
      pdfOpenParams: { view: "FitV" }
    };
    var r2tuzvszab_ = { 
      url: "images_1024/files/tuzvedelmi_szab.pdf",
      width: "850px",
      height: "500px",
      pdfOpenParams: { view: "FitV" }
    };
    var r2zenei_ = { 
      url: "images_1024/files/zeneinyilatkozat.pdf",
      width: "850px",
      height: "500px",
      pdfOpenParams: { view: "FitV" }
    };
    
    var r2zenei = new PDFObject(r2zenei_).embed("pdf_r2zenei"); //returns reference to new HTML <object>
    var r2rajz = new PDFObject(r2rajz_).embed("pdf_r2rajz"); //returns reference to new HTML <object>
    var r2bizt = new PDFObject(r2bizt_).embed("pdf_r2bizt"); //returns reference to new HTML <object>
    var r2tuzr = new PDFObject(r2tuzr_).embed("pdf_r2tuzr"); //returns reference to new HTML <object>
    var r2tuzvszab = new PDFObject(r2tuzvszab_).embed("pdf_r2tuzvszab"); //returns reference to new HTML <object>
    
});

$(function(){

    $('.icon_r2').hover(
        function(){
            $('.hover_holder').fadeIn();
        },
        function(){
        });

    $('.hover_holder').hover(
        function(){
        },
        function(){
            $(this).hide();
        });
    
    $('.dj_link').click(
        function(){
            $('.dj_link').css("background-color","transparent");
            $(this).css("background-color","#333333");
            $('.dj_item').hide();
            $('#dj_'+$(this).attr('id')).show();
        });
    
   
    $('.btn2').hover(
        function(){
            $('#flash_sparkle').hide();
            $('.btn_intro_img').show();
            var tmp = $(this).attr('id');
            $('.btn_intro_img').css("background-image", "url(images_1024/intro/"+tmp+".jpg)");  ;
        },
        function(){
            $('.btn_intro_img').hide();
            $('#flash_sparkle').show();
        });
})

function CB_ExternalFunctionLoad(){
    $("#CB_ContentHide").height($("#container").height());
    
}
