window.onresize = function() 
{
	tblHeight();
}


function _void(){}

function ProductDetailsPage(id)
{
	tdArray_details_body = document.getElementById('trId_details_body').getElementsByTagName('TD');
		
	for(i = 0; i < tdArray_details_body.length; i++)
	{
		if(tdArray_details_body[i].id.substr(0, 6) == 'pageId') tdArray_details_body[i].style.display = 'none';
		
	}
	
	document.getElementById('pageId_' + id).style.display = '';
	
	
	tdArray_details_head = document.getElementById('trId_details_head').getElementsByTagName('TD');
	for(i = 0; i < tdArray_details_head.length; i++)
	{
		if(tdArray_details_head[i].className == 'details_head_activ') tdArray_details_head[i].className = 'details_head';
		
		if(tdArray_details_head[i].className == 'details_head_activ_r') tdArray_details_head[i].className = 'details_head_r';
		if(tdArray_details_head[i].className == 'details_head_activ_l') tdArray_details_head[i].className = 'details_head_l';
		
		if(tdArray_details_head[i].className == 'details_head_activ_r') tdArray_details_head[i].className = 'details_head_r';
		if(tdArray_details_head[i].className == 'details_head_activ_l') tdArray_details_head[i].className = 'details_head_l';
	}
	
	document.getElementById('tdId_' + id).className = 'details_head_activ';
	
	document.getElementById('tdId_l_' + id).className = 'details_head_activ_l';
	document.getElementById('tdId_r_' + id).className = 'details_head_activ_r';
}

function tblHeight()
{
	
	obj_0 = document.getElementById('tableHeightID_0');
	obj_1 = document.getElementById('tdHeightID_1');
	obj_2 = document.getElementById('tdHeightID_2');
	
	if('Opera' == navigator.appName)
	{
		if(obj_0) obj_0.style.height = (document.body.clientHeight) + 'px';
		if(obj_1)
		{
			innerHTML = obj_1.innerHTML;
			obj_1.innerHTML = "";
			obj_1.style.height = (document.body.clientHeight - 502) + 'px';
			obj_1.innerHTML = innerHTML;			
		}		
		if(obj_2) 
		{
			innerHTML = obj_2.innerHTML;
			obj_2.innerHTML = "";
			obj_2.style.height = (document.body.clientHeight - 463) + 'px';
			obj_2.innerHTML = innerHTML;
		}
	}
	else if('Microsoft Internet Explorer' == navigator.appName)
	{
		if(obj_0) obj_0.style.height =  (document.documentElement.clientHeight) + 'px';
		if(obj_1) obj_1.style.height =  (document.documentElement.clientHeight - 502) + 'px';
		if(obj_2) obj_2.style.height =  (document.documentElement.clientHeight - 463) + 'px';
	}
	else
	{
		if(obj_0) obj_0.style.height =  (document.documentElement.clientHeight) + 'px';
		if(obj_1) obj_1.style.height =  (document.documentElement.clientHeight - 502) + 'px';
		if(obj_2) obj_2.style.height =  (document.documentElement.clientHeight - 463) + 'px';
	}
}

function bgcolor_grey(td_id)
{
	obj = document.getElementById(td_id);
	
	obj.style.background = "#dddedf";
}

function bgcolor_white(td_id)
{
	obj = document.getElementById(td_id);
	
	obj.style.background = "";	
}





