var landing= false;
jQuery(document).ready(function(){			
jQuery("#sharearea").hide();
jQuery(".clicky").click(function(){jQuery(this).next().slideDown("slow");});
jQuery("#sharebtn").click(function(){
								jQuery("#sharearea").show("slow");
								
								return false;
								});
jQuery("#closebtn").click(function(){
								jQuery("#sharearea").hide("fast");
								
								return false;
								});
jQuery("#blacknav div.abscontainer:last").addClass("last");

jQuery("#blacknav div.sub").hide();

	jQuery("#blacknav a.active").mouseover(function(){menuShow(this); });
													
jQuery(".maincontent, #pinknav").mouseover(function(){
					jQuery("#blacknav div.active").stop().slideUp("fast").parent().removeClass("topsub");	
					jQuery(".open").removeClass("open");
 	});

jQuery(".products img").click(
					   function(){
						   jQuery("p.activatedProduct img[src*=.jpg]").remove();
						   jQuery("p.activatedProduct").hide();
						   jQuery(this).next("p").slideDown("fast").addClass("activatedProduct").prepend(jQuery(this).clone().css("padding","0"));
						   jQuery(".activatedProduct").hover(function(){;},function(){jQuery(this).slideUp("fast");});
						   });
jQuery(".logos").hover(
					   function(){
						   jQuery(this).children("img").stop().animate({left: "-155px"}, 1000);
						   },
					   function(){
						   jQuery(this).children("img").stop().animate({left:0}, 1000);
						   }
					   );


jQuery("dl.seminar dd").hide();
jQuery("dl.seminar dt").mouseover(function(){
										   jQuery("dl.seminar dd").hide();
										   jQuery(this).next().show();
										   jQuery("dl.seminar dt.activeseminar").removeClass("activeseminar");
										   jQuery(this).addClass("activeseminar");
										   
										   });
jQuery(".afterseminar").mouseover(function(){
										   jQuery("dl.seminar dd").hide();
										   jQuery("dl.seminar dt.activeseminar").removeClass("activeseminar");
										   });

jQuery(".phone").click( function(){
							jQuery(".phonepopper").remove();
							jQuery(this).after("<span class='phonepopper'>Listen to the Universe. If you clicked then it&lsquo;s time to schedule. Call us at 1-866-RUBYROOM to schedule your phone appointment.</span>");
							jQuery(".phonepopper").hide().fadeIn(1000).click(function(){
											jQuery(this).remove();
											});
							
						});
jQuery('.cycler').cycle({ 
    fx:     'fade', 
    timeout:  10000 
});

});
function formLink(url){
	jQuery(".modify").attr("value",url).css("display","none");
	
	}
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");
}


function runSiteScripts(path) {
//here's the sIfr
if(landing){
	var Verdana = { src: DNN_skinPath + 'Verdana_lh.swf' };
sIFR.activate(Verdana);
sIFR.replace(Verdana, {
  selector: 'h1',
    wmode: 'transparent', 
  css: '.sIFR-root { color: #ffffff; font-weight:normal;}'
});
}else{
var Verdana = { src: DNN_skinPath + 'Verdana.swf' };
sIFR.activate(Verdana);
sIFR.replace(Verdana, {
  selector: 'h1',
    wmode: 'transparent', 
  css: '.sIFR-root { color: #d31245; font-weight:normal;}'
});
}
// 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();};
}
}


}