/**
 * Any usage of the code below without the author's permission is denied
 * Designed by PP piskorp@interia.pl
 * All rights reserved 
 * (C) 2007 - 2008
 * ver. rc1
 *
*/
txt=" Witamy na stronach wiejskiego serwisu internetowego NASZE Trzebownisko. Wszystkich mieszkańców a&nbsp;także naszych Przyjaciół, z&nbsp;kraju i&nbsp;zagranicy, gorąco zapraszamy do udziału w&nbsp;redagowaniu witryny. Na interesujące informacje, uwagi i&nbsp;propozycje, na ciekawe zdjęcia oczkujemy zwłaszcza od naszych ziomków, których los rzucił daleko od rodzinnego gniazda. Dzięki internetowi znów jesteśmy RAZEM!!!";
line=""; for(i=0;i<10;i++) line+=txt;
function intro(){
	$('welcPnl').show();
	$('adBar').show();
	animateAdTxt();
}
function animateAdTxt(){
	$('adBar').show();
 	line = line.replace(/\s/g,"&nbsp;");
 	document.getElementById('adBar').innerHTML = line;
 	line = line.replace(/&nbsp;/g," ");
 	line = line.substring(1,line.length)+line.substring(0,1);
 	setTimeout('animateAdTxt()',130);
}
function loadPage(){
	document.getElementById('bgPanel').style.display='none';
	document.getElementById('preloader').style.display='block';
}
function pageIsReady(){
	document.getElementById('preloader').style.display='none';
	document.getElementById('bgPanel').style.display='block';
}
function changeImages(){
	if (document.images ){
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
function disableSelection(target){
if (typeof target.onselectstart!="undefined") 
	target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") 
	target.style.MozUserSelect="none"
else 
	target.onmousedown=function(){return false}
target.style.cursor = "default"
}
