// JavaScript DocumentjQuery(document).ready(function($) {	/*	 */	$("#billboard-related a:contains('Careers'):first").parent().remove();	// Check if the link is a pdf, and that this link isn't wraping an image currently. We only want to update text links with pdf icons	var pdfIcon = '<img width="20" height="20" style="float: none; vertical-align: middle; padding: 0px 5px;" src="/web/media/images/common/download-acrobat.png"/>';	$("a").each(function(i) {		if ($(this).html().length == 0)			$(this).attr('alt', 'href');		href = $(this).attr('href');		if (href) {			if (href.indexOf('.pdf') != -1 && $(this).html().indexOf('img') == -1) {				$(this).after(pdfIcon);				$("#notes-div").show();			}			if (href.indexOf('http://') != -1 || href.indexOf('https://') != -1 || href.indexOf('.pdf') != -1)				$(this).attr('target', '_blank');			if (href.indexOf('http://durhamcas.ca//web') != -1) {				href = href.replace('http://durhamcas.ca//web','http://durhamcas.ca/web');				$(this).attr('href', href);			}		}	});	$(".content-body img, .content-body > a img, #contentRight .content-body > div img").each(function(i) {		if ($(this).is('[src^=/web]')) {			// do nothing on purpose, to handle  else if//			$(this).attr("src", "" + $(this).attr("src").substr(3));//			//alert("Image src = "+$(this).attr("src"));		}		else if ($(this).is('[src^=web]')) {			$(this).attr("src", "/" + $(this).attr("src"));		}		$(this).addClass('cimg-processed');			});	$(".clearSearchButton").click(function() {		$(this).parent().submit();	});	swfobject.embedSWF("/web/media/flash/300x250_jessica_new2.swf?link=http://www.oacas.org/", "fcaContainerInner",	                   "287", "239", "9.0.0");	if (jQuery.browser.msie) {		setTimeout("iePageFix()", 1);		setTimeout("iePageFix()", 50);		setTimeout("iePageFix()", 250);		setTimeout("iePageFix()", 500);	}	setTimeout("adjustBillboardContent()", 1);	setTimeout("adjustBillboardContent()", 50);	setTimeout("adjustBillboardContent()", 250);	setTimeout("adjustBillboardContent()", 500);	setTimeout("adjustHomeBillboardContent()", 1);	setTimeout("adjustHomeBillboardContent()", 50);	setTimeout("adjustHomeBillboardContent()", 250);	setTimeout("adjustHomeBillboardContent()", 500);	$("#menu-209").unbind().click(function(){ window.location = "index.php";});});function iePageFix() {	jQuery("#contentLeft").css({		                           'offset': '0px',		                           'offset-top': '0px',		                           'margin-top': '0px',		                           'top': '0px',		                           'float-offset': '0px'	                           });}function adjustBillboardContent() {	jQuery("#billboard-content").each(function(i) {		cap = 260;		h = jQuery(this).height();		result = (cap - h) / 2;		if (result) {			result += 10;			jQuery(this).css('top', result + "px");		}	});}function adjustHomeBillboardContent() {	jQuery(".billboard-content").each(function(i) {		cap = 260;		h = jQuery(this).height();		result = (cap - h) / 2;		if (result) {			jQuery(this).css('top', result + "px");		}	});}
