var $j = jQuery.noConflict();
$j(document).ready(function() {
	$j("//a[@rel='external']").attr("target","_blank");
	// begin solution finder flyouts
	$j("div.silo").each(function(index) {
		if(index > 0) {
			/*$j(this).bind("click", function() {
				location = "#" + this.id;
			});*/
			$j(this).hover(
				function() {
					/*$j(this).trigger("click");
					$j("div.silo").each(function() {
						$j(this).find(".solFindFlyout").hide();
					});*/
					$j(this).find(".solFindFlyout").fadeIn(500);
				},
				function() {
					$j(this).find(".solFindFlyout").hide();
				}
			);
		}
	});
	$j(".solFindFlyout").click(function() {
		solFindConfig = $(this).find("img").attr("id");
		initSolFind();
		$j("#solFind").show();
		$(this)[0].blur();
		return false;
	});
	// end solution finder flyouts
	
	$j(".psolLearnMore").click(function() {
		$j("#showDisclaimer").show();
		return false;
	});
	$j("#closeDisclaimer").click(function() {
		$j("#showDisclaimer").hide();
		return false;
	});
	// end psol disclaimer pop-up
	$j("#toggleLink").click(function() {
		$j("#freeDisputeContent").show();
		$j("#flashHolder").show();
		$j("#initialContent").hide();
		$j("#showDisclaimer").hide();
		return false;
	});
	$j("#toggleBack").click(function() {
		$j("#initialContent").show();
		$j("#freeDisputeContent").hide();
		$j("#flashHolder").hide();
		return false;
	});
	// end psol toggle content
});
// begin code to set solution finder vars
var sVersion = "8";
var sBGColor = "#ffffff";
var nHeight = "592";
var nWidth= "713";
var sSWFURL = "/swf/solutionFinder.swf";
var flashID = "solFindApp";
var so;
var solFindConfig;
// end code to set solution finder vars

// begin init solution finder
function initSolFind() {
	so = new SWFObject(sSWFURL, flashID, nWidth, nHeight, sVersion, sBGColor, true);
	so.addParam("scale", "exactfit");
	so.addParam("wmode", "transparent");
	so.addVariable("solFindConfig","/xml/" + solFindConfig + ".xml");
	so.write("solFindFlash");
}
// end init solution finder

// function to close solution finder
function solFindClose() {
	$j("#solFind").hide();
}