/*	
	Create Investment Previews
document.write("<style type='text/css'>");
document.write(".investmentDetail");
document.write("{");
document.write("display: none;");
document.write("}");
document.write("</style>");

*/
	$(document).ready(function(){
	if($.browser.msie && $.browser.version < 7) {
		
	} else {
		$(".investmentsInfo").addClass("activated");
		$origTextInd = "";
		$origTextDeal = "";
		$(".investmentDetail").hide();
		$(".investmentDetail").addClass("activated");
		$(".investmentDetail").find("a:last").css({display:"none"});
		$(".investmentsTable tbody tr").hover(
			function(){
				$(".investmentsTable tbody tr").removeClass("hovered");
				$(this).addClass("hovered");
				$origTextInd = $(this).children("td.invIndustry").html();
				$origTextDeal = $(this).children("td.invDeal").html();
				$(this).children("td.invIndustry").html("<strong>Find out more</strong>");
				$(this).children("td.invDeal").html("&nbsp;");
				$whatInvestmentURL = $(this).find("a:first").attr("href");
				var $whatInvestmentArray = [];
				$whatInvestmentArray = $whatInvestmentURL.split("#");
				$whatInvestment = "#"+$whatInvestmentArray[1];
				$(".investmentDetail").css({"z-index":1});
				$($whatInvestment).hide();
				$($whatInvestment).css({"z-index":10});
				$($whatInvestment).show();
			},
			function(){
				$(this).removeClass("hovered");
				$(this).children("td.invIndustry").html($origTextInd);
				$(this).children("td.invDeal").html($origTextDeal);
				$(".investmentDetail").hide();
			}
		);	
		$(".investmentsTable tbody tr, .investmentTable a").click(function(){
			$investmentDetailPage = $($whatInvestment).find("a:last").attr("href");
			var path = document.location;
			var str = new String(path);
			var end = str.lastIndexOf("/");
			var document_path = str.substring(0,end+1);
			document.location.href=document_path+$investmentDetailPage;
			return false;
		});
	}
	});