function _(sId){return document.getElementById(sId);}

function showHide(el,show,dispStyle)
{
	if (!dispStyle) dispStyle = 'block';
	var _e = _(el);
	if (show)
		_e.style.display=dispStyle;
	else
		_e.style.display='none';
}
function togggle(el)
{
	var _e = document.getElementById(el);
	if(_e.style.display=='' || _e.style.display=='none')
		_e.style.display='block';
	else
		_e.style.display='none';
}

function showImg(path, title, winName)
{
	window.open('showImg.htm?i='+encodeURIComponent(path)+'&title='+encodeURIComponent(title),winName,'toolbar=no,status=yes,location=no,menubar=no,width=200,height=100,left=150,top=50');
}
function showImgGl(path,title,descr,winName)
{
	window.open('showImgGl.htm?i='+encodeURIComponent(path)+'&amp;title='+encodeURIComponent(title)+'&amp;descr='+encodeURIComponent(descr),winName,'resizable=yes,toolbar=no,status=yes,location=no,menubar=no,width=200,height=100,left=150,top=0');
}
// -----------------------------------------------------------------------------

function fReq(virgullu)
{
	var names = virgullu.split(",");
	var elArr;
	var el;
	for (i=0;i<names.length;i++) {
		elArr = document.getElementsByName(names[i]);
		el = elArr[0];
		var ck=true;
		if (el.type=='radio') {
			ck = false;
			for (j=0;j<elArr.length;j++)
				if (elArr[j].checked) ck = true;
		}
		if (el.value=='' || !ck) {
			alert(YZ_LANG['FREQ1']+el.title+YZ_LANG['FREQ2']);
			el.focus();
			return false;
		}
	}
	return true;
}

// -----------------------------------------------------------------------------

function ubResYukle(id, rev)
{
	var curId = null;
	$$('.ubResUst a').each(function(s){
		if (s.visible()) {
			var sid = s.identify();
			curId = sid.substring(sid.lastIndexOf('_')+1, sid.length);
		}
		if (curId != id) {
			s.hide();
		}
	});
	if (curId != id) {
		new Effect.Appear($('ubResA_'+id), {duration:0.5});
	}
}

// -----------------------------------------------------------------------------

document.observe("dom:loaded", function() {
	$$('.mo').each(function(s) {
		Event.observe(s,'mouseover',function(){
			s.removeClassName('normal');
			s.addClassName('over');

		});
		Event.observe(s,'mouseout',function(){
			s.removeClassName('over');
			s.addClassName('normal');
		});
	});
});

// -----------------------------------------------------------------------------

var _sifrFont_armb = { src: 'swf/sifrFont/arialRoundedMtBold.swf' };
sIFR.activate(_sifrFont_armb);
var _sifrFont_taho = { src: 'swf/sifrFont/tahoma.swf' };
sIFR.activate(_sifrFont_taho);

sIFR.replace(_sifrFont_armb, {
	selector: '.armbBas',
	transparent: true,
	css: {
		'.sIFR-root': { 'color': '#959595' }
	},
	filters: {
		DropShadowFilter: {
			strength:1
			,blurY:0
			,blurX:0
			,color:'#959595'
			,angle:45
			,distance:1
		}
	}
});
sIFR.replace(_sifrFont_armb, {
	selector: 'h2',
	transparent: true,
	css: {
		'.sIFR-root': { 'color': '#666666' }
	},
	filters: {
		DropShadowFilter: {
			strength:2
			,blurY:0
			,blurX:0
			,color:'#CCCCCC'
			,angle:215
			,distance:1
		}
	}
});
/*sIFR.replace(_sifrFont_taho, {
	selector: '.tahoBas',
	transparent: true,
	css: [ '.sIFR-root { color: #008b8a; font-weight: bold; }' ]
});*/

// -----------------------------------------------------------------------------




