// nav  
jQuery(function($){
		   
	$("#nav ul li").hover(function(){
		$(this).children("ol").stop(true, true).slideToggle(500);
	},function(){
		$(this).children("ol").stop(true, true).slideUp(500)
	})
	
	$("#header .arrow").click(function(){
		$(this).prev().focus();
	})
	
})


// images to center
function setImgCenter(obj){
	var tagdiv=obj.parentNode;
	if (tagdiv.nodeName=="A"){
		tagdiv=tagdiv.parentNode;
	}
	
	divW=parseInt(document.all?tagdiv.currentStyle.width:window.getComputedStyle(tagdiv,null).width);
	divH=parseInt(document.all?tagdiv.currentStyle.height:window.getComputedStyle(tagdiv,null).height);
	
    if (obj.width>divW) {
		obj.width=divW;	
	}
	if (obj.height>divH) {
		obj.height=divH;	
	}
	
	
	imgh=obj.height;
	imgmtop=(divH-imgh)/2;
	obj.style.display='block';
	obj.style.margin=imgmtop+'px auto';
} 


function rollImage(strImageSource){
	document.getElementById("mainImage").src="send_binary0746.html?path="+strImageSource+"&width=415&height=275";
}

function rollImage2(strImageSource){
	document.getElementById("mainImage").src=strImageSource;
}
