var hid = 0;

//for mousebiz
//var site_path = "http://202.54.157.62/OBS/website";
//var admin_path = "http://202.54.157.62/OBS/admin";

//for obs
var locn	=	window.location.href;
if(locn.indexOf("https://") == -1)
{
	var site_path = "http://www.lmc.com.au/obs/website";
	var admin_path = "http://www.lmc.com.au/obs/admin";
}
else
{
	var site_path = "https://www.lmc.com.au/obs/website";
	var admin_path = "https://www.lmc.com.au/obs/admin";
}

var imgobj, imgid;
function doit(item)
{
 obj = document.getElementById(item);
 if(obj.style.display == "none")
  obj.style.display = "block";
 else
  obj.style.display = "none";

 imgid = item+'_img';
 imgobj = document.getElementById(imgid)
 plmin(imgobj);

 if(hid == item) { hid = 0; return; }

 if(hid != 0)
 {
  obj1 = document.getElementById(hid);
  if(obj1.style.display == "none")
   obj1.style.display = "block";
  else
   obj1.style.display = "none";

  imgid = hid+'_img';
  imgobj = document.getElementById(imgid)
  plmin(imgobj);
 }
 hid = item;
}

function plmin(obj)
{
	if(obj.src.indexOf('plus2.gif') == -1){ obj.src = site_path+'/images/plus2.gif'; }
	else { obj.src = site_path+'/images/minus2.gif'; }
}
function swap(obj,pic)
{
  obj.src = pic;
}
function Popup(page, pwidth, pheight, winname)
{
  window.open(page, winname, "toolbar=no, location=no, directories=no, status=no, menubar=no, resizable=YES, copyhistory=no, scrollbars=Yes,width=" + pwidth + ", height=" + pheight + ", top=100, left=150");
}
function badimage(obj)
{
	obj.src = site_path+'/images/lmclogo.jpg';
}