
	
	var z=1;
	var img_object=null;
	var img_loop;
	
	function images_loop(object)
	{
		img_object = object;
		
		if (document.getElementById(img_object.id + '_1')!=null)
		{
			images_all = document.getElementById(img_object.id + '_all').value
			
			if (images_all>0)
			{
				img_object.src = document.getElementById(img_object.id + '_1').value;
				img_loop = setInterval ("images_interval()", 700 );
			}
		}
	}
	
	function images_loop_clear(object)
	{
		img_object=object;
		clearInterval (img_loop);
		img_object.src = document.getElementById(img_object.id + '_0').value;
		img_object=null;
	}
	
	function images_interval()
	{
		if (document.getElementById(img_object.id + '_' + z)== null)
		{
			z=1;
		}
		img_object.src = document.getElementById(img_object.id + '_' + z).value;
		z++;
	}
	
	

	function view_logo_on(object)
	{
		document.getElementById(object.id).className = 'head_logo_2';	
	}
	
	function view_logo_off(object)
	{
		document.getElementById(object.id).className = 'head_logo_1';	
	}
	
	function set_images()
	{
		
		var images_lgn = document.getElementById('images_preload_all').value
		var image = Array();
		
		for (i=0;i<images_lgn;i++)
		{
			if (document.getElementById('images_preload_' +  i)!=null)
			{
				image[i] = new Image(100,100);
				image[i].src=document.getElementById('images_preload_' +  i).value;
				
			//	alert(document.getElementById('images_preload_' +  i).value)
			}
		}
		
	}