<!--//--><![CDATA[//><!--

navList = function() {
	if (document.all&&document.getElementById("nav")!=null) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=navList;

//--><!]]>

<!--//--><![CDATA[//><!--

sfHover = function() {
if(document.getElementById("nav")!=null) {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" over";
			if(!navigator.appVersion.match(/MSIE 7.0/)) {hideSelects();}
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
			if(!navigator.appVersion.match(/MSIE 7.0/)) {showSelects();}			
		}
	}
 }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function hideSelects() {
    for (f = 0; f < document.forms.length; f++) {
        var elements = document.forms[f].elements;
        for (e = 0; e < elements.length; e++) {
            if (elements[e].type == "select-one") {
                elements[e].style.visibility = 'hidden';
            }
        }
    }
}
function showSelects() {
 	for (f = 0; f < document.forms.length; f++) {
        var elements = document.forms[f].elements;
        for (e = 0; e < elements.length; e++) {
            if (elements[e].type == "select-one") {
                elements[e].style.visibility = 'visible';
            }
        }
    }
}

//--><!]]>


function infoToggle(num) {
	infoOffID = "info-"+num;	
	infoOnID = "info-on-"+num;	
	if (document.getElementById(infoOffID).className == "off") {
		document.getElementById(infoOffID).className = "";
		document.getElementById(infoOnID).className = "off";
		if (num == "all") {
			for (i=1; document.getElementById("info-on-"+i); i++) {
				document.getElementById("info-on-"+i).className = "off";						
				document.getElementById("info-"+i).className = "";	
			}
		}
	}
	else {
		document.getElementById(infoOffID).className = "off";
		document.getElementById(infoOnID).className = "";
		if (num == "all") {
			for (i=1; document.getElementById("info-on-"+i); i++) {
				document.getElementById("info-on-"+i).className = "";						
				document.getElementById("info-"+i).className = "off";	
			}
		}
	}
}			

/* popup functions: show/hide popup layer */

function popImage(link,ttl) {
	popOpen('imagePop'); // open popup
//	smlSrc = link.firstChild.src; // get small image src
//	imgType = smlSrc.substring((smlSrc.length-3), smlSrc.length); // get type (gif, jpg, etc)
//	imgPath = smlSrc.substring(0, (smlSrc.length-4)); // get path
	newSrc = link; //imgPath+"_lrg."+imgType; // create new url to lrg image
	imgObj = "<img src='"+newSrc+"' />";
	header = ttl; //.title;
	document.getElementById('image_area').innerHTML = imgObj; 
	document.getElementById('image_head').innerHTML = header; 
}

function popOpen(id) {
	var topOffset = 60;
	setSize(topOffset);
	var overShade = document.getElementById(id);
	var topPad =  pos+topOffset;
	// height-padding = div height
	overShade.style.height = (ph - topPad) + 'px'; /* remove topPad from height */
	overShade.style.width = pw + 'px';
	overShade.style.paddingTop = topPad + 'px';
	overShade.style.display = 'block';
	if (document.all && !navigator.appVersion.match(/MSIE 7.0/)) {
		coverSelects(overShade);
	}
}
function popClose(id) {
	document.getElementById(id).style.display = "";
	if (document.all && !navigator.appVersion.match(/MSIE 7.0/)) {
		document.getElementById("popup-cover").outerHTML = "";
	}
		
}
function setSize(topOffset) { /* sets size of shade */
	if (window.pageYOffset != null) { /* moz and safari */
		pos = window.pageYOffset;
		ph = document.documentElement.scrollHeight;
		pw = document.documentElement.scrollWidth;
		if (document.body.scrollHeight > document.documentElement.scrollHeight) {
			ph = document.body.scrollHeight;
			pw = document.body.scrollWidth;
		}
	} else if (document.documentElement.scrollTop > document.body.scrollTop) { /* ie, catch if Standards compliance mode */
		pos = document.documentElement.scrollTop;
		ph = document.documentElement.scrollHeight;
		pw = document.documentElement.scrollWidth;
		if (document.documentElement.clientHeight > document.documentElement.scrollHeight) {
			ph = document.documentElement.clientHeight;
		}
	} else if (document.body != null) { /* if IE 5.5 */
		pos = document.body.scrollTop;
		ph = document.body.scrollHeight;
		pw = document.body.scrollWidth;
		if (document.documentElement.scrollHeight > document.body.scrollHeight) {
			ph = document.documentElement.scrollHeight;
		}
		ph = ph + pos + topOffset; /* fix box model */
	}
}	

/* covers select form elements with iframe in IE 6&< so they do not show through the popup */
function coverSelects(par) {
		var covHeight = document.body.scrollHeight+"px"; // add the negative margin to the height
		var coverFrame = "<IFRAME id='popup-cover' style='";
		coverFrame = coverFrame + "height:"+covHeight+";' ";
		coverFrame = coverFrame + "src='javascript:false;' frameBorder='0' scrolling='no'></IFRAME>";
		par.insertAdjacentHTML("afterEnd",coverFrame); // create new iframe that is the size of the popup window
}

/* clear field value function: removes the default value onfocus, and adds back if nothing entered */
function fieldClear(obj) {
	if(obj.Val) {
		if (obj.value == '') { 
			obj.value = obj.Val;
			obj.Val = null;
			obj.first = null;
		} 
		else {
			obj.Val = null;
		}
	} else if (!obj.first) { 
		obj.Val = obj.value;
		obj.value = ''; 
		obj.first = 'true';
	} 
}

var dList = new Array();
dList[0] = "<strong>Free Re-Downloads.</strong> If you buy a new computer or your hard drive crashes and you need to reinstall your software, you can download it again free of charge within 3 years of the product's release date.";
dList[1] = "<strong>Speed and Convenience.</strong> It's exactly the same as the CD software. You just don't have to wait for it.";
dList[2] = "<strong>Value.</strong> You pay no shipping or handling charges (a $3.95 savings!). And depending on where you're located, you might not have to pay sales tax, either.";
dList[3] = "<strong>Peace of Mind.</strong> Your downloaded software comes with the same 100% Money-Back Satisfaction Guarantee.";
dList[4] = "<strong>Timeliness.</strong> You get the very latest version of the software with the most current links to financial institutions, brokerages, and more.";
dList[5] = "<strong>The Environment.</strong> You'll save the packaging as well as the energy it takes to deliver the CD to your home or office.";

var dIntro = "";
var dHeader = "";
		
function popDownloading() {
	if (!document.getElementById('downloading')) {
		var downPop = '<div class="popup-container"><div class="content">';
		downPop = downPop + '<h2>'+dHeader+'</h2>';
		downPop = downPop + '<p>'+dIntro+'</p><ol>';
		for (i=0; i<dList.length; i++) {
			downPop = downPop + '<li>'+dList[i]+'</li>';
		}
		downPop = downPop + '</ol></div><div class="close"><a href="#" onclick="popClose(\'downloading\'); return false;" title="Close">Close</a></div></div>';

		var downDiv = document.createElement('div');
		downDiv.id = "downloading";
		downDiv.className = "popup";
		downDiv.innerHTML = downPop;
		
		var containerEl = document.getElementById('container');
		containerEl.parentNode.appendChild(downDiv);
	}
	popOpen('downloading');
}

var sList = new Array();
sList[0] = "Starter Edition";
sList[1] = "Deluxe";
sList[2] = "Premier";
sList[3] = "Home & Business";
sList[4] = "Home Inventory Manager";

var sIntro = "Quicken will begin shipping Quicken 2008 products the week of August 27, 2007. To ensure our customers receive the latest version, we have ceased shipping 2007 product.<p>Products with new 2008 versions include:";
var sHeader = "Pre-Order Announcement";
var sOutro = "All other products not listed above are available for shipment immediately.";
		
function popPre_order() {
	if (!document.getElementById('pre_order')) {
		var downPop = '<div class="popup-container"><div class="content">';
		downPop = downPop + '<h2>'+sHeader+'</h2>';
		downPop = downPop + '<p>'+sIntro+'</p><ol>';
		for (i=0; i<sList.length; i++) {
			downPop = downPop + '<li>'+sList[i]+'</li>';
		}
		downPop = downPop + '</ol><p>'+sOutro+'</p>';
		downPop = downPop + '</div><div class="close"><a href="#" onclick="popClose(\'pre_order\'); return false;" title="Close">Close</a></div></div>';

		var downDiv = document.createElement('div');
		downDiv.id = "pre_order";
		downDiv.className = "popup";
		downDiv.innerHTML = downPop;
		if (!document.getElementById('container')){var containerEl = document.getElementById('qknContainer');}
		else {var containerEl = document.getElementById('container');}
		
		containerEl.parentNode.appendChild(downDiv);
	}
	popOpen('pre_order');
}