
// this method is used instead of getElementById() in order it should work for all browsers 
function getElementRefs(id)
{
	var elm = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null;
	if (elm) elm.css = (elm.style)? elm.style: elm;
	return elm;
}
var aValue;
var nI = 0;
var aURLArguments = location.search.substring(1).split('&');
for (nI = 0; nI < aURLArguments.length; nI++) {
	aValue = aURLArguments[nI].split('=');
	if (aValue[0].toLowerCase() == 'srccode') {
		document.cookie = 'srccode=' + escape(aValue[1]) + ';domain=.multiclick.net;expires=';
   	}
   	if (aValue[0].toLowerCase() == 'cpncode') {
		document.cookie = 'cpncode=' + escape(aValue[1]) + ';domain=.multiclick.net;expires=';
    }
}
window.name = "bhmain";
var type = "IE";	//Variable used to hold the browser name

BrowserSniffer();

//detects the capabilities of the browser
function BrowserSniffer() {
	if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP";		//Opera
	else if (document.all) type="IE";														//Internet Explorer e.g. IE4 upwards
	else if (document.layers) type="NN";													//Netscape Communicator 4
	else if (!document.all && document.getElementById) type="MO";							//Mozila e.g. Netscape 6 upwards
	else type = "IE";		//I assume it will not get here


}
function doNothing(message) {
window.status = message;
}
