<!--
// Copyright (c) 2006 Easy2.com, Inc. All rights reserved.

// The "document.write" code below can be changed to a <div> or <td> if needed, BUT MAKE SURE THE ID IS NOT CHANGED.
// You can also add a default value or placeholder image within the tag.
// Remember, the placeholder within the tag will be replaced by a demo button(s) IF a matching demo exists.

document.write('<span id=\"easy2Container_hdpi_demos\"></span>');
//document.write('<div id=\"easy2Container_hdpi_demos\"></div>');
//document.write('<td id=\"easy2Container_hdpi_demos\"></td>');


// *********************************************************************************************************************
// ***************************************Do not change the code below this line.***************************************
// *********************************************************************************************************************

var easy2Container = "";
function checkEasy2ServerStatusForDemos() {
	var imgURL = 'http://includes.easy2.com/dyna_includes2/1.gif';
	var imgObj = document.createElement('img');
	
	imgObj.onload = function (evt) {
		imgObj = null;
		var arrURL = document.getElementById("easy2Script_hdpi_demos").src.split('?');		
		if(arrURL.length > 1) {
			var sCatID = '';
			var sURL = '';
			var oContainer = document.getElementById('easy2Container_hdpi_demos');
			var arrVarSets = arrURL[1].split('&');

			for(var v = 0; v < arrVarSets.length; v++) {
				var tmp = arrVarSets[v].split('=');
				if(tmp[0].toLowerCase() == 'catalogid' && tmp.length > 1) sCatID = unescape(tmp[1]);
			}
					
			switch (sCatID.toLowerCase()) {
				case 'a':
					sURL = 'http://includes.easy2.com/dyna_includes2/abho_12.asp';
					oContainer.setAttribute('id','easy2Container_abho_12');
					easy2Container = 'easy2Container_abho_12';
					break;
				case 'h':	
					sURL = 'http://includes.easy2.com/dyna_includes2/hocl_17.asp';
					oContainer.setAttribute('id','easy2Container_hocl_17');
					easy2Container = 'easy2Container_hocl_17';
					break;
				case 't':	
					sURL = 'http://includes.easy2.com/dyna_includes2/hech_16.asp';
					oContainer.setAttribute('id','easy2Container_hech_16');
					easy2Container = 'easy2Container_hech_16';
					break;
			}
		
			if(sURL != '') {
				var easy2RightNow = new Date();
				sURL += '?e2__dyna_include_url=' + escape(window.location.href.toString());
				sURL += '&e2__time_stamp=' + escape(easy2RightNow);
				sURL += '&' + arrURL[1];
			
				checkForEasy2Demo(sURL);
			}
		}
	}
	
	imgObj.onerror = function (evt) {
		imgObj = null;
	}	
	
	imgObj.src = imgURL;
}

function checkForEasy2Demo(url) {
	var js=document.createElement('script');
	js.setAttribute('language','javascript');
	js.setAttribute('type','text/javascript');
	js.setAttribute('src',url);
	if(document.getElementsByTagName('head')) document.getElementsByTagName('head')[0].appendChild(js);
}

if(document.images && document.getElementById) checkEasy2ServerStatusForDemos();
//-->
