<!--
var __isNetscape6 	= (navigator.userAgent.indexOf("Netscape6") > 0) ? true: false;
var __isNetscape7 	= (navigator.userAgent.indexOf("Netscape/7") > 0) ? true: false;
var __isNetscape6_0 = (navigator.userAgent.indexOf("Netscape6/6.0") > 0) ? true: false;
var __isOpera 		= (window.opera) ? true: false;

var activeProducts	= new Array();
activeProducts["bundle"] = -1;
activeProducts["new"] = -1;

//-----------------------------------------------------------------------------------------------------------------
function Product(product_id, product_name, product_img, price, product_url)
//-----------------------------------------------------------------------------------------------------------------
{
	this.product_id			= product_id;
	this.product_name		= product_name;
	this.product_img        = product_img;
	this.price      		= price;
	this.product_url        = product_url;

	this.Show = Show;
}

//-----------------------------------------------------------------------------------------------------------------
function Show(placeholder)
//-----------------------------------------------------------------------------------------------------------------
{
	if(document.getElementById(placeholder))
	{
        var product_html = "";

        document.getElementById(placeholder).innerHTML = "";

        product_html += "<div><a href=\"" + this.product_url + "\">" + "<img src=\"" + this.product_img + "\" alt=\"" + this.product_name + "\" border=\"0\" />" + "</div>";
        product_html += "<p>";
        product_html += "<a href=\"" + this.product_url + "\">" + this.product_name + "</a>";
        product_html += "<br />" + "<img src=\"../img/1.gif\" width=\"1\" height=\"5\" alt=\"\" border=0>" + "<br />" + this.price;
        product_html += "</p>";

    	document.getElementById(placeholder).innerHTML = product_html;
	}

}

//-----------------------------------------------------------------------------------------------------------------
function ProductImagePreload (ProductList)
//-----------------------------------------------------------------------------------------------------------------
{

   if (__isNetscape6_0) return;

   for (var i = 0; i < ProductList.length; i++)
   {
      var pic = new Image();
      pic.src = ProductList[i].product_img;
   }

}

//-----------------------------------------------------------------------------------------------------------------
function SetActiveProduct (type, num)
//-----------------------------------------------------------------------------------------------------------------
{
    var selPage = activeProducts[type];

	if(document.getElementById("navPanLink" + type + num))
	{
	    document.getElementById("navPanLink" + type + num).className = "navPanLinkStyleActive";

	    if(selPage >= 0)
	        if(document.getElementById("navPanLink" + type + selPage))
	            document.getElementById("navPanLink" + type + selPage).className = "navPanLinkStyleInActive";

	    activeProducts[type] = num;
	}

}

//-----------------------------------------------------------------------------------------------------------------
function ShowProduct (type, num)
//-----------------------------------------------------------------------------------------------------------------
{
    var product = null;

	if(type == "bundle")
	{
        if(typeof bundleProducts != "undefined" && bundleProducts != null)
        	product = bundleProducts[num];
	}
	else if(type == "new")
	{
    	if(typeof newProducts != "undefined" && newProducts != null)
        	product = newProducts[num];
	}

	if(product != null)
	{
	    product.Show(type + "_product_place_holder");
	    SetActiveProduct (type, num) ;
	}

}

//-->
