
var currentImage = "";

function flash(imageName,imageFile)
{
  if(!document.images) return;
  if(currentImage != imageName){
    eval('document.images[imageName].src = '+imageFile+'.src');
    }
}


function openNews(myPage,myWidth,myHeight) 
{
  myWin= open(myPage, "displayWindow",
    "width=" + myWidth.toString() + ",height=" + myHeight.toString() + 
    ",status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes");
}

function openText(myPage,myHeight) 
{
  myWin= open("./prov.asp?section=" + myPage + "", "displayWindow",
    "width=400,height=" + myHeight + 
    ",status=no,toolbar=no,menubar=no,scrollbars=no,resizable=yes");
}

function openPic(myPage,myTitle) 
{
  myWin = window.open('', 'myWin',"width=2,height=2,status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no");
  
  
  mytext = "<TITLE>" + myTitle +"</TITLE>";
  myWin.document.write(mytext);   
  
  mytext = "<SCRIPT LANGUAGE=JavaScript defer='defer' SRC='./aquaclicks.js'></SCRIPT><LINK REL='STYLESHEET' HREF='./aquastyle.css' MEDIA='screen' TYLE='text/css'>";
  myWin.document.write(mytext);   
  
  mytext = "<IMG onload='getDim();' ID='image1' SRC='" + myPage + "' HSPACE=20 VSPACE=20>";
  myWin.document.write(mytext); 


  mytext = "<CENTER><SPAN class='copyright'>&copyAquarelle Publishing Ltd 2009</SPAN></CENTER>"
  myWin.document.write(mytext); 


  myWin.location.reload(); 
  
}

function getDim()
{
	myImage = document.getElementById("image1");

	self.resizeTo(myImage.width + 70,myImage.height + 160);
}



function closeIt() 
{
  close();
}


function link(target)
{
   parent.location=target;
}

function link2(section)
{
   parent.location=section;
}


 // copyright notice script 
  var message="Copyright 2000 - 2009 by Aquarelle Publishing. WARNING! All content on this site is protected by copyright laws. Unauthorized use of our material is strictly prohibited.";
 
  function click(e) {
  if (document.all) {if (event.button==2||event.button==3) 
  { alert(message); return false;}}
  if (document.layers) {if (e.which == 3) { alert(message); return false;}}
  }// --------- end function
 
  if (document.layers) { document.captureEvents(Event.MOUSEDOWN);}
  document.onmousedown=click;
 
