function alertSize( ktora )
{
	var myWidth  = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		myWidth  = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		myWidth  = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		myWidth  = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	if ( ktora == 'wid' ) return myWidth;
	if ( ktora == 'hei' ) return myHeight;
}


function myszka_over( indeks )
{
	animacja_rejestruj( 0, 0, 1000, 20 );
	animacja_zrob( 0, indeks, 0, 500, 'width', 'px', 'now', 300, '' );
	animacja_zrob( 0, 'info1', 0, 500, 'fontSize', 'pt', 'now', 0, '' );
	animacja_zrob( 0, 'info2', 0, 500, 'fontSize', 'pt', 'now', 0, '' );
}

function myszka_out( indeks )
{
	animacja_rejestruj( 0, 0, 3000, 20 );
	animacja_zrob( 0, indeks,  0, 500, 'width', 'px', 'now', 200, '' );
	animacja_zrob( 0, 'info1', 0, 500, 'fontSize', 'pt', 'now', 12, '' );
	animacja_zrob( 0, 'info2', 0, 500, 'fontSize', 'pt', 'now', 12, '' );
}

function b0_end( id )
{
	var wid = alertSize('wid');
	var hei = alertSize('hei');
	var b_wid = 739;
	var b_hei = 563;
	var b_lef =  88; //0.5 * (wid - b_wid ); if ( b_lef < 0 ) b_lef = 0;
	var b_top = 136; //0.5 * (hei - b_hei ); if ( b_top < 0 ) b_top = 0;

	var el = document.getElementById( id );

	el.style.position  = 'absolute';
	el.style.left      = b_lef + 'px';
	el.style.top       = b_top + 'px';
	el.style.width     = b_wid + 'px';
	el.style.height    = b_hei + 'px';
	el.style.border    = 'solid 4px #00aaff';
	el.style.color     = '#000000';
	el.style.zIndex    = 1;
	el.style.backgroundColor = 'rgba(220, 245, 255, 0.95 )';
	el.style.textAlign = 'right';
	el.style.cursor    = 'pointer';
	el.style.fontSize  = '12px';
	el.style.padding   = '10px 0px 0px 0px';
	el.innerHTML       = 'Zamknij klikając na ogłoszenie...&nbsp;&nbsp;&nbsp;';
	el.onclick         = function(){ el.style.display = 'none'; };

	var el1 = document.createElement( 'div' );
	el.appendChild( el1 );
	el1.style.color     = '#0077cc';
	el1.style.textAlign = 'center';
	el1.style.fontSize  = '24px';
	el1.innerHTML       = 'Szanowni Państwo!<br>W szczególny sposób chcemy Państwu zaoferować:';

	var el1 = document.createElement( 'div' );
	el.appendChild( el1 );
	el1.style.color     = '#0077cc';
	el1.style.textAlign = 'left';
	el1.innerHTML       = '<img src="img/aparat_01.jpg" width="150px" style="float:left;width:150px;margin-left:10px;margin-right:10px;border:solid 0px #000000;" alt="aparat_01.jpg" /><span style="font-size:150%">BIOCARE FM-1 (KTG)</span><br><p style="font-size:10pt;color:#000000;">Monitor Biocare FM-1 służy do nieinwazyjnego pomiaru tętna płodu oraz czynności skurczowych mięśnia macicy. Dane te są pomocne w ocenie stanu płodu w ostatnim trymestrze ciąży. Aparat FM-1 umożliwia również monitoring ciąży bliźniaczej, dzięki zastosowaniu dwóch sond dopplerowskich.</p><hr color="#00aaff">';

	var el1 = document.createElement( 'div' );
	el.appendChild( el1 );
	el1.style.color     = '#0077cc';
	el1.style.textAlign = 'right';
	el1.innerHTML       = '<img src="img/aparat_02.jpg" width="150px" style="float:right;width:150px;margin-left:10px;margin-right:10px;border:solid 0px #000000;" alt="aparat_01.jpg" /><span style="font-size:150%">ENDOSKOP</span><br><p style="font-size:10pt;color:#000000;">Jest to najnowszy aparat endoskopowy umożliwiający oglądanie <br>wewnętrznych ścian narządów. Posiada duży monitor i możliwość <br>pobierania wycinków tkanek.</p><br><br><br>';

////////////////////////////////////////////////////////

	var el1 = document.createElement( 'div' );
	el.appendChild( el1 );
	el1.style.color        = '#cc0000';
	el1.style.textAlign    = 'center';
	el1.style.fontSize     = '18px';
	el1.style.fontWeight   = 'bold';
	el1.innerHTML          = '<hr color="#00aaff">Tanie zabiegi rehabilitacyjne!';
	el1.style.marginBottom = '5px';

	var el1 = document.createElement( 'div' );
	el.appendChild( el1 );
	el1.style.color     = '#000000';
	el1.style.textAlign = 'center';
	el1.style.fontSize  = '14px';
	el1.style.fontWeight = 'bold';
	el1.innerHTML       = 'ZADZWOŃ: 85 746 06 65';
	el1.style.marginBottom = '15px';

////////////////////////////////////////////////////////

	var el1 = document.createElement( 'div' );
	el.appendChild( el1 );
	el1.style.color        = '#cc0000';
	el1.style.textAlign    = 'center';
	el1.style.fontSize     = '18px';
	el1.style.fontWeight   = 'bold';
	el1.innerHTML          = '<hr color="#00aaff">Diagnostykę i leczenie prof. dr hab. n. med. Bogusława Kędry';
	el1.style.marginBottom = '5px';

	var el1 = document.createElement( 'div' );
	el.appendChild( el1 );
	el1.style.color        = '#000000';
	el1.style.textAlign    = 'center';
	el1.style.fontSize     = '13px';
	el1.innerHTML          = 'Chirurg, specjalista w zakresie gastroenterologii i onkologii przewodu pokarmowego. Nowoczesne metody diagnostyczne<br><span style="font-size:14px;font-weight:bold;">ZAPRASZAMY!!!</span>';
	el1.style.marginBottom = '15px';

////////////////////////////////////////////////////////

//	var el1 = document.createElement( 'div' );
//	el.appendChild( el1 );
//	el1.style.color        = '#007700';
//	el1.style.textAlign    = 'center';
//	el1.style.fontSize     = '16px';
//	el1.style.fontWeight   = 'bold';
//	el1.innerHTML          = '<hr color="#00aaff"><br>Uwaga! Eskulap zatrudni lekarza medycyny pracy.<br>Prosimy kontaktować się z Działem Kadr:<br><br>Pani Irena Taraszkiewicz<br><span class="tel">telefon: 085 745-00-38</span><br>email: <a href="mailto:irenat@eskulap.iig.pl">irenat@eskulap.iig.pl</a>';

}

////////////////////////////////////////////////////////

