<!--
 var listofimages = new Array();
 var listofurls = new Array();
  listofurls[0] = "/manufacturers.php?manufacturerid=1433";
  listofurls[1] = "/manufacturers.php?manufacturerid=60";
  listofurls[2] = "/manufacturers.php?manufacturerid=1140";
  listofurls[3] = "/manufacturers.php?manufacturerid=32";
  listofurls[4] = "/manufacturers.php?manufacturerid=119";
  listofurls[5] = "/manufacturers.php?manufacturerid=6";
  listofurls[6] = "/manufacturers.php?manufacturerid=124";
  listofurls[7] = "/manufacturers.php?manufacturerid=8";
  listofurls[8] = "/manufacturers.php?manufacturerid=187";
  listofurls[9] = "/manufacturers.php?manufacturerid=1";
  listofurls[10] = "/manufacturers.php?manufacturerid=4";
  listofurls[11] = "/manufacturers.php?manufacturerid=9";  
 var numBanners = listofurls.length;
 var banneradcode = 0;
 var browsertype;
 function loadpage() {
 browver= parseInt(navigator.appVersion);
 browtype = navigator.appName;
 browsertype = "old";

 if (browtype == "Microsoft Internet Explorer" && !(browver < 4)) {
  browsertype = "new";
 } else if (browtype == "Netscape" && !(browver < 3)) {
  browsertype = "new";
 }
 if (browsertype == "new") {
  banneradcode = 0;
  thetimer = setTimeout("changeimage()", 4000);
  listofimages[0] = new Image(468,60);
  listofimages[0].src = "/images/banner_nvidia.gif";
  listofimages[1] = new Image(468,60);
  listofimages[1].src = "/images/AMD1.gif";
  listofimages[2] = new Image(468,60);
  listofimages[2].src = "/images/cisco.gif";
  listofimages[3] = new Image(468,60);
  listofimages[3].src = "/images/chenbro.gif";
  listofimages[4] = new Image(468,60);
  listofimages[4].src = "/images/coolmax_banner.gif";
  listofimages[5] = new Image(468,60);
  listofimages[5].src = "/images/dlink.gif";
  listofimages[6] = new Image(468,60);
  listofimages[6].src = "/images/Hipro.gif";
  listofimages[7] = new Image(468,60);
  listofimages[7].src = "/images/logitech.jpg";
  listofimages[8] = new Image(468,60);
  listofimages[8].src = "/images/LSI.jpg";
  listofimages[9] = new Image(468,60);
  listofimages[9].src = "/images/Samsung-NB.gif";
  listofimages[10] = new Image(468,60);
  listofimages[10].src = "/images/sony_banner.jpg";  
  listofimages[11] = new Image(468,60);
  listofimages[11].src = "/images/trendnet.gif";   
  
 }
}

function changeimage() {
 if (browsertype == "new") {
  banneradcode = banneradcode + 1;
  if (banneradcode == numBanners) {
   banneradcode = 0;
  }
  window.document.bannerad.src = listofimages[banneradcode].src;
  thetimer = setTimeout("changeimage()", 4000);
 }
 else if (browsertype == "old") {
 }
}

function SearchClear()
{
 if (document.search_frm.search_string.value == 'Search by Keyword')
	document.search_frm.search_string.value = '';
}
function goAd() {
	if (banneradcode == 100) {
		window.open(listofurls[banneradcode], "ms", "scrollbars=1, resizable, width=800, height=600");
	} else {
		window.location.href = listofurls[banneradcode];
	}
}

var message="Copyright" + String.fromCharCode(169) + " 2005 by CESell.com. \n\nWARNING ! All images & content contained within this site is protected by copyright laws. \n\nUnauthorized use of our material is strictly prohibited.";
var disable = false;
function click(e) {
  if (disable) {
    if (document.all) {
      if (event.button==2||event.button==3) {
        alert(message);
        return false;
      }
    } else if (document.layers) {
      if (e.which == 3) {
        alert(message);
        return false;
      }
    }
  }
}
if (document.layers) {
	document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
function on() {
  disable = true;
}
function off() {
  disable = false;
}
function out() {
	disable = false;
}

function popShipping(weight) {
	if (document.cartform.destinationZipCode.value == "") {
		alert("Please enter shipping zip code");
		return false;
	} else {
         href = 'estimate_realtime_shipping.php?destination_zipcode=' + document.cartform.destinationZipCode.value + '&wt=' + weight;
	window.open(href, 'shippingcost', 'width=400,height=250,left=50,top=100,resizable=yes,scrollbars=yes,status=no,menubar=no,location=no,toolbar=no');
		return true;
	}

}

// -->
