// Javascript

function addEvent(elm, evType, fn, useCapture) {
	if (elm.addEventListener) {
		elm.addEventListener(evType, fn, useCapture);
		return true;
	}
	else if (elm.attachEvent) {
		var r = elm.attachEvent('on' + evType, fn);
		return r;
	}
	else {
		elm['on' + evType] = fn;
	}
}

function $() {
	var elements = new Array();
	for (var i = 0; i < arguments.length; i++) {
		var element = arguments[i];
		if (typeof element == 'string')
			element = document.getElementById(element);
		if (arguments.length == 1)
			return element;
		elements.push(element);
	}
	return elements;
}

function fireImgSty() {
	document.location.href = 'http://www.hlcconline.com/mm5/merchant.mvc?Screen=laser-hair-treatment&Store_Code=01';
}

function fireImgStyl() {
	document.location.href = 'http://www.hlcconline.com/mm5/merchant.mvc?Screen=PLST&Store_Code=01';
}

function fireImgStyle() {
	document.location.href = 'http://www.hlcconline.com/mm5/merchant.mvc?Screen=clinic-hair-loss-laser&Store_Code=01';
}

function fireImgStyleN() {
	document.location.href = 'http://www.hlcconline.com/mm5/merchant.mvc?Screen=business-opportunities&Store_Code=01';
}

function setLinks() {
	addEvent($('img-sty'), 'click', fireImgSty, false);
	addEvent($('img-styl'), 'click', fireImgStyl, false);
	addEvent($('img-style'), 'click', fireImgStyle, false);
	addEvent($('img-style-n'), 'click', fireImgStyleN, false);
}

addEvent(window, 'load', setLinks, false);
