function replaceElement(selector,color,font){
  sIFR.useStyleCheck = true;
  sIFR.fixWrap =true;
  sIFR.preserveAntiAlias =true;
  sIFR.defaultSharpness =1;
  sIFR.activate(font);
  sIFR.replace(font, {
    wmode:'opaque',
    selector: selector,
    css: {
      '.sIFR-root':{ 'color': color}
    }
  });
}

function replaceLinks(selector,color,hover,font){
  sIFR.useStyleCheck =true;
  sIFR.fixWrap =true;
  sIFR.replace(font, {
    wmode:'opaque',
    selector: selector
    ,css: [
      '.sIFR-root {}'
      ,'a { text-decoration: none }'
      ,'a:link{color: #545454}'
      ,'a:hover { color: #e86013}'
    ]
  });
}

$('document').ready(function(){


	//mods
	$(".leftpanel").accordion({
		header: "h3"
	});

	$('.ui-accordion-content-wrap').each(function(){
		$(this).removeAttr('height');
	});

});
	var optima = {
	src: 'swf/optimaRegular.swf'
	,ratios: [7, 1.32, 11, 1.31, 13, 1.24, 14, 1.25, 19, 1.23, 27, 1.2, 34, 1.19, 42, 1.18, 47, 1.17, 48, 1.18, 69, 1.17, 74, 1.16, 75, 1.17, 1.16]
	};
  if(typeof sIFR == "object"){
	replaceElement('.mainpanel #ht','#68584D',optima);
  }