/* sifr configuration */
var myriadProSemi = { src: strSifrPath + 'sifr-MyriadProSemi.swf' }
sIFR.activate(myriadProSemi);

sIFR.replace(myriadProSemi, {
	selector: '.residential h1'
	,css: [
		'.sIFR-root { color: #902e40; font-size: 22px; font-weight: bold; }'
		,'a { text-decoration: none; }'
		,'a:link { color: #000000; }'
		,'a:hover { color: #CCCCCC; }'
	]
	,wmode: 'transparent'
});

sIFR.replace(myriadProSemi, {
	selector: '.residential #left-column h3 span'
	,css: [
		'.sIFR-root { color: #902e40; font-size: 22px; font-weight: bold; }'
		,'a { text-decoration: none; }'
		,'a:link { color: #000000; }'
		,'a:hover { color: #CCCCCC; }'
	]
	,wmode: 'transparent'
});

sIFR.replace(myriadProSemi, {
	selector: '.generic h1'
	,css: [
		'.sIFR-root { color: #902e40; font-size: 22px; font-weight: bold; }'
		,'a { text-decoration: none; }'
		,'a:link { color: #000000; }'
		,'a:hover { color: #CCCCCC; }'
	]
	,wmode: 'transparent'
});

sIFR.replace(myriadProSemi, {
	selector: '.generic #left-column h3 span'
	,css: [
		'.sIFR-root { color: #902e40; font-size: 22px; font-weight: bold; }'
		,'a { text-decoration: none; }'
		,'a:link { color: #000000; }'
		,'a:hover { color: #CCCCCC; }'
	]
	,wmode: 'transparent'
});

sIFR.replace(myriadProSemi, {
	selector: '.wholesale h1'
	,css: [
		'.sIFR-root { color: #e58e1d; font-size: 22px; font-weight: bold; }'
		,'a { text-decoration: none; }'
		,'a:link { color: #000000; }'
		,'a:hover { color: #CCCCCC; }'
	]
	,wmode: 'transparent'
});

sIFR.replace(myriadProSemi, {
	selector: '.wholesale #left-column h3 span'
	,css: [
		'.sIFR-root { color: #e58e1d; font-size: 22px; font-weight: bold; }'
		,'a { text-decoration: none; }'
		,'a:link { color: #000000; }'
		,'a:hover { color: #CCCCCC; }'
	]
	,wmode: 'transparent'
});

sIFR.replace(myriadProSemi, {
	selector: '.business h1'
	,css: [
		'.sIFR-root { color: #00335c; font-size: 22px; font-weight: bold; }'
		,'a { text-decoration: none; }'
		,'a:link { color: #000000; }'
		,'a:hover { color: #CCCCCC; }'
	]
	,wmode: 'transparent'
});

sIFR.replace(myriadProSemi, {
	selector: '.business #left-column h3 span'
	,css: [
		'.sIFR-root { color: #00335c; font-size: 22px; font-weight: bold; }'
		,'a { text-decoration: none; }'
		,'a:link { color: #000000; }'
		,'a:hover { color: #CCCCCC; }'
	]
	,wmode: 'transparent'
});
$(document).ready(function() {
	$("#main-dd-menu li:first-child a").addClass("first-item");
	$("#main-dd-menu li:last-child").addClass("last-item");
	$("#sub-navigation li li:has(ul)").each(function() {
		$("a:first",this).addClass("inactive-sub");
	});
	$("#sub-navigation li:first").addClass("first-item");
	$(".SelectedTab").each(function() {
		if ($(this).find("ul").length < 1) {
			$("a:first", this).addClass("active-nosub");
		} else {
			$("a:first", this).addClass("active-sub");
		}
	});
	$("#header-search .text-field").blur(function() {
		if ($(this).val() == "") {
			$(this).val("Search HickoryTech");
		}
	});
	$("#header-search .text-field").focus(function() {
		if ($(this).val() == "Search HickoryTech") {
			$(this).val("");
		}
	});
	$(".business-intro .text-field").blur(function() {
		if ($(this).val() == "") {
			$(this).val("zip code");
		}
	});
	$(".business-intro .text-field").focus(function() {
		if ($(this).val() == "zip code") {
			$(this).val("");
		}
	});
	$("#tblOrganizeDetail select").height("200px");
});
