
<!-- .......................................................................................... -->
<!-- ....................................... super popup head daljas sakums ................... -->
<!-- .......................................................................................... -->

n=0
step = 1
width = 723
x1 = x2 = width/2

function curtainOn() {

document.getElementById("window").style.visibility = "visible";

if (Opera) {document.getElementById("window").style.display = "block"; document.getElementById("shadow").style.display = "block"}

if (x1 > -23) {

x1 -= step
x2 += step
clip = "auto " + x2 + " auto " + x1
step=step+2
setTimeout("curtainOn()", 30)
}

}

function curtainOff() {

if (x2 > (width/2)) {

x1 += step 
x2 -= step
clip = "auto " + x2 + " auto " + x1
step=step+2
document.getElementById("window").style.clip = "rect(" + clip + ")"
document.getElementById("shadow").style.clip = "rect(" + clip + ")"
setTimeout("curtainOff()", 30)
document.getElementById("window").style.visibility = "hidden";
}


else if (Opera) {document.getElementById("window").style.display = "none"; document.getElementById("shadow").style.display = "none"
}
if (x2<=(width/2)&&n==1){window.location='portfolio.php?quiery=latest_works_1'}
}



//--------------------------------------------------------------------------------------------

step = 1
width = 723
x12 = x22 = width/2

function curtainOn2() {

if (Opera) {document.getElementById("window2").style.display = "block"; document.getElementById("shadow2").style.display = "block"}

if (x12 > -23) {

x12 -= step
x22 += step
clip = "auto " + x22 + " auto " + x12
step=step+2
document.getElementById("window2").style.clip = "rect(" + clip + ")"
document.getElementById("shadow2").style.clip = "rect(" + clip + ")"
setTimeout("curtainOn2()", 30)
}

}

function curtainOff2() {

if (x22 > (width/2)) {

x12 += step 
x22 -= step
clip = "auto " + x22 + " auto " + x12
step=step+2
document.getElementById("window2").style.clip = "rect(" + clip + ")"
document.getElementById("shadow2").style.clip = "rect(" + clip + ")"
setTimeout("curtainOff2()", 30)
}

else if (Opera) {document.getElementById("window2").style.display = "none"; document.getElementById("shadow2").style.display = "none"}

if (x22<=(width/2)&&n==1){window.location='portfolio.php?quiery=latest_works_2'}
}

//----------------------------------------------------------------------------------------------
Opera = document.getElementById && window.opera
if (Opera) document.getElementById("window").style.display = "none" 
Opera = document.getElementById && window.opera
if (Opera) document.getElementById("shadow").style.display = "none" 
Opera = document.getElementById && window.opera
if (Opera) document.getElementById("shadow2").style.display = "none" 
Opera = document.getElementById && window.opera
if (Opera) document.getElementById("window2").style.display = "none" 



<!-- .......................................................................................... -->
<!-- ....................................... opera popup head daljas beigas ................... -->
<!-- .......................................................................................... -->

