
var cur_lyr;function swapLayers(id){if(cur_lyr)hideLayer(cur_lyr);showLayer(id);cur_lyr=id;}
function showLayer(id){var lyr=getElemRefs(id);if(lyr&&lyr.css)lyr.css.display="block";}
function hideLayer(id){var lyr=getElemRefs(id);if(lyr&&lyr.css)lyr.css.display="none";}
function getElemRefs(id){var el=(document.getElementById)?document.getElementById(id):(document.all)?document.all[id]:(document.layers)?document.layers[id]:null;if(el)el.css=(el.style)?el.style:el;return el;}
function acik(id){}
function popup(artpic){document.getElementById('popup').style.display='block';document.getElementByID("popimg").src=artpic+".jpg";}
var windowtitle="Cinecity"
function detectexist(obj){return(typeof obj!="undefined")}
function jkpopimage(imgpath,popwidth,popheight,textdescription){function getpos(){leftpos=(detectexist(window.screenLeft))?screenLeft+document.body.clientWidth/2-popwidth/2:detectexist(window.screenX)?screenX+innerWidth/2-popwidth/2:0
toppos=(detectexist(window.screenTop))?screenTop+document.body.clientHeight/2-popheight/2:detectexist(window.screenY)?screenY+innerHeight/2-popheight/2:0
if(window.opera){leftpos-=screenLeft
toppos-=screenTop}}
getpos()
var winattributes='width='+popwidth+',height='+popheight+',resizable=yes,left=250,top=100'
if(typeof jkpopwin=="undefined"||jkpopwin.closed)
jkpopwin=window.open("","",winattributes)
else{jkpopwin.resizeTo(popwidth,popheight+30)}
jkpopwin.document.open()
jkpopwin.document.write('<html><title>'+windowtitle+'</title><body style="background:#ffffff;margin:0px"><a href="javascript:self.close()"><img src="'+imgpath+'" border=0 style="margin-bottom: 0.5em"></a></body></html>')
jkpopwin.document.close()
jkpopwin.focus()}
