direction = 1;
function ietextcolor()
{
	color = "" + document.styleSheets[0].rules[0].style.color;
	r = color.substring(1,3);
	g = color.substring(3,5);
	b = color.substring(5,7);
	rval = parseInt(r,16);
	gval = parseInt(g,16);
	bval = parseInt(b,16);
	if(rval == 255)
		direction = 0;
	if(rval == 0)
		direction = 1;
	if(direction == 1)
	{
		rval = rval + 1;
		gval = gval + 1;
	}
	else
	{
		rval = rval - 1;
		gval = gval - 1;
	}
	rval = rval.toString(16);
	gval = gval.toString(16);
	bval = bval.toString(16);
	if(parseInt(rval,16) < 16)
		rval = "0" + rval;
	if(parseInt(gval,16) < 16)
		gval = "0" + gval;
	color = "#" + rval + "" + gval + "" + bval + "";
	document.styleSheets[0].rules[0].style.color = color;
	width = document.documentElement.clientWidth;
	height = document.documentElement.clientHeight;
	document.images[0].height = height;
	document.images[0].width = width;
	document.getElementById('contentdiv').style.minHeight = "" + (height-360) + "px";
	t=setTimeout("ietextcolor();",32);
}
function textcolor()
{
	x = navigator;
	if(x.appName.match("Microsoft"))
		ietextcolor();
	else if(x.appName.match("Opera"))
		optextcolor();
	else
		ottextcolor();
}
function ottextcolor()
{
	color = "" + document.styleSheets[0].cssRules[0].style.color;
	r = color.substring(4,color.indexOf(','));
	g = color.substring(color.indexOf(',')+1,color.indexOf(',',color.indexOf(',')+1));
	b = color.substring(color.indexOf(',',color.indexOf(',')+1)+1,color.length-1);
	rval = parseInt(r);
	gval = parseInt(g);
	bval = parseInt(b);
	if(rval == 255)
		direction = 0;
	if(rval == 0)
		direction = 1;
	if(direction == 1)
	{
		rval = rval + 1;
		gval = gval + 1;
	}
	else
	{
		rval = rval - 1;
		gval = gval - 1;
	}
	color = "rgb(" + rval + ", " + gval + ", " + bval + ")";
	document.styleSheets[0].cssRules[0].style.color = color;
	width = window.outerWidth;
	height = window.outerHeight;
	document.images[0].height = height-100;
	document.images[0].width = width-40;
	document.getElementById('contentdiv').style.minHeight = "" + (height-510) + "px";
	t=setTimeout("ottextcolor();",32);
}
function optextcolor()
{
	color = "" + document.styleSheets[0].cssRules[0].style.color;
	r = color.substring(1,3);
	g = color.substring(3,5);
	b = color.substring(5,7);
	rval = parseInt(r,16);
	gval = parseInt(g,16);
	bval = parseInt(b,16);
	if(rval == 255)
		direction = 0;
	if(rval == 0)
		direction = 1;
	if(direction == 1)
	{
		rval = rval + 1;
		gval = gval + 1;
	}
	else
	{
		rval = rval - 1;
		gval = gval - 1;
	}
	rval = rval.toString(16);
	gval = gval.toString(16);
	bval = bval.toString(16);
	if(parseInt(rval,16) < 16)
		rval = "0" + rval;
	if(parseInt(gval,16) < 16)
		gval = "0" + gval;
	color = "#" + rval + "" + gval + "" + bval + "";
	document.styleSheets[0].cssRules[0].style.color = color;
	width = window.outerWidth;
	height = window.outerHeight;
	document.images[0].height = height-100;
	document.images[0].width = width-40;
	document.getElementById('contentdiv').style.minHeight = "" + (height-400) + "px";
	t=setTimeout("optextcolor();",32);
}
function pricechange()
{
	quant = document.getElementById('quantity').value;
	if(quant < 4)
		document.getElementById('option_amount1').value = "109.87";
	else if(quant < 11)
		document.getElementById('option_amount1').value = "92.87";
	else if(quant < 25)
		document.getElementById('option_amount1').value = "77.87";
	else
		document.getElementById('option_amount1').value = "70.87";
}
function pricechangeA2V()
{
	quant = document.getElementById('quantity').value;
	if(quant < 4)
		document.getElementById('option_amount1').value = "109.87";
	else if(quant < 11)
		document.getElementById('option_amount1').value = "92.87";
	else if(quant < 25)
		document.getElementById('option_amount1').value = "77.87";
	else
		document.getElementById('option_amount1').value = "70.87";
}
function pricechangeA2A()
{
	quant = document.getElementById('quantity').value;
	if(quant < 4)
		document.getElementById('option_amount1').value = "109.87";
	else if(quant < 11)
		document.getElementById('option_amount1').value = "92.87";
	else if(quant < 25)
		document.getElementById('option_amount1').value = "77.87";
	else
		document.getElementById('option_amount1').value = "70.87";
}


function infotableshow()
{
	
	document.getElementById('infodrop').style.display="block";
}
function infotablehide()
{
	document.getElementById('infodrop').style.display="none";
}


function productstableshow()
{
	
	document.getElementById('proddrop').style.display="block";
}
function productstablehide()
{
	document.getElementById('proddrop').style.display="none";
}
