function hideRightSearch() {
	var tds = jQuery("#rightctl > table > tbody > tr > td");
	if (tds.length == 3) {
		jQuery(tds[1]).hide();
		jQuery(tds[2]).hide();
	}
}

/**
 * pokazuje losowe loga operatorów
 * @param {Object} arrIdx
 */
function showLogos(arrIdx) {
	var currIdx = 0;
	setInterval(function(){
		jQuery("#opLogo").fadeOut("slow",function(){
			document.getElementById("opLogo").src = 'img/logos/' + arrIdx[currIdx] + '.gif';
			jQuery("#opLogo").fadeIn("slow");			
		});				
		currIdx++;
		if (currIdx == arrIdx.length) currIdx = 0;
	},3000);
}

function iFrameHeight(strFrameId) {
	var h = 0;
	if (!document.all) {
		h = document.getElementById(strFrameId).contentDocument.height;
		document.getElementById(strFrameId).style.height = h + 60 + 'px';
	} else if( document.all ) {
		h = document.frames(strFrameId).document.body.scrollHeight;
		document.all.blockrandom.style.height = h + 20 + 'px';
	}
}

function showGallery(rel) {
	jQuery(document).ready(function(){
		jQuery("a[rel='" + rel + "']").colorbox({
			current: "zdjęcie {current} z {total}",
			previous: "poprzednie",
			next: "następne"
		});
	})
}
