function createStyleRule(_1,_2){
if(!document.getElementsByTagName||!(document.createElement||document.createElementNS)){
return;
}
var _3=navigator.userAgent.toLowerCase();
var _4=((_3.indexOf("msie")!=-1)&&(_3.indexOf("opera")==-1));
var _5=(_4&&(_3.indexOf("win")!=-1));
var _6=(_4&&(_3.indexOf("mac")!=-1));
if(_6){
return;
}
var _7=document.getElementsByTagName("head")[0];
var _8=(typeof document.createElementNS!="undefined")?document.createElementNS("http://www.w3.org/1999/xhtml","style"):document.createElement("style");
if(!_5){
var _9=document.createTextNode(_1+" {"+_2+"}");
_8.appendChild(_9);
}
_8.setAttribute("type","text/css");
_8.setAttribute("media","screen");
_7.appendChild(_8);
if(_5&&document.styleSheets&&document.styleSheets.length>0){
var _a=document.styleSheets[document.styleSheets.length-1];
if(typeof _a.addRule=="object"){
_a.addRule(_1,_2);
}
}
}
createStyleRule("#listings","display:none;");
function cssjs(a,o,c1,c2){
switch(a){
case "swap":
o.className=!cssjs("check",o,c1)?o.className.replace(c2,c1):o.className.replace(c1,c2);
break;
case "add":
if(!cssjs("check",o,c1)){
o.className+=o.className?" "+c1:c1;
}
break;
case "remove":
var _f=o.className.match(" "+c1)?" "+c1:c1;
o.className=o.className.replace(_f,"");
break;
case "check":
return new RegExp("\\b"+c1+"\\b").test(o.className);
break;
}
}
function camelize(_10){
var _11=_10.split("-");
if(_11.length==1){
return _11[0];
}
var _12=_10.indexOf("-")==0?_11[0].charAt(0).toUpperCase()+_11[0].substring(1):_11[0];
for(var i=1,len=_11.length;i<len;i++){
var s=_11[i];
_12+=s.charAt(0).toUpperCase()+s.substring(1);
}
return _12;
}
function setStyle(_15,_16){
for(var _17 in _16){
_15.style[camelize(_17)]=_16[_17];
}
}
function cleanWhitespace(_18){
for(var i=0;i<_18.childNodes.length;i++){
var _1a=_18.childNodes[i];
if(_1a.nodeType==3&&!/\S/.test(_1a.nodeValue)){
_1a.parentNode.removeChild(_1a);
}
}
}
var last=[];
var delayTimeout;
function initHome(_1b){
var _1c=document.getElementById("listings");
setStyle(_1c,{display:"block"});
cleanWhitespace(_1c);
pruneByTagName(_1c,"LI");
pruneByTagName(_1c,"LI");
_1c=_1c.childNodes;
var _1d;
for(var i=0;i<_1c.length;++i){
_1d=_1c[i];
cssjs("add",_1d,"closed");
setStyle(_1d,{height:"30px"});
YAHOO.util.Event.addListener(_1d,"mouseover",beginDelayedCollapse);
YAHOO.util.Event.addListener(_1d,"mouseout",cancelDelayedCollapse);
}
var _1f=randomFilter(_1c.length,_1b);
beginCollapse(_1c[_1f].id);
}
function pruneByTagName(_18,_21){
for(var i=0;i<_18.childNodes.length;++i){
var _23=_18.childNodes[i];
if(_23.tagName!=_21){
_23.parentNode.removeChild(_23);
}
}
}
function randomFilter(_24,_25){
var _18=Math.floor(Math.random()*_24);
for(var i=0;i<_25.length;i++){
if(_25[i]==_18){
return randomFilter(_24,_25);
}
}
return _18;
}
function beginDelayedCollapse(e){
cssjs("add",this,"active");
delayTimeout=setTimeout("beginCollapse('"+this.id+"');",175);
}
function cancelDelayedCollapse(e){
if(cssjs("check",this,"closed")){
cssjs("remove",this,"active");
}
clearTimeout(delayTimeout);
}
function beginCollapse(id){
var _2b=document.getElementById(id);
last.push(_2b);
if(last.length>3){
last.shift();
}
var _2c=true;
var _2d=last[(last.length)-2];
if(last.length===1){
_2c=false;
}else{
if(_2d===last[(last.length)-1]){
_2c=false;
}
}
if(_2c==true){
cssjs("remove",_2d,"active");
cssjs("add",_2d,"closed");
cssjs("remove",_2b,"closed");
cssjs("add",_2b,"active");
myAnim=new Tween(_2b.style,_2d.style,"height",Tween.regularEaseOut,30,175,0.4,"px");
myAnim.start();
}else{
if(cssjs("check",_2b,"closed")){
cssjs("remove",_2b,"closed");
cssjs("add",_2b,"active");
myAnim=new Tween(_2b.style,null,"height",Tween.regularEaseOut,30,175,0.4,"px");
myAnim.start();
}
}
}
function initHomeLegacy(_2e){
var _2f;
var _30=document.getElementById("listings");
setStyle(_30,{display:"block"});
cleanWhitespace(_30);
pruneByTagName(_30,"LI");
_30=_30.childNodes;
var _31;
var _32;
var _33;
var _34;
for(var i=0;i<_30.length;++i){
_31=_30[i];
oDivs=_31.getElementsByTagName("div");
_32=oDivs[0];
oText=oDivs[1];
oImage=_31.getElementsByTagName("img")[0];
oAnchors=_31.getElementsByTagName("a");
oSkip=oAnchors[(oAnchors.length-1)];
setStyle(_32,{display:"none"});
setStyle(_31,{height:"30px"});
cssjs("add",_31,"closed");
oImage.style.display="none";
oText.style.marginTop="0px";
_32.style.backgroundRepeat="no-repeat";
_32.style.backgroundImage="url("+oImage.src+")";
oSkip.style.display="none";
_31.onmouseover=beginCollapseLegacyWrapper;
}
var _36=randomFilter(_30.length,_2e);
beginCollapseLegacy(_30[_36].id);
}
function beginCollapseLegacyWrapper(){
beginCollapseLegacy(this.id);
}
function beginCollapseLegacy(id){
var _38=document.getElementById(id);
var _39;
last.push(_38);
if(last.length>3){
last.shift();
}
var _3a=true;
var _3b=last[(last.length)-2];
if(last.length===1){
_3a=false;
}else{
if(_3b===last[(last.length)-1]){
_3a=false;
}
}
if(_3a==true){
cssjs("remove",_3b,"active");
cssjs("add",_3b,"closed");
cssjs("remove",_38,"closed");
cssjs("add",_38,"active");
setStyle(_38,{height:"175px"});
setStyle(_3b,{height:"30px"});
_39=_3b.getElementsByTagName("div");
setStyle(_39[0],{display:"none"});
_39=_38.getElementsByTagName("div");
setStyle(_39[0],{display:"block"});
}else{
if(cssjs("check",_38,"closed")){
cssjs("remove",_38,"closed");
cssjs("add",_38,"active");
setStyle(_38,{height:"175px"});
_39=_38.getElementsByTagName("div");
setStyle(_39[0],{display:"block"});
}
}
}
if(typeof Array.prototype.copy=="undefined"){
Array.prototype.copy=function(a){
var i=0,b=[];
for(i;i<this.length;i++){
b[i]=(typeof this[i].copy!="undefined")?this[i].copy():this[i];
}
return b;
};
}
if(typeof Array.prototype.concat=="undefined"){
Array.prototype.concat=function(a){
var i=0,b=this.copy();
for(i;i<a.length;i++){
b[b.length]=a[i];
}
return b;
};
}
if(typeof Array.prototype.pop=="undefined"){
Array.prototype.pop=function(){
var b=this[this.length-1];
this.length--;
return b;
};
}
if(typeof Array.prototype.push=="undefined"){
Array.prototype.push=function(){
var i=0,b=this.length,a=arguments;
for(i;i<a.length;i++){
this[b+i]=a[i];
}
return this.length;
};
}
if(typeof Array.prototype.shift=="undefined"){
Array.prototype.shift=function(){
var i=0,b=this[0];
for(i;i<this.length-1;i++){
this[i]=this[i+1];
}
this.length--;
return b;
};
}
if(typeof Array.prototype.slice=="undefined"){
Array.prototype.slice=function(a,c){
var i=0,b,d=[];
if(!c){
c=this.length;
}
if(c<0){
c=this.length+c;
}
if(a<0){
a=this.length-a;
}
if(c<a){
b=a;
a=c;
c=b;
}
for(i;i<c-a;i++){
d[i]=this[a+i];
}
return d;
};
}
if(typeof Array.prototype.splice=="undefined"){
Array.prototype.splice=function(a,c){
var i=0,e=arguments,d=this.copy(),f=a;
if(!c){
c=this.length-a;
}
for(i;i<e.length-2;i++){
this[a+i]=e[i+2];
}
for(a;a<this.length-c;a++){
this[a+e.length-2]=d[a-c];
}
this.length-=c-e.length+2;
return d.slice(f,f+c);
};
}
if(typeof Array.prototype.unshift=="undefined"){
Array.prototype.unshift=function(a){
var b;
this.reverse();
b=this.push(a);
this.reverse();
return b;
};
}


