var dur = 250;
/*
function showSubNav (div, n) {
	var h = 26 * n;
	//$(div).animate({height:h},dur);
	$(div).css({'height':200});
}
function hideSubNav (div) {
	//$(div).animate({height:0},dur);
	$(div).css({'height':0});
}
*/

function showSubNav (mask, div, n) { // dojo animation when over button
	var mask = dojo.byId (mask);
	var dot = dojo.byId (div);
	var h = 25 * n;
	
	//alert (div);
	
	var sizeto = dojo.animateProperty({node:mask, duration:dur, properties:{height:{end:h}}}).play();
	showDot (div, "visible");
}
function hideSubNav (mask, div) { // dojo animation when leaving button
	var mask = dojo.byId (mask);
	var dot = dojo.byId (div);
	
	var sizeto = dojo.animateProperty ({node:mask, duration:dur, properties:{height:{end:0}}}).play();
	showDot (div, "hidden");
}

function showDot (dot, val) {
	dojo.style (dot, "visibility", val);
}


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}