/* sifr configuration */
var myriadProSemi = { src: strSifrPath + 'sifr-MyriadProSemi.swf' }
sIFR.activate(myriadProSemi);

sIFR.replace(myriadProSemi, {
	selector: '.markets 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: '.markets #left-column h2'
	,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 h2'
	,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: '.services 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: '.services #left-column h2'
	,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: '.partners h1'
	,css: [
		'.sIFR-root { color: #3e3a34; font-size: 22px; font-weight: bold; }'
		,'a { text-decoration: none; }'
		,'a:link { color: #000000; }'
		,'a:hover { color: #CCCCCC; }'
	]
	,wmode: 'transparent'
});

sIFR.replace(myriadProSemi, {
	selector: '.partners #left-column h2'
	,css: [
		'.sIFR-root { color: #3e3a34; 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("");
		}
	});
	$(".services-intro .text-field").blur(function() {
		if ($(this).val() == "") {
			$(this).val("zip code");
		}
	});
	$(".services-intro .text-field").focus(function() {
		if ($(this).val() == "zip code") {
			$(this).val("");
		}
	});
	$("#tblOrganizeDetail select").height("200px");
});
