/**
 * @author Piotr Czajka
 */
function initCzat() {	
	// uzywane do naprawienia bledy position: fixed w IE
	if (navigator.appName == IE) {
		$('html').css({'height':'100%', 'margin':'0', 'padding':'0', 'overflow':'hidden'});
		$('body').css({'height':'100%', 'margin':'0', 'padding':'0', 'overflow':'hidden'});
		
		// uzzycie jQuery usuwa wszystkie CSS w srodku, dlatego uzylem zwyklego JS
		//$('body').wrapInner('<div style="overflow:auto; height:100%;"></div>');
		document.body.innerHTML = '<div style="overflow:auto; height:100%;">' + document.body.innerHTML + '</div>';
	}
	
	// dodanie do body elementu DIV
	$('body').append('<div id="popup_czat"></div>');
	
	// ustawienie stalych styli css
	$('#popup_czat').css({
		'display':'none',
		'position':'fixed'
	});
	
	// uzywane do naprawienia bledy position: fixed w IE
	if (navigator.appName == IE) {
		$('#popup_czat').css('position', 'absolute');
	}	
	
}

function ustawModelkiwIE(){
	if (navigator.appName == 'Microsoft Internet Explorer') {
		//alert(screen.height);
		document.getElementById('tb').style.overflow = 'hidden';
		document.getElementById('tb').style.height = 500+'px';
		//document.getElementById('tb').style.border = '1px solid red';
	}
}

function modelki(t){
	m1 = document.getElementById('modelka_l');
	m2 = document.getElementById('modelka_p');
	if (screen.width <= 1200) {
		m1.style.display = 'none';
	}
	else {
		var str = new Array()
		var text1 = 'AMATORSKIE<br>PORNO<br>KLIKNIJ';
		var t1 = text1.fontcolor('blue');
		var text2 = 'SUPER SEX<br>ZA 50 gr!!!<br>KLIKNIJ';
		var t2 = text2.fontcolor('red');

		if (t == 1) {
			m1.innerHTML = '<a target="_blank" href="/serwis-filmowy/">' + t1.bold() + '</a>';
			m2.innerHTML = t2.bold();
			t = 0;
		}
		else {
			m1.innerHTML = '<a target="_blank" href="/serwis-filmowy/">' + t1.fontsize(1) + '</a>';
			m2.innerHTML = t2.fontsize(2);
			t++;
		}
		m1.style.top = document.body.clientHeight-255;
		m2.style.top = document.body.clientHeight-240;
		setTimeout("modelki(" + t + ")", 1000);
	}
}

