// JavaScript Document
var tide = 0;
function doroll(id,img) {
	if (document.getElementById(id).style.display == "block") {
	clearTimeout(tide);
	
	}
	
	var id1 = 1*id-1;
hidedisp(id1);
id1= 1*id+1;
hidedisp(id1);
var obj = document.getElementById(id); 
if (typeof obj !== 'undefined') {
//if (document.getElementById(id)) {
	if (document.getElementById(id).style.zIndex != 10) {
document.getElementById(id).style.display = "block";
	}
}
var imgd = 'img' + id;

document.getElementById(imgd).src = img;
}

function unroll(id,img,ifit) {
	doimg(img,id);
	if (ifit==1) {
	clearTimeout(tide);
	
	tide = window.setTimeout("hidedisp(" + id + ")",300);
	} else if (ifit==3) {
	clearTimeout(tide);
		
	} else {
	
		
	}
}
function dounroll(id,img) {
	
hidedisp(id);
doimg(img,id);
}
function doimg(img,id) {
var imgd = 'img' + id;
document.getElementById(imgd).src	= img;	
}
function hidedisp(id){
	if (document.getElementById(id)) {
	document.getElementById(id).style.display = "none"	;
	}
}
