/*
FILE ARCHIVED ON 0:07:18 Sep 28, 2012 AND RETRIEVED FROM THE
AN OPENWAYBACK INSTANCE ON 22:31:34 Aug 24, 2024.
JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
/*FILE ICONS [ENGLISH]*/
/* $('#apply-icons a') searches all 'a' elements in the apply icons id'd div */
/*PDF*/
$(document).ready(function()
{
$('#apply-icons a').filter(function()
{
var pattern = /\.pdf/i;
return this.href && pattern.test(this.pathname);
}
).before('
');
}
);
/*WORD DOC*/
$(document).ready(function()
{
$('#apply-icons a').filter(function()
{
var pattern = /\.doc/i;
var pattern2 = /\.docx/i;
return this.href && (pattern.test(this.pathname) || pattern2.test(this.pathname));
}
).before('
');
}
);
/*EXCEL DOC*/
$(document).ready(function()
{
$('#apply-icons a').filter(function()
{
var pattern = /\.xls/i;
var pattern2 = /\.xlsx/i;
return this.href && (pattern.test(this.pathname) || pattern2.test(this.pathname));
}
).before('
');
}
);
/*POWERPOINT DOC*/
$(document).ready(function()
{
$('#apply-icons a').filter(function()
{
var pattern = /\.ppt/i;
var pattern2 = /\.pptx/i;
return this.href && (pattern.test(this.pathname) || pattern2.test(this.pathname));
}
).before('
');
}
);
/*VIDEO FILE*/
$(document).ready(function()
{
$('#apply-icons a').filter(function()
{
var pattern = /\.wmv/i;
return this.href && pattern.test(this.pathname);
}
).before('
');
}
);
/*AUDIO FILE*/
$(document).ready(function()
{
$('#apply-icons a').filter(function()
{
var pattern = /\.mp3/i;
return this.href && pattern.test(this.pathname);
}
).before('
');
}
);
/*EMAIL*/
$(document).ready(function()
{
$('#apply-icons a').filter(function()
{
return this.href && this.href.match(/^mailto\:/)
}
).before('
');
}
);
/*GLOSSARY TERM*/
$(document).ready(function()
{
$('#apply-icons a').filter(function()
{
var pattern = /glossary\//i;
return this.href && this.hash && this.hostname == location.hostname && pattern.test(this.pathname);
}
).wrap('');
}
);
/*EXTERNAL LINKS*/
$(document).ready(function()
{
$('a').filter(function()
{
if (this.hostname && this.hostname !== location.hostname && $(this).parent("div").attr("class") !== 'main_image' )
{return this;}
}
).attr('class', 'exit');
}
);
jQuery(document).ready(function(){
// Site Navigation. Superfish implementation.
jQuery('ul.sf-menu').superfish({
hoverClass: 'sfhover',
delay: 300, // Adds a slight delay onmouseout
animation: {opacity:'show', height:'show'},
autoArrows: false,
dropShadows: false,
speed: 'slow'
});
// external links get a tooltip
jQuery('a.exit').qtip({
content: {
text: 'External link, please review our disclaimer.'
},
style: {
width: {
max: 250
}
},
hide: {
when: 'mouseout',
fixed: true,
delay: 300
},
style: {
classes: 'ui-tooltip-light ui-tooltip-shadow ui-tooltip-rounded'
},
show: {
when: { event: 'focus' }
}
});
// external links get an image at the end attached that links to a disclaimer page
jQuery('a.exit').filter(function() {
return $(this).children('img').length === 0 && this.hostname && this.hostname !== location.hostname;
}).after('
');
});