/* functions - stop lysieniu*/
var manuKrotkieA = new Array();	//także długie
manuKrotkieA[ 0 ]						= '0 1px';
manuKrotkieA[ 'abc-wlosa' ]				= '0 -40px';
manuKrotkieA[ 'dlaczego-wypadaja' ]		= '0 -81px';
manuKrotkieA[ 'metody-leczenia' ]		= '0 -122px';
manuKrotkieA[ 'jak-wyleczyc-lysienie' ] = '0 -163px'
manuKrotkieA[ 'pielegnacja-wlosow' ]	= '0 -204px'
manuKrotkieA[ 'kacik-eksperta' ]		= '0 -245px'
manuKrotkieA[ 'faq' ]					= '0 -286px'
manuKrotkieA[ 'blogi' ]					= '0 -327px'
manuKrotkieA[ 'forum' ]					= '0 -368px'

function hoverMenu( element_id, box_id, on_page ) {
	on_page  = ( on_page == '' )? 0:on_page;
	if( element_id != on_page ){
		get( box_id ).style.backgroundPosition = manuKrotkieA[ element_id ];
	}
}

function unHoverMenu( element_id, box_id, on_page ) {
	on_page  = ( on_page == '' )? 0:on_page;
	if( element_id != on_page ){
		get( box_id ).style.backgroundPosition = manuKrotkieA[ on_page ];
	}
}

//main-tabs
var showed = new Array();
var tabd = new Array();

function showTab( box, no, extra ){
	var sh = box+"_cont_"+no;
	var th = box+"_"+no;
	if( showed[ box ] != undefined && extra != 'nocont' ){	hide( showed[ box ] );	}
	if( tabd[ box ] != undefined  && extra != 'notab' ){	get( tabd[ box ] ).className = '';	}
	if( extra != 'nocont' ) show( sh );
	if( extra != 'notab' ) 	get( th ).className = 'seld';
	
	showed[ box ] = sh;
	tabd[ box ] = th;
}