var stainless = {
  src: '/templates/sctwww/js/sIFR/stainless.swf'
};

var stainlessbold = {
  src: '/templates/sctwww/js/sIFR/stainlessbold.swf'
};

sIFR.useStyleCheck = true;
sIFR.activate(stainless, stainlessbold);

/* header (sidebar) navigation */
sIFR.replace(stainlessbold, {
  selector: '#header .navigation h2'
	// ,fitExactly: true
	,tuneHeight: -6
	,wmode:'transparent'
	,onRollOver: function(item) {
		pageheader.subNavShow(item.getFlashElement());
	}
	,onRollOut: function(item) {
		//pageheader.subNavHide(item.getFlashElement());
	}
  ,css: [
    '.sIFR-root { color: #00aeef; font-size: 22; text-align : right; }'
		,'a { color: #00aeef; text-decoration : none;}'
		,'a:hover { color: #ff0000; text-decoration : none;}'
	]
	,ratios: [6, 1.24, 11, 1.13, 12, 1.12, 21, 1.07, 29, 1.04, 30, 1.05, 49, 1.03, 53, 1.02, 54, 1.03, 74, 1.02, 77, 1.01, 78, 1.02, 83, 1.01, 84, 1.02, 89, 1.01, 90, 1.02, 95, 1.01, 96, 1.02, 1.01]
});

sIFR.replace(stainlessbold, {
  selector: 'h2#widget_heading'
	// ,fitExactly: true
	,tuneHeight: -6
	,wmode:'transparent'
	,onRollOver: function(item) {
		pageheader.subNavShow(item.getFlashElement());
	}
	,onRollOut: function(item) {
		//pageheader.subNavHide(item.getFlashElement());
	}
  ,css: [
    '.sIFR-root { color: #000000; font-size: 18; text-align : left; }'
		,'a { color: #00aeef; text-decoration : none;}'
		,'a:hover { color: #ff0000; text-decoration : none;}'
	]
	,ratios: [6, 1.24, 11, 1.13, 12, 1.12, 21, 1.07, 29, 1.04, 30, 1.05, 49, 1.03, 53, 1.02, 54, 1.03, 74, 1.02, 77, 1.01, 78, 1.02, 83, 1.01, 84, 1.02, 89, 1.01, 90, 1.02, 95, 1.01, 96, 1.02, 1.01]
});

/* splash page large text */
sIFR.replace(stainless, {
  selector: '.splash #content h1'
	,wmode:'transparent'
  ,css: [
    '.sIFR-root { color: #8dc63f; }'
  ]
	,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});

/* page breadcrumbs - used at the top of inner pages */
sIFR.replace(stainless, {
  selector: '#breadcrumbs li'
	,fitExactly: true
	,wmode:'transparent'
  ,css: [
    '.sIFR-root { color: #e3e3e3; font-size: 24; }'
		,'a { color : #e3e3e3; text-decoration: none; }'
		,'a:hover { color : #e3e3e3; text-decoration: underline; }'
  ],
	ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});

/* section header - used in the blue introduction box of pages */
sIFR.replace(stainless, {
  selector: '#sectionintroduction h1'
	,fitExactly: true
	,wmode:'transparent'
  ,css: [
    '.sIFR-root { color: #ffffff; font-size: 24; }'
  ]
	,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});

/* projects */
/* ---------------------------------------------- */
/* project list header (article header) */
sIFR.replace(stainless, {
  selector: '#content .projects h2'
	,fitExactly: true
	,wmode:'transparent'
  ,css: [
    '.sIFR-root { color: #19b6f1; font-size: 24; }'
  ]
	,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});

/* project header */
sIFR.replace(stainless, {
  selector: '#content .projects .details h3'
	,wmode:'transparent'
  ,css: [
    '.sIFR-root { color: #555555; font-size: 24; }'
  ]
	,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});

/* project subheader */
sIFR.replace(stainless, {
  selector: '#content .projects .details h4'
	,wmode:'transparent'
  ,css: [
    '.sIFR-root { color: #828282; font-size: 17; }'
  ]
	,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});

/* project month */
sIFR.replace(stainless, {
  selector: '#content .projects p.date .month'
	,fitExactly: true
	,wmode:'transparent'
	,tuneHeight: -8
  ,css: [
    '.sIFR-root { color: #aaaaaa; font-size: 28; }'
  ]
	,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});

/* project year */
sIFR.replace(stainless, {
  selector: '#content .projects p.date .year'
	,fitExactly: true
	,wmode:'transparent'
  ,css: [
    '.sIFR-root { color: #aaaaaa; font-size: 46; }'
  ]
	,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});


/* Project detail styles */

/* project detail header (article header) */
sIFR.replace(stainless, {
  selector: '#content .projectdetail h2'
	,fitExactly: true
	,wmode:'transparent'
  ,css: [
    '.sIFR-root { color: #19b6f1; font-size: 24; }'
  ]
	,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});

sIFR.replace(stainless, {
  selector: '#content .projectdetail h5'
	,fitExactly: true
	,wmode:'transparent'
  ,css: [
    '.sIFR-root { color: #19b6f1; font-size: 20; }'
  ]
	,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});

/* project detail subheader */
sIFR.replace(stainless, {
  selector: '#content .projectdetail h3'
	,wmode:'transparent'
  ,css: [
    '.sIFR-root { color: #555555; font-size: 20; }'
  ]
	,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});

// /* project detail tagline header */
// sIFR.replace(stainless, {
//   selector: '#content .projectdetail h4'
// 	,wmode:'transparent'
//   ,css: [
//     '.sIFR-root { color: #828282; font-size: 17; }'
//   ]
// 	,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
// });

/* blog posts */
/* ---------------------------------------------- */
/* blog post article header (generic blog style) */
sIFR.replace(stainless, {
  selector: '#content .blog h2'
	,fitExactly: true
	,wmode:'transparent'
  ,css: [
    '.sIFR-root { color: #555555; font-size: 34; }'
  ]
	,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});

/* blog post subheader (generic blog style) */
sIFR.replace(stainless, {
  selector: '#content .blog h3'
	,fitExactly: true
	,wmode:'transparent'
  ,css: [
    '.sIFR-root { color: #828282; font-size: 24; }'
  ]
	,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});

/* blog post month */
sIFR.replace(stainless, {
  selector: '#content .blog .date .month'
	,fitExactly: true
	,wmode:'transparent'
  ,css: [
    '.sIFR-root { color: #aaaaaa; font-size: 28; }'
  ]
	,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});

/* blog post day */
sIFR.replace(stainless, {
  selector: '#content .blog .date .day'
	,fitExactly: true
	,tuneHeight: -8
	,wmode:'transparent'
  ,css: [
    '.sIFR-root { color: #aaaaaa; font-size: 46; }'
  ]
	,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});

/* blog post day */
sIFR.replace(stainless, {
  selector: '#content .comments .count'
	,fitExactly: true
	,tuneHeight: -8
	,wmode:'transparent'
  ,css: [
    '.sIFR-root { color: #aaaaaa; font-size: 46; }'
  ]
	,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});

/* generic styles */
/* ---------------------------------------------- */
/* generic page article header */
sIFR.replace(stainless, {
  selector: '#content .article h2'
	,fitExactly: true
	,wmode:'transparent'
  ,css: [
    '.sIFR-root { color: #747474; font-size: 24; }'
  ]
	,ratios: [9, 1.16, 16, 1.09, 24, 1.06, 37, 1.04, 74, 1.02, 1.01]
});
