/*
 * Some JQuery code to filter the HTML once it has loaded
 */
$(document).ready(function(){
	// Make offsite links pop open in a new window
	/*
	$("a[@href*=http]")
		.filter(function(index){
			var href = $(index).attr('href');
			if(href && 
			(href.indexOf('localhost') >= 0 ||
			href.indexOf('politicswest.com') >= 0)) {
				return false;
			}
			return true;
		})
		.attr({"target":"_blank"})
		.click(function() {
			alert("Clicked..."+$(this).attr('href'));
		});
	*/
});

$(document).ready(function(){
	// make menu links to # into spans
//	$("a[@href*=%2523]")
//		.wrap('<span class="blank_link"></span>')
//		.removeAttr("href")
		
});


/*
 * Some conventional javascript for popping open the mobile alert window 
 */
 function mobile_alert_popup() {
  window.open ("http://registration.mobileaccord.com/politics/default.aspx",
        "mobileaccord","status=0,toolbar=0,width=500,height=300,menubar=0,scrollbars=0");
  return false;
 }
 
  function email_alert_popup() {
  window.open ("http://www.denverpostplus.com/politicswest/",
        "pwemailalert","status=0,toolbar=0,width=500,height=300,menubar=0,scrollbars=0");
  return false;
 }
