var counturl = 'http://www.cbifamily.com/publish/countcookie.php';
var IndexID = '12832' ;

var xmlhttp;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
  try {
  xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")
 } catch (e) {
  try {
	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
  } catch (E) {
   xmlhttp=false
  }
 }
@else
 xmlhttp=false
@end @*/
if (!xmlhttp && typeof XMLHttpRequest != 'undefined')
{
  try {
	xmlhttp = new XMLHttpRequest ();
  }
  catch (e) {
  xmlhttp = false}
}

function myXMLHttpRequest ()
{
  var xmlhttplocal;
  try {
  	xmlhttplocal = new ActiveXObject ("Msxml2.XMLHTTP")}
  catch (e) {
	try {
	xmlhttplocal = new ActiveXObject ("Microsoft.XMLHTTP")}
	catch (E) {
	  xmlhttplocal = false;
	}
  }

  if (!xmlhttplocal && typeof XMLHttpRequest != 'undefined') {
	try {
	  var xmlhttplocal = new XMLHttpRequest ();
	}
	catch (e) {
	  var xmlhttplocal = false;
	}
  }
  return (xmlhttplocal);
}

var mnmxmlhttp = Array ();
var mnmString = Array ();
var mnmPrevColor = Array ();
var responsestring = Array ();
var myxmlhttp = Array ();
var responseString = new String;


function getad_home_index_banner1(type,id) {
	if (xmlhttp) {
		var htmlid = 'ad_' + id;
		var url = counturl;   
		var data = "Id=" + IndexID;
		mnmxmlhttp[htmlid] = new myXMLHttpRequest ();
		if (mnmxmlhttp) {
			mnmxmlhttp[htmlid].open ("POST", url, true);
			mnmxmlhttp[htmlid].setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
			mnmxmlhttp[htmlid].send(data);
		}

 
 	document.getElementById('home_index_banner1').innerHTML = "<A href=\"http://shop.cbifamily.com/\" target=_blank onclick=\"adclick('" + type + "','" + id + "','" + IndexID + "', 'http%3A%2F%2Fshop.cbifamily.com%2F' );\" ><img src=\"http://www.cbifamily.com/corporation/h004/h31/img201007221054210.jpg\" width=\"950\" height=\"100\" border=\"0\"/></A>";
 	
	}
}
//<!-- Published at 2010-07-22 10:54:55, Powered by CMSware 2.8.5 Pro -->