if (document.images) {
	var homeon = new Image(); homeon.src = "/images/home_over.gif";
	var homeoff = new Image(); homeoff.src = "/images/home_rest.gif";
	var abouton = new Image(); abouton.src = "/images/about_over.gif";
	var aboutoff = new Image(); aboutoff.src = "/images/about_rest.gif";
	var bizmodelon = new Image(); bizmodelon.src = "/images/bizmodel_over.gif";
	var bizmodeloff = new Image(); bizmodeloff.src = "/images/bizmodel_rest.gif";
	var equipmenton = new Image(); equipmenton.src = "/images/equipment_over.gif";
	var equipmentoff = new Image(); equipmentoff.src = "/images/equipment_rest.gif";
	var whyon = new Image(); whyon.src = "/images/whyvend_over.gif";
	var whyoff = new Image(); whyoff.src = "/images/whyvend_rest.gif";
	var faqon = new Image(); faqon.src = "/images/faq_over.gif";
	var faqoff = new Image(); faqoff.src = "/images/faq_rest.gif";
	var referenceson = new Image(); referenceson.src = "/images/references_over.gif";
	var referencesoff = new Image(); referencesoff.src = "/images/references_rest.gif";
	var contactuson = new Image(); contactuson.src = "/images/contactus_over.gif";
	var contactusoff = new Image(); contactusoff.src = "/images/contactus_rest.gif";

}

function act(imgName,imgName2) {
	if (document.images){
		var oversrc = eval(imgName + 'on.src');
		document[imgName].src = oversrc;
		document[imgName2].src = oversrc;
	}
}

function inact(imgName,imgName2) {
	if (document.images){
		var offsrc = eval(imgName + 'off.src');
		document[imgName].src = offsrc;
		document[imgName2].src = offsrc;
	}
}

function showRedirectionMessage(strNewUrl){
	$("#redirectlink").replaceWith("<a href='"+strNewUrl+"'>follow this link to http://compvend.com"+strNewUrl+"</a>");
	$('#dialog').jqm().jqmShow();
	var letsgo=setTimeout('window.location.replace("'+strNewUrl+'",true)',10000);
}

function writeMailTos(sUN,sD){
	if(!sD)sD="compvend.com";
	var sEM=sUN+"@"+sD;
	var sLink="<a class='mailto' href='mailto:"+sEM+"'>"+sEM+"</a>";
	document.write(sLink);
}

/*
<div class="jqmWindow" id="dialog">
	<a href="#" class="jqmClose">Close</a>
	<p>This page has recently moved. Please update your bookmarks.</p>
	<p>You will be redirected to the new location automatically in 10 seconds,
	or you can <span id="redirectlink"><a href="/">follow this link</a></span>.</p>	
</div>
*/