am = "mogyoro.hu";

bV  = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"

function nrc(e) {
   if (bNS && e.which > 1){
      alert(am)
      return false
   } else if (bIE && (event.button >1)) {
     alert(am)
     return false;
   }
}

document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;

function StartMogyoro() { mogyoro.play(); }

function StopMogyoro() { mogyoro.stop(); mogyoro.currentPosition = 0; }

function PauseMogyoro() { mogyoro.Pause(); }

function nextentryMogyoro() 
{ 
	if ( mogyoro.currentPosition < 40 ) { alert('Csak egy perc hallgatás\nután kérhetsz új felvételt!'); }
	else { mogyoro.next(); }
}

function preventryMogyoro() { mogyoro.previous(); }

function fullscreen() { mogyoro.DisplaySize = 3 ; }

function eloreMogyoro() {

var total = mogyoro.duration;
    totalpertiz = total/10;
    aktual =  mogyoro.currentPosition;
{
    mogyoro.currentPosition = totalpertiz+aktual;
    mogyoro.play();
} }

function hatraMogyoro() {

var total = mogyoro.duration;
    totalpertiz = total/10;
    aktual = mogyoro.currentPosition;
{
    mogyoro.currentPosition = aktual-totalpertiz;
    mogyoro.play();
} }

function csuszka()

   { var position = Math.ceil(mogyoro.currentPosition);
     var lenght = Math.ceil(mogyoro.duration);
     var lenghtseged = ((lenght < 1) ? 1 : lenght);
     var positionseged = ((position < 1) ? 1/320 : position);
     with (this.document)
	{
	skala = Math.ceil((positionseged*320)/lenghtseged)
	images[43].width=skala; 
	setTimeout("csuszka()",200);
	}
   }

function spigi_csuszka()

   { var position = Math.ceil(mogyoro.currentPosition);
     var lenght = Math.ceil(mogyoro.duration);
     var lenghtseged = ((lenght < 1) ? 1 : lenght);
     var positionseged = ((position < 1) ? 1/320 : position);
     with (this.document)
	{
	skala = Math.ceil((positionseged*320)/lenghtseged)
	images[50].width=skala; 
	setTimeout("spigi_csuszka()",200);
	}
   }


function frissit()

   { var position = Math.ceil(mogyoro.currentPosition);
     var lenght = Math.ceil(mogyoro.duration);
     {
	
	if ( position == lenght-5 ) { top.clipinfo.location.reload(); } 
	 
	setTimeout("frissit()",10);
	}
   }