/* hot offers */
function hotoffer()
{
document.getElementById('hotproductsbox').className="newon";
document.getElementById('launchbox').className="newoff";
document.getElementById('h').className="ho";
document.getElementById('l').className="nl";
document.getElementById('foroffer').style.display="block";
document.getElementById('forlaunch').style.display="none";
}

function newlaunch()
{
document.getElementById('hotproductsbox').className="newoff";
document.getElementById('launchbox').className="newon";
document.getElementById('h').className="n2";
document.getElementById('l').className="ho1";
document.getElementById('foroffer').style.display="none";
document.getElementById('forlaunch').style.display="block";
}

var testnew =0;
var test =1;

function nexthot()
{
test++;
if (document.getElementById('hotoffer'+test))
{
document.getElementById('hotoffer'+test).className="newon";
var testnew = test - 1;
document.getElementById('hotoffer'+testnew).className="newoff";
}
else
{
test--;
}
}

function prehot()
{
	if (document.getElementById('hotoffer'+test) && test > 1)
{
test--;
document.getElementById('hotoffer'+test).className="newon";
var testnew = test+1;
document.getElementById('hotoffer'+testnew).className="newoff";
}
}

var launchnew =0;
var launch =1;

function nextlan()
{
launch++;
if (document.getElementById('launch'+launch))
{
document.getElementById('launch'+launch).className="newon";
var launchnew = launch - 1;
document.getElementById('launch'+launchnew).className="newoff";
}
else
{
launch--;
}
}

function prelan()
{
	if (document.getElementById('launch'+launch) && launch > 1)
{
launch--;
document.getElementById('launch'+launch).className="newon";
var launchnew = launch+1;
document.getElementById('launch'+launchnew).className="newoff";
}
}
// show and hide product name on home page

var plnew = "pl2"; 
function show(obj, plus)
{
        if(document.getElementById)
	{
		var el = document.getElementById(obj);
		var ar = document.getElementById("masterdiv1").getElementsByTagName("div");
		for (var i=0; i<ar.length; i++)
		{
			if(ar[i].className == "on") 
			{
				ar[i].className = "off";
			}
		}
		document.getElementById(obj).className = "on";
	}
	if(document.getElementById(plnew))
	{
		document.getElementById(plnew).className = "prhd";
	}
	if(document.getElementById(plus).className == "prhd")
	{
		document.getElementById(plus).className = "prhdm";
	}
	plnew = plus;
}
function show1(obj, plus)
{
	document.getElementById(obj).className = "on";
	document.getElementById(plus).className = "off";
}
function show2(obj, plus)
{
	document.getElementById(obj).className = "prdnm1";
	document.getElementById(plus).className = "off";
} 
