function DrawImage(ImgD,FitWidth,FitHeight)
{
	var image=new Image();
	image.src=ImgD.src;
	if(image.width>0 && image.height>0)
	{
		if(image.width/image.height>= FitWidth/FitHeight)
		{
			if(image.width>FitWidth)
			{
				ImgD.width=FitWidth;
				ImgD.height=(image.height*FitWidth)/image.width;
			}
			else
			{
				ImgD.width=image.width;
				ImgD.height=image.height;
			}
		}
		else
		{
			if(image.height>FitHeight)
			{
				ImgD.height=FitHeight;
				ImgD.width=(image.width*FitHeight)/image.height;
			}
			else
			{
				ImgD.width=image.width;
				ImgD.height=image.height;
			}
		}
	}
}



function show1()
{
	if(ta1.style.display=='inline')
	{
		ta1.style.display='none';
	}else
	{
		ta1.style.display='inline';
		
	}

ta2.style.display="none";
ta3.style.display="none";
jall();
}
function show2()
{

if(ta2.style.display=='inline')
	{
		ta2.style.display='none';
	}else
	{
		ta2.style.display='inline';
		
	}
ta1.style.display='none';
ta3.style.display='none';
jall();
}
function show3()
{

if(ta3.style.display=='inline')
	{
		ta3.style.display='none';
	}else
	{
		ta3.style.display='inline';
		
	}
ta1.style.display='none';
ta2.style.display='none';
jall();
}

function jall()
{
	for(var i=1;i<img1.length+1;i++)
	{

			if(eval("ta"+i+".style.display=='none'"))
			{
				
				img1[i-1].src="../products/images/+.gif";
			}
			else
			{
				img1[i-1].src="../products/images/-.gif";
			}
	}
}