﻿$(function() {
	var ipxMov = 'New_Wing_Courtyard';
	var p1 = '<div class="video"><applet code="IpixViewer.class" archive="/Resources/52/FileRepository/iPIX/IpixViewer.jar" align="baseline" width="427" height="265" name="IpixViewer"><param name="URL" value="/Resources/52/FileRepository/iPIX/';
	var p2 = '.ipx"><param name="Warp" value="1"><param name="Toolbar" value="none"><param name="BackgroundColor" value="#20ff00"><param name="SpinSpeed" value="5"><param name="SpinStyle" value="flat"></applet></div><br class="clear" />';
	var list = '<div id="patient-tower-tour-list"><ul><li><a href="#New_Wing_Courtyard" class="selected" title="Courtyard">Courtyard</a></li><li><a href="#New_Wing_Lobby" title="Lobby">Lobby</a></li><li><a href="#New_Wing_Private_Room" title="Private Room">Private Room</a></li><li><a href="#New_Wing_Private_Bath" title="Private Bath">Private Bath</a></li><li><a href="#New_Wing_Physical_Therapy" title="Physical Therapy">Physical Therapy</a></li><li><a href="#New_Wing_Physical_Therapy2" title="Physical Therapy 2">Physical Therapy 2</a></li><li><a href="#New_Wing_Waiting_Room" title="Waiting Room">Waiting Room</a></li><li><a href="#New_Wing_Waiting_Room2" title="Waiting Room 2">Waiting Room 2</a></li></ul></div>';
	var a = $('#main_content #patient-tower-virtual-tour');
	if(a.length > 0){
		a.append(p1 + ipxMov + p2);
		a.after(list);
	}
	$('#main_content #patient-tower-tour-list ul li a').click(function(){
		if(a.length > 0){
			ipxMov = $(this).attr('href').replace('#', '');
			$('#main_content #patient-tower-virtual-tour .video').replaceWith(p1 + ipxMov + p2);
			$('#main_content #patient-tower-tour-list ul li a.selected').removeClass('selected');
			$(this).addClass('selected');
		}
	});
	// EEO Format
	$('#resumewizard div[id$=pnlDemographicInfo] .formsection td:nth-child(3)').remove();
	$('#resumewizard div[id$=pnlDemographicInfo] p:eq(0)').text('Anti-Discrimination Notice: It is an unlawful employment practice for an employer to fail or refuse to hire or discharge any individual, or otherwise to discriminate against any individual with respect to the individual\'s terms and conditions of employment, because of such individual\'s race, color, religion, sex, national origin, citizenship, age, disability, veteran status or other protected category.');
	$('#resumewizard div[id$=pnlDemographicInfo] p:eq(2)').text('Submission of this information is voluntary, and refusal to provide it will not subject you to any adverse treatment. The information will be kept confidential and will only be used in accordance with the provisions of applicable laws, executive orders, and regulations, including those that require the information to be summarized and reported to the federal government for civil rights enforcement.');
});
