function visual_change(this_obj, code, on_num, length)
{
	for (var i=1; i<=length; i++)
	{
		var id=code+i;
		var node = document.getElementById(id);
		var node_classname= node.className;
		var node_classname = trim(node_classname.replace("hide",""));
	
		if(i==on_num)
			node.className = node_classname;
		else
			node.className = node_classname+" hide";
	}
	
	var link_node=this_obj.parentNode.getElementsByTagName("a");
	for(var j=0; j<link_node.length; j++)
	{
		if((j+1)==on_num)
			link_node[j].className="on";
		else
			link_node[j].className="";
	}
	
}

function div_pass(flag)
{
	var links_id=document.getElementById('products_link');
	var start_link = getElementsByClass("start")[0];
	var start_link_id = parseInt(start_link.getAttribute("id").substring(1,2));
	if(flag==1){
		if(start_link_id>2)
			return;
		if((start_link_id+1) ==1)
			document.getElementById('arrow_up').className="arrow";
		else
			document.getElementById('arrow_up').className="arrow on";
		if((start_link_id+3) ==5)
			document.getElementById('arrow_down').className="arrow";
		else
			document.getElementById('arrow_down').className="arrow on";
		start_link.className="hide";
		eval("document.getElementById('L"+(start_link_id+1)+"')").className="start";
		eval("document.getElementById('L"+(start_link_id+2)+"')").className="";
		eval("document.getElementById('L"+(start_link_id+3)+"')").className="end";
	}
	else {
		if(start_link_id==1 || start_link_id>3)
			return;
		if((start_link_id-1) ==1)
			document.getElementById('arrow_up').className="arrow";
		else
			document.getElementById('arrow_up').className="arrow on";
		if((start_link_id+2) ==5)
			document.getElementById('arrow_down').className="arrow";
		else
			document.getElementById('arrow_down').className="arrow on";
		eval("document.getElementById('L"+(start_link_id-1)+"')").className="start";
		start_link.className="";
		eval("document.getElementById('L"+(start_link_id+1)+"')").className="end";
		eval("document.getElementById('L"+(start_link_id+2)+"')").className="hide";
	}
}
