/* handle sifr */
/* Replacement calls. Please see documentation for more information. */
if(typeof sIFR == "function"){
	sIFR.replaceElement("h2", baseUrl + "/swfs/HSTarzanaBold.swf", "#fc6509", null, null, "#FFFFFF", 0, 0, 0, 0, null, null, 'transparent');
	sIFR.replaceElement("#landing_content p", baseUrl + "/swfs/HSTarzanaRoman.swf", "#fc6509", null, null, "#FFFFFF", 0, 0, 0, 0, null, null, 'transparent');
};

/* handle fontsizing */
/*************************************************************************
    This code is from Dynamic Web Coding at dyn-web.com
    Copyright 2004-5 by Sharon Paine 
    See Terms of Use at www.dyn-web.com/bus/terms.html
    regarding conditions under which you may use this code.
    This notice must be retained in the code as is!
*************************************************************************/
// setDefaults arguments: size unit, default size, minimum, maximum
// optional array of elements or selectors to apply these defaults to
//dw_fontSizerDX.setDefaults("px", 14, 9, 32, ['div#content'] );

// set arguments: default size, minimum, maximum
// array of elements or selectors to apply these settings to
dw_fontSizerDX.set(17, 9, 24, ['h3'] );
dw_fontSizerDX.set(14, 9, 18, ['p'] );
dw_fontSizerDX.set(14, 9, 18, ['li'] );
dw_fontSizerDX.init();


/* handle external links */
var alists = document.getElementsByTagName('a');

for (var x = 0; x < alists.length; x++) {
	var sizeOfbase = baseUrl.length;
	
	if (alists[x].href != null) {
		if (alists[x].href.toLowerCase().indexOf(hs_domain) < 0 && alists[x].href.substring(0, 28) != 'http://shop.healthsimple.com') {
			alists[x].target = '_blank';
			changeOutsideLinks(alists[x]);	
		}
	}
}

/* handle ajax tile requests */
function loadHcpPage(page) {
    request = page.split(',');

    switch (request[0]) {
    case 'hcp':
        hg_simple_l(baseUrl + '/healthcare/' + request[1] + '?hg=swappable_contain','swappable_contain');
        break;
    case 'video':
        hg_simple_l(baseUrl + '/' + request[1] + '?hg=swappable_contain','swappable_contain');
        break;
    }
}
fixPng();
