<!--
// 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_toco_160\"></span>');
//document.write('<div id=\"easy2Container_toco_160\"></div>');
//document.write('<td id=\"easy2Container_toco_160\"></td>');


// *********************************************************************************************************************
// ***************************************Do not change the code below this line.***************************************
// *********************************************************************************************************************

function checkEasy2ServerStatus(easy2IncludeID) {
	var imgURL = 'http://includes.easy2.com/dyna_includes2/1.gif';
	var imgObj = document.createElement('img');
	
	imgObj.onload = function (evt) {
		imgObj = null;
		var easy2RightNow = new Date();
		var strURL = 'http://includes.easy2.com/dyna_includes2/' + easy2IncludeID + '.asp';
		strURL += '?e2__dyna_include_url=' + escape(window.location.href.toString());
		strURL += '&e2__time_stamp=' + escape(easy2RightNow);
		var arrURL = document.getElementById("easy2Script_" + easy2IncludeID).src.split('?');		
		if(arrURL.length > 1) strURL += '&' + arrURL[1];
		
		checkForEasy2Demo(strURL);
	}
	
	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) checkEasy2ServerStatus('toco_160');
//-->
