/* ------------------------------------------------------------ */
/* inline flash font replacement */

var KnowledgeLight = {
	src: 'sifr/KnowledgeLight.swf'
};
sIFR.activate(KnowledgeLight);

var KnowledgeMedium = {
	src: 'sifr/KnowledgeMedium.swf'
};
sIFR.activate(KnowledgeMedium);

sIFR.replace(KnowledgeLight, {
	selector: 'h1.Alt, h2.Alt', 
	transparent: true, 
	fixFocus: true, 
	forceSingleLine: true,  
	css: [
		'.sIFR-root { color: #666666; background-color: transparent; text-align: left; text-transform: uppercase; }', 
		'a { color: #666666; text-decoration: none; }', 
		'a:link { color: #666666; }', 
		'a:hover { color: #a3a3a3; }'
	]
});

sIFR.replace(KnowledgeMedium, {
	selector: 'h3.Alt', 
	transparent: true, 
	fixFocus: true, 
	forceSingleLine: true,  
	offsetLeft: 2, 
	offsetRight: 2, 
	tuneWidth: 4, 
	css: [
		'.sIFR-root { color: #ff9100; background-color: transparent; text-align: left; text-transform: uppercase; }', 
		'a { color: #0078ae; text-decoration: none; }', 
		'a:link { color: #ff9100; }', 
		'a:hover { color: #ffbd66; }'
	]
});

sIFR.replace(KnowledgeLight, {
	selector: 'h1, h2', 
	transparent: true, 
	fixFocus: true, 
	forceSingleLine: true,  
	css: [
		'.sIFR-root { color: #ff9100; background-color: transparent; text-align: left; text-transform: uppercase; }', 
		'a { color: #0078ae; text-decoration: none; }', 
		'a:link { color: #ff9100; }', 
		'a:hover { color: #ffbd66; }'
	]
});

sIFR.replace(KnowledgeMedium, {
	selector: 'h3', 
	transparent: true, 
	fixFocus: true, 
	forceSingleLine: true,  
	offsetLeft: 2, 
	offsetRight: 2, 
	tuneWidth: 4, 
	css: [
		'.sIFR-root { color: #666666; background-color: transparent; text-align: left; text-transform: uppercase; }', 
		'a { color: #666666; text-decoration: none; }', 
		'a:link { color: #666666; }', 
		'a:hover { color: #a3a3a3; }'
	]
});

sIFR.replace(KnowledgeMedium, {
	selector: 'h4', 
	transparent: true, 
	fixFocus: true, 
	forceSingleLine: true,  
	offsetLeft: 2, 
	offsetRight: 2, 
	tuneWidth: 4, 
	css: [
		'.sIFR-root { color: #ff9100; background-color: transparent; text-align: left; text-transform: uppercase; }', 
		'a { color: #0078ae; text-decoration: none; }', 
		'a:link { color: #ff9100; }', 
		'a:hover { color: #ffbd66; }'
	]
});

sIFR.replace(KnowledgeMedium, {
	selector: 'h5', 
	transparent: true, 
	fixFocus: true, 
	forceSingleLine: true,  
	offsetLeft: 2, 
	offsetRight: 2, 
	tuneWidth: 4, 
	css: [
		'.sIFR-root { color: #666666; background-color: transparent; text-align: left; text-transform: uppercase; }', 
		'a { color: #666666; text-decoration: none; }', 
		'a:link { color: #666666; }', 
		'a:hover { color: #a3a3a3; }'
	]
});

/* ------------------------------------------------------------ */
/* show/hide Matlab License input field */

$(document).ready(function($){

    if (!$('#radMatlabAccessYes').is(':checked'))
    {
        $('#divMatlabLicense').hide();
    }

    $("#radMatlabAccessYes").click(function() {
        $('#divMatlabLicense').slideDown();
    });

    $("#radMatlabAccessNo").click(function() {
        $('#divMatlabLicense').slideUp();
    });

});

