$(document).ready(function() {
    // selected nav items
	var wlp = window.location.pathname;
	if (wlp != null) {
		if (wlp.length == 1) {
			$("#headerNavLinks a:first").parent().addClass("current");
		} else {
			$("#header a[href$="+wlp+"]").parent().addClass("current");
		}
	}
	
	// faq navigation
	if ($("#faqs")) {
		jQuery.each($('#faqs li a'), function(i) {
	        $(this).attr('href','#q'+i);
	    });
		jQuery.each($('#faqs h3'), function(i) {
            $(this).attr('id','q'+i);
			if (i>0) $(this).before('<a class="top" href="#innerContainer">Top</a>');
        });
		
		
	}
	
	// speakers show more/less
	/*
	if ($(".speakers") && window.location.href.indexOf("#")==-1) {
	   jQuery.each($('.speakers .txt'), function() {
            $(this).html('<strong>'+$(this).text().substr(0,350)+'...</strong><span>'+$(this).text()+'</span>');
			$(this).append('<a class="more" href="#"><em>show more</em><span>show less</span></a>');
        });
		
		jQuery.each($('.speakers a.more'), function() {
            $(this).click(function() {
				$("strong",$(this).parent()).toggle(200);
				$("span",$(this).parent()).toggle(200);
				$("em",$(this).parent()).toggle();
                return false;
            });
        });
	}
	*/
});

function popUp() {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open('https://event-wizard.com/event.asp?eid=0%2E520699974837706HRHX&l=e', '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=750,height=700,left=345,top=10');");
}