document.write([
 '<script src="../Scripts/jquery.bgiframe.js" type="text/javascript"></script>'
,'<script src="../Scripts/jquery.mousewheel.js" type="text/javascript"></script>'
,'<script src="../Scripts/jScrollPane.js" type="text/javascript"></script>'
,'<link rel="stylesheet" type="text/css" media="all" href="../Scripts/jScrollPane.css" />'
,'<!--[if IE 6]><script src="../Scripts/DD_belatedPNG.js" type="text/javascript"></script><script type="text/javascript">$(function(){DD_belatedPNG.fix("*");});</script><![endif]-->'
].join(''));
$(function(){
	$(".menu-ct>table").hide().css("position","absolute");
	$(".menu-ct").mouseover(function(){
		var offset = $(this).addClass("menu-over").offset();
		var el=$(">table",$(this));
		var left = 182;//$(this).width();
		el.css({
			left:(offset.left+left)+"px",
			top:(offset.top-25)+"px"
		}).bgiframe({width:el.width(),height:el.height()}).show();
	}).mouseout(function(){
		var _this=this;
		$(this).removeClass("menu-over");
		setTimeout(function(){
			if(!$(_this).is(".menu-over"))
				$(">table",$(_this)).hide();
		},100);
	});

	//$("#footer").load("include/footer.html");
	$("#bank-online").load("include/bank-online.html",function(){
		var el=this;
		var ul=$("ul",$(el));
		if($("li",ul).length>4){
			var w=ul.width();
			ul.height("88px").css({"border":"none"}).jScrollPane({
				dragMinHeight : 26,
				dragMaxHeight : 26,
				scrollbarWidth : 9
			}).width(w+"px");
			ul=ul.parent().css({"border":"1px solid #a487b7"});
		}
		ul.css("position","absolute").hide();
		$(el).mouseover(function(){
			var offset = $(el).addClass("menu-over").offset();
			ul.css({
				left:offset.left+"px",
				top:(offset.top+$(el).height())+"px"
			}).bgiframe({width:ul.width(),height:ul.height()}).show();
		}).mouseout(function(){
			$(el).removeClass("menu-over");
			setTimeout(function(){
				if(!$(el).is(".menu-over"))
					ul.hide();
			},100);
		});
	});
	$("#scb-quick-link").load("include/scb-quick-link.html",function(){
		var el=this;
		var ul=$("ul",$(el));
		if($("li",ul).length>4){
			var w=ul.width();
			ul.height("88px").css({"border":"none"}).jScrollPane({
				dragMinHeight : 26,
				dragMaxHeight : 26,
				scrollbarWidth : 9
			}).width(w+"px");
			ul=ul.parent().css({"border":"1px solid #a487b7"});
		}
		ul.css("position","absolute").hide();
		$(el).click(function(){
			var offset = $(el).addClass("menu-over").offset();
			ul.css({
				left:offset.left+"px",
				top:(offset.top+$(el).height())+"px"
			}).bgiframe({width:ul.width(),height:ul.height()}).show();
		}).mouseover(function(){
			$(el).addClass("menu-over");
		}).mouseout(function(){
			$(el).removeClass("menu-over");
			setTimeout(function(){
				if(!$(el).is(".menu-over"))
					ul.hide();
			},100);
		});
	});
});
