function email(){$('stext').addEvent('focus', function(){this.style.background='#fff09e'});$('stext').addEvent('blur', function(){this.style.background=''}); var a,b;a='<a hr';b='rfq';a+='ef="mai';b+='@';a+='lto:';b+='tokenonline.net';return a+b+'">'+b+'</a>';}
window.addEvent('domready', function(){
Fx.Morph = Fx.Styles.extend({
start: function(className){
var to = {};
$each(document.styleSheets, function(style){
var rules = style.rules || style.cssRules;
$each(rules, function(rule){
if (!rule.selectorText.test('\.' + className + '$')) return;
Fx.CSS.Styles.each(function(style){
if (!rule.style || !rule.style[style]) return;
var ruleStyle = rule.style[style];
to[style] = (style.test(/color/i) && ruleStyle.test(/^rgb/)) ? ruleStyle.rgbToHex() : ruleStyle;
});
});
});
return this.parent(to);
}
});
Fx.CSS.Styles = ["backgroundColor","backgroundPosition","color","width","height","left","top","bottom","right","fontSize","letterSpacing","lineHeight","textIndent","opacity"];
Fx.CSS.Styles.extend(Element.Styles.padding);
Fx.CSS.Styles.extend(Element.Styles.margin);
Element.Styles.border.each(function(border){
['Width', 'Color'].each(function(property){
Fx.CSS.Styles.push(border + property);
});
});
var fyr=$('flyer');
var syr=$('scrflyer');
var zMorph = new Fx.Morph('frammorpher', {duration:300});
syr.innerHTML=fyr.innerHTML;
if (fyr.parentNode) fyr.parentNode.removeChild(fyr);
var pltlist = $$('.plrt ul');
var mrts = $$('.plrt');
var orgflag = true;
pltlist.each(function(plts,i){
plts.style.display='none';
var zv=document.createElement("span");
zv.innerHTML='<img src="image/tokenul.gif" style="width:9px;height:9px">';
zv.id='zidx'+i;
zv.className='zidxcss';
zv.title='MORE...';
zv.style.cssText='font-size:9px;display:inline-block;border:1px solid #577;width:9px;height:9px;cursor:pointer';
zv.style.backgroundColor='#577';
mrts[i].appendChild(zv);
$('zidx'+i).addEvent('click', function(e){
if(this.title=='MORE...'){
if(orgflag){
$('frammorpher').innerHTML='<ul>'+plts.innerHTML+'</ul>';
this.style.backgroundColor='#f90';
this.title='CLOSE';
orgflag=false;
zMorph.start('hovrame');
}else{
$$('.zidxcss').each(function(eplt){eplt.style.backgroundColor='#577';eplt.title='MORE...';});
zMorph.start('hoorame');
setTimeout(function(){$('frammorpher').innerHTML='<ul>'+plts.innerHTML+'</ul>';$('zidx'+i).style.backgroundColor='#f90';$('zidx'+i).title='CLOSE';orgflag=false;zMorph.start('hovrame');}, 400);
}
}else{
this.style.backgroundColor='#577';
this.title='MORE...';
orgflag=true;
zMorph.start('hoorame');
}
});
});
});