var uniquepageid=window.location.href.replace("http://"+window.location.hostname,"").replace(/^\//,"");function animatedcollapse(divId,animatetime,persistexpand,initstate){this.divId=divId;this.divObj=document.getElementById(divId);this.divObj.style.overflow="hidden";this.timelength=animatetime;this.initstate=(typeof initstate!="undefined"&&initstate=="block")?"block":"contract";this.isExpanded=animatedcollapse.getCookie(uniquepageid+"-"+divId);this.contentheight=parseInt(this.divObj.style.height);var thisobj=this;if(isNaN(this.contentheight)){animatedcollapse.dotask(window,function(){thisobj._getheight(persistexpand)},"load");if(!persistexpand&&this.initstate=="contract"||persistexpand&&this.isExpanded!="yes"&&this.isExpanded!="")this.divObj.style.visibility="hidden"}else if(!persistexpand&&this.initstate=="contract"||persistexpand&&this.isExpanded!="yes"&&this.isExpanded!="")this.divObj.style.height=0;if(persistexpand)animatedcollapse.dotask(window,function(){animatedcollapse.setCookie(uniquepageid+"-"+thisobj.divId,thisobj.isExpanded)},"unload")};animatedcollapse.prototype._getheight=function(persistexpand){this.contentheight=this.divObj.offsetHeight;if(!persistexpand&&this.initstate=="contract"||persistexpand&&this.isExpanded!="yes"){this.divObj.style.height=0;this.divObj.style.visibility="visible"}else this.divObj.style.height=this.contentheight+"px"};animatedcollapse.prototype._slideengine=function(direction){var elapsed=new Date().getTime()-this.startTime;var thisobj=this;if(elapsed<this.timelength){var distancepercent=(direction=="down")?animatedcollapse.curveincrement(elapsed/this.timelength):1-animatedcollapse.curveincrement(elapsed/this.timelength);this.divObj.style.height=distancepercent*this.contentheight+"px";this.runtimer=setTimeout(function(){thisobj._slideengine(direction)},10)}else{this.divObj.style.height=(direction=="down")?this.contentheight+"px":0;this.isExpanded=(direction=="down")?"yes":"no";this.runtimer=null}};animatedcollapse.prototype.slidedown=function(){if(typeof this.runtimer=="undefined"||this.runtimer==null){if(isNaN(this.contentheight))alert("Please wait until document has fully loaded then click again");else if(parseInt(this.divObj.style.height)==0){this.startTime=new Date().getTime();this._slideengine("down")}}};animatedcollapse.prototype.slideup=function(){if(typeof this.runtimer=="undefined"||this.runtimer==null){if(isNaN(this.contentheight))alert("Please wait until document has fully loaded then click again");else if(parseInt(this.divObj.style.height)==this.contentheight){this.startTime=new Date().getTime();this._slideengine("up")}}};animatedcollapse.prototype.slideit=function(){if(isNaN(this.contentheight))alert("Please wait until document has fully loaded then click again");else if(parseInt(this.divObj.style.height)==0)this.slidedown();else if(parseInt(this.divObj.style.height)==this.contentheight)this.slideup()};animatedcollapse.curveincrement=function(percent){return(1-Math.cos(percent*Math.PI))/2};animatedcollapse.dotask=function(target,functionref,tasktype){var tasktype=(window.addEventListener)?tasktype:"on"+tasktype;if(target.addEventListener)target.addEventListener(tasktype,functionref,false);else if(target.attachEvent)target.attachEvent(tasktype,functionref)};animatedcollapse.getCookie=function(Name){var re=new RegExp(Name+"=[^;]+","i");if(document.cookie.match(re))return document.cookie.match(re)[0].split("=")[1];return ""};animatedcollapse.setCookie=function(name,value){document.cookie=name+"="+value};var thumbnailviewer={enableTitle:true,enableAnimation:false,definefooter:'<div class="footerbar">cerrar X</div>',defineLoading:'<img src="http://caballosventa.com/clasificados/code/thumbviewer/loading.gif" /> Cargando Imagen...',scrollbarwidth:16,opacitystring:'filter:progid:DXImageTransform.Microsoft.alpha(opacity=10); -moz-opacity: 0.1; opacity: 0.1',targetlinks:[],createthumbBox:function(){document.write('<div id="thumbBox" onClick="thumbnailviewer.closeit()"><div id="thumbImage"></div>'+this.definefooter+'</div>');document.write('<div id="thumbLoading">'+this.defineLoading+'</div>');this.thumbBox=document.getElementById("thumbBox");this.thumbImage=document.getElementById("thumbImage");this.thumbLoading=document.getElementById("thumbLoading");this.standardbody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body},centerDiv:function(divobj){var ie=document.all&& !window.opera;var dom=document.getElementById;var scroll_top=(ie)?this.standardbody.scrollTop:window.pageYOffset;var scroll_left=(ie)?this.standardbody.scrollLeft:window.pageXOffset;var docwidth=(ie)?this.standardbody.clientWidth:window.innerWidth-this.scrollbarwidth;var docheight=(ie)?this.standardbody.clientHeight:window.innerHeight;var docheightcomplete=(this.standardbody.offsetHeight>this.standardbody.scrollHeight)?this.standardbody.offsetHeight:this.standardbody.scrollHeight;var objwidth=divobj.offsetWidth;var objheight=divobj.offsetHeight;var topposition=(docheight>objheight)?scroll_top+docheight/2-objheight/2+"px":scroll_top+10+"px";divobj.style.left=docwidth/2-objwidth/2+"px";divobj.style.top=mosY+60+"px";divobj.style.visibility="visible"},showthumbBox:function(){this.centerDiv(this.thumbBox);if(this.enableAnimation){this.currentopacity=0.1;this.opacitytimer=setInterval("thumbnailviewer.opacityanimation()",20)}},loadimage:function(link){if(this.thumbBox.style.visibility=="visible")this.closeit();var imageHTML='<img src="'+link.getAttribute("href")+'" style="'+this.opacitystring+'" />';if(this.enableTitle&&link.getAttribute("title"))imageHTML+='<br />'+link.getAttribute("title");this.centerDiv(this.thumbLoading);this.thumbImage.innerHTML=imageHTML;this.featureImage=this.thumbImage.getElementsByTagName("img")[0];this.featureImage.onload=function(){thumbnailviewer.thumbLoading.style.visibility="hidden";thumbnailviewer.showthumbBox()};if(document.all&& !window.createPopup)this.featureImage.src=link.getAttribute("href");this.featureImage.onerror=function(){thumbnailviewer.thumbLoading.style.visibility="hidden"}},setimgopacity:function(value){var targetobject=this.featureImage;if(targetobject.filters&&targetobject.filters[0]){if(typeof targetobject.filters[0].opacity=="number")targetobject.filters[0].opacity=value*100;else targetobject.style.filter="alpha(opacity="+value*100+")"}else if(typeof targetobject.style.MozOpacity!="undefined")targetobject.style.MozOpacity=value;else if(typeof targetobject.style.opacity!="undefined")targetobject.style.opacity=value;else this.stopanimation()},opacityanimation:function(){this.setimgopacity(this.currentopacity);this.currentopacity+=0.1;if(this.currentopacity>1)this.stopanimation()},stopanimation:function(){if(typeof this.opacitytimer!="undefined")clearInterval(this.opacitytimer)},closeit:function(){this.stopanimation();this.thumbBox.style.visibility="hidden";this.thumbImage.innerHTML="";this.thumbBox.style.left="-2000px";this.thumbBox.style.top="-2000px"},cleanup:function(){this.thumbLoading=null;if(this.featureImage)this.featureImage.onload=null;this.featureImage=null;this.thumbImage=null;for(var i=0;i<this.targetlinks.length;i++)this.targetlinks[i].onclick=null;this.thumbBox=null},dotask:function(target,functionref,tasktype){var tasktype=(window.addEventListener)?tasktype:"on"+tasktype;if(target.addEventListener)target.addEventListener(tasktype,functionref,false);else if(target.attachEvent)target.attachEvent(tasktype,functionref)},init:function(){if(!this.enableAnimation)this.opacitystring="";var pagelinks=document.getElementsByTagName("a");for(var i=0;i<pagelinks.length;i++){if(pagelinks[i].getAttribute("rel")&&pagelinks[i].getAttribute("rel")=="thumbnail"){pagelinks[i].onclick=function(){thumbnailviewer.stopanimation();thumbnailviewer.loadimage(this);return false};this.targetlinks[this.targetlinks.length]=pagelinks[i]}}this.dotask(window,function(){if(thumbnailviewer.thumbBox.style.visibility=="visible")thumbnailviewer.centerDiv(thumbnailviewer.thumbBox)},"resize")}};thumbnailviewer.createthumbBox();thumbnailviewer.dotask(window,function(){thumbnailviewer.init()},"load");thumbnailviewer.dotask(window,function(){thumbnailviewer.cleanup()},"unload");eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[(function(e){return d[e]})];e=(function(){return '\\w+'});c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('5(T 8=="1B"){d 8=k Q()}5(T 8.X=="1B"){8.X=k Q()}5(T 8.y=="1B"){8.y=k Q()}8.D=f(1y,p,w,h,1o,c,1p,1K,1h,1x){5(!m.13){g}4.1V=1x?1x:"2w";4.1R=8.X.1n(4.1V);4.1w=k Q();4.17=k Q();4.1D=k 29();5(1y){4.l("L",1y)}5(p){4.l("p",p)}5(w){4.l("S",w)}5(h){4.l("R",h)}5(1o){4.l("1e",k 8.v(1o.2B().V(".")))}4.P=8.y.1U();5(!12.2A&&m.1u&&4.P.E>7){8.D.1S=B}5(c){4.1J("2C",c)}d q=1p?1p:"2E";4.1J("2F",q);4.l("10",I);4.l("W",I);d 1Y=(1K)?1K:12.16;4.l("1Q",1Y);4.l("15","");5(1h){4.l("15",1h)}};8.D.1P={10:f(1q){4.1r=!1q?"2G.L":1q;4.l("10",B)},l:f(2e,1Z){4.1D[2e]=1Z},j:f(22){g 4.1D[22]},1J:f(23,2c){4.1w[23]=2c},1F:f(){g 4.1w},U:f(2a,26){4.17[2a]=26},2Z:f(2d){g 4.17[2d]},28:f(){g 4.17},1H:f(){d 18=k 29();d u;d 1t=4.28();H(u 1f 1t){18[18.G]=u+"="+1t[u]}g 18},1T:f(){d o="";5(C.1z&&C.1m&&C.1m.G){5(4.j("W")){4.U("27","2N");4.l("L",4.1r)}o="<2P 2Q=\\"2R/x-2S-2T\\" 2U=\\""+4.j("L")+"\\" S=\\""+4.j("S")+"\\" R=\\""+4.j("R")+"\\" O=\\""+4.j("O")+"\\"";o+=" p=\\""+4.j("p")+"\\" 11=\\""+4.j("p")+"\\" ";d 1v=4.1F();H(d u 1f 1v){o+=[u]+"=\\""+1v[u]+"\\" "}d 1A=4.1H().2g("&");5(1A.G>0){o+="2h=\\""+1A+"\\""}o+="/>"}1b{5(4.j("W")){4.U("27","2W");4.l("L",4.1r)}o="<1N p=\\""+4.j("p")+"\\" 2Y=\\"30:31-32-33-34-35\\" S=\\""+4.j("S")+"\\" R=\\""+4.j("R")+"\\" O=\\""+4.j("O")+"\\">";o+="<1I 11=\\"37\\" 1L=\\""+4.j("L")+"\\" />";d 1G=4.1F();H(d u 1f 1G){o+="<1I 11=\\""+u+"\\" 1L=\\""+1G[u]+"\\" />"}d 1M=4.1H().2g("&");5(1M.G>0){o+="<1I 11=\\"2h\\" 1L=\\""+1M+"\\" />"}o+="</1N>"}g o},2i:f(14){5(4.j("10")){d 1O=k 8.v([6,0,2j]);5(4.P.1d(1O)&&!4.P.1d(4.j("1e"))){4.l("W",B);4.U("2k",2l(4.j("1Q")));m.1k=m.1k.2m(0,2n)+" - 1W 2o 2p";4.U("2q",m.1k)}}5(4.1R||4.j("W")||4.P.1d(4.j("1e"))){d n=(T 14=="2r")?m.13(14):14;n.2s=4.1T();g B}1b{5(4.j("15")!=""){m.16.1E(4.j("15"))}}g I}};8.y.1U=f(){d A=k 8.v([0,0,0]);5(C.1z&&C.1m.G){d x=C.1z["2y 1W"];5(x&&x.20){A=k 8.v(x.20.1E(/([a-2D-Z]|\\s)+/,"").1E(/(\\s+r|\\s+b[0-9]+)/,".").V("."))}}1b{5(C.25&&C.25.1C("2H 2J")>=0){d t=1;d 1g=3;2M(t){19{1g++;t=k 1a("z.z."+1g);A=k 8.v([1g,0,0])}1c(e){t=J}}}1b{19{d t=k 1a("z.z.7")}1c(e){19{d t=k 1a("z.z.6");A=k 8.v([6,0,21]);t.2V="2X"}1c(e){5(A.E==6){g A}}19{t=k 1a("z.z")}1c(e){}}5(t!=J){A=k 8.v(t.3a("$1e").V(" ")[1].V(","))}}}g A};8.v=f(F){4.E=F[0]!=J?1i(F[0]):0;4.Y=F[1]!=J?1i(F[1]):0;4.1l=F[2]!=J?1i(F[2]):0};8.v.1P.1d=f(N){5(4.E<N.E){g I}5(4.E>N.E){g B}5(4.Y<N.Y){g I}5(4.Y>N.Y){g B}5(4.1l<N.1l){g I}g B};8.X={1n:f(1j){d q=m.16.2u||m.16.2x;5(1j==J){g q}5(q){d K=q.1s(1).V("&");H(d i=0;i<K.G;i++){5(K[i].1s(0,K[i].1C("="))==1j){g K[i].1s((K[i].1C("=")+1))}}}g""}};8.y.1X=f(){d M=m.2K("2O");H(d i=M.G-1;i>=0;i--){M[i].O.36="38";H(d x 1f M[i]){5(T M[i][x]=="f"){M[i][x]=f(){}}}}};5(8.D.1S){5(!8.2f){8.y.2b=f(){2t=f(){};2v=f(){};12.24("2z",8.y.1X)};12.24("2L",8.y.2b);8.2f=B}}5(!m.13&&m.1u){m.13=f(p){g m.1u[p]}}d 39=8.X.1n;d 2I=8.D;d D=8.D;',62,197,'||||this|if|||deconcept|||||var||function|return|||getAttribute|new|setAttribute|document||_19|id||||axo|key|PlayerVersion|||SWFObjectUtil|ShockwaveFlash|_23|true|navigator|SWFObject|major|_29|length|for|false|null|_2d|swf|_2f|fv|style|installedVer|Object|height|width|typeof|addVariable|split|doExpressInstall|util|minor||useExpressInstall|name|window|getElementById|_20|redirectUrl|location|variables|_16|try|ActiveXObject|else|catch|versionIsValid|version|in|_26|_9|parseInt|_2b|title|rev|mimeTypes|getRequestParameter|_5|_7|_d|xiSWFPath|substring|_18|all|_1a|params|_a|_1|plugins|_1c|undefined|indexOf|attributes|replace|getParams|_1d|getVariablePairs|param|addParam|_8|value|_1f|object|_21|prototype|xiRedirectUrl|skipDetect|doPrepUnload|getSWFHTML|getPlayerVersion|DETECT_KEY|Flash|cleanupSWFs|_c|_f|description||_10|_11|attachEvent|userAgent|_14|MMplayerType|getVariables|Array|_13|prepUnload|_12|_15|_e|unloadSet|join|flashvars|write|65|MMredirectURL|escape|slice|47|Player|Installation|MMdoctitle|string|innerHTML|__flash_unloadHandler|search|__flash_savedUnloadHandler|detectflash|hash|Shockwave|onunload|opera|toString|bgcolor|zA|high|quality|expressinstall|Windows|FlashObject|CE|getElementsByTagName|onbeforeunload|while|PlugIn|OBJECT|embed|type|application|shockwave|flash|src|AllowScriptAccess|ActiveX|always|classid|getVariable|clsid|D27CDB6E|AE6D|11cf|96B8|444553540000|display|movie|none|getQueryParamValue|GetVariable'.split('|'),0,{}));function createplayer(theFile,go){var s=new SWFObject("http://caballosventa.com/clasificados/videos/flvplayer.swf","playerID","320","260","7");s.addParam('allowscriptaccess','always');s.addParam("allowfullscreen","true");s.addVariable("file",theFile);s.addVariable("width","320");s.addVariable("height","260");s.addVariable("displayheight","240");s.addVariable("overstretch","fit");s.addVariable("javascriptid","playerID");s.addVariable("enablejs","true");if(go){s.addVariable("autostart","true");}s.write("placeholder");collapse1.slidedown();collapse2.slidedown();collapse3.slidedown();goToAnchor()};function sendEvent(swf,typ,prm){thisMovie(swf).sendEvent(typ,prm);};function getUpdate(typ,pr1,pr2,swf){};function thisMovie(swf){if(navigator.appName.indexOf("Microsoft")!= -1){return window[swf];}else{return document[swf];}};function hideplayer(theFile,go){var s=new SWFObject("videos/flvplayer.swf","playerID","0","0","7");s.addParam('allowscriptaccess','always');s.addVariable("file",theFile);s.addVariable("width","0");s.addVariable("height","0");s.addVariable("displayheight","0");s.addVariable("javascriptid","playerID");s.addVariable("enablejs","true");if(go){s.addVariable("autostart","true");}s.write("placeholder");};function cerrar(){sendEvent('playerID','stop');hideplayer('#',false);collapse1.slideup();collapse2.slideup();collapse3.slideup();};function goToAnchor(){location.href="#arriba";};var dhtmlwindow={imagefiles:['http://caballosventa.com/clasificados/code/img/min.gif','http://caballosventa.com/clasificados/code/img/close.gif','http://caballosventa.com/clasificados/code/img/restore.gif','http://caballosventa.com/clasificados/code/img/resize.gif'],ajaxbustcache:true,ajaxloadinghtml:'<b>Cargando...</b>',minimizeorder:0,zIndexvalue:100,tobjects:[],lastactivet:{},init:function(t){var domwindow=document.createElement("div");domwindow.id=t;domwindow.className="dhtmlwindow";var domwindowdata='';domwindowdata='<div class="drag-handle">';domwindowdata+='DHTML Window <div class="drag-controls"><img src="'+this.imagefiles[0]+'" title="Minimize" /><img src="'+this.imagefiles[1]+'" title="Close" /></div>';domwindowdata+='</div>';domwindowdata+='<div class="drag-contentarea"></div>';domwindowdata+='<div class="drag-statusarea"><div class="drag-resizearea" style="background: transparent url('+this.imagefiles[3]+') top right no-repeat;">&nbsp;</div></div>';domwindowdata+='</div>';domwindow.innerHTML=domwindowdata;document.getElementById("dhtmlwindowholder").appendChild(domwindow);var t=document.getElementById(t);var divs=t.getElementsByTagName("div");for(var i=0;i<divs.length;i++){if(/drag-/.test(divs[i].className))t[divs[i].className.replace(/drag-/,"")]=divs[i]}t.handle._parent=t;t.resizearea._parent=t;t.controls._parent=t;t.onclose=function(){return true};t.onmousedown=function(){dhtmlwindow.setfocus(this)};t.controls.onclick=dhtmlwindow.enablecontrols;t.show=function(){dhtmlwindow.show(this)};t.hide=function(){dhtmlwindow.hide(this)};t.close=function(){dhtmlwindow.close(this)};t.setSize=function(w,h){dhtmlwindow.setSize(this,w,h)};t.moveTo=function(x,y){dhtmlwindow.moveTo(this,x,y)};t.isResize=function(bol){dhtmlwindow.isResize(this,bol)};t.isScrolling=function(bol){dhtmlwindow.isScrolling(this,bol)};t.load=function(contenttype,contentsource,title){dhtmlwindow.load(this,contenttype,contentsource,title)};this.tobjects[this.tobjects.length]=t;return t},open:function(t,contenttype,contentsource,title,attr,recalonload){var d=dhtmlwindow;function getValue(Name){var config=new RegExp(Name+"=([^,]+)","i");return(config.test(attr))?parseInt(RegExp.$1):0};if(document.getElementById(t)==null)t=this.init(t);else t=document.getElementById(t);this.setfocus(t);t.setSize(getValue(("width")),(getValue("height")));var xpos=getValue("left")-225;var ypos=getValue("top")+20;if(typeof recalonload!="undefined"&&recalonload=="recal"&&this.scroll_top==0){if(window.attachEvent&& !window.opera)this.addEvent(window,function(){setTimeout(function(){t.moveTo(xpos,ypos)},400)},"load");else this.addEvent(window,function(){t.moveTo(xpos,ypos)},"load")}t.isResize(getValue("resize"));t.isScrolling(getValue("scrolling"));t.style.visibility="visible";t.style.display="block";t.contentarea.style.display="block";t.moveTo(xpos,ypos);t.load(contenttype,contentsource,title);if(t.state=="minimized"&&t.controls.firstChild.title=="Restore"){t.controls.firstChild.setAttribute("src",dhtmlwindow.imagefiles[0]);t.controls.firstChild.setAttribute("title","Minimize");t.state="fullview"}return t},setSize:function(t,w,h){t.style.width=Math.max(parseInt(w),150)+"px";t.contentarea.style.height=Math.max(parseInt(h),100)+"px"},moveTo:function(t,x,y){this.getviewpoint();t.style.left=(x=="middle")?this.scroll_left+(this.docwidth-t.offsetWidth)/2+"px":this.scroll_left+parseInt(x)+"px";t.style.top=mosY+20+"px"},isResize:function(t,bol){t.statusarea.style.display=(bol)?"block":"none";t.resizeBool=(bol)?1:0},isScrolling:function(t,bol){t.contentarea.style.overflow=(bol)?"auto":"hidden"},load:function(t,contenttype,contentsource,title){if(t.isClosed){alert("DHTML Window has been closed, so no window to load contents into. Open/Create the window again.");return}var contenttype=contenttype.toLowerCase();if(typeof title!="undefined")t.handle.firstChild.nodeValue=title;if(contenttype=="inline")t.contentarea.innerHTML=contentsource;else if(contenttype=="div"){var inlinedivref=document.getElementById(contentsource);t.contentarea.innerHTML=(inlinedivref.defaultHTML||inlinedivref.innerHTML);if(!inlinedivref.defaultHTML)inlinedivref.defaultHTML=inlinedivref.innerHTML;inlinedivref.innerHTML="";inlinedivref.style.display="none"}else if(contenttype=="iframe"){t.contentarea.style.overflow="hidden";if(!t.contentarea.firstChild||t.contentarea.firstChild.tagName!="IFRAME")t.contentarea.innerHTML='<iframe src="" style="margin:0; padding:0; width:100%; height: 100%" name="_iframe-'+t.id+'"></iframe>';window.frames["_iframe-"+t.id].location.replace(contentsource)}else if(contenttype=="ajax"){this.ajax_connect(contentsource,t)}t.contentarea.datatype=contenttype},setupdrag:function(e){var d=dhtmlwindow;var t=this._parent;d.etarget=this;var e=window.event||e;d.initmousex=e.clientX;d.initmousey=e.clientY;d.initx=parseInt(t.offsetLeft);d.inity=parseInt(t.offsetTop);d.width=parseInt(t.offsetWidth);d.contentheight=parseInt(t.contentarea.offsetHeight);if(t.contentarea.datatype=="iframe"){t.style.backgroundColor="#F8F8F8";t.contentarea.style.visibility="hidden"}document.onmousemove=d.getdistance;document.onmouseup=function(){if(t.contentarea.datatype=="iframe"){t.contentarea.style.backgroundColor="white";t.contentarea.style.visibility="visible"}d.stop()};return false},getdistance:function(e){var d=dhtmlwindow;var etarget=d.etarget;var e=window.event||e;d.distancex=e.clientX-d.initmousex;d.distancey=e.clientY-d.initmousey;if(etarget.className=="drag-handle")d.move(etarget._parent,e);else if(etarget.className=="drag-resizearea")d.resize(etarget._parent,e);return false},getviewpoint:function(){var ie=document.all&& !window.opera;var domclientWidth=document.documentElement&&parseInt(document.documentElement.clientWidth)||100000;this.standardbody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body;this.scroll_top=(ie)?this.standardbody.scrollTop:window.pageYOffset;this.scroll_left=(ie)?this.standardbody.scrollLeft:window.pageXOffset;this.docwidth=(ie)?this.standardbody.clientWidth:(/Safari/i.test(navigator.userAgent))?window.innerWidth:Math.min(domclientWidth,window.innerWidth-16);this.docheight=(ie)?this.standardbody.clientHeight:window.innerHeight},rememberattrs:function(t){this.getviewpoint();t.lastx=parseInt((t.style.left||t.offsetLeft))-dhtmlwindow.scroll_left;t.lasty=parseInt((t.style.top||t.offsetTop))-dhtmlwindow.scroll_top;t.lastwidth=parseInt(t.style.width)},move:function(t,e){t.style.left=dhtmlwindow.distancex+dhtmlwindow.initx+"px";t.style.top=dhtmlwindow.distancey+dhtmlwindow.inity+"px"},resize:function(t,e){t.style.width=Math.max(dhtmlwindow.width+dhtmlwindow.distancex,150)+"px";t.contentarea.style.height=Math.max(dhtmlwindow.contentheight+dhtmlwindow.distancey,100)+"px"},enablecontrols:function(e){var d=dhtmlwindow;var sourceobj=window.event?window.event.srcElement:e.target;if(/Minimize/i.test(sourceobj.getAttribute("title")))d.minimize(sourceobj,this._parent);else if(/Restore/i.test(sourceobj.getAttribute("title")))d.restore(sourceobj,this._parent);else if(/Close/i.test(sourceobj.getAttribute("title")))d.close(this._parent);return false},rg_minimize:function(button,t){dhtmlwindow.rememberattrs(t);button.setAttribute("src",dhtmlwindow.imagefiles[2]);button.setAttribute("title","Restore");t.state="minimized";t.contentarea.style.display="none";t.statusarea.style.display="none";if(typeof t.minimizeorder=="undefined"){dhtmlwindow.minimizeorder++;t.minimizeorder=dhtmlwindow.minimizeorder}t.style.left="10px";t.style.width="200px";var windowspacing=t.minimizeorder*10;t.style.top=dhtmlwindow.scroll_top+dhtmlwindow.docheight-(t.handle.offsetHeight*t.minimizeorder)-windowspacing+"px"},restore:function(button,t){dhtmlwindow.getviewpoint();button.setAttribute("src",dhtmlwindow.imagefiles[0]);button.setAttribute("title","Minimize");t.state="fullview";t.style.display="block";t.contentarea.style.display="block";if(t.resizeBool)t.statusarea.style.display="block";t.style.left=parseInt(t.lastx)+dhtmlwindow.scroll_left+"px";t.style.top=parseInt(t.lasty)+dhtmlwindow.scroll_top+"px";t.style.width=parseInt(t.lastwidth)+"px"},close:function(t){try{var closewinbol=t.onclose()}catch(err){var closewinbol=true}finally{if(typeof closewinbol=="undefined"){alert("An error has occured somwhere inside your \"onclose\" event handler");var closewinbol=true}}if(closewinbol){if(t.state!="minimized")dhtmlwindow.rememberattrs(t);if(window.frames["_iframe-"+t.id])window.frames["_iframe-"+t.id].location.replace("about:blank");else t.contentarea.innerHTML="";t.style.display="none";t.isClosed=true}return closewinbol},setopacity:function(targetobject,value){if(!targetobject)return;if(targetobject.filters&&targetobject.filters[0]){if(typeof targetobject.filters[0].opacity=="number")targetobject.filters[0].opacity=value*100;else targetobject.style.filter="alpha(opacity="+value*100+")"}else if(typeof targetobject.style.MozOpacity!="undefined")targetobject.style.MozOpacity=value;else if(typeof targetobject.style.opacity!="undefined")targetobject.style.opacity=value},setfocus:function(t){this.zIndexvalue++;t.style.zIndex=this.zIndexvalue;t.isClosed=false;this.setopacity(this.lastactivet.handle,0.5);this.setopacity(t.handle,1);this.lastactivet=t},show:function(t){if(t.isClosed){alert("DHTML Window has been closed, so nothing to show. Open/Create the window again.");return}if(t.lastx)dhtmlwindow.restore(t.controls.firstChild,t);else t.style.display="block";this.setfocus(t);t.state="fullview"},hide:function(t){t.style.display="none"},ajax_connect:function(url,t){var page_request=false;var bustcacheparameter="";if(window.XMLHttpRequest)page_request=new XMLHttpRequest();else if(window.ActiveXObject){try{page_request=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{page_request=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}}else return false;t.contentarea.innerHTML=this.ajaxloadinghtml;page_request.onreadystatechange=function(){dhtmlwindow.ajax_loadpage(page_request,t)};if(this.ajaxbustcache)bustcacheparameter=(url.indexOf("?")!= -1)?"&"+new Date().getTime():"?"+new Date().getTime();page_request.open('GET',url+bustcacheparameter,true);page_request.send(null)},ajax_loadpage:function(page_request,t){if(page_request.readyState==4&&(page_request.status==200||window.location.href.indexOf("http")== -1)){t.contentarea.innerHTML=page_request.responseText}},stop:function(){dhtmlwindow.etarget=null;document.onmousemove=null;document.onmouseup=null},addEvent:function(target,functionref,tasktype){var tasktype=(window.addEventListener)?tasktype:"on"+tasktype;if(target.addEventListener)target.addEventListener(tasktype,functionref,false);else if(target.attachEvent)target.attachEvent(tasktype,functionref)},cleanup:function(){for(var i=0;i<dhtmlwindow.tobjects.length;i++){dhtmlwindow.tobjects[i].handle._parent=dhtmlwindow.tobjects[i].resizearea._parent=dhtmlwindow.tobjects[i].controls._parent=null}window.onload=null}};document.write('<div id="dhtmlwindowholder"><span style="display:none">.</span></div>');window.onunload=dhtmlwindow.cleanup;document.onmousemove=mousepos;function mousepos(e){mosX=0;mosY=0;if(!e)var e=window.event;if(e.pageX||e.pageY){mosX=e.pageX;mosY=e.pageY;}else if(e.clientX||e.clientY){mosX=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;mosY=e.clientY+document.body.scrollTop+document.documentElement.scrollTop;}};function bookmarksite(title,url){if(window.sidebar)window.sidebar.addPanel(title,url,"");else if(window.opera&&window.print){var elem=document.createElement('a');elem.setAttribute('href',url);elem.setAttribute('title',title);elem.setAttribute('rel','sidebar');elem.click();}else if(document.all)window.external.AddFavorite(url,title);}
