// Presumes import.css is the first <link> in the page
var rootpath = document.getElementsByTagName('link')[0].getAttribute('href').replace(/css\/global\.css/i,'');
var AgendaMedium = {
  src: rootpath + 'flash/AgendaMedium.swf'
};

sIFR.activate(AgendaMedium);

sIFR.replace(AgendaMedium, {
  selector: 'h1'
  ,css: [
  '.sIFR-root {color: #ffffff;}'
  ]
  ,wmode: 'transparent'
});

sIFR.replace(AgendaMedium, {
  selector: '.default .con-supp-2 h2, .mod-productsearch h2, .mod-cart h2, .mod-changepharmacy h2'
  ,css: [
  '.sIFR-root {color: #ffffff;}'    
    ,'a:link { color: #ffffff; text-decoration: none;}'
    ,'a:visited { color: #ffffff; text-decoration: none; }'
    ,'a:focus { color: #ffffff; text-decoration: underline; }'
    ,'a:hover { color: #ffffff; text-decoration: underline; }'
    ,'a:active { color: #ffffff; text-decoration: underline; }'
  
  ]
  ,wmode: 'transparent'
});

sIFR.replace(AgendaMedium, {
  selector: 'h2'
  ,css: [
  '.sIFR-root {color: #073b63;}'
    ,'a:link { color: #0d6cb6; text-decoration: none; }'
    ,'a:visited { color: #0d6cb6; text-decoration: none; }'
    ,'a:focus { color: #339df1; text-decoration: underline; }'
    ,'a:hover { color: #339df1; text-decoration: underline; }'
    ,'a:active { color: #339df1; text-decoration: underline; }'
  ]
  ,wmode: 'transparent'
});

sIFR.replace(AgendaMedium, {
  selector: '.feature-text'
  ,css: [
  '.sIFR-root {color: #0d6cb6;}'
    ,'a:link { color: #0d6cb6; text-decoration: none; }'
    ,'a:visited { color: #0d6cb6; text-decoration: none; }'
    ,'a:focus { color: #339df1; text-decoration: underline; }'
    ,'a:hover { color: #339df1; text-decoration: underline; }'
    ,'a:active { color: #339df1; text-decoration: underline; }'
  ]
  ,wmode: 'transparent'
});

function refreshMiniCartHeaderAfterAsyncRefresh()
{
	sIFR.replace(AgendaMedium,
	{
		selector: '.mod-cart h2',
		css: [
			'.sIFR-root {color: #ffffff;}'    
			,'a:link { color: #ffffff; text-decoration: none;}'
			,'a:visited { color: #ffffff; text-decoration: none; }'
			,'a:focus { color: #ffffff; text-decoration: underline; }'
			,'a:hover { color: #ffffff; text-decoration: underline; }'
			,'a:active { color: #ffffff; text-decoration: underline; }'
		],
		wmode: 'transparent'
	}
	);
}

