function init_page()
{
	img_index=1;
	img_max_index=0;
	img_min_index=1;
	img_step=960;
	conteiner=document.getElementById('tour-path');
	if(conteiner)
	{
		var links=conteiner.getElementsByTagName('a');
		for(i=0;i<links.length;i++)
		{
			links[i]._index=i;
			links[i].onclick=function()
			{
				muv_img(this._index);
				get_active(this._index);
				return false;
			}
		}
		
	}
}
function muv_img(index)
{
		$("#wrapper").animate({left:-img_step*(index)},500);
}
function get_active(index)
{
	var _ul=document.getElementById('tour-path');
	_list=_ul.getElementsByTagName('a');
	for(i=0;i<_list.length;i++)
	{
		if(i==index)
		{
			_list[i].className='active';
		}
		else
		{
			_list[i].className='';
		}
	}
}
if (window.addEventListener)
	window.addEventListener("load", init_page, false);
else if (window.attachEvent)
	window.attachEvent("onload", init_page);
