﻿function SimpleSwap(el,which){
  el.src=el.getAttribute(which || "origsrc");
}

function SimpleSwapSetup(){
  var x = document.getElementsByTagName("img");
  for (var i=0;i<x.length;i++){
    var oversrc = x[i].getAttribute("oversrc");
    if (!oversrc) continue;
      
    // preload image
    // comment the next two lines to disable image pre-loading
    x[i].oversrc_img = new Image();
    x[i].oversrc_img.src=oversrc;
    // set event handlers
    x[i].onmouseover = new Function("SimpleSwap(this,'oversrc');");
    x[i].onmouseout = new Function("SimpleSwap(this);");
    // save original src
    x[i].setAttribute("origsrc",x[i].src);
  }
}

var PreSimpleSwapOnload =(window.onload)? window.onload : function(){};
window.onload = function()
{
    PreSimpleSwapOnload(); SimpleSwapSetup();
    if(typeof sIFR == "function"){

    // This is the preferred "named argument" syntax
	    sIFR.replaceElement(named({sSelector:"#ContentBody h1",sWmode:"transparent",sFlashSrc:"Flash/marlboro.swf", sColor:"#e10500", sLinkColor:"#e10500", sBgColor:"#f0ebcf", sHoverColor:"#000000", nPaddingTop:0, nPaddingBottom:0, sFlashVars:""}));
   	    sIFR.replaceElement(named({sSelector:"#ContentTop h1",sWmode:"transparent",sFlashSrc:"Flash/marlboro.swf", sColor:"#000000", sLinkColor:"#e10500", sBgColor:"#f0ebcf", sHoverColor:"#000000", nPaddingTop:0, nPaddingBottom:0, sFlashVars:""}));
   	   sIFR.replaceElement(named({sSelector:"#ContentBody h1",sWmode:"transparent",sFlashSrc:"Flash/marlboro.swf", sColor:"#e10500", sLinkColor:"#e10500", sBgColor:"#f0ebcf", sHoverColor:"#000000", nPaddingTop:0, nPaddingBottom:0, sFlashVars:""}));


 }

var ContentBody = document.getElementById('ContentBody');
    if(ContentBody!=null && ContentBody!=undefined)
    {
        if(document.body.offsetHeight > (ContentBody.offsetHeight + 325))
        {
            ContentBody.style.height = (document.body.offsetHeight - 325) + "px";
        }
}

}


