startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("content");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="DIV") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;


function popUp(winURL, attr) {
	window.open (winURL, "popup", attr);
}

	function showbookseller(store, storelink){
		var bookseller = document.getElementById(store);
		bookseller.className = "show";
		var othersellers = document.getElementById(storelink);
		othersellers.className = "noshow";
	}


function choosecallout(){
	var booksellersnum = 3;
		var randomnumber=Math.floor(Math.random()*booksellersnum)+1;
		if (randomnumber == 1){
			showbookseller("store-am","link-am");
		}
		else if (randomnumber == 2){
			showbookseller("store-bn","link-bn");
		}
		else if (randomnumber == 3){
			showbookseller("store-bm","link-bm");
		}
		else if (randomnumber == 4){
			showbookseller("store-cb","link-cb");
		}
	}

