/**
* Get the href for cwa.thickbox.js to act on
# @requires viewport.js
* @author Sunil Jolly
* @version 1
**/
var ThickBoxHrefCreator = function() {

	//thickbox padding
	var CONST_HEIGHT_MARGIN = 120;
	var CONST_WIDTH_MARGIN = 80;

	return {

		/**
		* get the href string for thickbox to use
		* @param type String the type of thickbox popup, i.e. inline or ajax
		* @param inlineTarget String the ID of the inline element to use in inline thickbox popups
		**/
		get : function (type, inlineTarget) {
			var dims = getViewportDimensions();
			var width = dims[0] - CONST_WIDTH_MARGIN;
			var height = dims[1] - CONST_HEIGHT_MARGIN;
			var hrefString;
			if (type == 'inline') {
				hrefString = "#TB_inline?KeepThis=true&inlineId="+inlineTarget+"&height="+height+"&width=" + width;
			} else if (type == 'ajax') {
				hrefString = "&KeepThis=true&TB_iframe=true&height="+height+"&width=" + width;
			}
			return hrefString;
		}
		
	};
	
}();