



$(document).ready(function(){
  // Reset Font Size
  var originalFontSize = $('#main_box p strong,#main_box_sec p strong,#main_box p,#main_box_sec p,#main_box li,#main_box_sec li,#main_box table tr td,#main_box_sec table tr td').css('font-size');
    $(".resetFont").click(function(){
    $('#main_box p strong,#main_box_sec p strong,#main_box p,#main_box_sec p,#main_box li,#main_box_sec li,#main_box table tr td,#main_box_sec table tr td').css('font-size', originalFontSize);
  });
  // Increase Font Size
  $(".increaseFont").click(function(){
	
	
    var currentFontSize = $('#main_box p strong,#main_box_sec p strong,#main_box p,#main_box_sec p,#main_box li,#main_box_sec li,#main_box table tr td,#main_box_sec table tr td').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum+1;
    
		if  (newFontSize  <  16)  { 
			$('#main_box p strong,#main_box_sec p strong,#main_box p,#main_box_sec p,#main_box li,#main_box_sec li,#main_box table tr td,#main_box_sec table tr td').css('font-size', newFontSize);
		}
		return false;
  });
	
  // Decrease Font Size
  $(".decreaseFont").click(function(){
    var currentFontSize = $('#main_box p strong,#main_box_sec p strong,#main_box p,#main_box_sec p,#main_box li,#main_box_sec li,#main_box table tr td,#main_box_sec table tr td').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum-1;
    
		if  (newFontSize  >11 )  { 
			$('#main_box p strong,#main_box_sec p strong,#main_box p,#main_box_sec p,#main_box li,#main_box_sec li,#main_box table tr td,#main_box_sec table tr td').css('font-size', newFontSize);
		}
		return false;
  });
});


<!--#main_box p strong,#main_box_sec p strong,#main_box p,#main_box_sec p,#main_box li,#main_box_sec li,#main_box table tr td,#main_box_sec table tr td-->








	$(function(){
				// Tabs
		$('#tabs').tabs();
		
		$('#tabs ul li a.sec').click(function()
			{
				$("#tabs ul li a.fir").addClass("active");
				$(this).addClass("active");
 
		});
		$('#tabs ul li a.fir').click(function()
			{
				$("#tabs ul li a.sec").removeClass("active");
				$(this).removeClass("active");
 
		});
		

});
		
		$(document).ready(function(){
			$("a[rel^='prettyPhoto']").prettyPhoto({
				animationSpeed: 'normal', /* fast/slow/normal */
				padding: 40, /* padding for each side of the picture */
				opacity: 0.35, /* Value betwee 0 and 1 */
				showTitle: true, /* true/false */
				allowresize: true, /* true/false */
				counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
				theme: 'light_rounded', /* light_rounded / dark_rounded / light_square / dark_square */
				callback: function(){}
			});
		});
	

	$(document).ready(function(){
	
	
	
    $(".table_text tr:nth-child(even)").addClass("background1_tab");
    $(".table_text tr:nth-child(odd)").addClass("background2_tab");
  	$(".table_text tr:first-child").addClass("header_tab");
	  $(".table_text tr td:last-child").addClass("td_ostatnia");
     
	   
  });
	
	/*
function change_comm_type(table)
{
	
if( (document) && (document.getElementById(table)) )
{
	r = document.getElementById(table).rows;
				 
				 
        for(i = 0; i < r.length; i++){
				
					if(i==0){
					 r[0].style.backgroundColor='transparent';
					 r[0].style.fontSize='12px';
					 r[0].style.color='#709b44';
					 r[0].style.fontWeight='bold';
					 r[0].style.padding='0px';
					 i++;
					}	
				
                //r[i].style.backgroundImage='url("/gfx/read.jpg")';
									r[i].style.backgroundColor='#eaeaea';
									i++;
                r[i].style.backgroundColor='#fff';
				}
}
        
								
									
}
*/

/* 


 (function($) {
    var opt;

    $.fn.jqprint = function (options) {
        opt = $.extend({}, $.fn.jqprint.defaults, options);

        var $element = (this instanceof jQuery) ? this : $(this);
        var $iframe = $("<iframe  />");
    
        if (!opt.debug) 
        {
            $iframe.css({ position: "absolute", width: "0px", height: "0px", left: "-600px", top: "-600px" });
        }

        $iframe.appendTo("body");
        
        var doc = $iframe[0].contentWindow.document;
        
        if (opt.importCSS)
        {
            if ($("link[media=print]").length > 0) 
            {
                $("link[media=print]").each( function() {
                    doc.write("<link type='text/css' rel='stylesheet' href='" + $(this).attr("href") + "' media='print' />");
                });
            }
            else 
            {
                $("link").each( function() {
                    doc.write("<link type='text/css' rel='stylesheet' href='" + $(this).attr("href") + "' />");
                });
            }
        }
        
        doc.write($element.outer());
        doc.close();
        
        $iframe[0].contentWindow.focus();
        setTimeout( function() { $iframe[0].contentWindow.print(); }, 1000);
    }
    
    $.fn.jqprint.defaults = {
		debug: false,
		importCSS: true
	};

    // Thanks to 9__, found at http://users.livejournal.com/9__/380664.html
    jQuery.fn.outer = function() {
      return $($('<div></div>').html(this.clone())).html();
    } 
})(jQuery);
 */

 
function print_frag(link) {

 
 window.open(main_path+"drukuj.php?link="+link,null,"width=1000, height=800,status=yes,toolbar=yes,menubar=yes,location=no,resizable=1,scrollbars=1");
 
 
}


