function changeImage(id)
{
  url = "http://www.australiangallery.com/photo/"+id+".html";
//  url = "http://photogallery/photo/"+id+".html";
  document.getElementById("preorder").src=url;
}

function changeFrame(type)
{
  var Frames = new Array("black","mahog","beech","gold","silver","blank");
  colorN = document.getElementById("frame_type").value;
  if (colorN == ''){
  document.getElementById("mat_type").value="";
  changeMat('');
  colorN = 6;
  noframeselect();
  }
  else{
  frameselect();
  }
  document.getElementById("preorder_photo").style.background="url('../img/etc1/gallery_frames/"+type+"_"+colorN+".png') no-repeat";
}

function changeMat(colorN)
{
  if (colorN==undefined){
    colorN = document.getElementById("mat_type").value;
  }
  if (colorN == ""){mat="#fff";}

  if (colorN=="Cream"){mat="#fbf8ec";}
  if (colorN=="Black"){mat="#000";}
  if (colorN=="White"){mat="#fff";}

  document.getElementById("preorder_photo_img").style.backgroundColor=mat;
}

var demoWin;
function DoWin(namehtm,wwin,hwin) {
  if ((demoWin != null) && (!demoWin.closed)){demoWin.close()}
  eval("demoWin=window.open('"+namehtm+"', 'demonstrationWin', 'width="+wwin+",height="+hwin+",location=0,top=0')");
  demoWin.focus();
}

function hide_id(nodeId)
{
    var node = document.getElementById(nodeId);
    if (node)
    {
        node.className=node.className.replace('showed', '');
        node.className += ' hidden';
    }
}

function show_id(nodeId)
{
    var node = document.getElementById(nodeId);
    if (node)
    {
        node.className=node.className.replace('hidden', '');
        node.className += ' showed';
    }
}