// Copyright(C)2010 CSSMenuTools. All rights reserved.
// http://www.cssmenutools.com
//ProductID:MTLB
// Trial copy.
var eUOSVVA={dummy:0,
VERSION:'1.0.2.1',
CSS_Placement:2,
PreloadImage:'&../../urbscheit2010/ajax-loader.gif',
Position:0,
X:100,
Y:100,
Is_Fixed:true,
Width:737,
Height:515,
IsZoom:true,
BGColor:'#282828',
BorderStyle:'solid',
BorderColor:'#000000',
BorderWidth:5,
ShadeColor:'#000000',
ShadeOpacity:70,
TBarHeight:35,
TBarAlignment:1,
TBarColor:'#e2e2e2',
TBarImage:'',
TBarFont:'Verdana,Arial,Helvetica,sans-serif',
TBarFontSize:12,
TBarItalic:false,
TBarBold:false,
TBarFontColor:'#282828',
TBarIconPrev:'&../../urbscheit2010/mtlb_prev.gif',
TBarIconPrevMO:'&../../urbscheit2010/mtlb_prevmo.gif',
TBarIconNext:'&../../urbscheit2010/mtlb_next.gif',
TBarIconNextMO:'&../../urbscheit2010/mtlb_nextmo.gif',
TBarIconClose:'&../../urbscheit2010/mtlb_close.gif',
TBarIconCloseMO:'&../../urbscheit2010/mtlb_closemo.gif',
END_PARAMETERS:1,
CurrList:null,
CurrInd:0,
PreloadImg:null,
browser:function(){var ua=navigator.userAgent.toLowerCase()
var ind=ua.indexOf('gecko')
this.opera=ua.indexOf('opera')>=0
this.safari=ua.indexOf('safari')>=0
this.ie=document.all&&!this.opera
this.compatMode=document.compatMode=="CSS1Compat"
this.ieCanvas=this.compatMode?document.documentElement:document.body
return this},
setPathAdjustment:function(ID){var sl=''
var sc=document.getElementsByTagName('script')
for(var i=0;i<sc.length;i++){if(sc[i].innerHTML.search(ID)>-1)sl=sc[i].src}this.SCRIPT_LOCATION=sl.substr(0, sl.lastIndexOf('/')+1)},
adjustPath:function(path){var idf=path.charAt(0)
if(idf=='*'||idf=='&')return this.SCRIPT_LOCATION+path.substr(1)
return path},
addLoadEvent:function(f){var done=0
function w(){if(!done){done=1
f()}}if(document.addEventListener){document.addEventListener('DOMContentLoaded', w, false)}if(this.br.ie&&window==top)(function(){try{document.documentElement.doScroll('left')}catch(e){setTimeout(arguments.callee, 0)
return}w()})()
var oldf=window.onload
if(typeof oldf!='function'){window.onload=w}else{window.onload=function(){try{oldf()}catch(e){}w()}}},
addResizeEvent:function(f){var oldf=window.onresize
if(typeof oldf!='function'){window.onresize=f}else{window.onresize=function(){try{oldf()}catch(e){}f()}}},
addScrollEvent:function(f){var oldf=window.onscroll
if(typeof oldf!='function'){window.onscroll=f}else{window.onscroll=function(){try{oldf()}catch(e){}f()}}},
init:function(){var m=this
m.br=new m.browser
this.setPathAdjustment('MTLB_eUOSVVA')
m.addLoadEvent(m.onload)
m.addResizeEvent(m.oResize)
m.addScrollEvent(m.oScroll)},
onload:function(){setTimeout('eUOSVVA.start()',0)},
start:function(){var m=this
m.TBarIconPrev=m.adjustPath(m.TBarIconPrev)
m.TBarIconPrevMO=m.adjustPath(m.TBarIconPrevMO)
m.TBarIconNext=m.adjustPath(m.TBarIconNext)
m.TBarIconNextMO=m.adjustPath(m.TBarIconNextMO)
m.TBarIconClose=m.adjustPath(m.TBarIconClose)
m.TBarIconCloseMO=m.adjustPath(m.TBarIconCloseMO)
var targets=document.getElementsByName('MTLB_eUOSVVA')
for(var i=0;i<targets.length;i++){targets[i].onclick=this.show}},
show:function(){var m=eUOSVVA
var e=this
m.CurrList=eval(e.id+'list');var len=m.CurrList.length
 if(len==0)return false;for(var i=0;i<len;i++)m.CurrList[i][0]=m.adjustPath(m.CurrList[i][0])
for(var i=0;i<len;i++)m.CurrList[i][1]=m.CurrList[i][1]+'-Trial'
m.CurrInd=0;if(m.lbox){m.overlay.style.display='block'
m.lbox.parentNode.style.display=''
m.lbox.style.display='block'}else{m.create();m.updatePos();}m.changeImage(m.CurrList[m.CurrInd])
return false},
create:function(){var m=this
 m.PreloadImg=new Image()
m.PreloadImg.onload=m.onloadImg
m.overlay=document.createElement('div')
var stl=m.overlay.style
if(m.br.ie){var pageSize=new m.getPageSize()
var scrollPos=new m.getScrollPos()
stl.left=scrollPos.scrollX+'px'
stl.top=scrollPos.scrollY+'px'
stl.position='absolute'
stl.width=pageSize.winWidth+scrollPos.scrollX+'px'
stl.height=pageSize.winHeight+scrollPos.scrollY+'px'}else{stl.position='fixed'
stl.left='0px'
stl.top='0px'
stl.width='100%'
stl.height='100%'}stl.zIndex=1000
stl.backgroundColor='#000000'
if(m.br.ie)stl.filter='alpha(opacity=70)'
else stl.opacity=0.70
var parent=document.createElement('div')
stl=parent.style
stl.position='absolute'
stl.left='0px'
stl.top='0px'
stl.width='100%'
stl.height='100%'
stl.zIndex=1001
stl.backgroundColor='transparent'
m.lbox=document.createElement('div')
stl=m.lbox.style
stl.position='relative'
stl.margin='auto'
stl.width=m.Width+'px'
stl.height=m.Height+'px'
stl.zIndex=1001
stl.borderStyle='solid'
stl.borderColor='#000000'
stl.borderWidth='5px'
var lboxHTML="<div class=\"MTLBeUOSVVAcontent\"><div class=\"MTLBeUOSVVApreloader\" id=\"MTLBeUOSVVApreloader\"></div><img class=\"MTLBeUOSVVAimage\" id=\"MTLBeUOSVVAimg\" src=\"\" alt=\"\"/></div><div class=\"MTLBeUOSVVAtitlebar\"><div class=\"MTLBeUOSVVAtext\" id=\"MTLBeUOSVVAtext\">"+m.CurrList[0][1]+"</div><div class=\"MTLBeUOSVVAicons\" id=\"MTLBeUOSVVAicons\"><img class=\"MTLBeUOSVVAicon MTLBeUOSVVAprev\" src=\""+m.TBarIconPrev+"\" alt=\"Previous\" onmouseover=\"this.src='"+m.TBarIconPrevMO+"'\" onmouseout=\"this.src='"+m.TBarIconPrev+"'\" onclick=\"eUOSVVA.prev()\" /><img class=\"MTLBeUOSVVAicon MTLBeUOSVVAnext\" src=\""+m.TBarIconNext+"\" alt=\"Next\" onmouseover=\"this.src='"+m.TBarIconNextMO+"'\" onmouseout=\"this.src='"+m.TBarIconNext+"'\" onclick=\"eUOSVVA.next()\" /><img class=\"MTLBeUOSVVAicon MTLBeUOSVVAclose\" src=\""+m.TBarIconClose+"\" alt=\"Close\" onmouseover=\"this.src='"+m.TBarIconCloseMO+"'\" onmouseout=\"this.src='"+m.TBarIconClose+"'\" onclick=\"eUOSVVA.close()\" /></div></div>"
m.lbox.innerHTML=lboxHTML
document.body.appendChild(m.overlay)
document.body.appendChild(parent)
parent.appendChild(m.lbox)
m.image=document.getElementById('MTLBeUOSVVAimg')
m.preloader=document.getElementById('MTLBeUOSVVApreloader')
m.text=document.getElementById('MTLBeUOSVVAtext')
m.icons=document.getElementById('MTLBeUOSVVAicons')},
prev:function(){var m=this
if(m.CurrList!=null){var len=m.CurrList.length
len=(len>2?2:len)
m.CurrInd=m.CurrInd>0 ? m.CurrInd-1:len-1
if(m.CurrInd>=0&&m.CurrInd<len){this.changeImage(m.CurrList[m.CurrInd])}}},
next:function(){var m=this
if(m.CurrList!=null){var len=m.CurrList.length
len=(len>2?2:len)
m.CurrInd=m.CurrInd<len-1 ? m.CurrInd+1:0
if(m.CurrInd>=0&&m.CurrInd<len){this.changeImage(m.CurrList[m.CurrInd])}}},
close:function(){var m=this
m.image.src=''
m.image.style.display='none'
m.lbox.parentNode.style.display='none'
m.lbox.style.display='none'
m.overlay.style.display='none'
m.CurrList=null;},
changeImage:function(arr){var m=this
if(m.image)m.image.style.display='none'
m.preloader.style.display='block'
if(m.text)m.text.innerHTML=m.CurrList[m.CurrInd][1]
m.PreloadImg.src=arr[0]},
setSize:function(imgWidth, imgHeight){var m=this
m.image.style.width=imgWidth+'px'
m.image.style.height=imgHeight+'px'},
setImagePos:function(imgWidth, imgHeight){var m=this
if(!m.image)return
var W=m.Width
var H=m.Height-m.TBarHeight
m.image.style.left=(W>imgWidth?(W-imgWidth)/2:0)+'px'
m.image.style.top=(H>imgHeight?(H-imgHeight)/2:0)+'px'},
onloadImg:function(){var m=eUOSVVA
if(m.image)m.image.src=m.CurrList[m.CurrInd][0]
if(m.text)m.text.innerHTML=m.CurrList[m.CurrInd][1]
if(m.text)m.text.style.marginTop=((m.TBarHeight-m.text.offsetHeight)/2)+'px'
if(m.preloader)m.preloader.style.display='none'
m.setSize(m.PreloadImg.width, m.PreloadImg.height)
m.setImagePos(m.PreloadImg.width, m.PreloadImg.height)
if(m.image)m.image.style.display='inline'
m.updatePos()
m.updateOverlay()},
updatePos:function(){var m=eUOSVVA
if(m.lbox&&m.lbox.style.display!='none'){var pageSize=new m.getPageSize()
var scrollPos=new m.getScrollPos()
var pos
if(m.lbox.offsetHeight<pageSize.winHeight){pos=Math.round(pageSize.winHeight/2+scrollPos.scrollY-m.lbox.offsetHeight/2)+'px'}else{pos=Math.round(pageSize.winHeight/2-m.lbox.offsetHeight/2)+'px'}if(pos!=m.lbox.style.top)m.lbox.style.top=pos
if(m.lbox.offsetWidth<pageSize.width){pos=scrollPos.scrollX+'px'
if(pos!=m.lbox.style.left)m.lbox.style.left=pos}}},
updateOverlay:function(isResize){var m=eUOSVVA
if(m.lbox&&m.lbox.style.display!='none'){if(m.br.ie){var pageSize=new m.getPageSize()
var scrollPos=new m.getScrollPos()
m.overlay.style.left=scrollPos.scrollX+'px'
m.overlay.style.top=scrollPos.scrollY+'px'
m.overlay.style.width=pageSize.winWidth+'px'
m.overlay.style.height=pageSize.winHeight+'px'}}},
oResize:function(){var m=eUOSVVA
m.updatePos()
m.updateOverlay()},
oScroll:function(){var m=eUOSVVA
m.updatePos()
m.updateOverlay()},
getPageSize:function(){var xScroll, yScroll
var d=document
var docElem=d.documentElement
if(self.innerHeight&&self.scrollMaxY){yScroll=self.innerHeight+self.scrollMaxY}else if(d.body.scrollHeight>d.body.offsetHeight){yScroll=d.body.scrollHeight}else if(docElem&&docElem.scrollHeight>docElem.offsetHeight){yScroll=docElem.scrollHeight}else{yScroll=d.body.offsetHeight}if(self.innerWidth&&self.scrollMaxX){xScroll=self.innerWidth+self.scrollMaxX}else if(d.body.scrollWidth>d.body.offsetWidth){xScroll=d.body.scrollWidth}else if(docElem&&docElem.scrollWidth>docElem.offsetWidth){xScroll=docElem.scrollWidth}else{xScroll=d.body.offsetWidth}var windowWidth, windowHeight
if(self.innerHeight){windowWidth=self.innerWidth
windowHeight=self.innerHeight}else if(docElem&&docElem.clientHeight){windowWidth=docElem.clientWidth
windowHeight=docElem.clientHeight}else if(d.body){windowWidth=d.body.clientWidth
windowHeight=d.body.clientHeight}this.winHeight=windowHeight
this.winWidth=windowWidth
this.pageHeight=yScroll
this.pageWidth=xScroll},
getScrollPos:function(){var docElem=document.documentElement
this.scrollX=self.scrollX||(docElem&&docElem.scrollLeft)||document.body.scrollLeft
this.scrollY=self.scrollY||(docElem&&docElem.scrollTop)||document.body.scrollTop},
dummy:null};eUOSVVA.init()

