$(document).ready(function(){
	$('#topnav li:has(> ul) a').not('#topnav li:has(> ul) ul a').attr("href", "#")
})