


 jQuery(document).ready(function(){
								 jQuery("#maparea").hide();
jQuery(".clicky").click(function(){jQuery(this).next().slideDown("slow");});
jQuery("#mapbtn").click(function(){
								jQuery("#maparea").show();
								 jQuery("#mapreplace").html('<iframe src="http://tools.televoxsites.com/gmaps/directionsdynamic.asp?ll=(41.902971, -87.67158)&zoom=15&type=0&coname=Ruby Room&St=1743-45 W. Division St.<br>Chicago, IL 60622&bubble=on&overview=on&TypeControl=on&MapControl=on" frameborder="0" marginheight="0" marginwidth="0" width="400" height="400" scrolling="no"> </iframe>');
								return false;
								});
jQuery("#closebtn").click(function(){
								jQuery("#maparea").hide("fast");
								
								return false;
								});
								 
jQuery("#searchButton").click(function(){
	var query = document.searchHome.searchText.value;
	window.location = "http://web.rubyroom.com/SearchResults/tabid/37/Default.aspx?Search=" + query;
	return false;
									    });


jQuery("#SearchTextHome").bind('keypress', function(e) {
        if(e.keyCode==13){
		var query = document.searchHome.searchText.value;
		
		window.location = "http://web.rubyroom.com/SearchResults/tabid/37/Default.aspx?Search=" + query;
		return false;
		}
		
										});



								 
jQuery("#blacknav div.abscontainer:last").addClass("last");

jQuery("#blacknav div.sub").hide();

	jQuery("#blacknav a.active").mouseover(function(){menuShow(this); });
													
jQuery(".midwrap, #pinknav").mouseover(function(){
					jQuery("#blacknav div.active").stop().slideUp("fast").parent().removeClass("topsub");	
					jQuery(".open").removeClass("open");
 	});
 jQuery("#mainmenu a:last").addClass("last");	
  jQuery("#mainmenu a:first").addClass("first");	
 jQuery("#plainmenu a:last").addClass("last");	
  jQuery("#plainmenu a:first").addClass("first");	
  screenbox("#submitemaillist","enter e-mail");
 });
 
 
function screenbox(elementID, screenValue){
jQuery(elementID).val(screenValue).css("color","#666");

jQuery(elementID).submit(function(){
	if( jQuery(elementID).val() == screenValue ||  jQuery(elementID).val() == "")
			{return false;}
	else
			{ return true; }
});

jQuery(elementID).focus(function(){
	if( jQuery(this).val() == screenValue){jQuery(this).val("")}
});
jQuery(elementID).blur(function(){
	if( jQuery(this).val() == ""){jQuery(this).val(screenValue)}
});
}


function runSiteScripts(path) {

//here's the sIfr

// gets rid of focus box on click
if(document.getElementsByTagName) {
var a = document.getElementsByTagName("a");
//collect all anchors A
for(var i = 0; i < a.length; i++){
// mouse onfocus, blur anchors
a[i].onfocus = function(){this.blur();};
}
}


}

function menuShow(menuitem){
	jQuery("#blacknav div.active:not(div.active:eq("+ jQuery("#blacknav a.active").index(menuitem) + "))").stop().slideUp("slow").parent().removeClass("topsub");
	jQuery("#blacknav div.active:eq("+ jQuery("#blacknav a.active").index(menuitem) + ")").stop().css("height", "auto").slideDown("slow").parent().addClass("topsub");
		jQuery(".open").removeClass("open");
		jQuery(menuitem).addClass("open");
}