function ietruebody(){
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function findPosY(obj)
{
	var curtop = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}

var mintop = 0;
function positionflash(){
	if (mintop <= 0) {
		mintopobj = document.all?document.all.shopdivpos : document.getElementById? document.getElementById("shopdivpos") : document.shopdivpos;
		if (mintopobj)
			mintop = findPosY(mintopobj) + 3;
	}
	var obj=document.all?document.all.shopdiv : document.getElementById? document.getElementById("shopdiv") : document.shopdiv;
	var newtop=document.all? ietruebody().scrollTop : pageYOffset;
	if (document.all||document.getElementById){
		obj.style.top = parseInt(newtop)<mintop?mintop:parseInt(newtop) + "px";
	}else if (document.layers){
		obj.top = newtop<mintop?mintop:newtop + 150;
	}
	setTimeout("positionflash()", 400);
}

function setProdInfo(title, desc) {
	var prod_cat = document.all?document.all.prod_cat : document.getElementById? document.getElementById("prod_cat") : document.prod_cat;
	var prods = document.all?document.all.prods : document.getElementById? document.getElementById("prods") : document.prods;
	prod_cat.innerHTML = title;
	prods.innerHTML = desc;
}
