/**
 * IDMultimedia JavaScript public scripts
 * 
 * @author Bartłomiej Marciniuk (redliquid)
 * @version 0.1
 */


function showNews(newsId)
{
	setContainerWide();

	$.ajax({
		url: hostName + language + '/' + module + '/' + newsId + ',dummy.html',
		cache: false,
		type: "GET",
		data: null,
		success: function(data){
			data = $.JSON.decode(data);
			$('#newsContainer').html(data.xhtml);
			$('#back').show();


		},
		beforeSend: function(XMLHttpRequest){


		},
		error: function(XMLHttpRequest, textStatus, errorThrown){
			alert(textStatus);
		}
	});

	

	return false;
}

function setContainerWide()
{
	$('.box').width(930);
	$('.box div.inner').width(689);
	$('.box div.right div.bottom').css({right: '106px'});
	$('.box img.line').width(689);
	$('.box ul.verticalTextList').width(650);
}
