function showWebcastLayer(id) {
	if ($('WebcastLayer'+id).visible()) {
		Effect.SlideUp('WebcastLayer'+id, {duration:0.5});
	} else {
		Effect.SlideDown('WebcastLayer'+id, {duration:0.5});
	}
}

function showOpinions(id) {
	if ($('opinion'+id).visible()) {
		Effect.SlideUp('opinion'+id, {duration:0.8});
	} else {
		Effect.SlideDown('opinion'+id, {duration:0.8});
	}
}

function showWebcast(id) {
	webcastPopup=window.open('/flash/webcast/?movie='+id,'webcst','width=800,height=540');
}

function showScreen(type, id) {
	var imgWidth = 0;
	var imgHeight = 0;

	var img = new Image();
	img.src = '/img/' + id;
	if (img.complete == true) {
		imgWidth = img.width;
		imgHeight = img.height;
		imgWidth += 30;
		imgHeight += 30;
		var pop = window.open('/img/'+id,'screen','toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1, resizable=1, width='+ imgWidth +', height='+imgHeight);
		pop.focus();
		return true;
	} else {
		img.onload = function() {
			imgWidth = img.width;
			imgHeight = img.height;
			imgWidth += 30;
			imgHeight += 30;
			var pop = window.open('/img/'+id,'screen','toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1, resizable=1, width='+ imgWidth +', height='+imgHeight);
			pop.focus();
			return true;
		}
	}
}

function showReport() {
	webcastPopup=window.open('/StatPoint/Raport.html','Raport','width=700,height=540,scrollbars=1');
}