function startup() { animate("animate","#ffffff"); check_res(); switchAd(); //Ajax('isi','na.asp?tugas=depan'); Ajax('webstat','na.asp?tugas=webstat'); //Ajax('chatt','na.asp?tugas=chatt'); dgstatus3() dgstatus2(); dgstatus(); } var boodschap = '___keke 1st spot to visit! '; function dgstatus() { window.status = boodschap; timerID= setTimeout("dgstatus()", 250); } //dgstatus(); function dgstatus2() //for chatt box { timerID2= setTimeout("dgstatus2()", 150000); Ajax('chatt','na.asp?tugas=chatt'); } function dgstatus3() //for webstat { timerID3= setTimeout("dgstatus2()", 200000); Ajax('chatt','na.asp?tugas=webstat'); } //''-----------tab // //> //[/script> //[script LANGUAGE="JavaScript"> //< function check_res(){ if ((screen.width<1024) && (screen.height<768)) /* if (navigator.appName=='Netscape') { //this.body.style.overflow='auto'; el = document.getElementById('HTML'); el.style.overflow='auto'; document.write(""); } */ { alert(" situs ini nyaman untuk resolusi minimal 1024x768") } } function buka_win(url,w,h) { xWindow = window.open(url,"Keke_pop_viewer5475",'scrollbars=yes,menubar=no,status=no,toolbar=no,resizable=no,width=333,height=333,titlebar=no,alwaysRaised=yes'); } function buka_win2(url,w,h) { xWindow = window.open(url,"Keke_pop_viewer3424",'scrollbars=yes,menubar=no,status=no,toolbar=no,resizable=no,width=333,height=333,titlebar=no,alwaysRaised=yes'); } function buka_stream(url) { xWindow = window.open(url,"Keke_streamz5186",'scrollbars=no,menubar=no,status=no,toolbar=no,resizable=no,width=610,height=455,titlebar=no,alwaysRaised=yes'); } function buka_chatt(url) { xWindow = window.open(url,"Keke_Chatt_Form5625",'scrollbars=no,menubar=no,status=no,toolbar=no,resizable=no,width=250,height=100,titlebar=no,alwaysRaised=yes,left=80,top=80'); } //------------------- function warning(txt) { alert(txt) } //-//> //[/script> //[script language="javascript"> //< /*000000000000000000000000000000000000000000000000000000000000*/ /* Simple AJAX Code-Kit (SACK) v1.6.1 */ /* ©2005 Gregory Wild-Smith */ /* www.twilightuniverse.com */ /* Software licenced under a modified X11 licence, see documentation or authors website for more details */ /*000000000000000000000000000000000000000000000000000000000000*/ function sack(file) { this.xmlhttp = null; this.resetData = function() { this.method = "POST"; this.queryStringSeparator = "?"; this.argumentSeparator = "&"; this.URLString = ""; this.encodeURIString = true; this.execute = false; this.element = null; this.elementObj = null; this.requestFile = file; this.vars = new Object(); this.responseStatus = new Array(2); }; this.resetFunctions = function() { this.onLoading = function() { }; this.onLoaded = function() { }; this.onInteractive = function() { }; this.onCompletion = function() { }; this.onError = function() { }; this.onFail = function() { }; }; this.reset = function() { this.resetFunctions(); this.resetData(); }; this.createAJAX = function() { try { this.xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e1) { try { this.xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e2) { this.xmlhttp = null; } } if (! this.xmlhttp) { if (typeof XMLHttpRequest != "undefined") { this.xmlhttp = new XMLHttpRequest(); } else { this.failed = true; } } }; this.setVar = function(name, value){ this.vars[name] = Array(value, false); }; this.encVar = function(name, value, returnvars) { if (true == returnvars) { return Array(encodeURIComponent(name), encodeURIComponent(value)); } else { this.vars[encodeURIComponent(name)] = Array(encodeURIComponent(value), true); } } this.processURLString = function(string, encode) { encoded = encodeURIComponent(this.argumentSeparator); regexp = new RegExp(this.argumentSeparator + "|" + encoded); varArray = string.split(regexp); for (i = 0; i < varArray.length; i++){ urlVars = varArray[i].split("="); if (true == encode){ this.encVar(urlVars[0], urlVars[1]); } else { this.setVar(urlVars[0], urlVars[1]); } } } this.createURLString = function(urlstring) { if (this.encodeURIString && this.URLString.length) { this.processURLString(this.URLString, true); } if (urlstring) { if (this.URLString.length) { this.URLString += this.argumentSeparator + urlstring; } else { this.URLString = urlstring; } } // prevents caching of URLString this.setVar(".rndval", new Date().getTime() + "_unCached-TZ_keke__1948" ) ; urlstringtemp = new Array(); for (key in this.vars) { if (false == this.vars[key][1] && true == this.encodeURIString) { encoded = this.encVar(key, this.vars[key][0], true); delete this.vars[key]; this.vars[encoded[0]] = Array(encoded[1], true); key = encoded[0]; } urlstringtemp[urlstringtemp.length] = key + "=" + this.vars[key][0]; } if (urlstring){ this.URLString += this.argumentSeparator + urlstringtemp.join(this.argumentSeparator); } else { this.URLString += urlstringtemp.join(this.argumentSeparator); } } this.runResponse = function() { eval(this.response); } this.runAJAX = function(urlstring) { if (this.failed) { this.onFail(); } else { this.createURLString(urlstring); if (this.element) { this.elementObj = document.getElementById(this.element); } if (this.xmlhttp) { var self = this; if (this.method == "GET") { totalurlstring = this.requestFile + this.queryStringSeparator + this.URLString; this.xmlhttp.open(this.method, totalurlstring, true); } else { this.xmlhttp.open(this.method, this.requestFile, true); try { this.xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded") } catch (e) { } } this.xmlhttp.onreadystatechange = function() { switch (self.xmlhttp.readyState) { case 1: self.onLoading(); break; case 2: self.onLoaded(); break; case 3: self.onInteractive(); break; case 4: self.response = self.xmlhttp.responseText; self.responseXML = self.xmlhttp.responseXML; self.responseStatus[0] = self.xmlhttp.status; self.responseStatus[1] = self.xmlhttp.statusText; if (self.execute) { self.runResponse(); } if (self.elementObj) { elemNodeName = self.elementObj.nodeName; elemNodeName.toLowerCase(); if (elemNodeName == "input" || elemNodeName == "select" || elemNodeName == "option" || elemNodeName == "textarea") { self.elementObj.value = self.response; } else { self.elementObj.innerHTML = self.response; } } if (self.responseStatus[0] == "200") { self.onCompletion(); } else { self.onError(); } self.URLString = ""; break; } }; this.xmlhttp.send(this.URLString); } } }; this.reset(); this.createAJAX(); } ////> //[/script> //[script language="javascript"> //< // ---------------------------------- var enableCache = false; var jsCache = new Array(); var AjaxObjects = new Array(); function ShowContent(divId,ajaxIndex,url) { document.getElementById(divId).innerHTML = AjaxObjects[ajaxIndex].response; if(enableCache){ jsCache[url] = AjaxObjects[ajaxIndex].response; } AjaxObjects[ajaxIndex] = false; } function Ajax(divId,url) { if(enableCache && jsCache[url]){ document.getElementById(divId).innerHTML = jsCache[url]; return; } var ajaxIndex = AjaxObjects.length; document.getElementById(divId).innerHTML = '

mengolah data...

'; document.getElementById('hidepage').style.visibility = 'visible'; AjaxObjects[ajaxIndex] = new sack(); AjaxObjects[ajaxIndex].requestFile = url; AjaxObjects[ajaxIndex].onCompletion = function(){ ShowContent(divId,ajaxIndex,url); document.getElementById('hidepage').style.visibility = 'hidden'; }; AjaxObjects[ajaxIndex].runAJAX(); } ////> //[/script> //[script language="javascript"> //< /* Copyright Scand LLC http://www.scbr.com This version of Software is free for using in non-commercial applications. For commercial use please contact info@scbr.com to obtain license */ function dtmlXMLLoaderObject(funcObject,dhtmlObject,async){ this.xmlDoc=""; if(arguments.length==2) this.async=true; else this.async=async; this.onloadAction=funcObject||null; this.mainObject=dhtmlObject||null; return this; }; dtmlXMLLoaderObject.prototype.waitLoadFunction=function(dhtmlObject){ this.check=function(){ if(dhtmlObject.onloadAction!=null){ if((!dhtmlObject.xmlDoc.readyState)||(dhtmlObject.xmlDoc.readyState == 4)){ dhtmlObject.onloadAction(dhtmlObject.mainObject,null,null,null,dhtmlObject); dhtmlObject=null; } } }; return this.check; }; dtmlXMLLoaderObject.prototype.getXMLTopNode=function(tagName){ if(this.xmlDoc.responseXML){ var temp=this.xmlDoc.responseXML.getElementsByTagName(tagName); var z=temp[0]; }else var z=this.xmlDoc.documentElement; if(z) return z; if((_isIE)&&(!this._retry)){ this._retry=true; this.xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); this.xmlDoc.async=false; this.xmlDoc.load(this.filePath); return this.getXMLTopNode(tagName); } dhtmlxError.throwError("LoadXML","Incorrect XML",[this.xmlDoc]) return document.createElement("DIV"); }; dtmlXMLLoaderObject.prototype.loadXMLString=function(xmlString){ try { var parser = new DOMParser(); this.xmlDoc = parser.parseFromString(xmlString,"text/xml"); } catch(e){ this.xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); this.xmlDoc.async=this.async this.xmlDoc.loadXML(xmlString); } this.onloadAction(this.mainObject); } dtmlXMLLoaderObject.prototype.loadXML=function(filePath,postMode,postVars){ this.filePath=filePath; try { this.xmlDoc = new XMLHttpRequest(); this.xmlDoc.open(postMode?"POST":"GET",filePath,this.async); if(postMode) this.xmlDoc.setRequestHeader('Content-type','application/x-www-form-urlencoded'); this.xmlDoc.onreadystatechange=new this.waitLoadFunction(this); this.xmlDoc.send(null||postVars); } catch(e){ if(document.implementation && document.implementation.createDocument) { this.xmlDoc = document.implementation.createDocument("","",null); this.xmlDoc.onload = new this.waitLoadFunction(this); this.xmlDoc.load(filePath); } else { this.xmlDoc = new ActiveXObject("Microsoft.XMLHTTP"); this.xmlDoc.open(postMode?"POST":"GET",filePath,this.async); if(postMode)this.xmlDoc.setRequestHeader('Content-type','application/x-www-form-urlencoded'); this.xmlDoc.onreadystatechange=new this.waitLoadFunction(this); this.xmlDoc.send(null||postVars); } } }; dtmlXMLLoaderObject.prototype.destructor=function(){ this.onloadAction=null; this.mainObject=null; this.xmlDoc=null; return null; } function callerFunction(funcObject,dhtmlObject){ this.handler=function(e){ if(!e)e=event; funcObject(e,dhtmlObject); return true; }; return this.handler; }; function getAbsoluteLeft(htmlObject){ var xPos = htmlObject.offsetLeft; var temp = htmlObject.offsetParent; while(temp != null){ xPos+= temp.offsetLeft; temp = temp.offsetParent; } return xPos; } function getAbsoluteTop(htmlObject){ var yPos = htmlObject.offsetTop; var temp = htmlObject.offsetParent; while(temp != null){ yPos+= temp.offsetTop; temp = temp.offsetParent; } return yPos; } function convertStringToBoolean(inputString){if(typeof(inputString)=="string")inputString=inputString.toLowerCase(); switch(inputString){ case "1": case "true": case "yes": case "y": case 1: case true: return true; break; default: return false; } } function getUrlSymbol(str){ if(str.indexOf("?")!=-1) return "&" else return "?" } function dhtmlDragAndDropObject(){ this.lastLanding=0; this.dragNode=0; this.dragStartNode=0; this.dragStartObject=0; this.tempDOMU=null; this.tempDOMM=null; this.waitDrag=0; if(window.dhtmlDragAndDrop)return window.dhtmlDragAndDrop; window.dhtmlDragAndDrop=this; return this; }; dhtmlDragAndDropObject.prototype.removeDraggableItem=function(htmlNode){ htmlNode.onmousedown=null; htmlNode.dragStarter=null; htmlNode.dragLanding=null; } dhtmlDragAndDropObject.prototype.addDraggableItem=function(htmlNode,dhtmlObject){ htmlNode.onmousedown=this.preCreateDragCopy; htmlNode.dragStarter=dhtmlObject; this.addDragLanding(htmlNode,dhtmlObject); } dhtmlDragAndDropObject.prototype.addDragLanding=function(htmlNode,dhtmlObject){ htmlNode.dragLanding=dhtmlObject; } dhtmlDragAndDropObject.prototype.preCreateDragCopy=function(e) { if(window.dhtmlDragAndDrop.waitDrag){ window.dhtmlDragAndDrop.waitDrag=0; document.body.onmouseup=window.dhtmlDragAndDrop.tempDOMU; document.body.onmousemove=window.dhtmlDragAndDrop.tempDOMM; return false; } window.dhtmlDragAndDrop.waitDrag=1; window.dhtmlDragAndDrop.tempDOMU=document.body.onmouseup; window.dhtmlDragAndDrop.tempDOMM=document.body.onmousemove; window.dhtmlDragAndDrop.dragStartNode=this; window.dhtmlDragAndDrop.dragStartObject=this.dragStarter; document.body.onmouseup=window.dhtmlDragAndDrop.preCreateDragCopy; document.body.onmousemove=window.dhtmlDragAndDrop.callDrag; if((e)&&(e.preventDefault)){e.preventDefault();return false;} return false; }; dhtmlDragAndDropObject.prototype.callDrag=function(e){ if(!e)e=window.event; dragger=window.dhtmlDragAndDrop; if((e.button==0)&&(_isIE))return dragger.stopDrag(); if(!dragger.dragNode){ dragger.dragNode=dragger.dragStartObject._createDragNode(dragger.dragStartNode,e); if(!dragger.dragNode)return dragger.stopDrag(); dragger.gldragNode=dragger.dragNode; document.body.appendChild(dragger.dragNode); document.body.onmouseup=dragger.stopDrag; dragger.waitDrag=0; dragger.dragNode.pWindow=window; dragger.initFrameRoute(); } if(dragger.dragNode.parentNode!=window.document.body){ var grd=dragger.gldragNode; if(dragger.gldragNode.old)grd=dragger.gldragNode.old; grd.parentNode.removeChild(grd); var oldBody=dragger.dragNode.pWindow; if(_isIE){ var div=document.createElement("Div"); div.innerHTML=dragger.dragNode.outerHTML; dragger.dragNode=div.childNodes[0];} else dragger.dragNode=dragger.dragNode.cloneNode(true); dragger.dragNode.pWindow=window; dragger.gldragNode.old=dragger.dragNode; document.body.appendChild(dragger.dragNode); oldBody.dhtmlDragAndDrop.dragNode=dragger.dragNode; } dragger.dragNode.style.left=e.clientX+15+(dragger.fx?dragger.fx*(-1):0)+(document.body.scrollLeft||document.documentElement.scrollLeft)+"px"; dragger.dragNode.style.top=e.clientY+3+(dragger.fy?dragger.fy*(-1):0)+(document.body.scrollTop||document.documentElement.scrollTop)+"px"; if(!e.srcElement)var z=e.target;else z=e.srcElement; dragger.checkLanding(z,e.clientX,e.clientY); } dhtmlDragAndDropObject.prototype.calculateFramePosition=function(n){ if(window.name){ var el =parent.frames[window.name].frameElement.offsetParent; var fx=0; var fy=0; while(el){fx+= el.offsetLeft;fy+= el.offsetTop;el = el.offsetParent;} if((parent.dhtmlDragAndDrop)){var ls=parent.dhtmlDragAndDrop.calculateFramePosition(1);fx+=ls.split('_')[0]*1;fy+=ls.split('_')[1]*1;} if(n)return fx+"_"+fy; else this.fx=fx;this.fy=fy; } return "0_0"; } dhtmlDragAndDropObject.prototype.checkLanding=function(htmlObject,x,y){ if((htmlObject)&&(htmlObject.dragLanding)){if(this.lastLanding)this.lastLanding.dragLanding._dragOut(this.lastLanding); this.lastLanding=htmlObject;this.lastLanding=this.lastLanding.dragLanding._dragIn(this.lastLanding,this.dragStartNode,x,y);} else{ if((htmlObject)&&(htmlObject.tagName!="BODY"))this.checkLanding(htmlObject.parentNode,x,y); else{if(this.lastLanding)this.lastLanding.dragLanding._dragOut(this.lastLanding,x,y);this.lastLanding=0;} } } dhtmlDragAndDropObject.prototype.stopDrag=function(e,mode){ dragger=window.dhtmlDragAndDrop; if(!mode) { dragger.stopFrameRoute(); var temp=dragger.lastLanding; dragger.lastLanding=null; if(temp)temp.dragLanding._drag(dragger.dragStartNode,dragger.dragStartObject,temp); } dragger.lastLanding=null; if((dragger.dragNode)&&(dragger.dragNode.parentNode==document.body))dragger.dragNode.parentNode.removeChild(dragger.dragNode); dragger.dragNode=0; dragger.gldragNode=0; dragger.fx=0; dragger.fy=0; dragger.dragStartNode=0; dragger.dragStartObject=0; document.body.onmouseup=dragger.tempDOMU; document.body.onmousemove=dragger.tempDOMM; dragger.tempDOMU=null; dragger.tempDOMM=null; dragger.waitDrag=0; } dhtmlDragAndDropObject.prototype.stopFrameRoute=function(win){ if(win) window.dhtmlDragAndDrop.stopDrag(1,1); for(var i=0;i //[/script> //[script language="javascript"> //0?a:0)+"px"; a=parseInt(this.height)-z-4; this._conZone.style.height=(a>0?a:0)+"px"; } dhtmlXTabBar.prototype._setSizesV = function(){ this._tabAll.height=this.height; this._tabAll.width=this.width; var z=this._height*this.rows.length; if(!this._bMode){ this._tabZone.style.width=z+3+"px"; this._conZone.style.width=parseInt(this.width)-z+"px"; this._conZone.style.left= z+3+"px"; } else{ this._tabZone.style.width=z+3+"px"; this._conZone.style.width=parseInt(this.width)-z+"px"; this._tabZone.style.left=parseInt(this.width)-z+"px"; } this._conZone.style.height=this.height; this._tabZone.style.height=this.height; } dhtmlXTabBar.prototype._redrawRowV=function(row){ var talign=this._align=="left"?"top":"bottom"; var count=parseInt(this._offset); for(var i=0;i=0;i--){ this.rows[i].style.left=i*this._height+"px"; this.rows[i].style.zIndex=15-i; } } dhtmlXTabBar.prototype.setRowSizesC=function(){ for(var i=this.rows.length-1;i>=0;i--){ this.rows[i].style.zIndex=15-i; } } dhtmlXTabBar.prototype._onMouseOverHandler=function(e) { if(_isIE) var target = event.srcElement; else var target = e.target; target=this.tabbar._getTabTarget(target); if(!target){ this.tabbar._hideHover(target);return; } this.tabbar._showHover(target); (e||event).cancelBubble=true; } dhtmlXTabBar.prototype._onMouseOutHandler=function(e) { this.parentNode.tabbar._hideHover(null);return; } dhtmlXTabBar.prototype._onClickHandler=function(e) { if(_isIE) var target = event.srcElement; else var target = e.target; (e||event).cancelBubble=true; target=this.tabbar._getTabTarget(target); if(!target)return; this.tabbar._setTabActive(target); return false; } dhtmlXTabBar.prototype._getTabTarget=function(t){ while((!t.className)||(t.className.indexOf("dhx_tab_element")==-1)){ if((t.className)&&(t.className.indexOf("dhx_tabbar_zone")!=-1))return null; t=t.parentNode; } return t; } dhtmlXTabBar.prototype._redrawRow=function(row){ var count=parseInt(this._offset); for(var i=0;i'; thml+='
'; thml+='
'+text+'
'; } else { thml='
'; thml+='
'; thml+='
'+text+'
'; } if(!this._styles[this._cstyle][10])tab.style.backgroundColor='transparent'; else tab.style.backgroundColor=this._styles[this._cstyle][10]; break; } tab.innerHTML=thml; tab._lChild=tab.childNodes[tab.childNodes.length-1]; if(this._vMode) { tab.style.height=size||this._tabSize; tab.style.width=this._height+1+"px"; } else { tab.style.width=size||this._tabSize; tab.style.height=this._height+1+"px"; } tab._offsetSize=parseInt(size||this._tabSize); return tab; } dhtmlXTabBar.prototype.clearAll = function(){ this.tabsId=new Array(); this.rows=new Array(); this._lastActive=null; this._lastHower=null; this.entBox.innerHTML=""; this._createSelf(); this.setStyle(this._cstyle); } dhtmlXTabBar.prototype.setImagePath = function(path){ this._imgPath=path; } dhtmlXTabBar.prototype.loadXMLString=function(xmlString,afterCall){ this.XMLLoader=new dtmlXMLLoaderObject(this._parseXML,this); this.waitCall=afterCall||0; this.XMLLoader.loadXMLString(xmlString); }; dhtmlXTabBar.prototype.loadXML=function(file,afterCall){ this.XMLLoader=new dtmlXMLLoaderObject(this._parseXML,this); this.waitCall=afterCall||0; this.XMLLoader.loadXML(file); } dhtmlXTabBar.prototype._getXMLContent=function(node){ var text=""; for(var i=0;i Loading...
"; (new dtmlXMLLoaderObject(this._ajaxOnLoad,this,true)).loadXML(this._hrefs[tab.idd]); z._loaded=true; } break; } if((this._lastActive)&&(this._content[this._lastActive.idd])) this._content[this._lastActive.idd].style.visibility='hidden'; if(this._content[tab.idd]) this._content[tab.idd].style.visibility=''; this.adjustSize(); } dhtmlXTabBar.prototype.setContentHTML=function(id,html){ var z=document.createElement("DIV"); z.style.width="100%"; z.style.height="100%"; z.style.overflow="auto"; z.innerHTML=html; this.setContent(id,z); } dhtmlXTabBar.prototype.setStyle=function(name){ if(this._styles[name]){ this._cstyle=name; this._conZone.style.backgroundColor=this._styles[this._cstyle][11]; } } dhtmlXTabBar.prototype.allignToContainer=function(id,mode){ if(id) this._conZone.style.display='none'; if(typeof(id)!="object") id=document.getElementById(id); if(!id)return; this.entBox.style.position='absolute'; document.body.appendChild(this.entBox); switch(mode){ case "t": this.entBox.style.top=getAbsoluteTop(id)-this.entBox.offsetHeight+"px"; this.entBox.style.left=getAbsoluteLeft(id)-this.entBox.offsetWidth+"px"; break; } } dhtmlXTabBar.prototype.setTabBarStyle = function(name){ this._tbst=name; } dhtmlXTabBar.prototype.enableContentZone=function(mode){ this._conZone.style.display=convertStringToBoolean(mode)?"":'none'; } dhtmlXTabBar.prototype.setSkinColors=function(a_tab,p_tab){ this._styles[this._cstyle][10]=p_tab; this._styles[this._cstyle][11]=a_tab; this._conZone.style.backgroundColor=a_tab; } dhtmlXTabBar.prototype.getActiveTab=function(){ if(this._lastActive)return this._lastActive.idd; return null; } dhtmlXTabBar.prototype.goToNextTab=function(){ if(this._lastActive){ if(this._lastActive.nextSibling.idd){ this._setTabActive(this._lastActive.nextSibling); return this._lastActive.nextSibling.idd; } else if(this._lastActive.parentNode.nextSibling){ var arow=this._lastActive.parentNode.nextSibling; this._setTabActive(arow.childNodes[0]); return arow.childNodes[0].idd; } } return null; } dhtmlXTabBar.prototype.goToPrevTab=function(){ if(this._lastActive){ if(this._lastActive.previousSibling){ this._setTabActive(this._lastActive.previousSibling); return this._lastActive.idd; } else if(this._lastActive.parentNode.previousSibling){ var arow=this._lastActive.parentNode.previousSibling; this._setTabActive(arow.childNodes[arow.tabCount-1]); return this._lastActive.idd; } } return null; } dhtmlXTabBar.prototype.enableAutoSize=function(autoWidth,autoHeight){ this._ahdj=convertStringToBoolean(autoHeight); this._awdj=convertStringToBoolean(autoWidth); } dhtmlXTabBar.prototype.setSize=function(width,height,contentZone){ if(contentZone){ if(!this._vMode) height+=20; else width+=20; } this.height=height+"px"; this.width=width+"px"; this._lineA.style[this._vMode?"left":"top"]=(this._bMode?0:(this._height+2))+"px"; this._lineA.style[this._vMode?"height":"width"]=this[this._vMode?"height":"width"]; if(this._vMode){ for(var i=0;ithis._conZone.offsetHeight)){ y=this._conZone.scrollHeight; flag=true; } if((this._awdj)&&(this._conZone.scrollWidth>this._conZone.offsetWidth)){ x=this._conZone.scrollWidth; flag=true; } if(flag)this.setSize(x,y,true); } ////> //[/script> //[script language="javascript"> //< /* Copyright Scand LLC http://www.scbr.com This version of Software is free for using in non-commercial applications. For commercial use please contact info@scbr.com to obtain license */function dhx_init_tabbars(){ var z=document.getElementsByTagName("div"); for(var i=0;i //[/script> //[script type="text/javascript"> //{click to cancel loading} ', loadingTitle : 'Click to cancel', loadingOpacity : 0.44, showCredits : true, // you can set this to false if you want creditsText : 'Gallery Nike Ardilla', creditsHref : 'http://vikjavev.no/highslide/?user=1', creditsTitle : 'Go to the Highslide JS homepage', // These settings can also be overridden inline for each image anchor : 'auto', // where the image expands from align : 'auto', // position in the client (overrides anchor) targetX: null, // the id of a target element targetY: null, captionId : null, captionTemplateId : null, slideshowGroup : null, // defines groups for next/previous links and keystrokes spaceForCaption : 30, // leaves space below images with captions minWidth: 200, minHeight: 200, allowSizeReduction: true, // allow the image to reduce to fit client size. If false, this overrides minWidth and minHeight outlineType : 'drop-shadow', // set null to disable outlines wrapperClassName : null, // for enhanced css-control enableKeyListener : true, // END OF YOUR SETTINGS // declare internal properties preloadTheseImages : new Array(), continuePreloading: true, expandedImagesCounter : 0, expanders : new Array(), overrides : new Array( 'anchor', 'align', 'targetX', 'targetY', 'outlineType', 'outlineWhileAnimating', 'spaceForCaption', 'wrapperClassName', 'minWidth', 'minHeight', 'captionId', 'captionTemplateId', 'allowSizeReduction', 'slideshowGroup', 'enableKeyListener' ), overlays : new Array(), pendingOutlines : new Array(), origNodes : new Array(), ie : (document.all && !window.opera), safari : navigator.userAgent.indexOf("Safari") != -1, hasFocused : false, $ : function (id) { return document.getElementById(id); }, push : function (arr, val) { arr[arr.length] = val; }, createElement : function (tag, attribs, styles, parent) { var el = document.createElement(tag); if (attribs) hs.setAttribs(el, attribs); if (styles) hs.setStyles(el, styles); if (parent) parent.appendChild(el); return el; }, setAttribs : function (el, attribs) { for (var x in attribs) { el[x] = attribs[x]; } }, setStyles : function (el, styles) { for (var x in styles) { try { el.style[x] = styles[x]; } catch (e) {} } }, ieVersion : function () { arr = navigator.appVersion.split("MSIE"); return parseFloat(arr[1]); }, clientInfo : function () { var iebody = document.compatMode && document.compatMode != "BackCompat" ? document.documentElement : document.body; this.width = hs.ie ? iebody.clientWidth : self.innerWidth; this.height = hs.ie ? iebody.clientHeight : self.innerHeight; this.scrollLeft = hs.ie ? iebody.scrollLeft : pageXOffset; this.scrollTop = hs.ie ? iebody.scrollTop : pageYOffset; } , position : function(el) { var parent = el; var p = { x: parent.offsetLeft, y: parent.offsetTop }; while (parent.offsetParent) { parent = parent.offsetParent; p.x += parent.offsetLeft; p.y += parent.offsetTop; if (parent != document.body && parent != document.documentElement) { p.x -= parent.scrollLeft; p.y -= parent.scrollTop; } } return p; }, expand : function(a, params, contentType) { try { new HsExpander(a, params, contentType); return false; } catch (e) { return true; } }, focusTopmost : function() { var topZ = 0; var topmostKey = -1; for (i = 0; i < hs.expanders.length; i++) { if (hs.expanders[i]) { if (hs.expanders[i].wrapper.style.zIndex && hs.expanders[i].wrapper.style.zIndex > topZ) { topZ = hs.expanders[i].wrapper.style.zIndex; topmostKey = i; } } } if (topmostKey == -1) hs.focusKey = -1; else hs.expanders[topmostKey].focus(); }, closeId : function(elId) { // for text links for (i = 0; i < hs.expanders.length; i++) { if (hs.expanders[i] && (hs.expanders[i].thumb.id == elId || hs.expanders[i].a.id == elId)) { hs.expanders[i].doClose(); return; } } }, close : function(el) { var key = hs.getWrapperKey(el); if (hs.expanders[key]) hs.expanders[key].doClose(); return false; }, toggleImages : function(closeId, expandEl) { if (closeId) hs.closeId(closeId); if (hs.ie) expandEl.href = expandEl.href.replace('about:(blank)?', ''); // mysterious IE thing hs.toggleImagesExpandEl = expandEl; return false; }, getAdjacentAnchor : function(key, op) { var aAr = document.getElementsByTagName('A'); var hsAr = new Array; var activeI = -1; var j = 0; for (i = 0; i < aAr.length; i++) { if (hs.isHsAnchor(aAr[i]) && ((hs.expanders[key].slideshowGroup == hs.getParam(aAr[i], 'slideshowGroup')))) { hsAr[j] = aAr[i]; if (hs.expanders[key] && aAr[i] == hs.expanders[key].a) { activeI = j; } j++; } } return hsAr[activeI + op]; }, getParam : function (a, param) { try { var s = a.onclick.toString(); var oneLine = s.replace(/\s/g, ' '); var sParams = oneLine.replace(/.*?hs.(htmlE|e)xpand\s*?\(\s*?this\s*?,\s*?\{(.*?)\}.*?$/, '$2'); if (hs.safari) { // stupid bug for (var i = 0; i < hs.overrides.length; i++) { sParams = sParams.replace(hs.overrides[i] +':', ','+ hs.overrides[i] +':').replace(/^\s*?,/, ''); } } if (oneLine == sParams) return null; eval('var arr = {'+ sParams +'};'); for (var x in arr) { if (x == param) return arr[x]; } } catch (e) { return null; } }, getSrc : function (a) { var src = hs.getParam(a, 'src'); if (src) return src; return a.rel.replace(/_slash_/g, '/') || a.href; }, cloneNode : function (id) { if (!hs.$(id) && !hs.origNodes[id]) return null; var clone; if (hs.origNodes[id]) { clone = hs.origNodes[id].cloneNode(1); hs.setId(clone, /-hsOrig$/, 1); } else { clone = hs.$(id).cloneNode(1); hs.origNodes[id] = hs.$(id); hs.setId(hs.$(id), '-hsOrig'); } return clone; }, setId : function (d, suff, remove) { if (d.id) d.id = remove ? d.id.replace(suff, '') : d.id + suff; if (d.name) d.name = remove ? d.name.replace(suff, '') : d.name + suff; if (hs.geckoBug && hs.geckoBug(d)) return; var a = d.childNodes; for (var i = 0; i < a.length; i++) { if (a[i]) hs.setId(a[i], suff, remove); } }, purge : function(d) { var a = d.attributes, i, l, n; if (a) { l = a.length; for (i = 0; i < l; i += 1) { n = a[i].name; if (typeof d[n] === 'function') { d[n] = null; } } } if (hs.geckoBug && hs.geckoBug(d)) return; a = d.childNodes; if (a) { l = a.length; for (i = 0; i < l; i += 1) { hs.purge(d.childNodes[i]); } } }, previousOrNext : function (el, op) { if (typeof el == 'object') var activeKey = hs.getWrapperKey(el); else if (typeof el == 'number') var activeKey = el; if (hs.expanders[activeKey]) { //hs.toggleImagesExpandEl = hs.getAdjacentAnchor(activeKey, op); try { hs.getAdjacentAnchor(activeKey, op).onclick(); } catch (e) {} hs.expanders[activeKey].doClose(); } return false; }, previous : function (el) { return hs.previousOrNext(el, -2); }, next : function (el) { return hs.previousOrNext(el, 2); }, keyHandler : function(e) { if (!e) e = window.event; if (!e.target) e.target = e.srcElement; // ie if (e.target.form) return; // form element has focus var op = null; switch (e.keyCode) { case 34: // Page Down case 39: // Arrow right case 40: // Arrow left op = 1; break; case 33: // Page Up case 37: // Arrow left case 38: // Arrow down op = -1; break; case 27: // Escape case 13: // Enter if (hs.expanders[hs.focusKey]) hs.expanders[hs.focusKey].doClose(); return false; } if (op != null) { hs.removeEventListener(document, 'keydown', hs.keyHandler); if (hs.expanders[hs.focusKey] && !hs.expanders[hs.focusKey].enableKeyListener) return true; return hs.previousOrNext(hs.focusKey, op); } else return true; }, registerOverlay : function (overlay) { hs.push(hs.overlays, overlay); }, getWrapperKey : function (el) { var key = -1; while (el.parentNode) { el = el.parentNode; if (el.id && el.id.match(/^highslide-wrapper-[0-9]+$/)) { key = el.id.replace(/^highslide-wrapper-([0-9]+)$/, "$1"); break; } } return key; }, cleanUp : function () { if (hs.toggleImagesExpandEl) { hs.toggleImagesExpandEl.onclick(); hs.toggleImagesExpandEl = null; } else { for (i = 0; i < hs.expanders.length; i++) { if (hs.expanders[i] && hs.expanders[i].isExpanded) hs.focusTopmost(); } } }, mouseClickHandler : function(e) { if (!e) e = window.event; if (e.button > 1) return true; if (!e.target) e.target = e.srcElement; var fobj = e.target; while (fobj.parentNode && !(fobj.className && fobj.className.match(/highslide-(image|move|html)/))) { fobj = fobj.parentNode; } if (!fobj.parentNode) return; hs.dragKey = hs.getWrapperKey(fobj); if (fobj.className.match(/highslide-(image|move)/)) { var isDraggable = true; var wLeft = parseInt(hs.expanders[hs.dragKey].wrapper.style.left); var wTop = parseInt(hs.expanders[hs.dragKey].wrapper.style.top); } if (e.type == 'mousedown') { if (isDraggable) // drag or focus { hs.dragObj = hs.expanders[hs.dragKey].content; if (fobj.className.match('highslide-image')) hs.dragObj.style.cursor = 'move'; hs.wLeft = wLeft; hs.wTop = wTop; hs.dragX = e.clientX; hs.dragY = e.clientY; hs.addEventListener(document, 'mousemove', hs.mouseMoveHandler); if (e.preventDefault) e.preventDefault(); // FF if (hs.dragObj.className.match(/highslide-(image|html)-blur/)) { hs.expanders[hs.dragKey].focus(); hs.hasFocused = true; } return false; } else if (fobj.className.match(/highslide-html/)) { // just focus hs.expanders[hs.dragKey].focus(); hs.expanders[hs.dragKey].redoShowHide(); hs.hasFocused = false; // why?? } } else if (e.type == 'mouseup') { hs.removeEventListener(document, 'mousemove', hs.mouseMoveHandler); if (isDraggable && hs.expanders[hs.dragKey]) { if (fobj.className.match('highslide-image')) { fobj.style.cursor = hs.styleRestoreCursor; } var hasMoved = wLeft != hs.wLeft || wTop != hs.wTop; if (!hasMoved && !hs.hasFocused && !fobj.className.match(/highslide-move/)) { hs.expanders[hs.dragKey].doClose(); } else if (hasMoved || (!hasMoved && hs.hasHtmlExpanders)) { hs.expanders[hs.dragKey].redoShowHide(); } hs.hasFocused = false; } else if (fobj.className.match('highslide-image-blur')) { fobj.style.cursor = hs.styleRestoreCursor; } } }, mouseMoveHandler : function(e) { if (!hs.expanders[hs.dragKey] || !hs.expanders[hs.dragKey].wrapper) return; if (!e) e = window.event; var exp = hs.expanders[hs.dragKey]; var w = exp.wrapper; w.style.left = hs.wLeft + e.clientX - hs.dragX +'px'; w.style.top = hs.wTop + e.clientY - hs.dragY +'px'; if (exp.objOutline) { var o = exp.objOutline; o.outer.style.left = (parseInt(w.style.left) - o.offset) +'px'; o.outer.style.top = (parseInt(w.style.top) - o.offset) +'px'; } return false; }, addEventListener : function (el, event, func) { if (document.addEventListener) el.addEventListener(event, func, false); else if (document.attachEvent) el.attachEvent('on'+ event, func); else el['on'+ event] = func; }, removeEventListener : function (el, event, func) { if (document.removeEventListener) el.removeEventListener(event, func, false); else if (document.detachEvent) el.detachEvent('on'+ event, func); else el[event] = null; }, isHsAnchor : function (a) { return (a.onclick && a.onclick.toString().replace(/\s/g, ' ').match(/hs.(htmlE|e)xpand/)); }, preloadFullImage : function (i) { if (hs.continuePreloading && hs.preloadTheseImages[i] && hs.preloadTheseImages[i] != 'undefined') { var img = document.createElement('img'); img.onload = function() { hs.preloadFullImage(i + 1); }; img.src = hs.preloadTheseImages[i]; } }, preloadImages : function (number) { if (number && typeof number != 'object') hs.numberOfImagesToPreload = number; var re, j = 0; var aTags = document.getElementsByTagName('A'); for (i = 0; i < aTags.length; i++) { a = aTags[i]; re = hs.isHsAnchor(a); if (re && re[0] == 'hs.expand') { if (j < hs.numberOfImagesToPreload) { hs.preloadTheseImages[j] = hs.getSrc(a); j++; } } } // preload outlines new HsOutline(hs.outlineType, function () { hs.preloadFullImage(0)} ); // preload cursor var cur = document.createElement('img'); cur.src = hs.graphicsDir + hs.restoreCursor; }, genContainer : function () { if (!hs.container) { hs.container = hs.createElement('div', null, { position: 'absolute', left: 0, top: 0, width: '100%', zIndex: hs.zIndexCounter }, document.body ); } } }; // end hs object //----------------------------------------------------------------------------- HsOutline = function (outlineType, onLoad) { if (!outlineType) return; if (onLoad) this.onLoad = onLoad; this.outlineType = outlineType; this.outline = new Array(); var v = hs.ieVersion(); hs.genContainer(); this.hasAlphaImageLoader = hs.ie && v >= 5.5 && v < 8; this.hasPngSupport = !hs.ie || (hs.ie && v >= 8); this.hasOutline = this.outlineType && (this.hasAlphaImageLoader || this.hasPngSupport); this.outer = hs.createElement( 'table', { cellSpacing: 0 // saf }, { visibility: 'hidden', position: 'absolute', zIndex: hs.zIndexCounter++, borderCollapse: 'collapse' }, hs.container ); this.tbody = hs.createElement('tbody', null, null, this.outer); this.preloadOutlineElement(1); // recursive }; HsOutline.prototype.preloadOutlineElement = function (i) { if (this.outline[i] && this.outline[i].onload) { // Gecko multiple onloads bug this.outline[i].onload = null; return; } this.offset = this.hasOutline ? 10 : 0; if (i == 1 || i == 4 || i == 6) this.tr = hs.createElement('tr', null, null, this.tbody); if (i == 5) this.inner = hs.createElement('td', null, { padding: 0, margin: 0, border: 0, position: 'relative' }, this.tr); var files = Array (0,8,1,2,7,3,6,5,4); var src = hs.graphicsDir + "outlines/"+ this.outlineType +"/"+ files[i] +".png"; if (this.hasAlphaImageLoader) { var bgKey = 'filter'; var bgValue = "progid:DXImageTransform.Microsoft.AlphaImageLoader(" + "enabled=true, sizingMethod=scale src='"+ src + "') "; } else if (this.hasPngSupport || this.hasIe7Bug) { var bgKey = 'background'; var bgValue = 'url('+ src +')'; } var styles = { lineHeight: 0, fontSize: 0, padding: 0, margin: 0, border: 0 }; if (this.hasOutline) styles[bgKey] = bgValue; var td = hs.createElement('td', null, styles); var img = hs.createElement('img', null, { visibility: 'hidden', display: 'block', padding: 0, margin: 0, border: 0 }, td); // for onload trigger var dim = 2 * this.offset; hs.setStyles (td, { height: dim +'px', width: dim +'px'} ); var pThis = this; if (i < 8) img.onload = function() { pThis.preloadOutlineElement(i + 1); }; else img.onload = function() { hs.pendingOutlines[pThis.outlineType] = pThis; if (pThis.onLoad) pThis.onLoad(); }; this.tr.appendChild(td); if (this.hasOutline) img.src = src; else img.onload(); }; HsOutline.prototype.destroy = function() { hs.purge(this.outer); try { this.outer.parentNode.removeChild(this.outer); } catch (e) {} }; //----------------------------------------------------------------------------- // The expander object HsExpander = function(a, params, contentType) { hs.continuePreloading = false; // override inline parameters for (i = 0; i < hs.overrides.length; i++) { var name = hs.overrides[i]; if (params && typeof params[name] != 'undefined') this[name] = params[name]; else this[name] = hs[name]; } if (params && params.thumbnailId) { var el = hs.$(params.thumbnailId); } else { // first img within anchor for (i = 0; i < a.childNodes.length; i++) { if (a.childNodes[i].tagName && a.childNodes[i].tagName == 'IMG') { var el = a.childNodes[i]; break; } } } if (!el) el = a; // cancel other for (i = 0; i < hs.expanders.length; i++) { if (hs.expanders[i] && hs.expanders[i].thumb != el && !hs.expanders[i].onLoadStarted) { hs.expanders[i].cancelLoading(); } } // check if already open for (i = 0; i < hs.expanders.length; i++) { if (hs.expanders[i] && hs.expanders[i].thumb == el) { hs.expanders[i].focus(); return false; } } if (!hs.allowMultipleInstances) { var prev = hs.expandedImagesCounter - 1; if (hs.expanders[prev]) hs.expanders[prev].doClose(); } this.key = hs.expandedImagesCounter++; hs.expanders[this.key] = this; if (contentType == 'html') { this.isHtml = true; this.contentType = 'html'; } else { this.isImage = true; this.contentType = 'image'; } this.a = a; this.thumbsUserSetId = el.id || a.id; this.thumb = el; this.overlays = new Array(); var pos = hs.position(el); // instanciate the wrapper this.wrapper = hs.createElement( 'div', { id: 'highslide-wrapper-'+ this.key, className: this.wrapperClassName }, { visibility: 'hidden', position: 'absolute', zIndex: hs.zIndexCounter++ } ); // store properties of thumbnail this.thumbWidth = el.width ? el.width : el.offsetWidth; this.thumbHeight = el.height ? el.height : el.offsetHeight; this.thumbLeft = pos.x; this.thumbTop = pos.y; this.thumbClass = el.className; // thumb borders this.thumbOffsetBorderW = (this.thumb.offsetWidth - this.thumbWidth) / 2; this.thumbOffsetBorderH = (this.thumb.offsetHeight - this.thumbHeight) / 2; // get the wrapper hs.genContainer(); if (hs.pendingOutlines[this.outlineType]) { this.connectOutline(); this[this.contentType +'Create'](); } else if (!this.outlineType) { this[this.contentType +'Create'](); } else { this.displayLoading(); var pThis = this; new HsOutline(this.outlineType, function () { pThis.connectOutline(); pThis[pThis.contentType +'Create'](); } ); } }; HsExpander.prototype.connectOutline = function(x, y) { var w = hs.pendingOutlines[this.outlineType]; this.objOutline = w; hs.pendingOutlines[this.outlineType] = null; }; HsExpander.prototype.displayLoading = function() { if (this.onLoadStarted || this.loading) return; this.originalCursor = this.a.style.cursor; this.a.style.cursor = 'wait'; if (!hs.loading) { hs.loading = hs.createElement('a', { className: 'highslide-loading', title: hs.loadingTitle, innerHTML: hs.loadingText }, { position: 'absolute' }, hs.container ); if (hs.ie) hs.loading.style.filter = 'alpha(opacity='+ (99*hs.loadingOpacity) +')'; else hs.loading.style.opacity = hs.loadingOpacity; } this.loading = hs.loading; this.loading.href = 'javascript:hs.expanders['+ this.key +'].cancelLoading()'; this.loading.visibility = 'visible'; this.loading.style.left = (this.thumbLeft + this.thumbOffsetBorderW + (this.thumbWidth - this.loading.offsetWidth) / 2) +'px'; this.loading.style.top = (this.thumbTop + (this.thumbHeight - this.loading.offsetHeight) / 2) +'px'; setTimeout( "if (hs.expanders["+ this.key +"] && hs.expanders["+ this.key +"].loading) " + "hs.expanders["+ this.key +"].loading.style.visibility = 'visible';", 100 ); }; HsExpander.prototype.imageCreate = function() { var img = document.createElement('img'); var key = this.key; var img = document.createElement('img'); this.content = img; img.onload = function () { if (hs.expanders[key]) hs.expanders[key].onLoad(); }; img.className = 'highslide-image '+ this.thumbClass; img.style.visibility = 'hidden'; // prevent flickering in IE img.style.display = 'block'; img.style.position = 'absolute'; img.style.zIndex = 3; img.title = hs.restoreTitle; img.onmouseover = function () { if (hs.expanders[key]) hs.expanders[key].onMouseOver(); }; img.onmouseout = function (e) { var rel = e ? e.relatedTarget : event.toElement; if (hs.expanders[key]) hs.expanders[key].onMouseOut(rel); }; if (hs.safari) hs.container.appendChild(img); if (hs.ie) img.src = null; img.src = hs.getSrc(this.a); this.displayLoading(); }; HsExpander.prototype.onLoad = function() { try { if (!this.content) return; if (this.onLoadStarted) return; // old Gecko loop else this.onLoadStarted = true; if (this.loading) { this.loading.style.visibility = 'hidden'; this.loading = null; this.a.style.cursor = this.originalCursor || ''; } if (this.isImage) { this.newWidth = this.content.width; this.newHeight = this.content.height; this.fullExpandWidth = this.newWidth; this.fullExpandHeight = this.newHeight; this.content.width = this.thumbWidth; this.content.height = this.thumbHeight; } else if (this.htmlGetSize) this.htmlGetSize(); // identify caption div var modMarginBottom = hs.marginBottom; if (!this.captionId && this.thumbsUserSetId) this.captionId = 'caption-for-'+ this.thumbsUserSetId; if (this.captionId) { this.caption = hs.cloneNode(this.captionId); } if (this.captionTemplateId) { var s = (this.caption) ? this.caption.innerHTML : ''; this.caption = hs.cloneNode(this.captionTemplateId); if (this.caption) this.caption.innerHTML = this.caption.innerHTML.replace(/\s/g, ' ').replace('{caption}', s); } var modMarginBottom = hs.marginBottom; if (this.caption) modMarginBottom += this.spaceForCaption; this.wrapper.appendChild(this.content); this.content.style.position = 'relative'; // Saf if (this.caption) this.wrapper.appendChild(this.caption); this.wrapper.style.left = this.thumbLeft +'px'; this.wrapper.style.top = this.thumbTop +'px'; hs.container.appendChild(this.wrapper); // correct for borders this.offsetBorderW = (this.content.offsetWidth - this.thumbWidth) / 2; this.offsetBorderH = (this.content.offsetHeight - this.thumbHeight) / 2; var modMarginRight = hs.marginRight + 2 * this.offsetBorderW; modMarginBottom += 2 * this.offsetBorderH; var ratio = this.newWidth / this.newHeight; var minWidth = this.allowSizeReduction ? this.minWidth : this.newWidth; var minHeight = this.allowSizeReduction ? this.minHeight : this.newHeight; var justify = { x: 'auto', y: 'auto' }; if (this.align == 'center') { justify.x = 'center'; justify.y = 'center'; } else { if (this.anchor.match(/^top/)) justify.y = null; if (this.anchor.match(/right$/)) justify.x = 'max'; if (this.anchor.match(/^bottom/)) justify.y = 'max'; if (this.anchor.match(/left$/)) justify.x = null; } client = new hs.clientInfo(); // justify this.x = { min: parseInt(this.thumbLeft) - this.offsetBorderW + this.thumbOffsetBorderW, span: this.newWidth, minSpan: this.newWidth < minWidth ? this.newWidth : minWidth, justify: justify.x, target: this.targetX, marginMin: hs.marginLeft, marginMax: modMarginRight, scroll: client.scrollLeft, clientSpan: client.width, thumbSpan: this.thumbWidth }; var oldRight = this.x.min + parseInt(this.thumbWidth); this.x = this.justify(this.x); this.y = { min: parseInt(this.thumbTop) - this.offsetBorderH + this.thumbOffsetBorderH, span: this.newHeight, minSpan: this.newHeight < minHeight ? this.newHeight : minHeight, justify: justify.y, target: this.targetY, marginMin: hs.marginTop, marginMax: modMarginBottom, scroll: client.scrollTop, clientSpan: client.height, thumbSpan: this.thumbHeight }; var oldBottom = this.y.min + parseInt(this.thumbHeight); this.y = this.justify(this.y); if (this.isHtml) this.htmlSizeOperations(); if (this.isImage) this.correctRatio(ratio); var x = this.x; var y = this.y; // Selectbox bug var imgPos = {x: x.min - 20, y: y.min - 20, w: x.span + 40, h: y.span + 40 + this.spaceForCaption}; hs.hideSelects = (hs.ie && hs.ieVersion() < 7); if (hs.hideSelects) this.showHideElements('SELECT', 'hidden', imgPos); // Iframes bug hs.hideIframes = (window.opera || navigator.vendor == 'KDE' || (hs.ie && hs.ieVersion() < 5.5)); if (hs.hideIframes) this.showHideElements('IFRAME', 'hidden', imgPos); // Make outline ready if (this.objOutline && !this.outlineWhileAnimating) this.positionOutline(x.min, y.min, x.span, y.span); var o2 = this.objOutline ? this.objOutline.offset : 0; // Apply size change this.changeSize( 1, this.thumbLeft + this.thumbOffsetBorderW - this.offsetBorderW, this.thumbTop + this.thumbOffsetBorderH - this.offsetBorderH, this.thumbWidth, this.thumbHeight, x.min, y.min, x.span, y.span, hs.expandDuration, hs.expandSteps, hs.outlineStartOffset, o2 ); } catch (e) { if (hs.expanders[this.key] && hs.expanders[this.key].a) window.location.href = hs.getSrc(hs.expanders[this.key].a); } }; HsExpander.prototype.justify = function (p) { var tgt, dim = p == this.x ? 'x' : 'y'; if (p.target && p.target.match(/ /)) { tgt = p.target.split(' '); p.target = tgt[0]; } if (p.target && hs.$(p.target)) { p.min = hs.position(hs.$(p.target))[dim]; if (tgt && tgt[1] && tgt[1].match(/^[-]?[0-9]+px$/)) p.min += parseInt(tgt[1]); } else if (p.justify == 'auto' || p.justify == 'center') { var hasMovedMin = false; var allowReduce = true; // calculate p.min if (p.justify == 'center') p.min = Math.round(p.scroll + (p.clientSpan - p.span - p.marginMax) / 2); else p.min = Math.round(p.min - ((p.span - p.thumbSpan) / 2)); // auto if (p.min < p.scroll + p.marginMin) { p.min = p.scroll + p.marginMin; hasMovedMin = true; } if (p.span < p.minSpan) { p.span = p.minSpan; allowReduce = false; } // calculate right/newWidth if (p.min + p.span > p.scroll + p.clientSpan - p.marginMax) { if (hasMovedMin && allowReduce) p.span = p.clientSpan - p.marginMin - p.marginMax; // can't expand more else if (p.span < p.clientSpan - p.marginMin - p.marginMax) { // move newTop up p.min = p.scroll + p.clientSpan - p.span - p.marginMin - p.marginMax; } else { // image larger than client p.min = p.scroll + p.marginMin; if (allowReduce) p.span = p.clientSpan - p.marginMin - p.marginMax; } } if (p.span < p.minSpan) { p.span = p.minSpan; allowReduce = false; } } else if (p.justify == 'max') { p.min = Math.floor(p.min - p.span + p.thumbSpan); } if (p.min < p.marginMin) { tmpMin = p.min; p.min = p.marginMin; if (allowReduce) p.span = p.span - (p.min - tmpMin); } return p; }; HsExpander.prototype.correctRatio = function(ratio) { var x = this.x; var y = this.y; var changed = false; if (x.span / y.span > ratio) { // width greater var tmpWidth = x.span; x.span = y.span * ratio; if (x.span < x.minSpan) { // below minWidth x.span = x.minSpan; y.span = x.span / ratio; } changed = true; } else if (x.span / y.span < ratio) { // height greater var tmpHeight = y.span; y.span = x.span / ratio; changed = true; } if (changed) { x.min = parseInt(this.thumbLeft) - this.offsetBorderW + this.thumbOffsetBorderW; x.minSpan = x.span; this.x = this.justify(x); y.min = parseInt(this.thumbTop) - this.offsetBorderH + this.thumbOffsetBorderH; y.minSpan = y.span; this.y = this.justify(y); } }; HsExpander.prototype.changeSize = function(dir, x1, y1, w1, h1, x2, y2, w2, h2, dur, steps, oo1, oo2) { dW = (w2 - w1) / steps; dH = (h2 - h1) / steps; dX = (x2 - x1) / steps; dY = (y2 - y1) / steps; dOo = (oo2 - oo1) /steps; for (i = 1; i <= steps; i++) { w1 += dW; h1 += dH; x1 += dX; y1 += dY; oo1 += dOo; var obj = "hs.expanders["+ this.key +"]"; var s = "if ("+ obj +") {"; if (i == 1) { s += obj +".content.style.visibility = 'visible';" + "if ("+ obj +".thumb.tagName == 'IMG' && hs.hideThumbOnExpand) "+ obj +".thumb.style.visibility = 'hidden';" } if (i == steps) { w1 = w2; h1 = h2; x1 = x2; y1 = y2; oo1 = oo2; } s += obj +"."+ this.contentType +"SetSize("+ Math.round(w1) +", "+ Math.round(h1) +", " + Math.round(x1) +", "+ Math.round(y1) +", "+ Math.round(oo1); if (i == steps) s += ', '+ dir; s += ");}"; setTimeout(s, Math.round(i * (dur / steps))); } }; HsExpander.prototype.imageSetSize = function (w, h, x, y, offset, end) { try { this.content.width = w; this.content.height = h; if (this.objOutline && this.outlineWhileAnimating) { var o = this.objOutline.offset - offset; this.positionOutline(x + o, y + o, w - 2 * o, h - 2 * o, 1); } hs.setStyles ( this.wrapper, { 'visibility': 'visible', 'left': x +'px', 'top': y +'px' } ); var exp = 'hs.expanders['+ this.key +']'; if (end == 1) setTimeout('if ('+ exp +')'+ exp +'.onExpanded()', 0); // jerk in IE else if (end == -1) setTimeout('if ('+ exp +')'+ exp +'.onEndClose()', 0); } catch (e) { window.location.href = hs.getSrc(this.a); } }; HsExpander.prototype.positionOutline = function(x, y, w, h, vis) { if (!this.objOutline) return; var o = this.objOutline; if (vis) o.outer.style.visibility = 'visible'; o.outer.style.left = (x - o.offset) +'px'; o.outer.style.top = (y - o.offset) +'px'; o.outer.style.width = (w + 2 * (this.offsetBorderW + o.offset)) +'px'; w += 2 * (this.offsetBorderW - o.offset); h += + 2 * (this.offsetBorderH - o.offset); o.inner.style.width = w >= 0 ? w +'px' : 0; o.inner.style.height = h >= 0 ? h +'px' : 0; }; HsExpander.prototype.onExpanded = function() { if (this.objOutline) this.objOutline.outer.style.visibility = 'visible'; this.isExpanded = true; this.focus(); if (this.isHtml && this.objectLoadTime == 'after') this.writeExtendedContent(); this.createCustomOverlays(); if (hs.showCredits) this.writeCredits(); if (this.caption) this.writeCaption(); if (this.fullExpandWidth > this.x.span) this.createFullExpand(); if (!this.caption) this.onDisplayFinished(); }; HsExpander.prototype.onDisplayFinished = function() { var key = this.key; var outlineType = this.outlineType; new HsOutline(outlineType, function () { if (hs.expanders[key]) hs.expanders[key].preloadNext(); }); }; HsExpander.prototype.preloadNext = function() { var nextA = hs.getAdjacentAnchor(this.key, 1); if (nextA) { var img = document.createElement('img'); img.src = hs.getSrc(nextA); } }; HsExpander.prototype.cancelLoading = function() { this.a.style.cursor = this.originalCursor; if (this.loading) hs.loading.style.visibility = 'hidden'; hs.expanders[this.key] = null; }; HsExpander.prototype.writeCredits = function () { var credits = hs.createElement('a', { href: hs.creditsHref, className: 'highslide-credits', innerHTML: hs.creditsText, title: hs.creditsTitle } ); this.createOverlay(credits, 'top left'); }; HsExpander.prototype.writeCaption = function() { try { this.wrapper.style.width = this.wrapper.offsetWidth +'px'; this.caption.style.visibility = 'hidden'; this.caption.style.position = 'relative'; if (hs.ie) this.caption.style.zoom = 1; this.caption.className += ' highslide-display-block'; var capHeight = this.caption.offsetHeight; var slideHeight = (capHeight < this.content.height) ? capHeight : this.content.height; this.caption.style.top = '-'+ slideHeight +'px'; this.caption.style.zIndex = 2; var step = 1; if (slideHeight > 400) step = 4; else if (slideHeight > 200) step = 2; else if (slideHeight > 100) step = 1; if (hs.captionSlideSpeed) step = step * hs.captionSlideSpeed; else step = slideHeight; var t = 0; for (var top = -slideHeight; top <= 0; top += step, t += 10) { var end = (top >= 0) ? 1 : 0; var eval = "if (hs.expanders["+ this.key +"]) { " + "hs.expanders["+ this.key +"].placeCaption("+ top +", "+ end +");" + "}"; setTimeout (eval, t); } } catch (e) {} }; HsExpander.prototype.placeCaption = function(top, end) { if (!this.caption) return; this.caption.style.top = top +'px'; this.caption.style.visibility = 'visible'; if (this.objOutline) this.objOutline.inner.style.height = (this.wrapper.offsetHeight + top - 2 * this.objOutline.offset) +'px'; if (end) this.onDisplayFinished(); }; HsExpander.prototype.showHideElements = function (tagName, visibility, imgPos) { var els = document.getElementsByTagName(tagName); if (els) { for (i = 0; i < els.length; i++) { if (els[i].nodeName == tagName) { var hiddenBy = els[i].getAttribute('hidden-by'); if (visibility == 'visible' && hiddenBy) { hiddenBy = hiddenBy.replace('['+ this.key +']', ''); els[i].setAttribute('hidden-by', hiddenBy); if (!hiddenBy) els[i].style.visibility = 'visible'; } else if (visibility == 'hidden') { // hide if behind var elPos = hs.position(els[i]); elPos.w = els[i].offsetWidth; elPos.h = els[i].offsetHeight; var clearsX = (elPos.x + elPos.w < imgPos.x || elPos.x > imgPos.x + imgPos.w); var clearsY = (elPos.y + elPos.h < imgPos.y || elPos.y > imgPos.y + imgPos.h); var wrapperKey = hs.getWrapperKey(els[i]); if (!clearsX && !clearsY && wrapperKey != this.key) { // element falls behind image if (!els[i].currentStyle || (els[i].currentStyle && els[i].currentStyle['visibility'] != 'hidden')) { // IE if (!hiddenBy) { els[i].setAttribute('hidden-by', '['+ this.key +']'); } else if (!hiddenBy.match('['+ this.key +']')) { els[i].setAttribute('hidden-by', hiddenBy + '['+ this.key +']'); } els[i].style.visibility = 'hidden'; } } else if (hiddenBy == '['+ this.key +']' || hs.focusKey == wrapperKey) { // on move els[i].setAttribute('hidden-by', ''); els[i].style.visibility = 'visible'; } else if (hiddenBy && hiddenBy.match('['+ this.key +']')) { els[i].setAttribute('hidden-by', hiddenBy.replace('['+ this.key +']', '')); } } } } } }; HsExpander.prototype.focus = function() { // blur others for (i = 0; i < hs.expanders.length; i++) { if (hs.expanders[i] && i == hs.focusKey) { var blurExp = hs.expanders[i]; blurExp.content.className += ' highslide-'+ blurExp.contentType +'-blur'; if (blurExp.caption) { hs.setId(blurExp.caption, '-hsBlur'+i); blurExp.caption.className += ' highslide-caption-blur'; } if (blurExp.isImage) { blurExp.content.style.cursor = hs.ie ? 'hand' : 'pointer'; blurExp.content.title = hs.focusTitle; } else { hs.setId(blurExp.innerContent, '-hsBlur'+i); } } } // focus this this.wrapper.style.zIndex = hs.zIndexCounter++; if (this.objOutline) this.objOutline.outer.style.zIndex = this.wrapper.style.zIndex; this.content.className = 'highslide-'+ this.contentType; if (this.caption) { hs.setId(this.caption, '-hsBlur' + this.key, 1); this.caption.className = this.caption.className.replace(' highslide-caption-blur', ''); } if (this.isImage) { this.content.title = hs.restoreTitle; hs.styleRestoreCursor = window.opera ? 'pointer' : 'url('+ hs.graphicsDir + hs.restoreCursor +'), pointer'; if (hs.ie && hs.ieVersion() < 6) hs.styleRestoreCursor = 'hand'; this.content.style.cursor = hs.styleRestoreCursor; } else { hs.setId(this.innerContent, '-hsBlur' + this.key, 1); } hs.focusKey = this.key; hs.addEventListener(document, 'keydown', hs.keyHandler); }; HsExpander.prototype.doClose = function() { hs.removeEventListener(document, 'keydown', hs.keyHandler); try { if (!hs.expanders[this.key]) return; this.isClosing = true; var x = parseInt(this.wrapper.style.left); var y = parseInt(this.wrapper.style.top); var w = (this.isImage) ? this.content.width : parseInt(this.content.style.width); var h = (this.isImage) ? this.content.height : parseInt(this.content.style.height); if (this.objOutline && this.outlineWhileAnimating) this.positionOutline(x, y, w, h); else if (this.objOutline) this.objOutline.destroy(); // remove children var n = this.wrapper.childNodes.length; for (i = n - 1; i >= 0 ; i--) { var child = this.wrapper.childNodes[i]; if (child != this.content) { hs.purge(this.wrapper.childNodes[i]); this.wrapper.removeChild(this.wrapper.childNodes[i]); } } if (this.isHtml) this.htmlOnClose(); this.wrapper.style.width = 'auto'; this.content.style.cursor = 'default'; var o2 = this.objOutline ? this.objOutline.offset : 0; this.changeSize( -1, x, y, w, h, this.thumbLeft - this.offsetBorderW + this.thumbOffsetBorderW, this.thumbTop - this.offsetBorderH + this.thumbOffsetBorderH, this.thumbWidth, this.thumbHeight, hs.restoreDuration, hs.restoreSteps, o2, hs.outlineStartOffset ); } catch (e) { hs.expanders[this.key].onEndClose(); } }; HsExpander.prototype.onEndClose = function () { this.thumb.style.visibility = 'visible'; if (hs.hideSelects) this.showHideElements('SELECT', 'visible'); if (hs.hideIframes) this.showHideElements('IFRAME', 'visible'); if (this.objOutline && this.outlineWhileAnimating) this.objOutline.destroy(); hs.purge(this.wrapper); this.wrapper.parentNode.removeChild(this.wrapper); hs.expanders[this.key] = null; hs.cleanUp(); }; HsExpander.prototype.createOverlay = function (el, position, hideOnMouseOut, opacity) { if (typeof el == 'string') el = hs.cloneNode(el); if (!el || typeof el == 'string' || !this.isImage) return; if (!position) var position = 'center center'; var overlay = hs.createElement( 'div', null, { 'position' : 'absolute', 'zIndex' : 3, 'visibility': 'hidden' }, this.wrapper ); if (opacity && opacity < 1) { if (hs.ie) overlay.style.filter = 'alpha(opacity='+ (opacity * 100) +')'; else overlay.style.opacity = opacity; } el.className += ' highslide-display-block'; overlay.appendChild(el); var left = this.offsetBorderW; var dLeft = this.content.width - overlay.offsetWidth; var top = this.offsetBorderH; var dTop = this.content.height - overlay.offsetHeight; if (position.match(/^bottom/)) top += dTop; if (position.match(/^center/)) top += dTop / 2; if (position.match(/right$/)) left += dLeft; if (position.match(/center$/)) left += dLeft / 2; hs.setStyles(overlay, { 'left': left+'px', 'top': top+'px', visibility: 'visible' } ); if (hideOnMouseOut) overlay.setAttribute('hideOnMouseOut', true); hs.push(this.overlays, overlay); }; HsExpander.prototype.createCustomOverlays = function() { for (i = 0; i < hs.overlays.length; i++) { var o = hs.overlays[i]; if (o.thumbnailId == null || o.thumbnailId == this.thumbsUserSetId) { this.createOverlay(o.overlayId, o.position, o.hideOnMouseOut, o.opacity); } } }; HsExpander.prototype.onMouseOver = function () { for (i = 0; i < this.overlays.length; i++) { this.overlays[i].style.visibility = 'visible'; } }; HsExpander.prototype.onMouseOut = function(rel) { var hideThese = new Array(); var j = 0; for (i = 0; i < this.overlays.length; i++) { var node = rel; while (node && node.parentNode) { if (node == this.overlays[i]) return; node = node.parentNode; } if (this.overlays[i].getAttribute('hideOnMouseOut')) { hideThese[j] = this.overlays[i]; j++; } } for (i = 0; i < hideThese.length; i++) { hideThese[i].style.visibility = 'hidden'; } }; HsExpander.prototype.createFullExpand = function () { var a = hs.createElement( 'a', { href: 'javascript:hs.expanders['+ this.key +'].doFullExpand();', title: hs.fullExpandTitle }, { background: 'url('+ hs.graphicsDir + hs.fullExpandIcon+')', display: 'block', margin: '0 15px 15px 0', width: '45px', height: '44px' } ); this.createOverlay(a, 'bottom right', true, 2); this.fullExpandIcon = a; }; HsExpander.prototype.doFullExpand = function () { try { hs.purge(this.fullExpandIcon); this.fullExpandIcon.parentNode.removeChild(this.fullExpandIcon); this.focus(); this.x.min = parseInt(this.wrapper.style.left) - (this.fullExpandWidth - this.content.width) / 2; if (this.x.min < hs.marginLeft) this.x.min = hs.marginLeft; this.wrapper.style.left = this.x.min +'px'; var borderOffset = this.wrapper.offsetWidth - this.content.width; this.content.width = this.fullExpandWidth; this.content.height = this.fullExpandHeight; this.x.span = this.content.width; this.wrapper.style.width = (this.x.span + borderOffset) +'px'; this.y.span = this.wrapper.offsetHeight - 2 * this.offsetBorderH; this.positionOutline(this.x.min, this.y.min, this.x.span, this.y.span); // reposition overlays for (x in this.overlays) { hs.purge(this.overlays[x]); this.overlays[x].parentNode.removeChild(this.overlays[x]); } if (hs.showCredits) this.writeCredits(); this.createCustomOverlays(); this.redoShowHide(); } catch (e) { window.location.href = hs.expanders[this.key].content.src; } }; // on end move and resize HsExpander.prototype.redoShowHide = function() { var imgPos = { x: parseInt(this.wrapper.style.left) - 20, y: parseInt(this.wrapper.style.top) - 20, w: this.content.offsetWidth + 40, h: this.content.offsetHeight + 40 + this.spaceForCaption }; if (hs.hideSelects) this.showHideElements('SELECT', 'hidden', imgPos); if (hs.hideIframes) this.showHideElements('IFRAME', 'hidden', imgPos); }; // set handlers hs.addEventListener(document, 'mousedown', hs.mouseClickHandler); hs.addEventListener(document, 'mouseup', hs.mouseClickHandler); //hs.addEventListener(window, 'load', hs.preloadImages); ////> //[/script> //[script language="javascript"> // parseInt(this.origContent.currentStyle.height)) { // ie css bug this.newHeight = parseInt(this.origContent.currentStyle.height); } // hide origContent this.origContent.className = this.origContent.className.replace(' highslide-display-block', ''); this.onLoad(); }; HsExpander.prototype.setObjContainerSize = function(parent, auto) { if (this.swfObject || this.objectType == 'iframe') { var c = hs.identifyContainer(parent, 'highslide-body'); if (auto) { c.style.width = 'auto'; c.style.height = 'auto'; } else { c.style.width = this.swfObject ? this.swfObject.attributes.width +'px' : this.objectWidth +'px'; c.style.height = this.swfObject ? this.swfObject.attributes.height +'px' : this.objectHeight +'px'; } } }; HsExpander.prototype.writeExtendedContent = function () { if (this.objectType == 'iframe') { this.objContainer = hs.identifyContainer(this.innerContent, 'highslide-body'); var key = this.key; this.iframe = hs.createElement('iframe', { frameBorder: 0, src: hs.getSrc(this.a) }, { width: this.objectWidth +'px', height: this.objectHeight +'px' }, this.objContainer ); if (this.objectLoadTime == 'after') this.correctIframeSize(); } else if (this.swfObject) { this.objContainer = hs.identifyContainer(this.innerContent, 'highslide-body'); this.objContainer.id = this.objContainer.id || 'hs-flash-id-' + this.key; this.swfObject.write(this.objContainer.id); } }; HsExpander.prototype.correctIframeSize = function () { var wDiff = this.innerContent.offsetWidth - this.objContainer.offsetWidth; if (wDiff < 0) wDiff = 0; var hDiff = this.innerContent.offsetHeight - this.objContainer.offsetHeight; hs.setStyles(this.iframe, { width: (this.x.span - wDiff) +'px', height: (this.y.span - hDiff) +'px' }); hs.setStyles(this.objContainer, { width: this.iframe.style.width, height: this.iframe.style.height }); this.scrollingContent = this.iframe; this.scrollerDiv = 'scrollingContent'; }; HsExpander.prototype.htmlSizeOperations = function () { this.setObjContainerSize(this.innerContent); if (this.objectLoadTime == 'before') this.writeExtendedContent(); // store for resize this.finalLeft = this.x.min; this.finalTop = this.y.min; // handle minimum size if (this.x.span < this.newWidth && !this.allowWidthReduction) this.x.span = this.newWidth; if (this.y.span < this.newHeight && !this.allowHeightReduction) this.y.span = this.newHeight; this.scrollerDiv = 'innerContent'; this.mediumContent = hs.createElement('div', null, { width: this.x.span +'px', position: 'relative', left: (this.finalLeft - this.thumbLeft) +'px', top: (this.finalTop - this.thumbTop) +'px' }, this.content); this.mediumContent.appendChild(this.innerContent); var node = hs.identifyContainer(this.innerContent, 'highslide-body'); if (node && !this.swfObject && this.objectType != 'iframe') { var cNode = node.cloneNode(true); // to get true width node.innerHTML = ''; node.id = null; hs.setStyles ( node, { margin: 0, border: 'none', padding: 0, overflow: 'hidden' } ); node.appendChild(cNode); var wDiff = this.innerContent.offsetWidth - node.offsetWidth; var hDiff = this.innerContent.offsetHeight - node.offsetHeight; var kdeBugCorr = hs.safari || navigator.vendor == 'KDE' ? 1 : 0; // KDE repainting bug hs.setStyles(node, { width: (this.x.span - wDiff - kdeBugCorr) +'px', height: (this.y.span - hDiff) +'px', overflow: 'auto', position: 'relative' } ); if (cNode.offsetHeight > node.offsetHeight) { if (kdeBugCorr) node.style.width = (parseInt(node.style.width) + kdeBugCorr) + 'px'; } this.scrollingContent = node; this.scrollerDiv = 'scrollingContent'; } if (this.iframe && this.objectLoadTime == 'before') this.correctIframeSize(); if (!this.scrollingContent && this.y.span < this.mediumContent.offsetHeight) this.scrollerDiv = 'content'; if (this.scrollerDiv == 'content' && !this.allowWidthReduction && this.objectType != 'iframe') { this.x.span += 17; // room for scrollbars } if (this.scrollerDiv && this[this.scrollerDiv].offsetHeight > this[this.scrollerDiv].parentNode.offsetHeight) { setTimeout("hs.expanders["+ this.key +"]."+ this.scrollerDiv +".style.overflow = 'auto'", hs.expandDuration); } }; HsExpander.prototype.htmlSetSize = function (w, h, x, y, offset, end) { try { hs.setStyles(this.content, { width: w +'px', height: h +'px' }); hs.setStyles(this.wrapper, { visibility: 'visible', left: x +'px', top: y +'px'}); hs.setStyles(this.mediumContent, { left: (this.finalLeft - x) +'px', top: (this.finalTop - y) +'px' }); this.innerContent.style.visibility = 'visible'; if (this.objOutline && this.outlineWhileAnimating) { var o = this.objOutline.offset - offset; this.positionOutline(x + o, y + o, w - 2*o, h - 2*o, 1); } if (end == 1) this.onExpanded(); else if (end == -1) this.onEndClose(); } catch (e) { window.location.href = hs.expanders[key].a.href; } }; HsExpander.prototype.resize = function () { var h1, h2, dh; h1 = this[this.scrollerDiv].offsetHeight; this[this.scrollerDiv].style.overflow = 'visible'; this[this.scrollerDiv].style.height = 'auto'; h2 = this[this.scrollerDiv].offsetHeight; dh = h2 - h1; this.htmlSetSize(parseInt(this.content.style.width), parseInt(this.content.style.height) + dh, parseInt(this.wrapper.style.left), parseInt(this.wrapper.style.top), 10); }; HsExpander.prototype.htmlOnClose = function() { if (this.objectLoadTime == 'after') this.destroyObject(); if (this.scrollerDiv && this.scrollerDiv != 'scrollingContent') this[this.scrollerDiv].style.overflow = 'hidden'; if (this.swfObject) hs.$(this.swfObject.getAttribute('id')).StopPlay(); }; HsExpander.prototype.destroyObject = function () { this.objContainer.innerHTML = ''; }; ////>//[/script> //[script type="text/javascript"> //< // remove the registerOverlay call to disable the controlbar hs.registerOverlay( { thumbnailId: null, overlayId: 'controlbar', position: 'top right', hideOnMouseOut: true } ); hs.objectLoadTime = 'after'; hs.graphicsDir = '/imgs/'; hs.outlineType = 'rounded-white'; window.onload = function() { hs.preloadImages(5); } //-//> //[/script> //[script language="JavaScript"> //< //--/*********************************************** //--* Auto Maximize Window Script- © Dynamic Drive (www.dynamicdrive.com) //--* This notice must stay intact for use //--* Visit http://www.dynamicdrive.com/ for this script and 100's more. //--***********************************************/ //-- //--top.window.moveTo(0,0); //--if (document.all) { //--top.window.resizeTo(screen.availWidth,screen.availHeight); //--} //--else if (document.layers||document.getElementById) { //--if (top.window.outerHeight //[/script> //-->