// JavaScript Document
function gosterSol(j) {
  for (i=1; i<=7; i++) {
    document.getElementById('sector'+i).className='pasif';
  }
  document.getElementById('sector'+j).className='aktif';
  for (i=1; i<=7; i++) {
    document.getElementById('secsol'+i).style.display='none';
  }
  document.getElementById('secsol'+j).style.display='block';
}

function gosterSag(j) {
  for (i=1; i<=5; i++) {
    document.getElementById('sectori'+i).className='pasif';
  }
  document.getElementById('sectori'+j).className='aktif2';
  for (i=1; i<=5; i++) {
    document.getElementById('secsag'+i).style.display='none';
  }
  document.getElementById('secsag'+j).style.display='block';
}

function Goster(img){
 foto1= new Image();
 foto1.src=(img);
 Controlla(img);
}
function Controlla(img){
 if((foto1.width!=0)&&(foto1.height!=0)){
   viewFoto(img);
 }
 else{
   funzione="Controlla('"+img+"')";
   intervallo=setTimeout(funzione,20);
 }
}
function viewFoto(img){
 text = "<html><title>.: Say Yapı :.</title><body style='margin:0px;' onblur='self.close()'><table width='100%' height='100%' cellspacing=0 cellpadding=0 border=0><tr><td align=center valign=center><img src='"+img+"' onClick='self.close()' title='Resmi Kapatmak İçin Üzerine Tıklayınız' style='border:5px solid #416893; cursor:pointer;'></td></tr></table></body></html>";
 largh=foto1.width+20;
 altez=foto1.height+20;
 leftt=(screen.width-largh)/2;
 topp=(screen.height-altez)/2;
 stringa="width="+largh+",height="+altez+",toolbar=no,top="+topp+",left="+leftt+", scrolbars=no, resize=no, status=no, directories=no, menubar=no";
 finestra=window.open("","",stringa);
 finestra.document.write(text);
 finestra.document.close();
 }
