var EB=new Array();
EB.namespaceprefix="eb:";
EB.scriptprefix="/js/";
EB.addEvent=function(_1,_2,fn){
if(_1.addEventListener){
_1.addEventListener(_2,fn,false);
}else{
if(_1.attachEvent){
_1["e"+_2+fn]=fn;
_1[_2+fn]=function(){
_1["e"+_2+fn](window.event);
};
_1.attachEvent("on"+_2,_1[_2+fn]);
}else{
_1["on"+_2]=fn;
}
}
};
EB.removeEvent=function(_4,_5,fn){
if(_4.removeEventListener){
_4.removeEventListener(_5,fn,false);
}else{
if(_4.detachEvent){
_4.detachEvent("on"+_5,_4[_5+fn]);
_4[_5+fn]=null;
_4["e"+_5+fn]=null;
}else{
_4["on"+_5]=null;
}
}
};
EB.getElementOptions=function(el,_8,_9){
if(_8==null){
_8=EB.namespaceprefix;
}
var _a=_9;
for(var i=0;i<el.attributes.length;i++){
if(el.attributes[i].name.substr(0,_8.length)==_8){
var n=el.attributes[i].name.substr(_8.length,el.attributes[i].name.length-_8.length);
_a[n]=el.attributes[i].value;
}
}
return _a;
};
EB.includeScript=function(_d,_e){
var _f=document.getElementsByTagName("HEAD")[0];
if(!_f){
return false;
}
var s=document.createElement("SCRIPT");
if(!_e){
_e="text/javascript";
}
s.setAttribute("type",_e);
s.setAttribute("src",_d);
_f.appendChild(s);
};
EB.setCookie=function(_11,_12,_13,_14,_15,_16){
document.cookie=_11+"="+escape(_12)+((_13)?"; expires="+_13.toGMTString():"")+((_14)?"; path="+_14:"")+((_15)?"; domain="+_15:"")+((_16)?"; secure":"");
};
EB.getCookie=function(_17){
var dc=document.cookie;
var _19=_17+"=";
var _1a=dc.indexOf("; "+_19);
if(_1a==-1){
_1a=dc.indexOf(_19);
if(_1a!=0){
return null;
}
}else{
_1a+=2;
}
var end=document.cookie.indexOf(";",_1a);
if(end==-1){
end=dc.length;
}
return unescape(dc.substring(_1a+_19.length,end));
};
EB.delCookie=function(_1c,_1d,_1e){
if(EB.getCookie(_1c)){
document.cookie=_1c+"="+((_1d)?"; path="+_1d:"")+((_1e)?"; domain="+_1e:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
};
EB.getEventTarget=function(e){
if(!e){
e=window.event;
}
return (e.target)?e.target:e.srcElement;
};
EB.registerAttribute=function(_20,_21,_22){
if(typeof EB._attributes!="object"){
EB._attributes=new Array();
}
if(typeof EB._attributes[_20]!="object"){
EB._attributes[_20]=new Array();
}
EB._attributes[_20][EB._attributes[_20].length]=[_21,_22];
};
EB.processAttributes=function(){
if(typeof EB._attributes!="object"){
return;
}
for(var tag in EB._attributes){
if(typeof EB._attributes[tag]=="function"){
continue;
}
var _24=document.getElementsByTagName(tag);
for(var i=0;i<_24.length;i++){
var _26=EB._attributes[tag];
for(var j=0;j<_26.length;j++){
if(!_24[i].getAttribute(EB.namespaceprefix+_26[j][0])){
continue;
}
_26[j][1](_24[i]);
}
}
}
};
EB.addHoverImage=function(img){
var _29=img.getAttribute(EB.namespaceprefix+"src_mouseover");
if(!_29){
return;
}
img.src_original=img.src;
var _2a=new Image();
_2a.src=_29;
img.EBHoverImageOver=function(e){
img.src=img.getAttribute(EB.namespaceprefix+"src_mouseover");
};
img.EBHoverImageOut=function(e){
img.src=img.src_original;
};
EB.addEvent(img,"mouseover",img.EBHoverImageOver);
EB.addEvent(img,"mouseout",img.EBHoverImageOut);
};
EB.addNoFocus=function(a){
if(!document.getElementById("EB_unfocus_dots")){
var e=document.createElement("A");
e.id="EB_unfocus_dots";
e.href="javascript:;";
e.style.position="absolute";
e.style.top="0";
e.style.left="0";
document.body.appendChild(e);
}
document.getElementById("EB_unfocus_dots").href=a.href;
EB.addEvent(a,"click",function(){
document.getElementById("EB_unfocus_dots").focus();
});
};
EB.addHoverClass=function(el){
var _30=el.getAttribute(EB.namespaceprefix+"class_mouseover");
el.EBHoverClassOver=function(){
if(el.className!=_30){
el.tmpClassName=el.className;
el.className=_30;
}
};
el.EBHoverClassOut=function(){
if(el.className==_30){
el.className=el.tmpClassName;
}
};
EB.addEvent(el,"mouseover",el.EBHoverClassOver);
EB.addEvent(el,"mouseout",el.EBHoverClassOut);
};
EB.linkEventOver=function(e){
var t=EB.getEventTarget(e);
var _33=t.getAttribute(EB.namespaceprefix+"link");
for(var i=0;i<EB.links[_33].length;i++){
var el=EB.links[_33][i];
if(el==t){
continue;
}
if(el.EBHoverImageOver){
el.EBHoverImageOver(e);
}
if(el.EBHoverClassOver){
el.EBHoverClassOver(e);
}
if(el.EBDivHrefOver){
el.EBDivHrefOver(e);
}
}
};
EB.linkEventOut=function(e){
var t=EB.getEventTarget(e);
var _38=t.getAttribute(EB.namespaceprefix+"link");
for(var i=0;i<EB.links[_38].length;i++){
var el=EB.links[_38][i];
if(el==t){
continue;
}
if(el.EBHoverClassOut){
el.EBHoverClassOut(e);
}
if(el.EBHoverImageOut){
el.EBHoverImageOut(e);
}
if(el.EBDivHrefOut){
el.EBDivHrefOut(e);
}
}
};
EB.addLink=function(x){
var _3c=x.getAttribute(EB.namespaceprefix+"link");
if(typeof EB.links!="object"){
EB.links=new Array();
}
if(typeof EB.links[_3c]!="object"){
EB.links[_3c]=new Array();
}
EB.links[_3c][EB.links[_3c].length]=x;
EB.addEvent(x,"mouseover",EB.linkEventOver);
EB.addEvent(x,"mouseout",EB.linkEventOut);
};
EB.toggle=function(id,_3e){
if(!_3e){
_3e="style.display";
}
var _3f=[];
if(arguments.length<3){
_3f=["none","block"];
}else{
var i=0;
for(i=2;i<arguments.length;i++){
_3f[_3f.length]=arguments[i];
}
}
var _41=typeof id=="string"?document.getElementById(id):id;
var l=_3e.split(".");
var att=eval("target."+_3e);
if(!att){
eval("target."+_3e+" = '"+_3f[0]+"';");
}
for(i=0;i<_3f.length;i++){
if(att==_3f[i]){
att=_3f[(i+1)%_3f.length];
eval("target."+_3e+" = att;");
break;
}
}
};
EB.toggleGroup=function(id){
var _45=document.getElementById(id);
if(!_45){
alert("toggleGroup: unknown element '"+id+"'");
}
var _46=_45.getAttribute(EB.namespaceprefix+"togglegroup");
var _47=_45.getAttribute(EB.namespaceprefix+"usecookie");
if(_47=="true"){
_47=true;
}else{
_47=false;
}
if(_45.style.display&&_45.style.display=="block"){
_45.style.display="none";
if(_47){
EB.setCookie("EB_togglegroup_"+_46,"-");
}
return false;
}else{
for(var i=0;i<EB.togglegroups[_46].length;i++){
var el=EB.togglegroups[_46][i];
el.style.display="none";
}
_45.style.display="block";
if(_47){
EB.setCookie("EB_togglegroup_"+_46,id);
}
return true;
}
};
EB.addToggleGroup=function(el){
if(!EB._togglestatus){
EB._togglestatus=[];
}
var _4b=el.getAttribute(EB.namespaceprefix+"togglegroup");
if(typeof EB.togglegroups!="object"){
EB.togglegroups=new Array();
}
if(typeof EB.togglegroups[_4b]!="object"){
EB.togglegroups[_4b]=new Array();
}
EB.togglegroups[_4b][EB.togglegroups[_4b].length]=el;
var _4c=el.getAttribute(EB.namespaceprefix+"usecookie");
if(_4c=="true"){
_4c=true;
}else{
_4c="false";
}
if(!EB._togglestatus[_4b]&&_4c&&EB.getCookie("EB_togglegroup_"+_4b)==el.id){
EB.toggleGroup(el.id);
}
};
EB.initScroller=function(el){
if(el.getAttribute(EB.namespaceprefix+"scroller")!="true"){
return;
}
if(!EB.scroller){
EB.includeScript(EB.scriptprefix+"eb-scroller.js");
setTimeout(function(){
EB.initScroller(el);
},100);
return;
}
EB.scroller.create(el);
};
EB.goBack=function(){
window.history.go(-1);
};
EB.addFavorite=function(url,_4f){
if(!document.all){
alert("Please hit ctrl-b to bookmark this page");
}else{
external.AddFavorite(linkUrl,linkTitle);
}
return false;
};
EB.checkBrowser=function(){
if(typeof EB._browser=="object"){
return EB._browser;
}
var b=new Array();
b.ver=navigator.appVersion;
b.dom=document.getElementById?1:0;
b.mac=(b.ver.indexOf("PPC")!=-1)?1:0;
b.win=(b.ver.indexOf("Win")!=-1)?1:0;
b.ie5=(b.ver.indexOf("MSIE")!=-1&&b.dom&&parseInt(b.ver)>=4)?1:0;
b.ie4=(document.all&&!b.dom)?1:0;
b.ie=(b.ie5||b.ie4);
b.saf=(b.ver.indexOf("Safari")>-1&&b.mac)?1:0;
b.ns6=(b.dom&&b.ver.indexOf("MOZILLA")!=-1)?1:0;
b.ns4=(document.layers&&!b.dom)?1:0;
b.ns=(b.ns4||b.ns6||b.saf);
b.eyefi=(b.ie||b.ns);
EB._browser=b;
return EB._browser;
};
EB.window={center:function(){
saw=screen.availWidth;
sah=screen.availHeight;
self.moveTo(((saw/2)-380),((sah/2)-220));
},close:function(){
window.close();
},openInMain:function(url){
opener.parent.location=url;
opener.focus();
EB.window.close();
},fullscreen:function(){
if(!window.moveTo||!window.resizeTo){
return;
}
window.moveTo(0,0);
window.resizeTo(screen.availWidth,screen.availHeight);
},popup:function(url,w,h,_55){
var _56={"toolbar":false,"location":false,"directories":false,"status":false,"menubar":false,"scrolling":false,"scrollbars":false,"resizable":false};
if(typeof _55=="object"){
for(var j=0;j<_55.length;j++){
_56[_55[j]]=true;
}
}
s="";
for(var i in _56){
s+=i+"="+(_56[i]?"yes":"no")+",";
}
if(w){
s+="width="+w+",";
}
if(h){
s+="height="+h+",";
}
s=s.substr(0,s.length-1);
window.open(url,"pop",s);
}};
var hasFlash=false;
EB._detectFlash=function(){
if(hasFlash){
return;
}
var p=(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"])?navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin:0;
if(p){
hasFlash=parseInt(p.description.substring(p.description.indexOf(".")-1))>=6;
}else{
if(navigator.userAgent&&navigator.userAgent.indexOf("MSIE")>=0){
document.write("<SCRIPT LANGUAGE=VBScript> \n");
document.write("on error resume next \n");
document.write("hasFlash = ( IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.6\")))\n");
document.write("if ( hasFlash <= 0 ) then hasFlash = ( IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.6\")))\n");
document.write("</SCRIPT> \n");
}
}
};
EB.writeFlash=function(_5a,_5b,_5c,_5d,_5e,_5f){
EB._detectFlash();
if(hasFlash){
document.write("<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"");
document.write("  codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" ");
document.write(" ID=FLASH_AD WIDTH="+_5b+" HEIGHT="+_5c+">");
document.write(" <PARAM NAME=movie VALUE=\""+_5a+"\"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE="+_5d+"> ");
document.write(" <EMBED src=\""+_5a+"\" quality=high ");
document.write(" swLiveConnect=FALSE WIDTH="+_5b+" HEIGHT="+_5c+" bgcolor="+_5d);
document.write(" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\">");
document.write(" </EMBED>");
document.write(" </OBJECT>");
}else{
if(_5e==1){
document.write("<meta http-equiv=\"Refresh\" content=\"1; URL="+_5f+"\">");
}else{
if(_5e==2){
EB.window.popup(_5f,"noflash",350,350);
}else{
if(_5e==3){
document.write("<a href=\"http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" target=\"_blank\">"+_5f+"</a>");
}else{
if(_5e==4){
alert(_5f);
}else{
if(_5e==5){
document.write("<a href=\"http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" target=\"_blank\"><img src=\""+_5f+"\" width=\""+_5b+"\" height=\""+_5c+"\" style=\"border: 0\" /></a>");
}
}
}
}
}
}
};
EB.registerAttribute("IMG","src_mouseover",EB.addHoverImage);
EB.registerAttribute("INPUT","src_mouseover",EB.addHoverImage);
EB.registerAttribute("A","class_mouseover",EB.addHoverClass);
EB.registerAttribute("IMG","class_mouseover",EB.addHoverClass);
EB.registerAttribute("A","nofocus",EB.addNoFocus);
EB.registerAttribute("DIV","togglegroup",EB.addToggleGroup);
EB.registerAttribute("UL","togglegroup",EB.addToggleGroup);
EB.registerAttribute("IFRAME","togglegroup",EB.addToggleGroup);
EB.registerAttribute("A","link",EB.addLink);
EB.registerAttribute("IMG","link",EB.addLink);
EB.registerAttribute("DIV","scroller",EB.initScroller);
EB.addEvent(window,"load",EB.processAttributes);

