function enlarge(element){
	var max=200;
	var el=document.getElementById(element);
	var size= parseInt(el.style.fontSize);

	if ( size < max ) {
		el.style.fontSize = (size + 15) + '%';
	}
	
	return false;
}


/* ********************************************************************** */


function minimize(element){
	var min=60;
	var el=document.getElementById(element);
	var size= parseInt(el.style.fontSize);

	if ( size > min ) {
		el.style.fontSize = (size - 15) + '%';
	}
	
	return false;
}


/* ********************************************************************** */


function normal(element){
	document.getElementById(element).style.fontSize = "90%";
	
	return false;
}


/* ********************************************************************** */


// start strony
function lwInit() {

}


/* ********************************************************************** */


// drukuj
 function PrntNewWin(x){
  //location.replace(x);
  newwindow=window.open(x,'name');
	if (window.focus) {newwindow.focus()}
	return false;

  window.print();
  
}
 function Prnt(){
 
 window.print();

}

/* ********************************************************************** */


function otworz(adres) {
	noweOkno=window.open(adres, 'okienko', 'menubar=no, toolbar=yes, location=no, scrollbars=yes, resizable=no, status=no, width=603, height=613,left=100,top=100');
	noweOkno.focus()
}


/* ********************************************************************** */


// pokazanie/ukrycie formularza do wyslania przetargu mailem na liscie
// przetargow lub w jego szczegolach
function toggleEmailAuction(pId) {
	$('#auction_mail_form_' + pId).toggle();

	return false;
}


/* ********************************************************************** */


// zaznaczenie aktywnej pozycji menu strony
function selectActiveMenu(pId) {
	var tElements = new Array();
	var el;
	var el_parent;
	var it = 3;
	var i = 0;
	var res = false;
	var j = 1;
	var gl = 4;

	while ( j < gl && !res ) {  
		i = 0;
		tElements[0] = $('#menu_item_' + pId + '_' + j);

		while ( i < it && !res ) {
			el_parent = tElements[i].parent().parent();

			if ( el_parent.attr('id') == 'main_menu' ) {
				tElements[i].addClass('active');
				res = true;
			} else {
				i++;
				tElements[i] = tElements[i - 1].parent().parent();
			}
		}
		
		j++;
	}
}


/* ********************************************************************** */
/* ********************************************************************** */
/* ********************************************************************** */
/* ********************************************************************** */
/* ********************************************************************** */