<!--
function IMW_preloadImages() { 
  var d=document; if(d.images){ if(!d.IMW_p) d.IMW_p=new Array();
    var i,j=d.IMW_p.length,a=IMW_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.IMW_p[j]=new Image; d.IMW_p[j++].src=a[i];}}
}

function IMW_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=IMW_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function IMW_swapImage() { 
  var i,j=0,x,a=IMW_swapImage.arguments; document.IMW_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=IMW_findObj(a[i]))!=null){document.IMW_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function IMW_swapImgRestore() { 
  var i,x,a=document.IMW_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function IMW_popupMsg(msg) { 
  alert(msg);
}

function IMW_displayStatusMsg(msgStr) {
  status=msgStr;
  document.IMW_returnValue = true;
}

function IMW_goToURL() {
  var i, args=IMW_goToURL.arguments; document.IMW_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function IMW_breakFrame() {
	if (self.parent.frames.length!=0) {
	self.parent.location.replace(document.location.href); }
}

function IMW_displayWindow(theURL,winName,width,height,features) { 
    var window_width = width;
    var window_height = height;
    var newfeatures= features;
    var window_top = (screen.height-window_height)/2;
    var window_left = (screen.width-window_width)/2;
    newWindow=window.open(''+ theURL + '',''+ winName + '','width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + ',features=' + newfeatures + '');
    newWindow.focus();
}

//-->

