
/*
FILE CONCAT ADD FILE
PATH: /ft/resources/style/investorsChronicle.css.asp
*/


#wsod .ic-view,
#wsodPop .ic-view {
	float: left;
	display: block;
	zoom: 1;
}

#wsod .ic-blank,
#wsodPop .ic-blank {
	width: 17px;
	height: 17px;
}

#wsod .investorsChronicle .popupInner,
#wsodPop .investorsChronicle .popupInner {
	width: 325px;
	background: #fff;
	padding: 0;
}

#wsod .investorsChronicle .popupHeader,
#wsodPop .investorsChronicle .popupHeader {
	background-color: #f7f7f7;
	padding: 5px;
	border-bottom: 1px solid #ccc;
}

#wsod .investorsChronicle .popupHeader h2,
#wsodPop .investorsChronicle .popupHeader h2 {
	background: url(/ft/resources/image/investorsChronicle.gif?version=41787.623391203706) no-repeat 0 0;
	height: 46px;
	border-bottom: none;
}

#wsod .investorsChronicle .popupContent,
#wsodPop .investorsChronicle .popupContent {
	padding: 20px;
}

#wsod .investorsChronicle h3,
#wsodPop .investorsChronicle h3 {
	margin-top: 0;
	margin-bottom: 10px;
	font-weight: normal;
	border-bottom: 1px solid #f5f5f5;
	line-height: 18px;
	font-size: 15px;
}

#wsod .investorsChronicle h3 .companyName,
#wsodPop .investorsChronicle h3 .companyName {
	color: #333;
	margin-right: 5px;
	font-weight: bold;
}

#wsod .investorsChronicle .icview-text,
#wsodPop .investorsChronicle .icview-text {
	float: left;
	width: 240px;
	margin-left: 10px;
	margin-bottom: 10px;
}

#wsod .investorsChronicle .icview-text h4,
#wsodPop .investorsChronicle .icview-text h4 {
	font-weight: bold;
	font-size: 12px;
}

#wsod .investorsChronicle .icview-text h4 .date,
#wsodPop .investorsChronicle .icview-text h4 .date {
	font-weight: normal;
	margin-left: 5px;
	color: #666;
}

#wsod .investorsChronicle .rating,
#wsodPop .investorsChronicle .rating {
	float: left;
	background: url(/ft/resources/image/investorsChronicle.gif?version=41787.623391203706) no-repeat 0 0;
	width: 32px;
	height: 47px;
}

#wsod .investorsChronicle p.moreInfo,
#wsodPop .investorsChronicle p.moreInfo {
	padding: 10px 0;
	font-weight: bold;
	clear: both;
	border-top: 1px solid #f5f5f5;
	color: #333;
}

#wsod .investorsChronicle .rating-Sell { background-position: 0px -50px; }
#wsodPop .investorsChronicle .rating-Sell { background-position: 0px -50px; }
#wsod .investorsChronicle .rating-HighEnough { background-position: -50px -50px; }
#wsodPop .investorsChronicle .rating-HighEnough { background-position: -50px -50px; }
#wsod .investorsChronicle .rating-FairlyPriced { background-position: -100px -50px; }
#wsodPop .investorsChronicle .rating-FairlyPriced { background-position: -100px -50px; }
#wsod .investorsChronicle .rating-GoodValue { background-position: 0px -100px; }
#wsodPop .investorsChronicle .rating-GoodValue { background-position: 0px -100px; }
#wsod .investorsChronicle .rating-Buy { background-position: -50px -100px; }
#wsodPop .investorsChronicle .rating-Buy { background-position: -50px -100px; }
#wsod .investorsChronicle .rating-Accept { background-position: -0px -224px; }
#wsodPop .investorsChronicle .rating-Accept { background-position: -0px -224px; }
#wsod .investorsChronicle .rating-BidSit { background-position: -100px -100px; }
#wsodPop .investorsChronicle .rating-BidSit { background-position: -100px -100px; }
#wsod .investorsChronicle .rating-Ignore { background-position: -100px -224px; }
#wsodPop .investorsChronicle .rating-Ignore { background-position: -100px -224px; }
#wsod .investorsChronicle .rating-AwaitDocument { background-position: -0px -272px; }
#wsodPop .investorsChronicle .rating-AwaitDocument { background-position: -0px -272px; }
#wsod .investorsChronicle .rating-KeepBuying { background-position: -50px -272px; }
#wsodPop .investorsChronicle .rating-KeepBuying { background-position: -50px -272px; }
#wsod .investorsChronicle .rating-SitTight { background-position: -100px -272px; }
#wsodPop .investorsChronicle .rating-SitTight { background-position: -100px -272px; }

#wsod .investorsChronicle .legend,
#wsodPop .investorsChronicle .legend {
	background: #f9f9f9;
	height: 70px;
	padding: 10px 5px;
	border: 1px solid #e3e3e3;
}

#wsod .investorsChronicle .legend .range,
#wsodPop .investorsChronicle .legend .range {
	float: left;
	color: #333;
	font-weight: bold;
	font-size: 11px;
	width: 195px;
	text-align: center;
}
#wsod .investorsChronicle .legend .arrow,
#wsodPop .investorsChronicle .legend .arrow {	
	width: 38px;
	height: 10px;
}

#wsod .investorsChronicle .legend .arrow-left,
#wsodPop .investorsChronicle .legend .arrow-left {
	background: url(/ft/resources/image/investorsChronicle.gif?version=41787.623391203706) no-repeat 0 -200px;
}

#wsod .investorsChronicle .legend .arrow-right,
#wsodPop .investorsChronicle .legend .arrow-right {
	background: url(/ft/resources/image/investorsChronicle.gif?version=41787.623391203706) no-repeat -100px -200px;
	float: right;
}

#wsod .investorsChronicle .legend .ratings,
#wsodPop .investorsChronicle .legend .ratings {
	clear: both;
	margin-top: 22px;
	*margin-top: 12px;
}

#wsod .investorsChronicle .legend .rating,
#wsodPop .investorsChronicle .legend .rating {
	float: left;
	margin: 0 10px;
	_display: inline;
}

#wsod .investorsChronicle .disclaimer,
#wsodPop .investorsChronicle .disclaimer {
	float: none;
	position: relative;
	top: 8px;
}

#wsod .investorsChronicleColumn,
#wsodPop .investorsChronicleColumn {
	padding-left: 20px;
	text-align: left;
}

#wsod .investorsChronicleColumn SPAN.th,
#wsodPop .investorsChronicleColumn SPAN.th {
	margin: 0px;
	padding: 0px;
}

/*
FILE CONCAT ADD FILE
PATH: /ft/resources/client/modules/glossary/AddEditTermHistory.js
*/
var AddEditTermHistory_class = function() {
}

AddEditTermHistory_class.prototype.GET_HISTORY = "/ft/resources/buffer/glossaryTermHistory.asp";

AddEditTermHistory_class.prototype.init = function() {
	Events.add(Element.parseSelector('div.compare', Element.get('wsod')), 'click', this.compareSelected, this);
}

AddEditTermHistory_class.prototype.compareSelected = function(e, el) {
	var oCheckBoxes = [];
	var checkBox = Element.parseSelector('input.compareBox', Element.get('wsod'));
	
	for (var i=0; i<checkBox.length; i++){
		if(checkBox[i].checked){
			oCheckBoxes.push(
				{'id': checkBox[i].getAttribute('id'), 'version':checkBox[i].getAttribute('version')}
			)
		}
	}
	
	if(oCheckBoxes.length != 2){
		alert('You currently have '+oCheckBoxes.length+' version(s) selected. Please select two.')
	}else{
		var data = new Serializer().serialize(oCheckBoxes)
		var popupWindow = window.open('/ft/glossary/compareHistory.asp?o=' + data , 'CompareHistory', 'width=800,height=500,status=no,toolbar=no,resizable=yes,location=no,menubar=no,scrollbars=no')
	}
	
}

var termhistory = new AddEditTermHistory_class().init();