// JavaScript Document

document.cookie='c_test=1';

function Twoload(frame1,frame2)
{
 parent.MENU.location.href=frame1;
 parent.DATA.location.href=frame2;
 }
 

 function abox(url, w, h)
{ 
open(url, "", 'menubar=no, directories=no, location=no, resizable=no, scrollbars=no, width=' + w + ', height=' + h );
} 

function openphoto (url, w, h)
{ 
open(url, "", 'menubar=no, directories=no, location=no, resizable=no, scrollbars=no, width=' + w + ', height=' + h );
}

function openphoto_1 (url, w, h)
{ 
open(url, "", 'menubar=no, directories=no, location=no, resizable=no, scrollbars=yes, width=' + w + ', height=' + h );
}

function openphoto_2 (url, w, h)
{ 
open(url, "", 'menubar=no, directories=no, location=no, resizable=no, scrollbars=no, screenX=570, screenY=330, left=570, top=330, width=' + w + ', height=' + h );
}

// функция смены картинок
var a=new Array();
function getChildren(ob){
  
  var o=ob.childNodes;
  for (var i=0; i<o.length; i++){
    if (o[i].nodeType==1) // Element
      a[a.length]=o[i];
  }
  return a;
}
function change2(ob){
  var o,i;
  o=getChildren(ob.parentNode);
  i=parseInt(ob.getAttribute("i"));
  if (++i==(a.length-1)) i=0;
  ob.style.display="none";
  o[i].style.display="inline";
}

// конец функции смены картинок


// ф-ция сворачивания-разворачивания описания

function changeDisplayStatus(elementID) {
		  var id;
		  id = "Text" + elementID;
      var elm;
      if (document.getElementById) elm = document.getElementById(id);
      else if (document.all) elm = document.all[id];
      if (elm) {
  		  if(elm.style.display=="none") elm.style.display = "inline";
		    else elm.style.display = "none";
      }
		}

// конец


