/*==================================================*/
// Global Scripts
/*==================================================*/

	/*----------------------------------------*/
	// Inline Script
	/*----------------------------------------*/
		var expandedSection = null
		var collapsedSection = null;
		
		preloadContentImages();

		if (document.images)
		{
			products = new Image();
			products.src = "/images/useng/products.jpg";
			products_o = new Image();
			products_o.src = "/images/useng/products_o.jpg";
				
			news = new Image();
			news.src = "/images/useng/news.jpg";
			news_o = new Image();
			news_o.src = "/images/useng/news_o.jpg";

			myaccount = new Image();
			myaccount.src = "/images/useng/myaccount.jpg";
			myaccount_o = new Image();
			myaccount_o.src = "/images/useng/myaccount_o.jpg";

			cart = new Image();
			cart.src = "/images/useng/cart.jpg";
			cart_o = new Image();
			cart_o.src = "/images/useng/cart_o.jpg";

			home = new Image();
			home.src = "/images/useng/home.jpg";
			home_o = new Image();
			home_o.src = "/images/useng/home_o.jpg";

			contact = new Image();
			contact.src = "/images/useng/contact.jpg";
			contact_o = new Image();
			contact_o.src = "/images/useng/contact_o.jpg";

			help = new Image();
			help.src = "/images/useng/help.jpg";
			help_o = new Image();
			help_o.src = "/images/useng/help_o.jpg";
		}

	/*----------------------------------------*/
	// Events
	/*----------------------------------------*/
	/*----------------------------------------*/
	// Functions
	/*----------------------------------------*/
		function imageover(imagename){
			document[imagename].src = eval(imagename + "_o.src");
		}
		function imageout(imagename){
			document[imagename].src = eval(imagename + ".src");
		}
		
		function newImage(arg) {
			if (document.images) {
				rslt = new Image();
				rslt.src = arg;
				return rslt;
			}
		}

		function preloadContentImages() {
			if (document.images) {
				//expandedSection = newImage("/images/icons/expanded.jpg");
				//collapsedSection = newImage("/images/icons/collapsed.jpg");
				preloadFlag = true;
			}
		}

		function toggle(pstrObjID){
			var objSection = eval("document.all." + pstrObjID);
			var objImg = eval("document.all." + pstrObjID + "img");
			if (objSection.style.display == "none"){
				objSection.style.display = 'block';
				objImg.src = expandedSection.src;
			} else {
				objSection.style.display = 'none';
				objImg.src = collapsedSection.src;
			}
		}

		function popup(pstrLink, pstrName) {
			window.open(pstrLink, pstrName, 'toolbar=no,directories=no,menubar=no,status=no,resizable=no,scrollbars=yes,height=480,width=475');
		}

		function openBrWindow(pstrURL, pstrWName, pstrFeatures) {
  			window.open(pstrURL, pstrWName, pstrFeatures);
		}