// Times by Wojciech Wierchoła - takie tam pitupitu
pm={
	start:function(){
		new pm.index(document.body.className == "index")
		new pm.menu(jso.gI("main_menu"))
		new pm.gallery(jso.gI("gallery"))
		new pm.galleryMenu(jso.gI("gallery_menu"))
		new pm.scroll(jso.gI("scroll"),{top:15,bottom:16,hide:true})
		var mybox = new pm.mybox(jso.gI("content"))
		new pm.archive(jso.gI("archive"),{mybox:mybox})
		if(document.body.className == "article" || document.body.className == "archive")
			jso.cE("a",{id:"print"},[i18n.print],jso.gI("content"),{click:function(){window.print();return false}});
	},
	index:function(warunek){
		if(warunek){
			pm.index.current = this
			// funkcyje
			this.setInterval = function(){
				if(!this.interval)
					this.interval = window.setInterval(function(){pm.index.current.intervalFunction.call(pm.index.current)},24);
			}
			this.intervalFunction = function(){
				this.zoom += (this.plus ? 2 : - 2)
				this.image.style.opacity = this.zoom / 100
				this.image.style.filter="alpha(opacity="+this.zoom+")"
				if((this.zoom == 0 && !this.plus) || (this.zoom == 100 && this.plus)){
					window.clearInterval(this.interval)
					delete(this.interval)
					if(this.goTo)
						document.location = this.goTo;
					else
						for(var i in this.items)
							this.items[i].li.style.display = "";;
				}
			}
			// elementy DOMowe
			this.image = jso.gT("img",jso.gI("header"))[0]
			this.items = []
			var items = jso.gT("li",jso.gI("content"))
			for(var i=0;i<items.length;i++){
				this.items[i] = {li:items[i],a:jso.gT("a",items[i])[0]}
				this.items[i].li.index = this
				this.items[i].li.style.display = "none"
				this.items[i].a.index = this
				this.items[i].a.onclick = function(){
					this.index.plus = false
					this.index.goTo = this.href
					for(var i in this.index.items)
						this.index.items[i].li.style.display = "none";
					this.index.setInterval.call(this.index)
					return false
				}
			}
			// start
			this.zoom = 0
			this.interval = false
			this.plus = true
			this.setInterval.call(this)
		}
	},
	scroll:function(container,options){
		options = options || {};
		if(this.container = container){
			pm.scroll.current = this
			if(!document.body.onmousedown){
				document.body.onmousedown = function(){pm.scroll.mouse = true}
				document.body.onmouseup = function(){pm.scroll.mouse = false}
			}
			this.top = options.top || 15;
			this.bottom = options.bottom || 15;
			// funkcyje
			this.scrollAreaMouseMove = function(e){
				pm.scroll.current = this.scroll
				e=e||window.event
				if(this.scroll.mouse && pm.scroll.mouse){
					var Y = e.layerY || (e.y - 15) || 0;
					if(Y > this.scroll.top && Y < (this.scroll.scrollBar.offsetHeight - this.scroll.bottom)){
						this.scroll.scrollBar.style.backgroundPosition="0 "+Y+"px";
						this.scroll.scrollArea.scrollTop = (Y-this.scroll.top) / (this.scroll.scrollBar.offsetHeight - this.scroll.bottom - this.scroll.top) * (this.scroll.scrollArea.scrollHeight - this.scroll.scrollArea.offsetHeight);
					}
				}
				return false
			}
			this.arrowFunction = function(){
				pm.scroll.current = this.scroll
				pm.scroll.mouse = true
				if(this.scroll.arrowUp == this)
					this.scroll.plus = -5;
				else if(this.scroll.arrowDown == this)
					this.scroll.plus = 5;
				else
					this.scroll.plus = 0;
				if(!this.scroll.interval)
					this.scroll.interval = window.setInterval(function(){pm.scroll.current.arrowFunctionInterval.call(pm.scroll.current)},24);
			}
			this.whellFunction = function(value) {
				value = (value < 0)?10:-10;
				this.scrollArea.scrollTop += value;
				value = Math.round(this.scrollArea.scrollTop / (this.scrollArea.scrollHeight - this.scrollArea.offsetHeight) * (this.scrollBar.offsetHeight - this.bottom - this.top -2)) + this.top +1
				this.scrollBar.style.backgroundPosition="0 "+value+"px";
			}
			this.whellEvent = function(e){
				e = e||window.event
				var value = 0
				if(this.scroll)
					pm.scroll.current = this.scroll;
				else{
					var item = jso.gE(e)
					if(item.scroll)
						pm.scroll.current = item.scroll;
				}
				if(e.wheelDelta)
					value = e.wheelDelta;
				else if(e.detail)
					value = -e.detail;
				if(value)pm.scroll.current.whellFunction.call(pm.scroll.current,value);
				if(e.preventDefault)e.preventDefault();
				e.returnValue = false;
			}
			this.arrowFunctionInterval = function(){
				if(this.plus){
					this.scrollArea.scrollTop += this.plus;
					var Y = Math.round(this.scrollArea.scrollTop / (this.scrollArea.scrollHeight - this.scrollArea.offsetHeight) * (this.scrollBar.offsetHeight - this.bottom - this.top -2)) + this.top +1
					this.scrollBar.style.backgroundPosition="0 "+Y+"px";
				}
				if(!pm.scroll.mouse || !this.plus || !this.scrollArea.scrollTop || this.scrollArea.scrollTop == (this.scrollArea.scrollHeight - this.scrollArea.offsetHeight)){
					this.plus = 0
					window.clearInterval(this.interval)
					delete(this.interval)
				}
			}
			this.scrollAreaMouseDown = function(){
				pm.scroll.current = this.scroll
				this.scroll.mouse = true
				return false
			}
			// zmienne
			this.interval = false
			this.plus = 0
			// dom
			this.container.scroll = this
			this.scrollArea = jso.gAV(0,this.container,"className","scrollArea")[0];
			this.scrollArea.scroll = this
			if(this.scrollArea.offsetHeight >= this.scrollArea.scrollHeight)
				return;
			if(window.addEventListener)
				jso.aE(this.container,'DOMMouseScroll',this.whellEvent);
			this.container.onmousewheel = this.whellEvent;
			this.scrollBar = jso.cE("div",{
					className:"scrollBar",
					scroll:this,
					onmousemove:this.scrollAreaMouseMove,
					onmousedown:this.scrollAreaMouseDown
				},[
					this.arrowUp = jso.cE("div",{className:"arrowUp",scroll:this,onmousedown:this.arrowFunction}),
					this.arrowDown = jso.cE("div",{className:"arrowDown",scroll:this,onmousedown:this.arrowFunction})
				],this.container)
			if(options.hide){
				this.topHide = jso.cE("div",{className:"topHide",scroll:this},0,this.container)
				this.bottomHide = jso.cE("div",{className:"bottomHide",scroll:this},0,this.container)
			}
		}
	},
	gallery:function(container){
		if(this.container = container){
			pm.gallery.current = this
			// funkcyje
			// itemOnMouseOver
			this.itemOnMouseOver = function(){
				pm.gallery.current = this.gallery
				this.gallery.active = this.item
				this.gallery.renderGallery.call(this.gallery)
			}
			// prev
			this.prevFunction = function(){
				pm.gallery.current = this.gallery
				if(this.gallery.active.index > 0){
					this.gallery.active = this.gallery.items[this.gallery.active.index-1]
					this.gallery.renderGallery.call(this.gallery)
				}
			}
			// next
			this.nextFunction = function(){
				pm.gallery.current = this.gallery
				if(this.gallery.active.index < this.gallery.items.length-1)
					this.gallery.active = this.gallery.items[this.gallery.active.index+1];
				else
					this.gallery.active = this.gallery.items[0];
				this.gallery.renderGallery.call(this.gallery)
			}
			// render
			this.renderGallery = function(){
				if(this.active.index == 0)
						this.prevButton.style.visibility = "hidden";
				else
						this.prevButton.style.visibility = "";
				if(this.active.index == (this.items.length - 1))
						this.nextButton.style.visibility = "hidden";
				else
						this.nextButton.style.visibility = "";
				pm.gallery.current = this
				if(!this.interval)
					this.interval = window.setInterval(function(){pm.gallery.current.renderGalleryInterval.call(pm.gallery.current)},50);
			}
			// render intervalFunction
			this.renderGalleryInterval = function(){
				if(this.active.level != 0){
					var plus = (this.active.level < 0)
					var plusAbs = 2
					for(var i in this.items){
						var item = this.items[i];
						item.level += plus?plusAbs:-plusAbs;
						var levelAbs = Math.abs(item.level);
						if(levelAbs > 100){
							continue
						}else if(levelAbs == 100){
							item.li.className = "hidden"
						}else if(levelAbs > 50){
							if(levelAbs == 100 - plusAbs)
								item.li.className = "small"+(item.level<0?" left":" right");
							var procent = (levelAbs - 50) / 50
							item.li.style.top = Math.round(94 + 23 * procent) + "px"
							if(item.level<0)
								item.li.style.left = Math.round(19 + 45 * procent) + "px";
							else
								item.li.style.right = Math.round(19 + 45 * procent) + "px";
							item.img.width = Math.round(110 - 110 * procent)
							item.img.height = Math.round(73 - 73 * procent)
							item.img.style.opacity = Math.round(100 - 100 * procent)/100
							item.img.style.filter="alpha(opacity="+Math.round(100 - 100 * procent)+")"
						}else if(levelAbs == 50){
							item.li.className = "medium"+(item.level<0?" left":" right");
							item.li.style.zIndex = ""
							item.li.style.top = ""
							item.li.style.left = ""
							item.li.style.right = ""
							item.img.width = 110
							item.img.height = 73
							item.imgColor.width = item.img.width
							item.imgColor.height = item.img.height
							item.img.style.opacity = ""
							item.img.style.filter = ""
							item.imgColor.src = "/images/blank.gif"
							item.img.style.opacity = Math.round(100 - 100 * procent)/100
						}else if(levelAbs > 0 ){
							if(levelAbs == plusAbs)
								item.li.className = "medium"+(item.level<0?" left":" right");
							else if(levelAbs == 50 - plusAbs)
								item.imgColor.src = item.a.rel;
							var procent = (levelAbs / 50)
							item.li.style.zIndex = Math.ceil(60 - 30 * procent)
							item.li.style.top = Math.round(53 + 41 * procent) + "px"
							if(item.level<0)
								item.li.style.left = Math.round(148 - 129 * procent) + "px";
							else
								item.li.style.right = Math.round(148 - 129 * procent) + "px";
							item.img.width = Math.round(300 - 190 * procent)
							item.img.height = Math.round(200 - 127 * procent)
							item.imgColor.width = item.img.width
							item.imgColor.height = item.img.height
							item.imgColor.style.opacity = Math.round(100 - 100 * procent)/100
							item.imgColor.style.filter = "alpha(opacity="+Math.round(100 - 100 * procent)+")"
						}else if(levelAbs == 0){
							item.imgColor.src = item.a.rel;
							item.li.className="active"
							item.li.style.top = ""
							item.li.style.left = ""
							item.li.style.right = ""
							item.img.width = 300
							item.img.height = 200
							item.imgColor.width = item.img.width
							item.imgColor.height = item.img.height
							item.imgColor.style.opacity = ""
							item.imgColor.style.filter = ""
						}
					}
				}else{
					window.clearInterval(this.interval)
					delete(this.interval)
				}
			}
			// description
			this.descriptionFunction = function(){
				pm.gallery.current = this.gallery
				this.blur()
				if(!this.gallery.interval){
					this.gallery.plus = !this.gallery.plus
					this.gallery.active.description.style.display = "block"
					if(!this.gallery.active.description.scroll)
						new pm.scroll(this.gallery.active.description,{top:15,bottom:16,hide:true});
					this.gallery.interval = window.setInterval(function(){pm.gallery.current.descriptionInterval.call(pm.gallery.current)},24);
				}
				return false
			}
			this.descriptionInterval = this.zoomInterval = function(){
				this.zoom += (this.plus ? 10 : - 10)
				this.active.description.style.opacity = this.zoom / 100
				this.active.description.style.filter="alpha(opacity="+this.zoom+")"
				if(this.zoom == 0 && !this.plus){
					this.active.showDescription.firstChild.nodeValue = i18n.showDescription + this.active.a.title
					this.active.description.style.display = ""
					window.clearInterval(this.interval)
					delete(this.interval)
				}else if(this.zoom == 100 && this.plus){
					this.active.showDescription.firstChild.nodeValue = i18n.hideDescription
					window.clearInterval(this.interval)
					delete(this.interval)
				}
			}
			// flash
			this.flashFunction = function(){
				window.open(this.href,"times_flash","width=770,height=400,menubar=false,resizable=no,scrollbars=no,status=no,toolbar=no,top="+Math.round((window.screen.height-400)/2)+",left="+Math.round((window.screen.width-770)/2));
				return false;
			}
			// zoom
			this.zoomFunction = function(){
				pm.gallery.current = this.gallery
				if(!this.gallery.interval){
					this.gallery.zoomImage.src = this.gallery.active.a.href
					this.gallery.plus = true
					this.gallery.zoomImage.style.display = "block"
					this.gallery.interval = window.setInterval(function(){pm.gallery.current.zoomInterval.call(pm.gallery.current)},24);
				}
				return false
			}
			this.zoomClose = function(){
				pm.gallery.current = this.gallery
				this.gallery.plus = false
				if(!this.gallery.interval)
					this.gallery.interval = window.setInterval(function(){pm.gallery.current.zoomInterval.call(pm.gallery.current)},24);
			}
			this.zoomInterval = function(){
				this.zoom += (this.plus ? 10 : - 10)
				this.zoomImage.style.opacity = this.zoom / 100
				this.zoomImage.style.filter="alpha(opacity="+this.zoom+")"
				if(this.zoom == 0 && !this.plus){
					this.zoomImage.style.display = ""
					this.zoomImage.src = "/images/blank.gif"
					window.clearInterval(this.interval)
					delete(this.interval)
				}else if(this.zoom == 100 && this.plus){
					window.clearInterval(this.interval)
					delete(this.interval)
				}
			}
			// jakies tam elementy
			this.plus = false
			this.interval = false
			this.zoom = 0
			// elementy DOMowe
			this.container.gallery = this
			this.list = jso.gT("ul",this.container)[0]
			this.list.menu = this
			this.navigation = jso.cE("ul",{id:"navigation",gallery:this},[
				this.prevButton = jso.cE("li",{id:"prev",gallery:this,onclick:this.prevFunction},[i18n.prev]),
				this.zoomButton = jso.cE("li",{id:"zoom",gallery:this,onclick:this.zoomFunction},[i18n.zoom]),
				this.nextButton = jso.cE("li",{id:"next",gallery:this,onclick:this.nextFunction},[i18n.next])
			],this.container)
			this.zoomImage = jso.cE("img",{id:"zoomImage",src:"/images/blank.gif",gallery:this},0,this.container)
			this.zoomImage.onclick = this.zoomClose;
			this.items = []
			var items = jso.gT("li",this.list)
			var level = -102;
			for(var i=0;i<items.length;i++){
				var item = this.items[i] ={
					index:i,
					level:(level+=50),
					li:items[i],
					a:jso.gT("a",items[i])[0],
					img:jso.gT("img",items[i])[0],
					description:jso.gT("div",items[i])[0],
					showFlash:jso.gAV("a",items[i],"className","showFlash")[0],
					showPDF:jso.gAV("a",items[i],"className","showPDF")[0]
				}
				item.li.item = item
				item.li.gallery = this
				item.a.item = item
				item.a.gallery = this
				item.a.onmouseover = this.itemOnMouseOver
				item.a.onclick = this.zoomFunction
				item.img.item = item
				item.img.gallery = this
				if(item.description){
					item.description.gallery = this
					item.showDescription = jso.cE("a",{href:"#",className:"showDescription",gallery:this,item:item,onclick:this.descriptionFunction},[i18n.showDescription + item.a.title],item.li)
				}else
					delete(item.description);
				if(item.showFlash)
					item.showFlash.onclick = this.flashFunction;
				else
					delete(item.showFlash);
				if(item.showPDF)
					item.showPDF.target = "pdf";
				else
					delete(item.showPDF);
				if(item.showFlash || item.showDescription || item.showPDF){
					jso.cE("div",{className:"show"},[(item.showFlash?item.showFlash:""),(item.showDescription?item.showDescription:""),(item.showPDF?item.showPDF:"")],item.li)
				}
				if(i==1){
					this.active = item;
					item.imgColor = jso.gT("img",items[i])[1]
					item.imgColor.gallery = this
					item.imgColor.item = item
				}else{
					item.imgColor = jso.cE("img",{className:"imgColor",src:"/images/blank.gif",gallery:this,item:item},0,item.a);
				}
			}
			if(this.active)
				this.renderGallery.call(this);
		}
	},
	galleryMenu:function(container){
		if(this.container = container){
			pm.galleryMenu.current = this
			// funkcyje
			this.setInterval = function(){
				pm.galleryMenu.current = this.galleryMenu
				if(this.item){
					this.galleryMenu.goTo = this.item
				}else{
					this.galleryMenu.plus = !this.galleryMenu.plus
					pm.galleryMenu.current = this.galleryMenu
					if(!this.galleryMenu.interval && !this.galleryMenu.goTo)
						this.galleryMenu.interval = window.setInterval(function(){pm.galleryMenu.current.intervalFunction.call(pm.galleryMenu.current)},50);
				}
			}
			this.intervalFunction = function(){
				this.size += ( this.plus ? 1 : -1)
				this.list.className = "s_"+this.size
				if((this.plus && this.size > 5) || (!this.plus && this.size < 1)){
					window.clearInterval(this.interval)
					delete(this.interval)
				}
			}
			this.size = 0
			this.plus = false
			this.interval = false
			this.container.galleryMenu = this
			this.list = jso.gT("ul",this.container)[0]
			this.list.galleryMenu = this
			if(this.list.className != "s_6"){
				this.items = []
				var items = jso.gT("li",this.list)
				for(var i=0;i<items.length;i++){
					var item = this.items[i]={li:items[i],a:jso.gT("a",items[i])[0]}
					item.li.item = item
					item.li.galleryMenu = this
					item.a.item = item
					item.a.galleryMenu = this
					item.a.onclick =  this.setInterval
				}
				this.container.onclick =  this.setInterval;
			}
		}
	},
	menu:function(container){
		if(this.container = container){
			pm.menu.current = this
			// funkcyje
			this.itemClick = function(){
				pm.menu.current = this.menu
				if(!this.menu.goTo && !this.menu.interval && this.menu.active != this.item){
					if(this.menu.active){
						this.menu.active.li.className = ""
						this.menu.active.a.className = ""
					}
					this.menu.lineWidthFrom = this.menu.lineWidthCurrent
					this.menu.active = this.item
					this.menu.active.li.className = "active"
					this.menu.active.a.className = "active"
					this.menu.lineWidthTo = this.menu.active.a.offsetWidth;
					this.menu.goTo = this.item.a.href
					this.menu.plus = false;
					this.menu.setInterval()
				}else if(this.menu.active == this.item){
					return true;
				}else{
					return false;
				}
			}
			this.headerClick = function(){
				pm.menu.current = this.menu;
				if(!this.menu.goTo){
					this.menu.plus = !this.menu.plus;
					this.menu.lineWidthFrom = this.menu.lineWidthCurrent
					if(this.menu.plus)
						this.menu.lineWidthTo = 200;
					else if(this.menu.active)
						this.menu.lineWidthTo = this.menu.active.a.offsetWidth;
					this.menu.setInterval()
				}
			}
			this.setInterval = function(){
				if(!pm.menu.current.interval)
					pm.menu.current.interval = window.setInterval(function(){pm.menu.current.intervalFunction.call(pm.menu.current)},50);
			}
			this.intervalFunction = function(){
//        if(this.goTo)
				this.setLineHeight.call(this);
				this.size += ( this.plus ? 1 : -1)
				this.list.className = "s_"+this.size
				this.footer.className = "s_"+this.size
				if((this.plus && this.size > 5) || (!this.plus && this.size < 1)){
					window.clearInterval(this.interval)
					delete(this.interval)
					if(this.goTo)
						window.setTimeout(function(){document.location = pm.menu.current.goTo},200);
				}
			}
			this.setLineHeight = function(){
				this.lineWidthCurrent += (this.lineWidthTo - this.lineWidthFrom) / 6
				this.header.style.width = Math.round(this.lineWidthCurrent) + "px"
			}
			// jakies tam elementy
			this.plus = false
			this.interval = false
			this.size = 0
			this.lineWidthFrom = 0
			this.lineWidthTo = 0
			// elementy DOMowe
			this.container.menu = this
			this.footer = jso.gT("span",jso.gI("footer"))[0]
			this.footer.menu = this
			this.header = jso.gT("h2",this.container)[0]
			this.header.menu = this
			this.header.onclick = this.headerClick
			this.list = jso.gT("ul",this.container)[0]
			this.list.menu = this
			this.items = []
			var items = jso.gT("li",this.list)
			for(var i=0;i<items.length;i++){
				var item = this.items[i]={li:items[i],a:jso.gT("a",items[i])[0]}
				item.li.item = item
				item.li.menu = this
				item.a.item = item
				item.a.menu = this
				item.a.onclick = this.itemClick
				if(item.li.className=="active")
					this.active = item;
			}
			if(this.active)
				this.lineWidthCurrent = this.active.a.offsetWidth;
			else
				this.lineWidthCurrent = this.header.offsetWidth;
			this.setLineHeight.call(this)
		}
	},
	mybox:function(container){
		if(this.container = container){
			pm.mybox.current = this
			// funkcyje
			this.itemClick = function(){
				pm.mybox.current = this.mybox
				if(!this.mybox.active){
					this.mybox.mybox.style.display = "block";
					this.mybox.active = this.item;
					this.mybox.myboxImage.style.backgroundImage = "url('"+this.item.href+"')"
				}
				this.mybox.plus = !this.mybox.plus
				if(!this.mybox.interval)
					this.mybox.interval = window.setInterval(function(){pm.mybox.current.intervalFunction.call(pm.mybox.current)},24);
				return false
			}
			this.intervalFunction = function(){
				this.zoom += (this.plus ? 10 : - 10)
				this.mybox.style.opacity = this.zoom / 100
				this.mybox.style.filter="alpha(opacity="+this.zoom+")"
				if(this.zoom == 0 && !this.plus){
					this.mybox.style.display = ""
					window.clearInterval(this.interval)
					this.active = false
					delete(this.interval)
				}else if(this.zoom == 100 && this.plus){
					window.clearInterval(this.interval)
					delete(this.interval)
				}
			}
			this.start = function(){
				this.items = []
				var items = jso.gAV("a",this.container,"rel","lightbox")
				for(var i=0;i<items.length;i++){
					this.items[i] = {a:items[i],href:items[i].href}
					this.items[i].a.mybox = this
					this.items[i].a.item = this.items[i]
					this.items[i].a.onclick = this.itemClick
				}
			}
			// zmienne
			this.plus = 0
			this.zoom = 0
			this.interval = false
			this.active = false
			// ddom
			this.container.mybox = this
			this.mybox = jso.cE("div",{id:"mybox",mybox:this,onclick:this.itemClick},0,this.container);
			this.myboxImage = jso.cE("div",{id:"myboxImage",mybox:this},0,this.mybox);
			this.start.call(this)
		}
	},
	archive:function(list,options){
		options = options || {};
		if(this.list = list){
			// description
			this.itemClick = function(){
				pm.archive.current = this.archive
				if(!this.archive.interval){
					this.archive.plus = !this.archive.plus
					if(this.item)
						this.archive.active = this.item;
					this.archive.interval = window.setInterval(function(){pm.archive.current.intervalFunction.call(pm.archive.current)},24);
				}
				return false
			}
			this.intervalFunction = this.zoomInterval = function(){
				if(!this.archiveShow){
					this.archiveShow = jso.cE("div",{id:"archiveShow",archive:this},[
						jso.cE("h2",{className:"content_title",archive:this,onclick:this.itemClick},[this.active.header.firstChild.nodeValue]),
						jso.cE("div",{className:"scrollArea",archive:this},[
							this.active.brief.cloneNode(true),
							this.active.description.cloneNode(true)
						])
					],this.container);
					this.archiveBack = jso.cE("a",{id:"archiveBack",archive:this,onclick:this.itemClick},[i18n.archiveBack],this.container)
					this.archiveBack.style.opacity = 0
					this.archiveBack.style.filter = "alpha(opacity=0)";
					this.list.className += " noprint";
					new pm.scroll(this.archiveShow,{top:15,bottom:16,hide:true})
					this.mybox.start.call(this.mybox);
				}
				this.zoom += (this.plus ? 10 : - 10)
				this.archiveShow.style.opacity = this.zoom / 100
				this.archiveShow.style.filter="alpha(opacity="+this.zoom+")"
				this.archiveBack.style.opacity = this.zoom / 100
				this.archiveBack.style.filter="alpha(opacity="+this.zoom+")"
				if(this.zoom == 0 && !this.plus){
					this.container.removeChild(this.archiveShow)
					delete(this.archiveShow)
					this.container.removeChild(this.archiveBack)
					delete(this.archiveBack)
					this.list.className = this.list.className.replace(" noprint","");
					window.clearInterval(this.interval)
					delete(this.interval)
				}else if(this.zoom == 100 && this.plus){
					window.clearInterval(this.interval)
					delete(this.interval)
				}
			}
			this.archiveShow = false
			this.plus = false
			this.zoom = 0
			this.mybox = options.mybox || false;
			// dooom
			this.container = jso.gI("content")
			this.list.archive = this
			this.items = []
			var items = jso.gT("li",this.list)
			for(var i=0;i<items.length;i++){
				var item = this.items[i]={
					li:items[i],
					header:jso.gT("a",items[i])[0],
					brief:jso.gAV("div",items[i],"className","brief")[0],
					description:jso.gAV("div",items[i],"className","description")[0]
				}
				item.li.item = item
				item.li.archive = this
				item.header.item = item
				item.header.archive = this
				item.header.onclick = this.itemClick
			}
		}
	}
}
window.onload=pm.start
try{document.execCommand("BackgroundImageCache", false, true);}
catch(err){}
