// logo

var b1 = new Image(10,14); b1.src = 'images/1.gif';
var b2 = new Image(10,14); b2.src = 'images/2.gif';
var b3 = new Image(10,14); b3.src = 'images/3.gif';

function seti(d,b,u,t) {
	if(d == undefined) { d=0;b=0;u=0;t=0; }
	document.getElementById('i1').src = 'images/'+d+'.gif';
	document.getElementById('i2').src = 'images/'+b+'.gif';
	document.getElementById('i3').src = 'images/'+u+'.gif';
	document.getElementById('i4').src = 'images/'+t+'.gif';
}
		
function reseti() {
	document.getElementById('i1').src = 'images/0.gif';
	document.getElementById('i2').src = 'images/0.gif';
	document.getElementById('i3').src = 'images/0.gif';
	document.getElementById('i4').src = 'images/0.gif';
}


//image navigation

function imageNav(id) {
       var mom = document.getElementById(id);

       var parameters = "'"+id+"','0px','"+-350+"px',true";
       document.write('<a href="javascript:fleXcrollTo('+parameters+');">&lt;</a> ');
       
       var parameters = "'"+id+"','0px','"+350+"px',true";
       document.write('<a href="javascript:fleXcrollTo('+parameters+');">&gt;</a> ');
       
       for(var i=0; i<mom.childNodes.length; i++) {
             var j=i+1;
             var parameters = "'"+id+"','0px','"+350*i+"px',false";
       	     document.write('<a href="javascript:fleXcrollTo('+parameters+');">'+j+'</a> ');
       }
}

//a basic example external module to control scroll from outside
//NOT required for fleXcroll to run, and user do NOT need to
//know what this is for standard operation.
function fleXcrollTo(id,x,y,relative) {
	var scrollDiv = document.getElementById(id);
	//Return if the target is null
	if (scrollDiv == null) return;
	//Do the scroll by using custom method attached by fleXcroll
	//but first check if the method exists.
	if(scrollDiv.contentScroll) scrollDiv.contentScroll(x,y,relative);
	/*
	Following is the method to commit a scroll by defining
	relative or absolute values:
		element.contentScroll(x,y,relative);
	*x and y values are horizontal and vertical
	positions of content and can be set to false if we don't
	require any one of them to be scrolled.
	*x and y should be sent as string, between quotation marks.
	*x and y can take three different units:
	px, s, p
	where px is pixels, s is a single step, p is a page scroll.
	*relative can be either true or false. If true,
	x and y is used as relative scrolling.
	*x and y refer to content position
	*e.g. To scroll one page down, you can:
	element.contentScroll(false,"1p",true);
	*e.g. To scroll 3 steps to left, you can:
	element.contentScroll("-3s",false,true);
	*e.g. To set the content at 30px right, and 20px down:
	element.contentScroll("30px","20px",false);
	*e.g. To scroll down 100px relatively,
	element.contentScroll(false,"100px",true);
	*/
}

