// для закладок
function on(sheet)
{
  if (document.images)
  {
     if (sheet == "book") {document.images["SheetsPic"].src=ShBPic.src;}
     if (sheet == "gl") {document.images["SheetsPic"].src=ShGPic.src;}
     if (sheet == "sh") {document.images["SheetsPic"].src=ShSPic.src;}
     if (sheet == "hl") {document.images["SheetsPic"].src=ShHPic.src;}
  }
  return true;
}

function don(sheet)
{
  if (document.images)
  {
     if (sheet == "book") {document.images["DSheetsPic"].src=DShBPic.src;}
     if (sheet == "gl") {document.images["DSheetsPic"].src=DShGPic.src;}
     if (sheet == "sh") {document.images["DSheetsPic"].src=DShSPic.src;}
     if (sheet == "hl") {document.images["DSheetsPic"].src=DShHPic.src;}
  }
  return true;
}

// для закладок
function off()
{
  if (document.images){ document.images["SheetsPic"].src=ShPic.src; }
  return true;
}
function doff()
{
  if (document.images){ document.images["DSheetsPic"].src=DShPic.src; }
  return true;
}


function changePic(namePic,srcPic)
{
  if (document.images) { document.images[namePic].src=eval(srcPic+'.src');}
  return true;
}



// показывает анимацию в новом окне
// animName - заголовок мультика
// animUrl  - имя файла мультика
// animWidth - ширина мультика
// animHeight - высота мультика
function showAnim(animName,animUrl,animWidth,animHeight)
{
  animWindowWidth = animWidth+20;
  animWindowHeight = animHeight+20;
  paramStr = "toolbar=0,width="+animWindowWidth+",height="+animWindowHeight;

  animWindow = window.open("","",paramStr);
  animWindow.document.write ("<html><head><title>"+animName+"</title></head><body><img src="+animUrl+" border=0 width="+animWidth+" height="+animHeight+"></img></body></html>");
}


function showFlash(animName,animUrl,animWidth,animHeight)
{
  animWindowWidth = animWidth+20;
  animWindowHeight = animHeight+20;
  paramStr = "toolbar=0,width="+animWindowWidth+",height="+animWindowHeight;

  animWindow = window.open(animUrl,"",paramStr);
//  animWindow.document.load(animUrl);
  
}


function cursorHand(obj)
{
  obj.style.cursor = 'hand';
}

function cursorNormal(obj)
{
  obj.style.cursor = 'default';
}




