/* Sophella Design - Javascript                   */
/* Create by A.A.Rodil 2007                       */
/* --------------------------------------------------------------------------------*/

function ConfirmMsg(msg) {
	  alert(msg);
}

/* --------------------------------------------------------------------------------*/

function SwapImgRestore() { 
  var i,x,a=document.EA_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function PreloadImages() {
  var d=document; if(d.images){ if(!d.EA_p) d.EA_p=new Array();
    var i,j=d.EA_p.length,a=PreloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.EA_p[j]=new Image; d.EA_p[j++].src=a[i];}}
}

function FindObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=FindObj(n,d.layers[i].document); return x;
}

function SwapImage() { 
  var i,j=0,x,a=SwapImage.arguments; document.EA_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=FindObj(a[i]))!=null){document.EA_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

/* --------------------------------------------------------------------------------*/


function openPopWin(wn) {
  if(wn=='popSS') {
    window.open('tshirt_smock_SS.html','babySS','width=343,height=491');
    }
  else if(wn=='popGabLS'){
         window.open('tshirt_smock_LS.html','GabbieLS','width=334,height=491');
         }
  else if(wn=='popLSsmock'){
         window.open('LS_tshirt_smockP.html','LSsmock','width=250,height=300');
         }
  else if(wn=='popRock'){
         window.open('tshirt_smock_Gray.html','GabbieLS','width=351,height=459');
         }
  else if(wn=='popRockRoot'){
         window.open('html/tshirt_smock_Gray.html','GabbieLS','width=351,height=459');
         }
  else if(wn=='popShip'){
         window.open('ship_info.html','ShipInfo','width=357,height=467');
         }
  else if(wn=='popShipRoot'){
         window.open('html/ship_info.html','ShipInfo','width=357,height=467');
         }
  else if(wn=='debbiecphoto'){
         window.open('http://www.debbiecphotography.com','ad','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=640,height=480');
         }
}

function closePopWin() {
  window.close();
}
