$(document).ready(function() {
     //$("a[rel='ibox']").click(function() {
     //$("a").click(function() {
      //iBox.show('http://localhost/ImgUpload/File/wyklejanie.jpg'); 
      //$("#content_container").slideToggle("slow");
     //});   
   //$("#tab1").css("border","3px solid red");
   
   //$("#container").show("slow");
   //$("#menu_container").show("slow");
   //$("#content").show("slow");
   //$("#products").show("slow");
   //$("#top_frame_right").slideToggle("slow");
   //$("#content_container").slideDown(5);
   //$("#content_container").slideToggle("slow");
      
   
   /*$("#tab1").click(function () {
      tab_content_load.php
     //$("#content_text").hide("slow");
     $("#content").slideUp("slow");
     $("#content").show("slow");

   });*/
   
   /*$(".tab1").mouseenter(function() {
      $(this).css({ backgroundImage:"url(./img/tab_bg_hover.gif)"});
   });
   
   $(".tab1").mouseleave(function(){
      $(this).css({ backgroundImage:"url(./img/tab_bg.gif)"});   
   });*/
   
   $(".tab").click(function() { //start function when any link is clicked
      //$(".tab3").addClass('tab1');
      //$(".tab3").removeClass('tab3');
      //$(this).removeClass('tab1');
      //$(this).addClass('tab3');
      
      
      /*$(this).css({ backgroundImage:"url(./img/tab_bg_active.gif)"});
      $(".tab_none").removeClass('tab_active');
      $(".tab_none").removeClass('tab_selected');
      $(".tab_none").addClass('tab');
      //$(this).removeClass('tab_none');
      $(this).addClass('tab_active');
      */
      var content_show = $(this).attr("id"); //retrieve title of link so we can compare with php file
         $.ajax({
            method: "get",url: "./tab_content_load.php",data: "tab="+content_show,
            //beforeSend: function(){$("#content_container").slideToggle("fast");}, //show loading just when link is clicked
            //complete: function(){ $("#products").slideToggle("fast");}, //stop showing loading when the process is complete
            success: function(html){ //so, if data is retrieved, store it in html
               //$("#content_container").slideToggle("fast"); //animation
               $("#content_text").html(html); //show the html inside .content div
               iBox.checkTags();
            }
         }); //close $.ajax(
  }); //close click(

 });
