function resize_image(id, src, w, offset, sidebar) {
	var sw = document.documentElement.clientWidth;
	var cw = "auto";
	if (sidebar) 
		cw = sw * offset - 50;
	else
		cw = sw - (sw * offset + 50);
	var image_width = w;	
	if (image_width > cw) 
		image_width = cw;
	var image = document.getElementById(id);
	image.width = image_width;
	image.src = src;		
}

function fadeImage(my_container, myPix) {
	var myPixArray = myPix.split(",");
	loopCtr += 1;
	if (value < 100 && plus == 1) {
		value += 10;
	} else {
		plus = 0;
		minus = 1;
	}
	if (value > 30 && minus == 1) {
		value -= 10;
	} else {
		plus = 1;
		minus = 0;
	} 
	if (value <= 30 && plus == 1) {
		pixid += 1;
		if (pixid >= myPixArray.length) 
			pixid = 0;
		document.getElementById(my_container).src = myPixArray[pixid];				
	}
//	if (window.sidebar) document.getElementById(myID).style.MozOpacity = value + "%";
//	if (document.all) document.getElementById(myID).filters[0].opacity = value; 
}