
var effectsOf = new Hash;
function HighLightElement( event ) 
{
	var eff;
	if( eff = effectsOf[this.innerHTML] ) {
		eff.cancel();
	}
	effectsOf[this.innerHTML] = 
	new Effect.Highlight(
		this, {
			duration: 0.3,
			startcolor: '#909090',
			endcolor: '#505050',
			restorecolor: '#505050',
	});
}
function BlurElement( event ) 
{
	var eff;
	if( eff = effectsOf[this.innerHTML] ) {
		eff.cancel();
	}
	effectsOf[this.innerHTML] = 
	new Effect.Highlight(
		this, {
			duration: 0.3,
			startcolor: '#505050',
			endcolor: '#282828',
			restorecolor: '#282828',
	});
}
function ReShowToolTip( event )
{
	var eff;
	if( eff = effectsOf[this.id] ) {
		eff.cancel();
	}
	effectsOf[this.id] = 
	new Effect.Appear(
		this, {
			duration: 0.3,
	});
}
function ReHideToolTip( event )
{
	var eff;
	if( eff = effectsOf[this.id] ) {
		eff.cancel();
	}
	effectsOf[this.id] = 
	new Effect.Fade(
		this, {
			delay: 0.3,
			duration: 0.7,
	});
}
function ShowToolTip( event )
{
	var jelolo = $( this.parentNode.id+'-jelolo' );
	if( !jelolo.style.top )	{
		jelolo.style.display = 'none';
		jelolo.style.visibility = 'visible';
	}
	var helyzet = this.cumulativeOffset();
	jelolo.style.left = (helyzet.left-jelolo.getWidth()-10)+'px';
	jelolo.style.top = helyzet.top+'px';
	var eff;
	if( eff = effectsOf[jelolo.id] ) {
		eff.cancel();
	}
	effectsOf[jelolo.id] = 
	new Effect.Appear(
		jelolo,	{
			duration: 0.3,
	});
}
function HideToolTip( event )
{
	var jelolo = $( this.parentNode.id+'-jelolo' );
	var eff;
	if( eff = effectsOf[jelolo.id] ) {
		eff.cancel();
	}
	effectsOf[jelolo.id] = 
	new Effect.Fade(
		jelolo,	{
			delay: 0.3,
			duration: 0.7,
	});
}

function SetEffectTriggers()
{
	var menupontok = $$('li.menu > ul > li > a');
	for( var i=0; i<menupontok.length; ++i ) {
		menupontok[i].observe( 'mouseover', HighLightElement );
		menupontok[i].observe( 'mouseout', BlurElement );
	}
	var napok = $$('div#naptar > table > tbody > tr > td');
	for( var i=0; i<napok.length; ++i ) {
		if( !napok[i].hasClassName('esemenynap') ) {
			napok[i].observe( 'mouseover', HighLightElement );
			napok[i].observe( 'mouseout', BlurElement );
		} else {
			napok[i].firstChild.observe( 'mouseover', ShowToolTip );
			napok[i].firstChild.observe( 'mouseout', HideToolTip );
			$( napok[i].id+'-jelolo' ).observe( 'mouseover', ReShowToolTip );
			$( napok[i].id+'-jelolo' ).observe( 'mouseout', ReHideToolTip );
		}
	}
}
document.observe( 'dom:loaded', SetEffectTriggers );

/*
function ChangeTab( event )
{
	new Ajax.Request( , { '/cikkek'
		onSuccess: function(r){ $('tartalom').innerHTML = r.responseText },
		contentType: 'application/x-www-form-urlencoded',
		method: 'get',
		parameters: this.getAttribute('href')
		
	});
	event.stop();
}*/

function HirlevSent( event )
{
	try {
	new Ajax.Request('/your/url', {
	onSuccess: function(response) {
    // Handle the response content...
	}
});

	new Ajax.Request( '/rendszer/utasitas.php' , {
		onSuccess: function(r){ $('tartalom').innerHTML = r.responseText },
		contentType: 'application/x-www-form-urlencoded',
		method: 'post',
		parameters: $H({ email: this.previous().getValue(), method: 'ajax', utasitas: 'levlist_feliratkozas' }),
	});
	
	} catch(e) {alert(e);} 
	finally {
	event.stop();
	}
}

function SetAjaxTriggers()
{
	/*tartnav = $$('ul.tartnav > li > a');
	for( var i=0; i<menupontok.length; ++i ) {
		tartnav[i].observe( 'click', ChangeTab );
	}*/
	//$$('form#hirlevel input[type="submit"]').first().observe( 'click', HirlevSent );
}
document.observe( 'dom:loaded', SetAjaxTriggers );


<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://stats.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://stats.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->

