<!--
ex1=""
ex2=""
blck="no"
comment=""
ref= new Array();
alt= new Array();
imarray= new Array();
imext=new Array();
imon= new Array();
imoff= new Array();

alt[1]="Статьи и новости"
ref[1]="/rus/news/news.php"
alt[2]="Проект «Империя»"
ref[2]="/rus/yacht/general.php"
alt[5]="Яхтенный словарь"
ref[5]="/rus/misc/slovar.php"
alt[4]=""
ref[4]=""
alt[3]="Новые проекты"
ref[3]="/rus/project/general.php"
alt[6]="Контакты"
ref[6]="/rus/misc/contacts.php"

function Turn(id, mode) {


  if(mode){
        On(id)
}
else{Off(id)}
}

function On(k){
document.images["im"+k].src=imon[k].src;
}
function Off(k){
document.images["im"+k].src=imoff[k].src;
}
function blick(md,id)
{if (blck="on"){
if (md){
   eval("setTimeout(\"On(" + id + ");\",100)")
        blick(0,id)
}  else
 {  eval("setTimeout(\"Off(" + id + ");\",100)");
blick(1,id)
}
}
else{  eval("setTimeout(\"Off(" + id + ");\",100)");}
}

for(i=1;i<=6;i++) {
imon[i] = new Image()
imon[i].src="/pictures/gif2.php?txt="+alt[i]+"&tp=on";


imoff[i] = new Image()
imoff[i].src="/pictures/gif2.php?txt="+alt[i]+"&tp=off"
if (alt[i]==""){
document.writeln('<td  height="24"  align="center"><img src="/pictures/blue.gif" height ="1" width="160"></td>');
}
else{
document.writeln('<td height="24" align="center" width="17%"><a href="'+ref[i]+'" ><img border="0" src="/pictures/gif2.php?txt='+alt[i]+'&tp=off" alt="'+alt[i]+'" name="im'+i+'" onMouseOver=Turn('+i+',1) onMouseOut=Turn('+i+',0)></a></td>');
}
if (i<6)  {

document.writeln('<td width="1"  height="24"  align="center"><img border="0" src="/pictures/vert_sep.php" width="1" height="16"></td>');
}

}

function LTurn(id, mode) {


  if(mode){
        LOn(id)
}
else{LOff(id)}
}

function LOn(k){
document.images["lim"+k].src=limon[k].src;
}
function LOff(k){
document.images["lim"+k].src=limoff[k].src;
}
function blick(md,id)
{if (blck="on"){
if (md){
   eval("setTimeout(\"On(" + id + ");\",100)")
}
}
}
function show_album(immage,ex,alt,ex1,ex2){

mpage="/eng/pict_screen.php?pc="+immage+"&ex="+ex+"&alt="+alt+"&ex1="+ex1+"&ex2="+ex2;
mtype=location.pathname.substring(5,9)
//alert(mtype);
if (mtype=="news"){
mpage=mpage+"&type=news";
}
//mpage="/pict_screen.php?pc="+imarray[immage];
window.open(mpage,"album","width=740,height=550,status=no,toolbar=no,menubar=no");
}
//-->