$(document).ready( function() {
$("#innerwrap").animate( {bottom:"0px"},800);
$("#leftfadein").fadeIn("def");
$("#reqbutton").hover(function() {$(this).attr({src: "/img/obutton3-on.png"});} , function() {$(this).attr({src: "/img/obutton3.png"});} );
if ($.browser.msie && parseFloat($.browser.version) < 7) {$(".level1").css("left","10px");}
thispage=window.location.href;
if (thispage.indexOf("?") > -1) {
thissec="a_" + thispage.substring(thispage.indexOf("sec=")+4,thispage.indexOf("&")); 
thispage=thispage.substr(thispage.indexOf("inc=")+4);
}
else {
thissec="a_" + thispage.substring(thispage.indexOf("/",10)+1,thispage.lastIndexOf("/")); 
thispage=thispage.substr(thispage.lastIndexOf("/")+1); 
}
$("#"+thissec).css({ borderBottomColor:"#488d9c" });
$("#"+thissec+"_sub").css({display:"block"});
if (thispage=="appointment_request") {$("#qf_wrapper").hide();}
// $("#email_quick").bind("focus", function (e) {
	// e.target.value="";
	// e.target.select();
	// $("#qf_wrapper").css({overflow:"visible"});
	// $("#emaillabel").html("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Email:");
	// });
$(".level1").bind("mouseenter", function() {
	$(this).children("ul").show();
	$(this).height(95);
	$("#wrapper").css("z-index","-1");
	}); 	

$(".level1").bind("mouseleave", function() {
	$(this).children("ul").hide();
	$("#wrapper").css("z-index","1");
	}); 	
});
function subshow(s) { 
$(".subul").hide();
$(".main a").css({borderBottomColor:"#ffffff" });
$("#"+s.id+"_sub").show();
$("#"+s.id).css({borderBottomColor:"#73aab5" });
}
function identWindow(go) {
specs="scrollbars=yes,width=700,height=500,top=50,left="+(($(window).width()/2) - 250);
accountcenterobj = window.open(go,"accountcenter",specs);
return true;
}

