new Asset.javascript('../../../cssjs/niftys.js');
document.write('<link href="../../../cssjs/niftys.css" rel="stylesheet" type="text/css">');
window.addEvent('domready', function(){
if (($('prodt')) && ($('gprod'))) {$('prodt').setText($('gprod').getText());}
Nifty("div#content","big transparent");
function m_e(meo,meostyle,meh,meosa){if(meostyle!='')meo.setStyles(meostyle);if(meo.getElement('a'))meo.getElement('a').setStyles(meosa);meh.style.visibility='visible';}
function m_l(mlo,mlostyle,mlh,mlosa){if(mlostyle!='')mlo.setStyles(mlostyle);if(mlo.getElement('a'))mlo.getElement('a').setStyles(mlosa);mlh.style.visibility='hidden';}
function mtodo(pes,psye,psyl,pls,mssae,mssal){
if(mssae==null) mssae='';
if(mssal==null) mssal='';
pes.addEvent('mouseenter',function(){m_e(pes,psye,pls,mssae);});
pes.addEvent('mouseleave',function(){m_l(pes,psyl,pls,mssal);});
pls.addEvent('mouseenter',function(){m_e(pes,psye,pls,mssae);});
pls.addEvent('mouseleave',function(){m_l(pes,psyl,pls,mssal);});
}
var menujrt = $$('li.jtr');
var lieleft = 0;
menujrt.each(function(lielt,pv) {
if(pv==0) lieleft = 10;
else lieleft = menujrt[pv-1].getCoordinates().width + lieleft;
var sonul = lielt.getElement('ul').setStyles('background-color:#009;display:inline-block;margin-left:' + lieleft + 'px;padding:5px 12px 9px 10px;margin-top:-8px;list-style-type:none;z-index:199;position:absolute;visibility:hidden').injectInside('mendis');
var _pos = sonul.getCoordinates();
sonul.style.width=_pos.width-22+'px';
mtodo(lielt,'cursor:pointer;color:#fff;background-color:#009','color:#000;background-color:#e3e505',sonul,'color:#ff9','color:#006');
});
Nifty("div.imgf","transparent");

$$('a').each(function(ael){ael.onfocus=function(){ael.blur()};});
var allcka = $$('.imgf a');
var myFx = new Fx.Style($('largeimage'),'opacity');
allcka.each(function(amt){
if(amt.title != "") {
amt.title=":: " + amt.title;
var mtips = new Tips(amt,{className:'custom'});
amt.getElement('img').style.background='url('+amt.getElement('img').src+') no-repeat center center #fff';
amt.getElement('img').src='../../../../image/dlayer/tokenul.gif';
}
amt.addEvent('click', function(e){
if(amt.hasClass('c')) {e=new Event(e).stop(); myFx.start(1,0).chain(function(){myFx.start(0,1);});} else {amt.setOpacity(0.5);}
});
});
});
