// CADM ...

if (document.images) {

// 1st tier
	var specifier_off = new Image()
	specifier_off.src = "./images/home_button_specifier_off.gif"
	var specifier_on = new Image()
	specifier_on.src = "./images/home_button_specifier_on.gif"
	
	var locator_off = new Image()
	locator_off.src = "./images/home_button_locator_off.gif"
	var locator_on = new Image()
	locator_on.src = "./images/home_button_locator_on.gif"
	
}

function rollover(imgname,imgsrc) {
	document.images[imgname].src = eval(imgsrc + ".src")
}

function openWindow1(file) {
  popupWin = window.open(file, 'popup1', 'scrollbars=no,status=0,menubar=no,width=520,height=410');
  myTimer=setTimeout("popupWin.focus()",1000);
}

function openWindow2(file) {
  popupWin = window.open(file, 'popup2', 'scrollbars=no,status=0,menubar=no,width=568,height=455');
  myTimer=setTimeout("popupWin.focus()",1000);
}

function openWindow3(file) {
  popupWin = window.open(file, 'popup3', 'scrollbars=no,status=0,menubar=no,width=649,height=499');
  myTimer=setTimeout("popupWin.focus()",1000);
}

function openWindow4(file) {
  popupWin = window.open(file, 'popup4', 'scrollbars=no,status=0,menubar=yes,width=649,height=499');
  myTimer=setTimeout("popupWin.focus()",1000);
}

function openWindow5(file) {
  popupWin = window.open(file, 'popup5', 'scrollbars=yes,status=0,menubar=no,width=756,height=499');
  myTimer=setTimeout("popupWin.focus()",1000);
}

function openWindow(file, name, cx, cy) {
  popupWin = window.open(file, name, 'scrollbars=no,status=0,menubar=no,width=' + cx + ',height=' + cy );
  myTimer=setTimeout("popupWin.focus()",1000);
}


function setParent(file) {
	alert(file);
 window.parent.open(file);
  
}

var str = "left=0,screenX=0,top=0,screenY=0";

if (window.screen) {
  var ah = screen.availHeight - 30;
  var aw = screen.availWidth - 10;
  str += ", height=" + ah;
  str += ", innerHeight=" + ah;
  str += ", width=" + aw;
  str += ", innerWidth=" + aw;
  str += ", scrollbars=yes";
} else {
  str += ", resizable"; // so the user can resize the window manually
}

function launchFull(url) {
  return window.open(url, 'popup6', str);
}