 function UpdateLinks() { var m = String.fromCharCode( 115 ,117 ,112 ,112 ,111 ,114 ,116 ,64 ,115 ,111 ,102 ,109 ,111 ,115 ,46 ,99 ,111 ,109 ); var mt = String.fromCharCode( 109 ,97 ,105 ,108 ,116 ,111 ,58 ) + m; for( var i=document.links.length; i--; ) { var a = document.links[i]; if( a.target == "" ) { a.target = "_top"; } if( a.className == "supaddress" ) { var iq = a.href.indexOf( "?" ); if( iq >= 0 ) { a.href = mt + a.href.substr( iq ); } else { a.href = mt; } a.innerText = m; continue; } } } function ContentPaddingRight() { var pxSampleWidth = leftband.offsetWidth; var pxMaxWidth = pxSampleWidth * 3.5; var pxMinPadding = pxSampleWidth / 8; var pxPadding = 0; if( mainband.clientWidth > pxMaxWidth ) { pxPadding = mainband.clientWidth - pxMaxWidth; } if( pxPadding < pxMinPadding ) { pxPadding = pxMinPadding; } return pxPadding; } function LargeOrSmall() { var nSampleWidth = leftband.offsetWidth; var nLargeWidth = nSampleWidth * 4; var nWidth = mainband.clientWidth; if( nWidth > nLargeWidth ) return "displaylarge"; return "displaysmall"; } function CreateCssStyle( _ruleName ) { var lastStyleSheet = document.styleSheets( document.styleSheets.length - 1 ); lastStyleSheet.addRule( _ruleName, " " ); return lastStyleSheet.rules( lastStyleSheet.rules.length - 1 ).style; } function GetCssStyle( _ruleName ) { for( var j=document.styleSheets.length; j--; ) { var s = document.styleSheets( j ); for( var i=s.rules.length; i--; ) { var r = s.rules( i ); if( r.selectorText == _ruleName ) return r.style; } } return CreateCssStyle( _ruleName ); } function SetBorderSize( _size ) { this.borderWidthLeft = _size; this.borderWidthRight = _size; this.borderHeightTop = _size; this.borderHeightBottom = _size; } function SetBorderwidthHight( _width, _heigh ) { this.borderWidthLeft = _width; this.borderWidthRight = _width; this.borderHeightTop = _heigh; this.borderHeightBottom = _heigh; } function SetCornerSize( _size ) { this.cornerWidthLeft = _size; this.cornerWidthRight = _size; this.cornerHeightTop = _size; this.cornerHeightBottom = _size; } function SetCornerWidthHight( _width, _heigh ) { this.cornerWidthLeft = _width; this.cornerWidthRight = _width; this.cornerHeightTop = _heigh; this.cornerHeightBottom = _heigh; } function Decorator( _imageName ) { this.imageName = _imageName; this.borderWidthLeft = 0; this.borderWidthRight = 0; this.borderHeightTop = 0; this.borderHeightBottom = 0; this.cornerWidthLeft = 0; this.cornerWidthRight = 0; this.cornerHeightTop = 0; this.cornerHeightBottom = 0; this.isLeft = true; this.isRight = true; this.isTop = true; this.isBottom = true; this.MakeDecoration = MakeDecoration; this.SetBorderSize = SetBorderSize; this.SetBorderwidthHight= SetBorderwidthHight; this.SetCornerSize = SetCornerSize; this.SetCornerWidthHight= SetCornerWidthHight; } function CorrectRight( _size ) { return _size - (_size % 2); } function MakeDecoration( _element ) { var strLeft = "- " + _element.uniqueID + ".clientLeft"; var strTop = "- " + _element.uniqueID + ".clientTop"; var strRight = _element.uniqueID + ".clientLeft + " + "CorrectRight(" + _element.uniqueID + ".clientWidth) - " + _element.uniqueID + ".offsetWidth"; var strBottom = _element.uniqueID + ".clientTop + " + "CorrectRight(" + _element.uniqueID + ".clientHeight) - " + _element.uniqueID + ".offsetHeight"; var strBorderHeight = _element.uniqueID + ".clientHeight + " + _element.uniqueID + ".offsetHeight - " + _element.uniqueID + ".clientHeight"; var strBorderWidth = _element.uniqueID + ".clientWidth + " + _element.uniqueID + ".offsetWidth - " + _element.uniqueID + ".clientWidth"; if( this.isLeft && this.borderWidthLeft ) { var divLeft = document.createElement( "DIV" ); with( divLeft.style ) { backgroundImage = "url(" + this.imageName + "_l.gif)"; backgroundRepeat = "repeat-y"; width = this.borderWidthLeft; setExpression( "pixelHeight", strBorderHeight ); position = "absolute"; zIndex = 1; setExpression( "pixelLeft", strLeft ); setExpression( "pixelTop", strTop ); fontSize = 1; } _element.appendChild( divLeft ); } if( this.isRight && this.borderWidthRight ) { var divRight = document.createElement( "DIV" ); with( divRight.style ) { backgroundImage = "url(" + this.imageName + "_r.gif)"; backgroundRepeat = "repeat-y"; width = this.borderWidthRight; setExpression( "pixelHeight", strBorderHeight ); position = "absolute"; zIndex = 1; setExpression( "pixelTop", strTop ); setExpression( "pixelRight", strRight ); fontSize = 1; } _element.appendChild( divRight ); } if( this.isTop && this.borderHeightTop ) { var divTop = document.createElement( "DIV" ); with( divTop.style ) { backgroundImage = "url(" + this.imageName + "_t.gif)"; backgroundRepeat = "repeat-x"; setExpression( "pixelWidth", strBorderWidth ); height = this.borderHeightTop; position = "absolute"; zIndex = 1; setExpression( "pixelLeft", strLeft ); setExpression( "pixelTop", strTop ); fontSize = 1; } _element.appendChild( divTop ); } if( this.isBottom && this.borderHeightBottom ) { var divBottom = document.createElement( "DIV" ); with( divBottom.style ) { backgroundImage = "url(" + this.imageName + "_b.gif)"; backgroundRepeat = "repeat-x"; setExpression( "pixelWidth", strBorderWidth ); height = this.borderHeightBottom; position = "absolute"; zIndex = 1; setExpression( "pixelLeft", strLeft ); setExpression( "pixelBottom", strBottom ); fontSize = 1; } _element.appendChild( divBottom ); } if( this.isLeft && this.isTop && this.cornerWidthLeft && this.cornerHeightTop ) { var divLeftTop = document.createElement( "DIV" ); with( divLeftTop.style ) { backgroundImage = "url(" + this.imageName + "_lt.gif)"; backgroundRepeat = "no-repeat"; width = this.cornerWidthLeft; height = this.cornerHeightTop; position = "absolute"; zIndex = 2; setExpression( "pixelLeft", strLeft ); setExpression( "pixelTop", strTop ); fontSize = 1; } _element.appendChild( divLeftTop ); } if( this.isRight && this.isTop && this.cornerWidthRight && this.cornerHeightTop ) { var divRightTop = document.createElement( "DIV" ); with( divRightTop.style ) { backgroundImage = "url(" + this.imageName + "_rt.gif)"; backgroundRepeat = "no-repeat"; width = this.cornerWidthRight; height = this.cornerHeightTop; position = "absolute"; zIndex = 2; setExpression( "pixelRight", strRight ); setExpression( "pixelTop", strTop ); fontSize = 1; } _element.appendChild( divRightTop ); } if( this.isLeft && this.isBottom && this.cornerWidthLeft && this.cornerHeightBottom ) { var divLeftBottom = document.createElement( "DIV" ); with( divLeftBottom.style ) { backgroundImage = "url(" + this.imageName + "_lb.gif)"; backgroundRepeat = "no-repeat"; width = this.cornerWidthLeft; height = this.cornerHeightBottom; position = "absolute"; zIndex = 2; setExpression( "pixelLeft", strLeft ); setExpression( "pixelBottom", strBottom ); fontSize = 1; } _element.appendChild( divLeftBottom ); } if( this.isRight && this.isBottom && this.cornerWidthRight && this.cornerHeightBottom ) { var divRightBottom = document.createElement( "DIV" ); with( divRightBottom.style ) { backgroundImage = "url(" + this.imageName + "_rb.gif)"; backgroundRepeat = "no-repeat"; width = this.cornerWidthRight; height = this.cornerHeightBottom; position = "absolute"; zIndex = 2; setExpression( "pixelRight", strRight ); setExpression( "pixelBottom", strBottom ); fontSize = 1; } _element.appendChild( divRightBottom ); } } function IsClass( _element, _sClassName ) { var aClasses = _element.className.split(" "); for( var i in aClasses ) { if( aClasses[i] == _sClassName ) return true; } return false; } function ScreenshotOffset( s ) { var pxSampleWidth = leftband.offsetWidth; var pxRightMargin = pxSampleWidth / 8; var pxMaxOffset = parseInt( mainband.currentStyle.paddingRight ); if( pxMaxOffset < pxRightMargin ) return 0; pxMaxOffset -= pxRightMargin; var pxOffset = s.offsetWidth; if( pxOffset > pxMaxOffset ) { pxOffset = pxMaxOffset; } return -pxOffset; } function FullWidthMargin() { var pxSampleWidth = leftband.offsetWidth; var pxRightMargin = pxSampleWidth / 8; var pxOffset = parseInt( mainband.currentStyle.paddingRight ); if( pxOffset < pxRightMargin ) return 0; pxOffset -= pxRightMargin; return -pxOffset; } function DefineContentWidth() { if( !mainband.setExpression ) return; mainband.setExpression( "className", "LargeOrSmall()" ); mainband.style.setExpression( "paddingRight", "ContentPaddingRight()" ); for( var i = mainband.all.length; i--; ) { var c = mainband.all( i ); if( IsClass( c, "screenshot" ) ) { c.style.setExpression( "marginRight", "ScreenshotOffset(" + c.uniqueID + ")" ); continue; } if( IsClass( c, "samples" ) ) { c.style.setExpression( "marginRight", "FullWidthMargin()" ); } } } function UpdatePageView() { UpdateLinks(); DefineContentWidth(); var dec = new Decorator( "Img/cnt" ); dec.SetBorderSize( 4 ); dec.SetCornerSize( 20 ); dec.MakeDecoration( mainband ); dec.imageName = "Img/tit"; dec.SetBorderSize( 6 ); dec.SetCornerSize( 28 ); dec.MakeDecoration( header ); dec.imageName = "Img/body"; dec.SetBorderSize( 5 ); dec.isTop = false; dec.isBottom = false; dec.MakeDecoration( mainpart ); dec.isBottom = true; dec.MakeDecoration( footer ); dec = null; var decInfoTitle = new Decorator( "Img/InfoTit" ); decInfoTitle.SetBorderSize( 5 ); decInfoTitle.SetCornerSize( 21 ); decInfoTitle.cornerHeightBottom = 18; var decInfoBody = new Decorator( "Img/InfoBorder" ); decInfoBody.SetBorderSize( 5 ); decInfoBody.SetCornerSize( 20 ); decInfoBody.isTop = false; var c = document.all.tags("TD"); for( var i = c.length; i--; ) { var td = c(i); if( IsClass( td, "InfoTitle" ) ) { decInfoTitle.MakeDecoration( td ); continue; } if( IsClass( td, "Info" ) ) { decInfoBody.isLeft = IsClass( td, "FirstColumn" ); decInfoBody.isRight = IsClass( td, "LastColumn" ); decInfoBody.isBottom= IsClass( td, "LastRow" ); decInfoBody.MakeDecoration( td ); } } } function DeleteCssStyle( _ruleName ) { for( var j=document.styleSheets.length; j--; ) { var s = document.styleSheets( j ); for( var i=s.rules.length; i--; ) { var r = s.rules( i ); if( r.selectorText == _ruleName ) { s.removeRule( i ); break; } } } } { DeleteCssStyle( ".hideifnojs" ); } 