function fancyWindow(sender)
{
	//version 1: CANCELLED
	/*
	var windowCaption = sender.innerText;
	if (!windowCaption)
	{
		windowCaption = sender.textContent;
	}
	var theHeight = document.documentElement.clientHeight * 0.95;
	win = new Window({className: "darkX", title: windowCaption, width:800, height:theHeight, destroyOnClose: true, zIndex: 100, recenterAuto:false}); 
	win.getContent().update("<iframe src='" + sender.href + "' class='frmFancy'></iframe>"); 
	win.showCenter();
//alert($(document.body).GetHeight
	return false;
	*/
	
	//version 2: CANCELLED!
	//sender.target = "_blank";
	
	//Version 3: do nothing. All pages changed to include header/footer
	return true;
}
Element.prototype.triggerEvent = function(eventName)
{
    if (document.createEvent)
    {
        var evt = document.createEvent('HTMLEvents');
        evt.initEvent(eventName, true, true);

        return this.dispatchEvent(evt);
    }

    if (this.fireEvent)
        return this.fireEvent('on' + eventName);
}

document.observe("dom:loaded", function() {
  // initially hide all containers for tab content
  $$('iframe').each(function(s, index) {
		var url = $(s).readAttribute("src")
		$(s).writeAttribute("src",url+"&wmode=transparent")
	});
});

/* For compatibility with old site (and easy data entry). */
function openPictWindow(url, widthPx, heightPx)
{
	try
	{
		var isImage = true;
		if (isImage)
		{
			var anchor = document.createElement("a");
			anchor.href = "http://www.arkel.ca/legacy/" + url;
			anchor.setAttribute("rel", "lightbox");
			window.liteBoxx.start(anchor);
		}
		else
		{
			win = new Window({className: "darkX", width: widthPx, height: heightPx, destroyOnClose: true, zIndex: 100, recenterAuto:false}); 
			win.getContent().update("<iframe src='http://www.arkel-od.com/" + url + "' class='frmFancy'></iframe>"); 
			win.showCenter();	
		}
	}
	catch (err) {
		//alert(err);
	}
	return false;
}

function printHow()
{
	window.print();
}

