var t;function activar()
{clearTimeout(t);}
function mostrar_servicios()
{var capa=document.getElementById('servicios');capa.style.visibility="visible";}
function mostrar_productos()
{var capa=document.getElementById('productos');capa.style.visibility="visible";}
function mostrar_noticias()
{var capa=document.getElementById('noticias');capa.style.visibility="visible";}
function mostrar_faq()
{var capa=document.getElementById('faq');capa.style.visibility="visible";}
function ocultar_submenus()
{var capa2=document.getElementById('servicios');capa2.style.visibility="hidden";var capa3=document.getElementById('productos');capa3.style.visibility="hidden";var capa4=document.getElementById('noticias');capa4.style.visibility="hidden";var capa5=document.getElementById('faq');capa5.style.visibility="hidden";}
function retardo()
{t=setTimeout('ocultar_submenus()',800);}
function PopUp(img){foto1=new Image();foto1.src=(img);Control(img);}
function Control(img){if((foto1.width!=0)&&(foto1.height!=0)){verFoto(img);}
else{funcion="Control('"+img+"')";intervalo=setTimeout(funcion,20);}}
function verFoto(img){ancho=foto1.width+20;alto=foto1.height+20;anchoPantalla=screen.width;altoPantalla=screen.height;cadena="width="+ancho+",height="+alto+",left="+(anchoPantalla-foto1.width)/2+",top="+(altoPantalla-foto1.height)/2;ventana=window.open(img,"",cadena);ventana.document.writeln('<html>');ventana.document.writeln('<head>');ventana.document.writeln('<title></title>');ventana.document.writeln('</head>');ventana.document.writeln('<body>');ventana.document.writeln('<img src="'+img+'" style="border:2px #e5e5e5 solid;";');ventana.document.writeln('</body>');ventana.document.writeln('</html>');}
this.sitemapstyler=function(){var sitemap=document.getElementById("sitemap")
if(sitemap){this.listItem=function(li){if(li.getElementsByTagName("ul").length>0){var ul=li.getElementsByTagName("ul")[0];ul.style.display="none";var span=document.createElement("span");span.className="collapsed";span.onclick=function(){ul.style.display=(ul.style.display=="none")?"block":"none";this.className=(ul.style.display=="none")?"collapsed":"expanded";};li.appendChild(span);};};var items=sitemap.getElementsByTagName("li");for(var i=0;i<items.length;i++){listItem(items[i]);};};};window.onload=sitemapstyler;var Zapatec={};Zapatec.Utils={};Zapatec.Utils.getAbsolutePos=function(el){var SL=0,ST=0;var is_div=/^div$/i.test(el.tagName);if(is_div&&el.scrollLeft)
SL=el.scrollLeft;if(is_div&&el.scrollTop)
ST=el.scrollTop;var r={x:el.offsetLeft-SL,y:el.offsetTop-ST};if(el.offsetParent){var tmp=this.getAbsolutePos(el.offsetParent);r.x+=tmp.x;r.y+=tmp.y;}
return r;};Zapatec.Utils.fixBoxPosition=function(box){if(box.x<0)
box.x=0;if(box.y<0)
box.y=0;var cp=Zapatec.Utils.createElement("div");var s=cp.style;s.position="absolute";s.right=s.bottom=s.width=s.height="0px";window.document.body.appendChild(cp);var br=Zapatec.Utils.getAbsolutePos(cp);window.document.body.removeChild(cp);if(Zapatec.is_ie){br.y+=window.document.body.scrollTop;br.x+=window.document.body.scrollLeft;}else{br.y+=window.scrollY;br.x+=window.scrollX;}
var tmp=box.x+box.width-br.x;if(tmp>0)box.x-=tmp;tmp=box.y+box.height-br.y;if(tmp>0)box.y-=tmp;};Zapatec.Utils.isRelated=function(el,evt){evt||(evt=window.event);var related=evt.relatedTarget;if(!related){var type=evt.type;if(type=="mouseover"){related=evt.fromElement;}else if(type=="mouseout"){related=evt.toElement;}}
try{while(related){if(related==el){return true;}
related=related.parentNode;}}catch(e){};return false;};Zapatec.Utils.removeClass=function(el,className){if(!(el&&el.className)){return;}
var cls=el.className.split(" ");var ar=[];for(var i=cls.length;i>0;){if(cls[--i]!=className){ar[ar.length]=cls[i];}}
el.className=ar.join(" ");};Zapatec.Utils.addClass=function(el,className){Zapatec.Utils.removeClass(el,className);el.className+=" "+className;};Zapatec.Utils.getElement=function(ev){if(Zapatec.is_ie){return window.event.srcElement;}else{return ev.currentTarget;}};Zapatec.Utils.getTargetElement=function(ev){if(Zapatec.is_ie){return window.event.srcElement;}else{return ev.target;}};Zapatec.Utils.stopEvent=function(ev){ev||(ev=window.event);if(Zapatec.is_ie){ev.cancelBubble=true;ev.returnValue=false;}else{ev.preventDefault();ev.stopPropagation();}
return false;};Zapatec.Utils.addEvent=function(el,evname,func){if(el.attachEvent){el.attachEvent("on"+evname,func);}else if(el.addEventListener){el.addEventListener(evname,func,true);}else{el["on"+evname]=func;}};Zapatec.Utils.removeEvent=function(el,evname,func){if(el.detachEvent){el.detachEvent("on"+evname,func);}else if(el.removeEventListener){el.removeEventListener(evname,func,true);}else{el["on"+evname]=null;}};Zapatec.Utils.createElement=function(type,parent){var el=null;if(window.self.document.createElementNS)
el=window.self.document.createElementNS("http://www.w3.org/1999/xhtml",type);else
el=window.self.document.createElement(type);if(typeof parent!="undefined")
parent.appendChild(el);if(Zapatec.is_ie)
el.setAttribute("unselectable",true);if(Zapatec.is_gecko)
el.style.setProperty("-moz-user-select","none","");return el;};Zapatec.Utils.writeCookie=function(name,value,domain,path,exp_days){value=escape(value);var ck=name+"="+value,exp;if(domain)
ck+=";domain="+domain;if(path)
ck+=";path="+path;if(exp_days){exp=new Date();exp.setTime(exp_days*86400000+exp.getTime());ck+=";expires="+exp.toGMTString();}
document.cookie=ck;};Zapatec.Utils.getCookie=function(name){var re=new RegExp("(^|;\\s*)"+name+"\\s*=(.*?)(;|$)");if(re.test(document.cookie)){var value=RegExp.$2;value=unescape(value);return(value);}
return null;};Zapatec.Utils.makePref=function(obj){function stringify(val){if(typeof val=="object"&&!val)
return"null";else if(typeof val=="number"||typeof val=="boolean")
return val;else if(typeof val=="string")
return'"'+val.replace(/\22/,"\\22")+'"';else return null;};var txt="",i;for(i in obj)
txt+=(txt?",'":"'")+i+"':"+stringify(obj[i]);return txt;};Zapatec.Utils.loadPref=function(txt){var obj=null;try{eval("obj={"+txt+"}");}catch(e){}
return obj;};Zapatec.Utils.mergeObjects=function(dest,src){for(var i in src)
dest[i]=src[i];};Zapatec.Utils.__wch_id=0;Zapatec.Utils.createWCH=function(element){var f=null;element=element||window.self.document.body;if(Zapatec.is_ie&&!Zapatec.is_ie5){var filter='filter:progid:DXImageTransform.Microsoft.alpha(style=0,opacity=0);';var id="WCH"+(++Zapatec.Utils.__wch_id);element.insertAdjacentHTML
('beforeEnd','<iframe id="'+id+'" scroll="no" frameborder="0" '+
'style="z-index:0;position:absolute;visibility:hidden;'+filter+
'border:0;top:0;left:0;width:0;height:0;" '+
'src="javascript:false;"></iframe>');f=window.self.document.getElementById(id);}
return f;};Zapatec.Utils.setupWCH_el=function(f,el,el2){if(f){var pos=Zapatec.Utils.getAbsolutePos(el),X1=pos.x,Y1=pos.y,X2=X1+el.offsetWidth,Y2=Y1+el.offsetHeight;if(el2){var p2=Zapatec.Utils.getAbsolutePos(el2),XX1=p2.x,YY1=p2.y,XX2=XX1+el2.offsetWidth,YY2=YY1+el2.offsetHeight;if(X1>XX1)
X1=XX1;if(Y1>YY1)
Y1=YY1;if(X2<XX2)
X2=XX2;if(Y2<YY2)
Y2=YY2;}
Zapatec.Utils.setupWCH(f,X1,Y1,X2-X1,Y2-Y1);}};Zapatec.Utils.setupWCH=function(f,x,y,w,h){if(f){var s=f.style;(typeof x!="undefined")&&(s.left=x+"px");(typeof y!="undefined")&&(s.top=y+"px");(typeof w!="undefined")&&(s.width=w+"px");(typeof h!="undefined")&&(s.height=h+"px");s.visibility="inherit";}};Zapatec.Utils.hideWCH=function(f){if(f)
f.style.visibility="hidden";};Zapatec.Utils.getPageScrollY=function(){return window.pageYOffset||document.documentElement.scrollTop||(document.body?document.body.scrollTop:0)||0;};Zapatec.ScrollWithWindow={};Zapatec.ScrollWithWindow.list=[];Zapatec.ScrollWithWindow.stickiness=0.25;Zapatec.ScrollWithWindow.register=function(node){Zapatec.ScrollWithWindow.list[Zapatec.ScrollWithWindow.list.length]={node:node,origTop:parseInt(node.style.top)||0};};Zapatec.ScrollWithWindow.handler=function(newScrollY){oldScrollY+=((newScrollY-oldScrollY)*this.stickiness);if(Math.abs(oldScrollY-newScrollY)<=1)oldScrollY=newScrollY;for(var count=0;count<Zapatec.ScrollWithWindow.list.length;count++){var elm=Zapatec.ScrollWithWindow.list[count];elm.node.style.top=elm.origTop+parseInt(oldScrollY)+'px';}};var oldScrollY=Zapatec.Utils.getPageScrollY();setInterval('var newScrollY = Zapatec.Utils.getPageScrollY(); '+
'if (newScrollY != oldScrollY) { '+
'Zapatec.ScrollWithWindow.handler(newScrollY); '+
'}',50);Zapatec.Utils.destroy=function(el){if(el&&el.parentNode)
el.parentNode.removeChild(el);};Zapatec.Utils.newCenteredWindow=function(url,windowName,width,height,scrollbars){var leftPosition=0;var topPosition=0;if(screen.width)
leftPosition=(screen.width-width)/2;if(screen.height)
topPosition=(screen.height-height)/2;var winArgs='height='+height+
',width='+width+
',top='+topPosition+
',left='+leftPosition+
',scrollbars='+scrollbars+
',resizable';var win=window.open(url,windowName,winArgs);return win;};Zapatec.Utils.selectOption=function(sel,val,call_default){var a=sel.options,i,o;for(i=a.length;--i>=0;){o=a[i];o.selected=(o.val==val);}
sel.value=val;if(call_default){if(typeof sel.onchange=="function")
sel.onchange();else if(typeof sel.onchange=="string")
eval(sel.onchange);}};Zapatec.Utils.getNextSibling=function(el,tag){el=el.nextSibling;if(!tag)
return el;tag=tag.toLowerCase();while(el&&(el.nodeType!=1||el.tagName.toLowerCase()!=tag))
el=el.nextSibling;return el;};Zapatec.Utils.getFirstChild=function(el,tag){el=el.firstChild;if(!tag)
return el;tag=tag.toLowerCase();if(el.nodeType==1&&el.tagName.toLowerCase()==tag)
return el;return Zapatec.Utils.getNextSibling(el,tag);};Zapatec.Utils._ids={};Zapatec.Utils.generateID=function(code,id){if(typeof id=="undefined"){if(typeof this._ids[code]=="undefined")
this._ids[code]=0;id=++this._ids[code];}
return"zapatec-"+code+"-"+id;};Zapatec.Utils.addTooltip=function(target,tooltip){return new Zapatec.Tooltip(target,tooltip);};Zapatec.is_opera=/opera/i.test(navigator.userAgent);Zapatec.is_ie=(/msie/i.test(navigator.userAgent)&&!Zapatec.is_opera);Zapatec.is_ie5=(Zapatec.is_ie&&/msie 5\.0/i.test(navigator.userAgent));Zapatec.is_mac_ie=(/msie.*mac/i.test(navigator.userAgent)&&!Zapatec.is_opera);Zapatec.is_khtml=/Konqueror|Safari|KHTML/i.test(navigator.userAgent);Zapatec.is_konqueror=/Konqueror/i.test(navigator.userAgent);Zapatec.is_gecko=/Gecko/i.test(navigator.userAgent);Zapatec.Tree=function(el,config,noInit){if(typeof config=="undefined")
config={};this._el=el;this._config=config;if(!noInit)this.initTree();}
Zapatec.Tree.prototype.initTree=function(){var el=this._el;var config=this._config;function param_default(name,value){if(typeof config[name]=="undefined")config[name]=value;};param_default('d_profile',false);param_default('hiliteSelectedNode',true);param_default('compact',false);param_default('dynamic',false);param_default('initLevel',false);if(config.dynamic)
config.initLevel=0;this.config=config;if(this.config.d_profile){var T1=new Date().getTime();profile={items:0,trees:0};}
if(typeof el=="string")
el=document.getElementById(el);this.list=el;this.items={};this.trees={};this.selectedItem=null;this.id=null;if(el)
this.id=el.id||Zapatec.Utils.generateID("tree");else
alert("Can not find Menu id=\""+this._el+"\"")
var top=this.top_parent=Zapatec.Utils.createElement("div");top.className="zpMenu zpMenu-top";if(this.config.vertical)
Zapatec.Utils.addClass(top,"zpMenu-vertical-mode");else
Zapatec.Utils.addClass(top,"zpMenu-horizontal-mode");this.createTree(el,top,0);if(el){el.parentNode.insertBefore(top,el);el.parentNode.removeChild(el);}
Zapatec.Tree.all[this.id]=this;if(this.selectedItem)
this.sync(this.selectedItem.__zp_item);if(this.config.d_profile){alert("Generated in "+(new Date().getTime()-T1)+" milliseconds\n"+
profile.items+" total tree items\n"+
profile.trees+" total (sub)trees\n");}};Zapatec.Tree.all={};Zapatec.Tree.prototype.createTree=function(list,parent,level){if(this.config.d_profile)
++profile.trees;var id;var intItem=1,bFirst=true;if(list)id=list.id;if(!id)id=Zapatec.Utils.generateID("tree.sub");var
self=this;function _makeIt(){self.creating_now=true;var
last_li=null,next_li,i=(list?list.firstChild:null),items=parent.__zp_items=[];self.trees[id]=parent;parent.__zp_level=level;parent.__zp_treeid=id;while(i){if(last_li)
last_li.className+=" zpMenu-lines-c";if(i.nodeType!=1)
i=i.nextSibling;else{next_li=Zapatec.Utils.getNextSibling(i,'li');if(i.tagName.toLowerCase()=='li'){last_li=self.createItem(i,parent,next_li,level,intItem++);if(last_li){if(bFirst)
{bFirst=false;Zapatec.Utils.addClass(last_li,"zpMenu-item-first");}
items[items.length]=last_li.__zp_item;}}
i=next_li;}}
if(last_li)Zapatec.Utils.addClass(last_li,"zpMenu-item-last");i=parent.firstChild;if(i&&!level){i.className=i.className.replace(/ zpMenu-lines-./g,"");i.className+=(i===last_li)?" zpMenu-lines-s":" zpMenu-lines-t";}
if(last_li&&(level||last_li!=i)){last_li.className=last_li.className.replace(/ zpMenu-lines-./g,"");last_li.className+=" zpMenu-lines-b";}
self.creating_now=false;};if(this.config.dynamic&&level>0)
this.trees[id]=_makeIt;else
_makeIt();return id;};Zapatec.Tree.prototype.createItem=function(li,parent,next_li,level,intItem){if(this.config.d_profile)
++profile.items;if(!li.firstChild)
return;var
id=li.id||Zapatec.Utils.generateID("tree.item"),item=this.items[id]=Zapatec.Utils.createElement("div",parent),t=Zapatec.Utils.createElement("table",item),tb=Zapatec.Utils.createElement("tbody",t),tr=Zapatec.Utils.createElement("tr",tb),td=Zapatec.Utils.createElement("td",tr),is_list,tmp,i=li.firstChild,has_icon=false;t.className="zpMenu-table";t.cellSpacing=0;t.cellPadding=0;td.className="zpMenu-label"
if(li.getAttribute('title')){td.setAttribute('title',li.getAttribute('title'));}
item.className="zpMenu-item"+(li.className?' '+li.className:'');if(level==0&&!this.config.vertical){Zapatec.Utils.addClass(item,"zpMenuVertical");}
Zapatec.Utils.addClass(item,"zpMenu-level-"+(level+1));item.__zp_item=id;item.__zp_tree=this.id;item.__zp_parent=parent.__zp_treeid;item.onmouseover=Zapatec.Menu.onItemMouseOver;item.onmouseout=Zapatec.Menu.onItemMouseOut;item.onclick=Zapatec.Menu.onItemClick;Zapatec.Utils.addClass(item,"zpMenu-item-"+(intItem%2==1?"odd":"even"));while(i){is_list=i.nodeType==1&&/^[ou]l$/i.test(i.tagName);if(i.nodeType!=1||!is_list){if(i.nodeType==3){tmp=i.data.replace(/^\s+/,'');tmp=tmp.replace(/\s+$/,'');li.removeChild(i);if(tmp){i=Zapatec.Utils.createElement("span");i.innerHTML=tmp;td.appendChild(i);}}else{if((this._menuMode)&&(i.tagName.toLowerCase()=='hr')){Zapatec.Utils.addClass(item,"zpMenu-item-hr");}
td.appendChild(i);}
i=li.firstChild;continue;}
if(is_list){this.item_addIcon(item,null);var np=Zapatec.Utils.createElement("div",item.parentNode);np.__zp_item=id;np.className="zpMenu"+(i.className?' '+i.className:'');np.onmouseover=Zapatec.Menu.onItemMouseOver;np.onmouseout=Zapatec.Menu.onItemMouseOut;if(next_li)
np.className+=" zpMenu-lined";item.__zp_subtree=this.createTree(i,np,level+1);if((this.config.initLevel!=false&&this.config.initLevel<=level)||(this.config.compact&&!/(^|\s)expanded(\s|$)/i.test(li.className))
||/(^|\s)collapsed(\s|$)/i.test(li.className)){item.className+=" zpMenu-item-collapsed";this.toggleItem(id);}else
item.className+=" zpMenu-item-expanded";if(/(^|\s)selected(\s|$)/i.test(li.className))
this.selectedItem=item;break;}}
return item;};Zapatec.Tree.prototype.item_addIcon=function(item,img){if(this.config.d_profile)
++profile.icons;var last_td=item.firstChild.firstChild.firstChild,td;last_td=img?last_td.lastChild:last_td.firstChild;if(!img||!item.__zp_icon){td=Zapatec.Utils.createElement("td");td.className="tgb "+(img?"icon":"minus");last_td.parentNode.insertBefore(td,last_td);}else{td=item.__zp_icon;img.style.display="none";}
if(!img){td.innerHTML="&nbsp;";item.className+=" zpMenu-item-more";item.__zp_state=true;item.__zp_expand=td;}else{td.appendChild(img);item.__zp_icon=td;}};Zapatec.Tree.prototype.itemClicked=function(item_id){this.selectedItem=this.toggleItem(item_id);if(this.config.hiliteSelectedNode&&this.selectedItem)
Zapatec.Utils.addClass(this.selectedItem,"zpMenu-item-selected");this.onItemSelect(item_id);};Zapatec.Tree.prototype.toggleItem=function(item_id,state){if(item_id){if(this.config.hiliteSelectedNode&&this.selectedItem)
Zapatec.Utils.removeClass(this.selectedItem,"zpMenu-item-selected");var item=this.items[item_id];if(typeof state=="undefined")
state=!item.__zp_state;if(state!=item.__zp_state){var subtree=this._getTree(item.__zp_subtree,this.creating_now);if(subtree){this.treeSetDisplay(subtree,state);Zapatec.Utils.removeClass(item,"zpMenu-item-expanded");Zapatec.Utils.removeClass(item,"zpMenu-item-collapsed");Zapatec.Utils.addClass(item,state?"zpMenu-item-expanded":"zpMenu-item-collapsed");}
var img=item.__zp_expand;if(img)
img.className="tgb "+(state?"minus":"plus");item.__zp_state=state;img=item.__zp_icon;if(img){img.firstChild.style.display="none";img.appendChild(img.firstChild);img.firstChild.style.display="block";}
if(this.config.compact&&state){var hideItems=this._getTree(item.__zp_parent).__zp_items;for(var i=hideItems.length;--i>=0;){if(hideItems[i]!=item_id&&hideItems[i].__zp_state){this.toggleItem(hideItems[i],false);if(hideItems[i].__zp_subtree){var subtree=this._getTree(hideItems[i].__zp_subtree);this.toggleItem(subtree.firstChild,false);}}}}}
return item;}
return null;};Zapatec.Tree.prototype.collapseAll=function(){for(var i in this.trees)
this.toggleItem(this._getTree(i).__zp_item,false);};Zapatec.Tree.prototype.expandAll=function(){for(var i in this.trees)
this.toggleItem(this._getTree(i).__zp_item,true);};Zapatec.Tree.prototype.toggleAll=function(){for(var i in this.trees)
this.toggleItem(this._getTree(i).__zp_item);};Zapatec.Tree.prototype.sync=function(item_id){var item=this.items[item_id];if(item){this.collapseAll();this.selectedItem=item;var a=[];while(item.__zp_parent){a[a.length]=item;var pt=this._getTree(item.__zp_parent);if(pt.__zp_item)
item=this.items[pt.__zp_item];else
break;}
for(var i=a.length;--i>=0;)
this.toggleItem(a[i].__zp_item,true);Zapatec.Utils.addClass(this.selectedItem,"zpMenu-item-selected");}};Zapatec.Tree.prototype.destroy=function(){var p=this.top_parent;p.parentNode.removeChild(p);};Zapatec.Tree.prototype._getTree=function(tree_id,dont_call){var tree=this.trees[tree_id];if(typeof tree=="function"){if(dont_call)
tree=null;else{tree();tree=this.trees[tree_id];}}
return tree;};Zapatec.Tree.prototype.onItemSelect=function(){};Zapatec.Tree.onItemToggle=function(){var item=this;var body=document.body;while(item&&item!=body&&!/zpMenu-item/.test(item.className))
item=item.parentNode;Zapatec.Tree.all[item.__zp_tree].itemClicked(item.__zp_item);};Zapatec.Menu=function(el,config_user){this._el=el;this._config={};this.setOption(this._config,'showDelay',0);this.setOption(this._config,'hideDelay',500);this.setOption(this._config,'onClick',false);this.setOption(this._config,'vertical',false);this.setOption(this._config,'scrollWithWindow',false);this.setOption(this._config,'drag',false);this.setOption(this._config,'slide',false);this.setOption(this._config,'glide',false);this.setOption(this._config,'fade',false);this.setOption(this._config,'wipe',false);this.setOption(this._config,'unfurl',false);this.setOption(this._config,'animSpeed',10);this.setOption(this._config,'compact',true);this.setOption(this._config,'initLevel',0);this.setOption(this._config,'defaultIcons',null);if(typeof config_user!="undefined")
for(var i in config_user){if(typeof this._config[i]=="undefined"){alert("Error:Menu "+this._el+" has invalid parameter --"+i+":"+config_user[i]);}else{this.setOption(this._config,i,config_user[i]);}}
this.animations=[];this._menuMode=true;this.initTree();this.openMenus=[];this.clickDone=false;if(this.config.scrollWithWindow){Zapatec.ScrollWithWindow.register(this.trees[this._el]);}
if(this.config.drag){var self=this;self.dragging=false;Zapatec.Utils.addEvent(window.document,"mousedown",function(ev){return Zapatec.Menu.dragStart(ev,self)});Zapatec.Utils.addEvent(window.document,"mousemove",function(ev){return Zapatec.Menu.dragMove(ev,self)});Zapatec.Utils.addEvent(window.document,"mouseup",function(ev){return Zapatec.Menu.dragEnd(ev,self)});}
if(this.config.scrollWithWindow||this.config.drag){if(!(/(absolute|fixed)/).test(this.trees[this._el].style.position)){this.trees[this._el].style.position='relative';}}
if(this._config.fade)
this.addAnimation('fade');if(this._config.slide)
this.addAnimation('slide');else if(this._config.glide)
this.addAnimation('glide');else if(this._config.wipe)
this.addAnimation('wipe');else if(this._config.unfurl)
this.addAnimation('unfurl');};Zapatec.Menu.prototype=new Zapatec.Tree('',null,true);Zapatec.Menu.MOUSEOUT=0;Zapatec.Menu.MOUSEOVER=1;Zapatec.Menu.CLICK=2;Zapatec.Menu.prototype.setOption=function(config,name,val){config[name]=val;};Zapatec.Menu.animations={};Zapatec.Menu.animations.fade=function(ref,counter){var f=ref.filters,done=(counter==100);if(f){if(!done&&ref.style.filter.indexOf("alpha")==-1){ref.style.filter+=' alpha(opacity='+counter+')';}
else if(f.length&&f.alpha)with(f.alpha){if(done)enabled=false;else{opacity=counter;enabled=true}}}
else{ref.style.opacity=ref.style.MozOpacity=counter/100.1;}};Zapatec.Menu.animations.slide=function(ref,counter){var cP=Math.pow(Math.sin(Math.PI*counter/200),0.75);var noClip=((window.opera||navigator.userAgent.indexOf('KHTML')>-1)?'':'rect(auto, auto, auto, auto)');if(typeof ref.__zp_origmargintop=='undefined'){ref.__zp_origmargintop=ref.style.marginTop;}
ref.style.marginTop=(counter==100)?ref.__zp_origmargintop:'-'+(ref.offsetHeight*(1-cP))+'px';ref.style.clip=(counter==100)?noClip:'rect('+(ref.offsetHeight*(1-cP))+', '+ref.offsetWidth+
'px, '+ref.offsetHeight+'px, 0)';};Zapatec.Menu.animations.glide=function(ref,counter){var cP=Math.pow(Math.sin(Math.PI*counter/200),0.75);var noClip=((window.opera||navigator.userAgent.indexOf('KHTML')>-1)?'':'rect(auto, auto, auto, auto)');ref.style.clip=(counter==100)?noClip:'rect(0, '+ref.offsetWidth+'px, '+(ref.offsetHeight*cP)+'px, 0)';};Zapatec.Menu.animations.wipe=function(ref,counter){var noClip=((window.opera||navigator.userAgent.indexOf('KHTML')>-1)?'':'rect(auto, auto, auto, auto)');ref.style.clip=(counter==100)?noClip:'rect(0, '+(ref.offsetWidth*(counter/100))+'px, '+
(ref.offsetHeight*(counter/100))+'px, 0)';};Zapatec.Menu.animations.unfurl=function(ref,counter){var noClip=((window.opera||navigator.userAgent.indexOf('KHTML')>-1)?'':'rect(auto, auto, auto, auto)');if(counter<=50){ref.style.clip='rect(0, '+(ref.offsetWidth*(counter/50))+
'px, 10px, 0)';}
else if(counter<100){ref.style.clip='rect(0, '+ref.offsetWidth+'px, '+
(ref.offsetHeight*((counter-50)/50))+'px, 0)';}
else{ref.style.clip=noClip;}};Zapatec.Menu.prototype.addAnimation=function(animation){this.animations[this.animations.length]=Zapatec.Menu.animations[animation];};Zapatec.Menu.prototype.treeSetDisplay=function(menu,show){if(!menu.__zp_initialised){menu.style.visibility='hidden';menu.__zp_initialised=true;return;}
menu.__zp_anim_timer|=0;menu.__zp_anim_counter|=0;var tree,t_id=menu.__zp_tree||menu.firstChild.__zp_tree;if(t_id)tree=Zapatec.Tree.all[t_id];if(!tree)return;clearTimeout(menu.__zp_anim_timer);if(show&&!menu.__zp_anim_counter)menu.style.visibility='inherit';var speed=!tree.animations.length?100:tree.config.animSpeed;if(speed<100){for(var a=0;a<tree.animations.length;a++){tree.animations[a](menu,menu.__zp_anim_counter);}}
menu.__zp_anim_counter+=speed*(show?1:-1);if(menu.__zp_anim_counter>100){menu.__zp_anim_counter=100;}
else if(menu.__zp_anim_counter<=0){menu.__zp_anim_counter=0;menu.style.visibility='hidden';}
else{menu.__zp_anim_timer=setTimeout(function(){tree.treeSetDisplay(menu,show);},50);}};Zapatec.Menu.onItemMouseOver=function(){var item=this,tree=null,body=document.body;while(item&&item!=body){var t_id=item.__zp_tree||item.firstChild.__zp_tree;if(t_id)tree=Zapatec.Tree.all[t_id];if(/zpMenu-item/.test(item.className)&&!/zpMenu-item-hr/.test(item.className)){tree.itemMouseHandler(item.__zp_item,Zapatec.Menu.MOUSEOVER);}
item=tree&&item.__zp_treeid?tree.items[item.__zp_item]:item.parentNode;}};Zapatec.Menu.onItemMouseOut=function(){var item=this,tree=null,body=document.body;while(item&&item!=body){var t_id=item.__zp_tree||item.firstChild.__zp_tree;if(t_id)tree=Zapatec.Tree.all[t_id];if(/zpMenu-item/.test(item.className)&&!/zpMenu-item-hr/.test(item.className)){tree.itemMouseHandler(item.__zp_item,Zapatec.Menu.MOUSEOUT);}
item=tree&&item.__zp_treeid?tree.items[item.__zp_item]:item.parentNode;}};Zapatec.Menu.onItemClick=function(e){var item=this,tree=null;body=document.body;while(item&&item!=body){if(item.nodeName&&item.nodeName.toLowerCase()=='a'){return true;}
if(/zpMenu-item/.test(item.className)){tree=Zapatec.Tree.all[item.__zp_tree];if(tree.config.onClick&&item.__zp_subtree&&(/zpMenu-top/.test(item.parentNode.className))){tree.itemMouseHandler(item.__zp_item,Zapatec.Menu.CLICK);e=e||window.event||{};if(e.preventDefault)e.preventDefault();e.returnValue=false;return false;}
var itemLink=item.getElementsByTagName('a');if(!itemLink||!itemLink.item(0))return;var href=itemLink.item(0).getAttribute('href');if(!(/javascript:/).test(href)){window.location.href=href;return;}}
item=item.parentNode;}};Zapatec.Menu.prototype.itemMouseHandler=function(item_id,type){var item=this.items[item_id];var menu=this._getTree(item.__zp_parent);if(menu&&menu.__zp_activeitem!=item_id){if(menu.__zp_activeitem){var lastItem=this.items[menu.__zp_activeitem];Zapatec.Utils.removeClass(lastItem,"zpMenu-item-selected");if(lastItem.__zp_state)this.toggleItem(lastItem.__zp_item,false);}
menu.__zp_activeitem=item_id;Zapatec.Utils.addClass(item,"zpMenu-item-selected");}
clearTimeout(item.__zp_dimtimer);if(type==Zapatec.Menu.MOUSEOUT){item.__zp_dimtimer=setTimeout(function(){Zapatec.Utils.removeClass(item,"zpMenu-item-selected");if(menu.__zp_activeitem==item_id)menu.__zp_activeitem='';},this.config.hideDelay);}
clearTimeout(item.__zp_mousetimer);if(this.config.onClick&&!this.clickDone){if(/zpMenu-top/.test(item.parentNode.className)&&(type==Zapatec.Menu.MOUSEOVER))return;if(type==Zapatec.Menu.CLICK)this.clickDone=true;}
if(!item.__zp_state&&type)
{item.__zp_mousetimer=setTimeout('Zapatec.Tree.all["'+
item.__zp_tree+'"].itemShow("'+item.__zp_item+'")',(this.config.showDelay||1));}
else if(item.__zp_state&&!type)
{item.__zp_mousetimer=setTimeout('Zapatec.Tree.all["'+
item.__zp_tree+'"].itemHide("'+item.__zp_item+'")',(this.config.hideDelay||1));}};Zapatec.Menu.prototype.itemShow=function(item_id){var item=this.items[item_id];var subMenu=this._getTree(item.__zp_subtree);var parMenu=this._getTree(item.__zp_parent);if(subMenu){if(Zapatec.is_ie&&!Zapatec.is_ie5){if(!subMenu.offsetHeight){subMenu.style.left='-9999px';subMenu.style.visibility='visible';}
if(!subMenu.__zp_wch){subMenu.__zp_wch=Zapatec.Utils.createWCH(subMenu);}
subMenu.__zp_wch.style.zIndex=-1;Zapatec.Utils.setupWCH(subMenu.__zp_wch,-1,0,subMenu.offsetWidth+2,subMenu.offsetHeight);}
var newLeft=0,newTop=0;if((/zpMenu-top/.test(item.parentNode.className))
&&(!(this.config.vertical))){newLeft=item.offsetLeft;newTop=item.offsetHeight;}
else{newLeft=item.offsetWidth;newTop=item.offsetTop;var scrollX=window.pageXOffset||document.body.scrollLeft||document.documentElement.scrollLeft||0;var scrollY=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop||0;var winW=window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth||0;var winH=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight||0;var menuPos=Zapatec.Utils.getAbsolutePos(parMenu);if(menuPos.x+newLeft+subMenu.offsetWidth>scrollX+winW){newLeft=(0-subMenu.offsetWidth);}
if(menuPos.y+newTop+subMenu.offsetHeight>scrollY+winH){newTop-=subMenu.offsetHeight;}
if(menuPos.x+newLeft<0){newLeft=0-menuPos.x;}
if(menuPos.y+newTop<0){newTop=0-menuPos.y;}}
subMenu.style.left=newLeft+'px';subMenu.style.top=newTop+'px';this.toggleItem(item_id,true);}}
Zapatec.Menu.prototype.itemHide=function(item_id){var item=this.items[item_id];var subMenu=this._getTree(item.__zp_subtree);var parMenu=this._getTree(item.__zp_parent);if(subMenu){this.toggleItem(item_id,false);parMenu.__zp_activeitem='';subMenu.__zp_activeitem='';for(var i in this.items){if(this.items[i].__zp_state)return;}
this.clickDone=false;}};Zapatec.Menu.dragStart=function(ev,menu){ev||(ev=window.event);if(menu.dragging){return true;}
var rootMenu=menu.trees[menu._el];var testElm=ev.srcElement||ev.target;while(1){if(testElm==rootMenu)break;else testElm=testElm.parentNode;if(!testElm)return true;}
menu.dragging=true;var posX=ev.pageX||ev.clientX+window.document.body.scrollLeft||0;var posY=ev.pageY||ev.clientY+window.document.body.scrollTop||0;var L=parseInt(rootMenu.style.left)||0;var T=parseInt(rootMenu.style.top)||0;menu.xOffs=(posX-L);menu.yOffs=(posY-T);};Zapatec.Menu.dragMove=function(ev,menu){ev||(ev=window.event);var rootMenu=menu.trees[menu._el];if(!(menu&&menu.dragging)){return false;}
var posX=ev.pageX||ev.clientX+window.document.body.scrollLeft||0;var posY=ev.pageY||ev.clientY+window.document.body.scrollTop||0;var st=rootMenu.style,L=posX-menu.xOffs,T=posY-menu.yOffs;st.left=L+"px";st.top=T+"px";return Zapatec.Utils.stopEvent(ev);};Zapatec.Menu.dragEnd=function(ev,menu){if(!menu){return false;}
menu.dragging=false;};if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return"";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
