function input_value_io(action, value, id)
{
	var oper_input = document.getElementById(id);
	if(action == 'in')
	{
		if(oper_input.value == '') oper_input.value = value;
	}
	if(action == 'out')
	{
		if(oper_input.value == value) oper_input.value = '';
	}
}

function redraw_site()
{
	var content_height = document.getElementById("container").offsetHeight-103;
	var products_height = document.getElementById("products").offsetHeight;
	var disparity = content_height-products_height;
	var minimal_padding = 103;
	var column_height = 637;

	if(disparity)
	{
		var correct_padding = minimal_padding+(content_height-column_height);
		document.getElementById("right").style.paddingTop = correct_padding+"px";
	}

	if(Browser.Engine.trident)
	{
		var site_width = document.getElementById("main").offsetWidth;
		var min_width = 1040;
		if(site_width <= min_width)
		{
			document.getElementById("favorites").style.width = min_width+"px";
			document.getElementById("menu_top").style.width = min_width+"px";
			document.getElementById("shadow").style.width = min_width+"px";
			document.getElementById("spacer").style.width = min_width+"px";
		}
	}
}

function add_to_bookmarks() 
{ 
   var name = document.title;
   var url = document.location;
   if(window.external) window.external.AddFavorite(url, name) 
   if(window.sidebar) window.sidebar.addPanel(name, url, ""); 
}