function do_sIFR() {
	if(typeof sIFR == "function" && !sIFR.UA.bIsOpera) {
		sIFR.replaceElement("h1", named({sFlashSrc: "./dince-light.swf", sColor: sH1color, sWmode: "transparent", sCase: "upper"}));
	} else if (sIFR.UA.bIsOpera) {
		//$(".h1").css({"visibility": "visible !important"});
	}
}
function ie6_fix_selector(pid) {
	$("body#"+pid+" div.selector div.first").before("<img src='images/bg-selector-top-"+pid+".png' width='"+selectorwidth+"' height='8' style='display: block; margin-top: -8px;' />");
	$("body#"+pid+" div.selector div.last").after("<img src='images/bg-selector-bottom-"+pid+".png' width='"+selectorwidth+"' height='8' style='display: block; margin-top: -8px;' />");
}

do_sIFR();


$(document).ready(function () {
/**
	IE6 Canvas fix
*/
	if (navigator.appVersion.indexOf("MSIE 6") > -1) {
		if ($("#home").is("body") == false) {
			// Site Border
			var h = document.getElementById("content").offsetHeight-3;
			$("div#content").prepend("<div style='width: 925px; height: "+h+"px"+"; position: absolute; overflow: hidden; margin-left: -16px; '><img src='images/bg-container-border-middle.png' style='position: absolute; width: 925px; height: 5000px;' /></div>");
			$("#header").prepend("<img src='images/bg-container-border-top.png' width='925' height='24' style='position: absolute; bottom: 0; display: block;' />");
			$("#footer").css({"background-image": "url(images/bg-container-border-bottom.png)"});
			// Creatives / Stats
			$("body#creatives div.box").append('<img style="position: absolute; left: 0; bottom: 3px" src="images/bg-creatives-avct-left.png" width="2" height="28" alt="|" />');
			//$("body#creatives div.box abbr").each(function () {
				
				//$(this).wrapInner("<font color="58372c"></font>");	
			//})
			//Selectors
			ie6_fix_selector(pageId);
		}
	}
	
/**
	H1 Replacement
*/
  var title = $("div.selector li.selected a").html();
  
  if (title != null && document.body.id != 'editors' ) {
    title = $("div.selector li.selected a").parents( 'ul' ).siblings( 'h3' ).html() + ' / ' + title;
    sIFR.rollback("h1");
    // console.log( sIFR );
    $("h1").html(title);

    do_sIFR();
  }
});