
//do not invoke sifr if page is in frames (i.e. CMS Desk edit mode)
if  (
        top.frames.length == 0 || (top.frames.length > 0 && top.frames[1].name != "cmsheader")
    )
{

/*
var gotham = {
  src: '/blackboard/includes/flv/gotham.swf'
};

var gothamBold = {
  src: '/blackboard/includes/flv/gotham-bold.swf'
};
*/


  // sIFR.domains = blackboard.com
  sIFR.fromLocal = true;
  sIFR.activate(gotham, gothamBold);



/* 
/	OVERVIEW BOXES (yellow)
------------------------------------------*/
  sIFR.replace(gotham, {
    selector: '.Overlay h2, .SupportHeader .header h2'
    ,css: [
      '.sIFR-root { color: #FFFFFF; background-color: #f0b310; letter-spacing: 1; )}'
    ]
    ,tuneHeight: -4
    ,thickness: -50
  });



/* 
/	GRADIENT HEADERS
------------------------------------------*/


  // BLUE
  sIFR.replace(gothamBold, {
    selector: '.blue h2.gradient, .blue h2.gradient3'
    ,css: [
      '.sIFR-root { color: #5f6062; background-color: #e9eaeb; }'
      ,'em { color: #00b3be; font-style: normal; }'
    ]
    ,offsetTop: 4
    ,transparent: true
  });

  // RED
  sIFR.replace(gothamBold, {
    selector: '.red h2.gradient, .red h2.gradient3'
    ,css: [
      '.sIFR-root { color: #5f6062; background-color: #e9eaeb; }'
      ,'em { color: #d0103a; font-style: normal; }'
    ]
    ,offsetTop: 4
    ,transparent: true
  });

  // ORANGE
  sIFR.replace(gothamBold, {
    selector: '.orange h2.gradient, .orange h2.gradient3'
    ,css: [
      '.sIFR-root { color: #5f6062; background-color: #e9eaeb; }'
     ,'em { color: #ff6d22; font-style: normal; }'
    ]
    ,offsetTop: 4
    ,transparent: true
  });

  // DARKBLUE
  sIFR.replace(gothamBold, {
    selector: '.darkblue h2.gradient, .darkblue h2.gradient3'
    ,css: [
      '.sIFR-root { color: #5f6062; background-color: #e9eaeb; }'
     ,'em { color: #1D5274; font-style: normal; }'
    ]
    ,offsetTop: 4
    ,transparent: true
  });
  
   // GREEN
  sIFR.replace(gothamBold, {
    selector: '.green h2.gradient, .green .column h2.gradient'
    ,css: [
      '.sIFR-root { color: #5f6062; background-color: #e9eaeb; }'
      ,'em { color: #59a545; font-style: normal; }'
    ]
    ,offsetTop: 4
    ,transparent: true
  }); 

   // GOLD
  sIFR.replace(gothamBold, {
    selector: '.gold h2.gradient, .gold .column h2.gradient'
    ,css: [
      '.sIFR-root { color: #5f6062; background-color: #EEB111; }'
      ,'em { color: #EEB111; font-style: normal; }'
    ]
    ,offsetTop: 4
    ,transparent: true
  });


  // MOBILEBLUE
  sIFR.replace(gothamBold, {
      selector: '.mobileblue h2.gradient, .mobileblue .column h2.gradient'
    , css: [
      '.sIFR-root { color: #5f6062; background-color: #2d338a; }'
      , 'em { color: #2d338a; font-style: normal; }'
    ]
    , offsetTop: 4
    , transparent: true
  }); 


/* 
/	PROMOTIONAL LINKS
------------------------------------------*/
  // OVERVIEW AND YELLOW
  sIFR.replace(gothamBold, {
    selector: '.overview .columns h2, .column h2,  .column4 h2, .overview .graybox h2, .ticker h2, .column2wide h2, .SingleColumnList h2'
    ,css: [
      '.sIFR-root { background-color: #FFFFFF; color: #EEB111; letter-spacing: -1; }'
      ,'a { text-decoration: none; color: #EEB111; }'
      ,'a:hover { color: #EEB111; }'
      ,'.ticker .sIFR-root { letter-spacing: 0; }'
    ]
    ,tuneHeight: -4
  	,transparent: true
  });
  
  //BLUE
  sIFR.replace(gothamBold, {
    selector: '.blue .columns h2, .column h2, .blue .graybox h2, .blue .column3withnav h2'
    ,css: [
      '.sIFR-root { background-color: #FFFFFF; color: #00b3be; }'
      ,'a { text-decoration: none; color: #00b3be; }'
      ,'a:hover { color: #00b3be; }'
    ]
    ,tuneHeight: -4
  	,transparent: true
  });

  // RED
  sIFR.replace(gothamBold, {
    selector: '.red .columns h2, .column h2, .red .graybox h2, .red .column3withnav h2'
    ,css: [
      '.sIFR-root { background-color: #FFFFFF; color: #d0103a; }'
      ,'a { text-decoration: none; color: #d0103a; }'
      ,'a:hover { color: #d0103a; }'
    ]
    ,tuneHeight: -4
  	,transparent: true
  });
  
  // ORANGE
  sIFR.replace(gothamBold, {
    selector: '.orange .columns h2, .column h2, .orange .graybox h2, .orange .column3withnav h2'
    ,css: [
      '.sIFR-root { background-color: #FFFFFF; color: #ff6d22; }'
      ,'a { text-decoration: none; color: #ff6d22; }'
      ,'a:hover { color: #ff6d22; }'
    ]
    ,tuneHeight: -4
  	,transparent: true
  });

  // GREEN
  sIFR.replace(gothamBold, {
    selector: '.green .columns h2, .column h2, .green .graybox h2, .green .column3withnav h2'
    ,css: [
      '.sIFR-root { background-color: #FFFFFF; color: #59a545; }'
      ,'a { text-decoration: none; color: #59a545; }'
      ,'a:hover { color: #59a545; }'
    ]
    ,tuneHeight: -4
  	,transparent: true
  });

  // DARKBLUE
  sIFR.replace(gothamBold, {
    selector: '.darkblue .columns h2, .column h2, .darkblue .graybox h2, .darkblue .column3withnav h2'
    ,css: [
      '.sIFR-root { background-color: #FFFFFF; color: #1D5274; }'
      ,'a { text-decoration: none; color: #1D5274; }'
      ,'a:hover { color: #1D5274; }'
    ]
    ,tuneHeight: -4
  	,transparent: true
  });

  // GOLD
  sIFR.replace(gothamBold, {
    selector: '.gold .columns h2, .column h2, .gold .graybox h2, .gold .column3withnav h2'
    ,css: [
      '.sIFR-root { background-color: #FFFFFF; color: #EEB111; }'
      ,'a { text-decoration: none; color: #EEB111; }'
      ,'a:hover { color: #EEB111; }'
    ]
    ,tuneHeight: -4
  	,transparent: true
  });

  // MOBILEBLUE
  sIFR.replace(gothamBold, {
      selector: '.mobileblue .columns h2, .column h2, .mobileblue .graybox h2, .mobileblue .column3withnav h2'
    , css: [
      '.sIFR-root { background-color: #FFFFFF; color: #2d338a; }'
      , 'a { text-decoration: none; color: #2d338a; }'
      , 'a:hover { color: #2d338a; }'
    ]
    , tuneHeight: -4
  	, transparent: true
  });

  // MOBILEBLUELIGHT
  sIFR.replace(gotham, {
      selector: '.text02 h2, #text01 h2'
    , css: [
      '.sIFR-root { background-color: #FFFFFF; color: #2d338a; }'
      , 'a { text-decoration: none; color: #2d338a; }'
      , 'a:hover { color: #2d338a; }'
    ]
    , tuneHeight: 4
  	, transparent: true
  });
  
}
