﻿/*
*	St. Vincent Health System
*	Copyright © 2009, McMurry Inc.
*	http://www.mcmurry.com
*
*	Internal Javascript
*/
$(function() {
	$('body.services #sidemenu ul[id$=ServiceListMenu1]').treeview({
		animated: "fast",
		collapsed: true,
		persist: "location",
		unique: true
	});
	$('body.about #sidemenu ul').treeview({
		animated: "fast",
		collapsed: true,
		persist: "location",
		unique: true
	});
	
	$('.patients-maps-directions #main_sidebar *').remove();
	$('.patients-maps-directions #main_sidebar').load('/Patients/default.aspx #main_sidebar #sidemenu');
	if($('.patients-maps-directions #main_sidebar').length > 0){
		$('#main_content h1').html('Maps &amp; Directions');
		document.title = "Maps & Directions - Saint Vincent Health System";
	}
	$('#resumewizard .formsection .appdetails-ssn').remove();
	$('#prereg_wrap table div.privacy span').html('I have read and understand the <a href="/Privacy" target="_blank" title="">Privacy Statements</a> and <a href="/Privacy/Notice-of-Privacy-Practices" target="_blank" title="Notice of Privacy Practices">Notice of Privacy Practices</a>.')
	$('#main_content #applicationwizard_firstapp').html('<h1>Wait, you are not done!</h1><div class="menuempty"><!--menu--></div><div class="literalContent"><p>As part of our application process, we are requiring you to complete a survey to help us learn more about you. NOTE: Completing the survey is a mandatory part of the application process.</p><!--<p><strong>Please follow these instructions to complete the application process:</strong></p><ol><li>Go to <a href="http://www.testsource.com" target="_blank">http://www.testsource.com<a/></li><li>On the right hand side, logon: HSI survey</li><li>Username: <strong>stvincent</strong></li><li>Password: <strong>Survey</strong></li></ol>--><p>Please go to the <a href="http://www.starthsi.com/survey/rlogin.php?token=d5a8aa719107a5e4fd0313e6e9abe524" target="_blank">Saint Vincent health System Survey</a> to complete your application.</p><p>Follow the directions and complete the survey, which should take approximately 20 minutes.</p></div>');
	$('#quicklinks').css('display', 'inline');
	$('#quicklinks ul li:first').addClass('first');
	$('#quicklinks a[title="Find a Physician"]').parent('li').addClass('ql-findaphysician show');
	$('#quicklinks a[title="Ask-A-Nurse"]').parent('li').addClass('ql-askanurse show');
	$('#quicklinks a[title="Maps & Directions"]').parent('li').addClass('ql-mapsdirections show');
	$('#quicklinks a[title="Online Gifts"]').parent('li').addClass('ql-onlinegifts show');
	$('#quicklinks a[title="Send a Patient eCard"]').parent('li').addClass('ql-sendecard show');
	$('#quicklinks a[title="Job Opportunities"]').parent('li').addClass('ql-jobopportunities show');
	$('.contact #main_sidebar #map').wrap('<div id="map-wrap">');
	$('.contact #map div:contains("Map data")').remove();
	$('.contact .literalContent p').replaceWith("<p>If you would like to contact Saint Vincent Health System, please complete the following contact form or use the contact information provided or call us at (814) 452-5000.</p>")
});

function searchSite(){
	var searchterm = $('#header .search input').val();
	window.location = 'http://www.saintvincenthealth.com/SearchResults.aspx?searchterm=' + searchterm;
}
