// JavaScript Document
//
//if(typeof sIFR == "function"){
//
//sIFR.replaceElement("h1", named({sFlashSrc: "/avenir.swf", sWmode: "transparent", sFlashVars:"textalign=right", sColor: "#333333"}));
//
//sIFR.replaceElement("h2", named({sFlashSrc: "/avenir.swf", sWmode: "transparent", sColor: "#553F87" }));
//
//sIFR.replaceElement("h3", named({sFlashSrc: "/avenir.swf", sWmode: "transparent", sColor: "#553F87" }));
//
//sIFR.replaceElement(".componentheading", named({sFlashSrc: "/avenir.swf", sWmode: "transparent", sColor: "#573D8A" }));
//
//sIFR.replaceElement(".contentheading", named({sFlashSrc: "/avenir.swf", sWmode: "transparent", sColor: "#553F87" }));
//
//};

  var avenir = {
    src: '/flash/avenir.swf'
  };

  sIFR.delayCSS  = true;
  sIFR.domains = ['www.townsville-port.com.au'] // check for POT domain
  sIFR.activate(avenir);

  sIFR.replace(avenir, {
    selector: 'h1'
    ,css: [
      '.sIFR-root { text-align: right; font-weight: bold; color: #312438; background-color: #C2ADE6; margin-right: 10px; }'
     // ,'a { text-decoration: none; }'
     // ,'a:link { color: #000000; }'
     // ,'a:hover { color: #CCCCCC; }'
    ]
	,wmode: 'transparent'
  });
  
    sIFR.replace(avenir, {
    selector: 'h2'
    ,css: [
      '.sIFR-root { text-align: left; font-weight: bold; color: #553F87; }'
    //  ,'a { text-decoration: none; }'
    // ,'a:link { color: #000000; }'
    //  ,'a:hover { color: #CCCCCC; }'
    ]
	,tuneHeight: -8		
	,wmode: 'transparent'
  });

    sIFR.replace(avenir, {
    selector: 'h3'
    ,css: [
      '.sIFR-root { text-align: left; font-weight: bold; color: #553F87; }'
    //  ,'a { text-decoration: none; }'
    // ,'a:link { color: #000000; }'
    //  ,'a:hover { color: #CCCCCC; }'
    ]
	,tuneHeight: -8		
	,wmode: 'transparent'	
  });