
// JavaScript Document
//variable that will increment through the images
var dim=18;
var step=1;
var contor=8;
var whichimage=1;

var colors = new Array ("#edb786" , "#f6902c" , "#ef520d" , "#ff4e00" ,"#ef520d" , "#f6902c" ,"#edb786" , "#EAD1A8", "#edb786" , "#f6902c" , "#ef520d" , "#ff4e00" ,"#ef520d" , "#f6902c" ,"#edb786" , "#EAD1A8" , "#f6902c", "#ff4e00" );
var color=1;
function changeColor()
{
document.getElementById('header_banner').style.color=colors[color-1] ;
document.getElementById('header_banner2').style.color=colors[color-1] ;

	setTimeout("changeColor()",100);
if (color<dim)
color++;
else
color=1;

}
function slideit(){
	
//if browser does not support the image object, exit.

if (!document.getElementById)
return
if ((Math.round(contor/dim)%2)==0)
document.getElementById('slide').src=eval("image"+step+".src");
else
document.getElementById('slide2').src=eval("image"+step+".src");
whichimage=step;
if (step<dim)
step++;
else
step=1;

contor++;
//call function "slideit()" every 2.5 seconds
setTimeout("slideit()",3500);
}
slideit();
changeColor();
//slideit('slide2');

function slidelink(){
if (whichimage==1)
;
else if (whichimage==2)
popup(image2);
else if (whichimage==3)
popup(image3);
else if (whichimage==4)
popup(image4);
else if (whichimage==5)
popup(image5);
else if (whichimage==6)
popup(image6);
else if (whichimage==7)
popup(image7);
//changes---------------
else if (whichimage==8)
popup(image82);
else if (whichimage==9)
popup(image9);
else if (whichimage==10)
popup(image10);
else if (whichimage==11)
popup(image11);
else if (whichimage==12)
popup(image12);
else if (whichimage==13)
popup(image13);
else if (whichimage==14)
popup(image14);
else if (whichimage==15)
popup(image15);
else if (whichimage==16)
popup(image16);
else if (whichimage==17)
popup(image17);
else if (whichimage==18)
popup(image18);



//----------------------
}
function popup(imagine)
{
var locatie=imagine.src;
var h=imagine.height;
var l=imagine.width;
if (ie!=1){
	
mywindow = window.open ("", "", 'location=no, status=yes, resizable=no, scrollbars=0,'+ 'width='+l+', height='+h);
mywindow.document.write('<html><head><title>FOTO</title>');
mywindow.document.write('<link rel="stylesheet" href="/img/satiricus.css"></head>');
mywindow.document.write('<body><img src='+'"' +locatie + '"' + 'onClick=window.close() alt='+'"'+'fotografie'+'"'+'/>' +'</body></html>');
mywindow.document.close();
}
else
{
	//copie pe site ----------
mywindow = window.open ("", "", 'location=no, status=yes, resizable=yes, scrollbars=0,'+ 'width='+l+', height='+h);
mywindow.document.write('<html><head><title>FOTO</title>');
mywindow.document.write('<link rel="stylesheet" href="/img/satiricus.css"></head>');
mywindow.document.write('<body><img src='+'"' +locatie + '"' + 'alt='+'"'+'fotografie'+'"'+'/>' +'</body></html>');
//--------------------------------------
mywindow.document.close();
}
}
