function getCookie(name) {
	var dc = document.cookie;
	var cname = name + "=";
	var clen = dc.length;
	var cbegin = 0;
	
	while (cbegin < clen) {
		var vbegin = cbegin + cname.length;
		
		if (dc.substring(cbegin, vbegin) == cname) {
			var vend = dc.indexOf (";", vbegin);
			if (vend == -1) vend = clen;
			
			return unescape(dc.substring(vbegin, vend));
		}
	
		cbegin = dc.indexOf(" ", cbegin) + 1;
		
		if (cbegin== 0) break;
	}
	return null;
}

if (navigator.appName.indexOf('Microsoft') >= 0 && document.domain.indexOf("quickdfw.com") >= 0)
{
	if (parseFloat(navigator.appVersion.split('MSIE')[1]) < 7)
	{
		if (!getCookie("ie6WarningIssued"))
		{
			document.writeln('<style type="text/css">');
			document.writeln('#ie6WarningWrapper{clear:both;background-color:#d9d9d9;width:100%;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px;margin:0 auto;text-align:left;width:970px;}');
			document.writeln('.ie6WarningWrapper a{color:#336799;text-decoration:none;}');
			document.writeln('.ie6WarningWrapper a:hover{text-decoration:underline;}');
			document.writeln('.ie6WarningContainer{padding:15px;}');
			document.writeln('.ie6WarningClose{float:right;font-size:12px;}');
			document.writeln('.ie6WarningContentContainer{float:left;width:875px;}');
			document.writeln('.ie6WarningText{float:left;width:650px;line-height:18px;}');
			document.writeln('.ie6WarningUpgradeIE{text-align:center;float:left;font-size:10px;padding-left:10px;width:100px;}');
			document.writeln('.ie6WarningUpgradeFF{text-align:center;float:left;font-size:10px;padding-left:10px;width:100px;}');
			document.writeln('</style>');
			document.writeln('<div id="ie6WarningWrapper">');
			document.writeln('<div class="ie6WarningContainer">');
			document.writeln('<div class="ie6WarningClose"><a href="javascript://noop;" onClick="javascript:document.getElementById(\'ie6WarningWrapper\').style.display=\'none\';return false;">Close</a>&nbsp;&nbsp;<a href="javascript://noop;" onClick="javascript:document.getElementById(\'ie6WarningWrapper\').style.display=\'none\';return false;"><img src="http://www.dallasnews.com/images/ice3/highschools/close.gif"></a></div>');
			document.writeln('<div class="ie6WarningContentContainer">');
			document.writeln('<div class="ie6WarningText">');
			document.writeln('<strong>Attention QuickDFW.com customers:</strong> Internet Explorer 6 is no longer a supported browser for our Web site. Please upgrade to the latest version of Internet Explorer or Firefox. QuickDFW.com may not display or function properly if you continue to use Internet Explorer 6. For more information, go to our <a href="http://www.quickdfw.com/helpcenter/">FAQ</a>.');
			document.writeln('</div>');
			document.writeln('<div class="ie6WarningUpgradeIE">');
			document.writeln('<a href="http://www.microsoft.com/windows/internet-explorer/default.aspx"><img src="http://www.dallasnews.com/images/ice3/ie6/ie.gif"><br/>');
			document.writeln('Upgrade<br/>');
			document.writeln('Internet Explorer</a><br/>');
			document.writeln('</div>');
			document.writeln('<div class="ie6WarningUpgradeFF">');
			document.writeln('<a href="http://www.mozilla.com/en-US/firefox/upgrade.html"><img src="http://www.dallasnews.com/images/ice3/ie6/ff.gif"><br/>');
			document.writeln('Upgrade<br/>');
			document.writeln('Firefox</a><br/>');
			document.writeln('</div>');
			document.writeln('<div style="clear:both;line-height:0;font-size:0;height:0;"></div>');
			document.writeln('</div>');
			document.writeln('<div style="clear:both;line-height:0;font-size:0;height:0;"></div>');
			document.writeln('</div>');
			document.writeln('</div>');
		}	
		document.cookie = "ie6WarningIssued=true;path=/;domain=quickdfw.com";
	}
}

