//------------------- sIFR Config -------------------//
var officeSans = { src: 'http://www.mymortgagelicense.com/blog/wp-content/themes/mlg/media/officeSans.swf' };
var gothamBook = { src: 'http://www.mymortgagelicense.com/blog/wp-content/themes/mlg/media/gothamBook.swf' };

sIFR.useStyleCheck = true;
sIFR.activate(officeSans, gothamBook);

sIFR.replace(gothamBook, {
  selector: '.contentLarge h3',
  css: '.sIFR-root { color: #333333; font-size: 12; letter-spacing: 2; text-transform: uppercase; }',
  transparent: true
});

sIFR.replace(gothamBook, {
  selector: '#sidebar h3',
  css: '.sIFR-root { color: #871e25; font-size: 12; letter-spacing: 2; text-transform: uppercase; }',
  transparent: true
});

sIFR.replace(gothamBook, {
  selector: '#aWeber h3',
  css: '.sIFR-root { color: #ffffff; font-size: 12; letter-spacing: 2; text-transform: uppercase; }',
  transparent: true
});

sIFR.replace(officeSans, {
  selector: '.contentLarge h4',
  css: [
		'.sIFR-root { color: #871e25; font-size: 24; }'
		,'a { color: #871e25; text-decoration: none; }'
		,'a:hover { color: #333333; text-decoration: underline; }'
		,'a:link { color: #871e25; }'
		],
  transparent: true
});

sIFR.replace(officeSans, {
  selector: '#sidebar h4',
  css: '.sIFR-root { color: #cccccc; font-size: 20; }',
  transparent: true
});

sIFR.replace(officeSans, {
  selector: '#aWeber h4',
  css: '.sIFR-root { color: #ffffff; font-size: 20; }',
  transparent: true
});

//------------------- for clearing and replacing text in form input fields and textareas -------------------//
function clearText(thefield) {
  if (thefield.defaultValue==thefield.value) { thefield.value = "" }
} 
function replaceText(thefield) {
  if (thefield.value=="") { thefield.value = thefield.defaultValue }
}