var placemat=0
var whereami=1
var whereamib=1




function scrolldiv(thediv,howfar,direction){
if (direction=="rev" && whereami==1){;return false}
if (direction=="fwd" && whereami==4){return false}
if (direction=="rev"){whereami=whereami-1}else{whereami=whereami+1};
if (direction=="fwd"){howfar=howfar*-1}
placemat=placemat+howfar
var elid=thediv+whereami
x=1
while(x<5){document.getElementById(thediv+x).src="media/shared/dota.gif";x=x+1;}
var staticsource="media/shared/dotb.gif"
if (thediv=="ageprods"){staticsource="media/shared/dotbg.gif"}
document.getElementById(elid).src=staticsource;
new Effect.Move(thediv, { x: howfar, y: 0,mode: 'relative',duration: .2 }); return false;
}

function refreshcart() {
var url = 'ajax/cart.asp';
var ajax = new Ajax.Updater(
{success: 'shoppingcart_placeholder'},url,{method: 'post',params:''});}

function scrolldealdiv(thediv,howfar,direction){
if (direction=="rev" && whereamib==1){;return false}
if (direction=="fwd" && whereamib==4){return false}
if (direction=="rev"){whereamib=whereamib-1}else{whereamib=whereamib+1};
if (direction=="fwd"){howfar=howfar*-1}
placemat=placemat+howfar
var elid=thediv+whereamib
x=1
while(x<5){document.getElementById(thediv+x).src="media/shared/dota.gif";x=x+1;}
var staticsource="media/shared/dotb.gif"
if (thediv=="ageprods"){staticsource="media/shared/dotbg.gif"}
document.getElementById(elid).src=staticsource;
new Effect.Move(thediv, { x: howfar, y: 0,mode: 'relative',duration: .2 }); return false;
}









