function stopError() {
return true;
}
window.onerror = stopError;
/*window.onload=init;

function init()
{
	hideshow();
}
*/

$(document).ready(
	function()
	{
		
		//-----> photslice
		existingLoadEvent();
		PhotoSlice.setEvents();
		//-----//
		//$(".hide-show").click(
		//															function ()
		//															{
		//																var id=this.getAttribute('id').substr(2);
		//																$("#"+id).toggle("slow");
		//															}
		//														);   
		if(document.getElementById('buton-pauza'))
		{	document.getElementById('buton-pauza').onclick=pauza;	}
		
if(theScroll.length>0) {
		for(var i=0;i<theScroll.length;i++){
			createDragger(i, "handle"+i, "root"+i, "thumb"+i, theScroll[i].clipW, theScroll[i].clipW, 13, theScroll[i].clipH-22);
		} }
		
		
		}
	
)



var player = null; 
function playerReady(thePlayer) { player = window.document[thePlayer.id]; }

function pauza()
{
	player.sendEvent('PLAY');
	return false;
}

function incarcaFilm(film)
{
	player.sendEvent('STOP');
	player.sendEvent('LOAD',film);
	return false;
}





function on(img)
{	document[''+ img +''].src='img/meniu3/' + img + '-on.png';	}
function off(img)
{	document[''+ img +''].src='img/meniu3/' + img + '.png';	}

function on2(img)
{	document[''+ img +''].src='img/meniu4/' + img + '-on.png';	}
function off2(img)
{	document[''+ img +''].src='img/meniu4/' + img + '.png';	}

function on3(img)
{	document[''+ img +''].src='img/rec/' + img + '-on.jpg';	}
function off3(img)
{	document[''+ img +''].src='img/rec/' + img + '.jpg';	}


// POPUP
<!--
function deschide2 (url, w, h) {
open(url, "",
'menubar=no,directories=no,location=no,resizable=no,scrollbars=yes,width=' + w + ',height=' + h);
}
//-->
