function recommendFilm(id, archiv)
{
	var okno = window.open("/mktv/recommend.php?id="+id+"&type="+archiv,"","height=450,width=400,top=10,left=50,resizable=no,toolbar=no,status=no,location=no");
	okno.focus();
}

function suggest()
{
	var okno = window.open("suggest.php","","height=450,width=350,top=10,left=50,resizable=no,toolbar=no,status=no,location=no");
	okno.focus();
}
function notice()
{
	var okno = window.open("notice.php","","height=450,width=350,top=10,left=50,resizable=no,toolbar=no,status=no,location=no");
	okno.focus();
}
function showBookmark(id, page)
{
	switch(id)
	{
		case 1:
			$('recommended').style.textDecoration = 'underline';
			$('latest').style.textDecoration = 'none';
			$('mostViewed').style.textDecoration = 'none';
			break;
		case 2:
			$('recommended').style.textDecoration = 'none';
			$('latest').style.textDecoration = 'underline';
			$('mostViewed').style.textDecoration = 'none';
			break;
		case 3:
			$('recommended').style.textDecoration = 'none';
			$('latest').style.textDecoration = 'none';
			$('mostViewed').style.textDecoration = 'underline';
			break;						
	}
	
    var url = "/mktv/_ajax/getContent.php";
    var zapytanie =	new Request.HTML({
    	method: 'get',
    	url: url,
    	data: 'id='+id+'&page='+page,
    	onRequest: function() { $('tv_see_body_cont').innerHTML = '<div style="text-align: center; margin: 100px 0px 10px 0px;width:100%;height:180px;"><img src="/mktv/_img/load.gif" alt="Loading..."/></div>';  },
		evalScripts: true,
    	update: $('tv_see_body_cont')
    }).send();
}

function showBookmarkArchiv(id, page)
{	
	$('p2006').style.textDecoration = 'none';
	$('p2007').style.textDecoration = 'none';
	$('p2008').style.textDecoration = 'none';
	$('p'+id).style.textDecoration = 'underline';
	
    var url = "/mktv/_ajax/getContentArchiv.php";
    var zapytanie =	new Request.HTML({
    	method: 'get',
    	url: url,    	
    	data: 'type=archiv&id='+id+'&page='+page,    	
    	onRequest: function() { $('tv_see_body_cont').innerHTML = '<div style="text-align: center; margin: 100px 0px 10px 0px;width:100%;height:180px;"><img src="/mktv/_img/load.gif" alt="Loading..."/></div>';  },
		evalScripts: true,
    	update: $('tv_see_body_cont')
    }).send();
}
function showBookmarkComments(act, id, page, arch)
{
	var field;
	switch(act)
	{
		case 1:
			field = 'add';
			break;
		case 2:
			field = 'list';
			break;
		case 3:
			field = 'archiv';
			break;						
	}
	
	$('add').style.textDecoration = 'none';
	$('list').style.textDecoration = 'none';
//	$('archiv').style.textDecoration = 'none';
	$(field).style.textDecoration = 'underline';

	
    var url = "/mktv/_ajax/getContentComments.php";
    new Request.HTML({
    	method: 'get',
    	url: url,    	
    	async:false,
    	data: 'act='+field+'&id='+id+'&str='+page+'&arch='+arch,
    	onRequest: function() { $('tv_comment_body_cont').innerHTML = '<div style="text-align: center; margin: 100px 0px 10px 0px;width:100%;height:180px;"><img src="/mktv/_img/load.gif" alt="Loading..."/></div>';  },
		evalScripts: true,
		postBody:$('addcomment'),
    	update: $('tv_comment_body_cont')
    }).send();
}

function showBookmarkAddComments()
{
	var url = "/mktv/_ajax/getContentComments.php";
	new Request.HTML({
		url:url,
		data: 'act=add',
		onRequest: function() { $('tv_comment_body_cont').innerHTML = '<div style="text-align: center; margin: 100px 0px 10px 0px;width:100%;height:180px;"><img src="/mktv/_img/load.gif" alt="Loading..."/></div>';  },
		update: 'tv_comment_body_cont'
	}).post($('addcomment'));
	
 
}
/*
function GetDateCounter(){

	dateNow = new Date();									//grab current date
	alert(dateNow.getSeconds());
	$('mktv_date').set('html', dateNow.getDate()+'-'+(dateNow.getMonth()+1)+'-'+dateNow.getFullYear()+' '+dateNow.getHours()+':'+dateNow.getMinutes()+':'+dateNow.getSeconds());
}
function startCount() {
	window.addEvent('domready', function() { 	
		setTimeout("GetDateCounter()", 1000);
	});
}
*/