function add_additionquest() {
	$('#reply').show();
	var text = document.getElementById('text_addquest').value;
	if (text == '') {
		alert('‚¢¥¤¨â¥ â¥ªáâ ¢®¯à®á ');
	}
	else
	{
	 	document.getElementById('addition').innerHTML = '';
	}
	$('#reply').hide();
}

function ge()
{
  var ea;
  for( var i = 0; i < arguments.length; i++ ) {
    var e = arguments[i];
    if( typeof e == 'string' )
      e = document.getElementById(e);
    if( arguments.length == 1 )
      return e;
    if( !ea )
      ea = new Array();
    ea[ea.length] = e;
  }
  return ea;
}

function show()
{
  for( var i = 0; i < arguments.length; i++ ) {
    var element = ge(arguments[i]);
    if (element && element.style) element.style.display = 'block';
  }
}

function show2()
{
  for( var i = 0; i < arguments.length; i++ ) {
    var element = ge(arguments[i]);
   	if (element && element.style) element.style.display = "inline";
  }
  return false;
}

function hide()
{
  for( var i = 0; i < arguments.length; i++ ) {
    var element = ge(arguments[i]);
    if (element && element.style) element.style.display = 'none';
  }
}

function shown(el) {
    el = ge(el);
    return (el.style.display != 'none');
}

function shide(el) {if (shown(el)) {hide(el);} else {show(el);}}

function chtar(novii){
  	document.getElementById('smstonum').value = novii;

	if (document.getElementById('1')) { if (novii != '1') {document.getElementById('1').className = 'smst_even';};};
	if (document.getElementById('2')) { if (novii != '2') {document.getElementById('2').className = 'smst_even';};};
	if (document.getElementById('3')) { if (novii != '3') {document.getElementById('3').className = 'smst_even';};};
 	if (document.getElementById(novii)) { document.getElementById(novii).className = 'smst_oddj';};

 	document.hiddenField.type.value = novil;
}
function DHTMLgoodies_roundedCorners()
{
	var roundedCornerTargets;

	this.roundedCornerTargets = new Array();

}
	var string = '';
// }}}
DHTMLgoodies_roundedCorners.prototype = {

	// {{{ addTarget()
    /**
     *
	 *
     *  Add rounded corners to an element
     *
     *	@param String divId = Id of element on page. Example "leftColumn" for &lt;div id="leftColumn">
     *	@param Int xRadius = Y radius of rounded corners, example 10
     *	@param Int yRadius = Y radius of rounded corners, example 10
     *  @param String color = Background color of element, example #FFF or #AABBCC
     *  @param String color = backgroundColor color of element "behind", example #FFF or #AABBCC
     *  @param Int padding = Padding of content - This will be added as left and right padding(not top and bottom)
     *  @param String heightOfContent = Optional argument. You can specify a fixed height of your content. example "15" which means pixels, or "50%".
     *  @param String whichCorners = Optional argument. Commaseparated list of corners, example "top_left,top_right,bottom_left"
     *
     * @public
     */
    addTarget : function(divId,xRadius,yRadius,color,backgroundColor,padding,heightOfContent,whichCorners)
    {
    	var index = this.roundedCornerTargets.length;
    	this.roundedCornerTargets[index] = new Array();
    	this.roundedCornerTargets[index]['divId'] = divId;
    	this.roundedCornerTargets[index]['xRadius'] = xRadius;
    	this.roundedCornerTargets[index]['yRadius'] = yRadius;
    	this.roundedCornerTargets[index]['color'] = color;
    	this.roundedCornerTargets[index]['backgroundColor'] = backgroundColor;
    	this.roundedCornerTargets[index]['padding'] = padding;
    	this.roundedCornerTargets[index]['heightOfContent'] = heightOfContent;
    	this.roundedCornerTargets[index]['whichCorners'] = whichCorners;

    }
    // }}}
    ,
	// {{{ init()
    /**
     *
	 *
     *  Initializes the script
     *
     *
     * @public
     */
	init : function()
	{

		for(var targetCounter=0;targetCounter < this.roundedCornerTargets.length;targetCounter++){

			// Creating local variables of each option
			whichCorners = this.roundedCornerTargets[targetCounter]['whichCorners'];
			divId = this.roundedCornerTargets[targetCounter]['divId'];
			xRadius = this.roundedCornerTargets[targetCounter]['xRadius'];
			yRadius = this.roundedCornerTargets[targetCounter]['yRadius'];
			color = this.roundedCornerTargets[targetCounter]['color'];
			backgroundColor = this.roundedCornerTargets[targetCounter]['backgroundColor'];
			padding = this.roundedCornerTargets[targetCounter]['padding'];
			heightOfContent = this.roundedCornerTargets[targetCounter]['heightOfContent'];
			whichCorners = this.roundedCornerTargets[targetCounter]['whichCorners'];

			// Which corners should we add rounded corners to?
			var cornerArray = new Array();
			if(!whichCorners || whichCorners=='all'){
				cornerArray['top_left'] = true;
				cornerArray['top_right'] = true;
				cornerArray['bottom_left'] = true;
				cornerArray['bottom_right'] = true;
			}else{
				cornerArray = whichCorners.split(/,/gi);
				for(var prop in cornerArray)cornerArray[cornerArray[prop]] = true;
			}


			var factorX = xRadius/yRadius;	// How big is x radius compared to y radius

			var obj = document.getElementById(divId);	// Creating reference to element
			obj.style.backgroundColor=null;	// Setting background color blank
			obj.style.backgroundColor='transparent';
			var content = obj.innerHTML;	// Saving HTML content of this element
			obj.innerHTML = '';	// Setting HTML content of element blank-




			// Adding top corner div.

			if(cornerArray['top_left'] || cornerArray['top_right']){
				var topBar_container = document.createElement('DIV');
				topBar_container.style.height = yRadius + 'px';
				topBar_container.style.overflow = 'hidden';

				obj.appendChild(topBar_container);
				var currentAntialiasSize = 0;
				var savedRestValue = 0;

				for(no=1;no<=yRadius;no++){
					var marginSize = (xRadius - (this.getY((yRadius - no),yRadius,factorX)));
					var marginSize_decimals = (xRadius - (this.getY_withDecimals((yRadius - no),yRadius,factorX)));
					var restValue = xRadius - marginSize_decimals;
					var antialiasSize = xRadius - marginSize - Math.floor(savedRestValue)
					var foregroundSize = xRadius - (marginSize + antialiasSize);

					var el = document.createElement('DIV');
					el.style.overflow='hidden';
					el.style.height = '1px';
					if(cornerArray['top_left'])el.style.marginLeft = marginSize + 'px';
					if(cornerArray['top_right'])el.style.marginRight = marginSize + 'px';
					topBar_container.appendChild(el);
					var y = topBar_container;

					for(var no2=1;no2<=antialiasSize;no2++){
						switch(no2){
							case 1:
								if (no2 == antialiasSize)
									blendMode = ((restValue + savedRestValue) /2) - foregroundSize;
								else {
								  var tmpValue = this.getY_withDecimals((xRadius - marginSize - no2),xRadius,1/factorX);
								  blendMode = (restValue - foregroundSize - antialiasSize + 1) * (tmpValue - (yRadius - no)) /2;
								}
								break;
							case antialiasSize:
								var tmpValue = this.getY_withDecimals((xRadius - marginSize - no2 + 1),xRadius,1/factorX);
								blendMode = 1 - (1 - (tmpValue - (yRadius - no))) * (1 - (savedRestValue - foregroundSize)) /2;
								break;
							default:
								var tmpValue2 = this.getY_withDecimals((xRadius - marginSize - no2),xRadius,1/factorX);
								var tmpValue = this.getY_withDecimals((xRadius - marginSize - no2 + 1),xRadius,1/factorX);
								blendMode = ((tmpValue + tmpValue2) / 2) - (yRadius - no);
						}

						el.style.backgroundColor = this.__blendColors(backgroundColor,color,blendMode);
						y.appendChild(el);
						y = el;
						var el = document.createElement('DIV');
						el.style.height = '1px';
						el.style.overflow='hidden';
						if(cornerArray['top_left'])el.style.marginLeft = '1px';
						if(cornerArray['top_right'])el.style.marginRight = '1px';
						el.style.backgroundColor=color;
					}

					y.appendChild(el);
					savedRestValue = restValue;
				}
			}

			// Add content
			var contentDiv = document.createElement('DIV');
			contentDiv.className = obj.className;
			contentDiv.style.border='1px solid ' + color;
			contentDiv.innerHTML = content;
			contentDiv.style.backgroundColor=color;
			contentDiv.style.paddingLeft = padding + 'px';
			contentDiv.style.paddingRight = padding + 'px';

			if(!heightOfContent)heightOfContent = '';
			heightOfContent = heightOfContent + '';
			if(heightOfContent.length>0 && heightOfContent.indexOf('%')==-1)heightOfContent = heightOfContent + 'px';
			if(heightOfContent.length>0)contentDiv.style.height = heightOfContent;

			obj.appendChild(contentDiv);


			if(cornerArray['bottom_left'] || cornerArray['bottom_right']){
				var bottomBar_container = document.createElement('DIV');
				bottomBar_container.style.height = yRadius + 'px';
				bottomBar_container.style.overflow = 'hidden';

				obj.appendChild(bottomBar_container);
				var currentAntialiasSize = 0;
				var savedRestValue = 0;

				var errorOccured = false;
				var arrayOfDivs = new Array();
				for(no=1;no<=yRadius;no++){

					var marginSize = (xRadius - (this.getY((yRadius - no),yRadius,factorX)));
					var marginSize_decimals = (xRadius - (this.getY_withDecimals((yRadius - no),yRadius,factorX)));

					var restValue = (xRadius - marginSize_decimals);
					var antialiasSize = xRadius - marginSize - Math.floor(savedRestValue)
					var foregroundSize = xRadius - (marginSize + antialiasSize);

					var el = document.createElement('DIV');
					el.style.overflow='hidden';
					el.style.height = '1px';
					if(cornerArray['bottom_left'])el.style.marginLeft = marginSize + 'px';
					if(cornerArray['bottom_right'])el.style.marginRight = marginSize + 'px';
					bottomBar_container.insertBefore(el,bottomBar_container.firstChild);

					var y = bottomBar_container;

					for(var no2=1;no2<=antialiasSize;no2++){
						switch(no2){
							case 1:
								if (no2 == antialiasSize)
									blendMode = ((restValue + savedRestValue) /2) - foregroundSize;
								else {
								  var tmpValue = this.getY_withDecimals((xRadius - marginSize - no2),xRadius,1/factorX);
								  blendMode = (restValue - foregroundSize - antialiasSize + 1) * (tmpValue - (yRadius - no)) /2;
								}
								break;
							case antialiasSize:
								var tmpValue = this.getY_withDecimals((xRadius - marginSize - no2 + 1),xRadius,1/factorX);
								blendMode = 1 - (1 - (tmpValue - (yRadius - no))) * (1 - (savedRestValue - foregroundSize)) /2;
								break;
							default:
								var tmpValue2 = this.getY_withDecimals((xRadius - marginSize - no2),xRadius,1/factorX);
								var tmpValue = this.getY_withDecimals((xRadius - marginSize - no2 + 1),xRadius,1/factorX);
								blendMode = ((tmpValue + tmpValue2) / 2) - (yRadius - no);
						}

						el.style.backgroundColor = this.__blendColors(backgroundColor,color,blendMode);

						if(y==bottomBar_container)arrayOfDivs[arrayOfDivs.length] = el;

						try{	// Need to look closer at this problem which occures in Opera.
							var firstChild = y.getElementsByTagName('DIV')[0];
							y.insertBefore(el,y.firstChild);
						}catch(e){
							y.appendChild(el);
							errorOccured = true;
						}
						y = el;

						var el = document.createElement('DIV');
						el.style.height = '1px';
						el.style.overflow='hidden';
						if(cornerArray['bottom_left'])el.style.marginLeft = '1px';
						if(cornerArray['bottom_right'])el.style.marginRight = '1px';

					}

					if(errorOccured){	// Opera fix
						for(var divCounter=arrayOfDivs.length-1;divCounter>=0;divCounter--){
							bottomBar_container.appendChild(arrayOfDivs[divCounter]);
						}
					}

					el.style.backgroundColor=color;
					y.appendChild(el);
					savedRestValue = restValue;
				}

			}
		}
	}
	// }}}
	,
	// {{{ getY()
    /**
     *
	 *
     *  Add rounded corners to an element
     *
     *	@param Int x = x Coordinate
     *	@param Int maxX = Size of rounded corners
	 *
     *
     * @private
     */
	getY : function(x,maxX,factorX){
		// y = sqrt(100 - x^2)
		// Y = 0.5 * ((100 - x^2)^0.5);
		return Math.max(0,Math.ceil(factorX * Math.sqrt( (maxX * maxX) - (x*x)) ));

	}
	// }}}
	,
	// {{{ getY_withDecimals()
    /**
     *
	 *
     *  Add rounded corners to an element
     *
     *	@param Int x = x Coordinate
     *	@param Int maxX = Size of rounded corners
	 *
     *
     * @private
     */
	getY_withDecimals : function(x,maxX,factorX){
		// y = sqrt(100 - x^2)
		// Y = 0.5 * ((100 - x^2)^0.5);
		return Math.max(0,factorX * Math.sqrt( (maxX * maxX) - (x*x)) );

	}


	,

	// {{{ __blendColors()
    /**
     *
	 *
     *  Simply blending two colors by extracting red, green and blue and subtracting difference between colors from them.
     * 	Finally, we multiply it with the blendMode value
     *
     *	@param String colorA = RGB color
     *	@param String colorB = RGB color
     *	@param Float blendMode
	 *
     *
     * @private
     */
	__blendColors : function (colorA, colorB, blendMode) {
		if(colorA.length=='4'){	// In case we are dealing with colors like #FFF
			colorA = '#' + colorA.substring(1,1) + colorA.substring(1,1) + colorA.substring(2,1) + colorA.substring(2,1) + colorA.substring(3,1) + colorA.substring(3,1);
		}
		if(colorB.length=='4'){	// In case we are dealing with colors like #FFF
			colorB = '#' + colorB.substring(1,1) + colorB.substring(1,1) + colorB.substring(2,1) + colorB.substring(2,1) + colorB.substring(3,1) + colorB.substring(3,1);
		}
		var colorArrayA = [parseInt('0x' + colorA.substring(1,3)), parseInt('0x' + colorA.substring(3, 5)), parseInt('0x' + colorA.substring(5, 7))];	// Create array of Red, Green and Blue ( 0-255)
		var colorArrayB = [parseInt('0x' + colorB.substring(1,3)), parseInt('0x' + colorB.substring(3, 5)), parseInt('0x' + colorB.substring(5, 7))];	// Create array of Red, Green and Blue ( 0-255)
		var red = Math.round(colorArrayA[0] + (colorArrayB[0] - colorArrayA[0])*blendMode).toString(16);	// Create new Red color ( Hex )
		var green = Math.round(colorArrayA[1] + (colorArrayB[1] - colorArrayA[1])*blendMode).toString(16);	// Create new Green color ( Hex )
		var blue = Math.round(colorArrayA[2] + (colorArrayB[2] - colorArrayA[2])*blendMode).toString(16);	// Create new Blue color ( Hex )

		if(red.length==1)red = '0' + red;
		if(green.length==1)green = '0' + green;
		if(blue.length==1)blue = '0' + blue;

		return '#' + red + green+ blue;	// Return new RGB color
	}
}

var DHTMLgoodies_globalTooltipObj;


/**
Constructor
**/
function DHTMLgoodies_formTooltip()
{
	var tooltipDiv;
	var tooltipText;
	var tooltipContentDiv;				// Reference to inner div with tooltip content
	var imagePath;						// Relative path to images
	var arrowImageFile;					// Name of arrow image
	var arrowImageFileRight;			// Name of arrow image
	var arrowRightWidth;
	var arrowTopHeight;
	var tooltipWidth;					// Width of tooltip
	var roundedCornerObj;				// Reference to object of class DHTMLgoodies_roundedCorners
	var tooltipBgColor;
	var closeMessage;					// Close message
	var activeInput;					// Reference to currently active input
	var tooltipPosition;				// Tooltip position, possible values: "below" or "right"
	var tooltipCornerSize;				// Size of rounded corners
	var displayArrow;					// Display arrow above or at the left of the tooltip?
	var cookieName;						// Name of cookie
	var disableTooltipPossibility;		// Possibility of disabling tooltip
	var disableTooltipByCookie;			// If tooltip has been disabled, save the settings in cookie, i.e. for other pages with the same cookie name.
	var disableTooltipMessage;
	var tooltipDisabled;
	var isMSIE;
	var tooltipIframeObj;
	var pageBgColor;					// Color of background - used in ie when applying iframe which covers select boxes
	var currentTooltipObj;				// Reference to form field which tooltip is currently showing for

	this.currentTooltipObj = false,
	this.tooltipDiv = false,
	this.tooltipText = false;
	this.imagePath = '/images/';
	this.arrowImageFile = 'green-arrow.gif';
	this.arrowImageFileRight = 'green-arrow-right.gif';
	this.tooltipWidth = 250;
	this.tooltipBgColor = '#317082';
	this.closeMessage = 'Çàêðûòü';
	this.disableTooltipMessage = 'Íå ïîêàçûâàòü áîëüøå ïîäñêàçêè';
	this.activeInput = false;
	this.tooltipPosition = 'right';
	this.arrowRightWidth = 16;			// Default width of arrow when the tooltip is on the right side of the inputs.
	this.arrowTopHeight = 13;			// Default height of arrow at the top of tooltip
	this.tooltipCornerSize = 10;
	this.displayArrow = true;
	this.cookieName = 'DHTMLgoodies_tooltipVisibility';
	this.disableTooltipByCookie = false;
	this.tooltipDisabled = false;
	this.disableTooltipPossibility = true;
	this.tooltipIframeObj = false;
	this.pageBgColor = '#FFFFFF';

	DHTMLgoodies_globalTooltipObj = this;

	if(navigator.userAgent.indexOf('MSIE')>=0)this.isMSIE = true; else this.isMSIE = false;
}


DHTMLgoodies_formTooltip.prototype = {
	// {{{ initFormFieldTooltip()
    /**
     *
	 *
     *  Initializes the tooltip script. Most set methods needs to be executed before you call this method.
     *
     * @public
     */
	initFormFieldTooltip : function()
	{
		var formElements = new Array();
		var inputs = document.getElementsByTagName('INPUT');
		for(var no=0;no<inputs.length;no++){
			var attr = inputs[no].getAttribute('tooltipText');
			if(!attr)attr = inputs[no].tooltipText;
			if(attr)formElements[formElements.length] = inputs[no];
		}

		var inputs = document.getElementsByTagName('TEXTAREA');
		for(var no=0;no<inputs.length;no++){
			var attr = inputs[no].getAttribute('tooltipText');
			if(!attr)attr = inputs[no].tooltipText;
			if(attr)formElements[formElements.length] = inputs[no];
		}
		var inputs = document.getElementsByTagName('SELECT');
		for(var no=0;no<inputs.length;no++){
			var attr = inputs[no].getAttribute('tooltipText');
			if(!attr)attr = inputs[no].tooltipText;
			if(attr)formElements[formElements.length] = inputs[no];
		}

		window.refToFormTooltip = this;

		for(var no=0;no<formElements.length;no++){
			formElements[no].onfocus = this.__displayTooltip;
		}
		this.addEvent(window,'resize',function(){ window.refToFormTooltip.__positionCurrentToolTipObj(); });

		this.addEvent(document.documentElement,'click',function(e){ window.refToFormTooltip.__autoHideTooltip(e); });
	}

	// }}}
	,
	// {{{ setTooltipPosition()
    /**
     *
	 *
     *  Specify position of tooltip(below or right)
     *	@param String newPosition (Possible values: "below" or "right")
     *
     * @public
     */
	setTooltipPosition : function(newPosition)
	{
		this.tooltipPosition = newPosition;
	}
	// }}}
	,
	// {{{ setCloseMessage()
    /**
     *
	 *
     *  Specify "Close" message
     *	@param String closeMessage
     *
     * @public
     */
	setCloseMessage : function(closeMessage)
	{
		this.closeMessage = closeMessage;
	}
	// }}}
	,
	// {{{ setDisableTooltipMessage()
    /**
     *
	 *
     *  Specify disable tooltip message at the bottom of the tooltip
     *	@param String disableTooltipMessage
     *
     * @public
     */
	setDisableTooltipMessage : function(disableTooltipMessage)
	{
		this.disableTooltipMessage = disableTooltipMessage;
	}
	// }}}
	,
	// {{{ setTooltipDisablePossibility()
    /**
     *
	 *
     *  Specify whether you want the disable link to appear or not.
     *	@param Boolean disableTooltipPossibility
     *
     * @public
     */
	setTooltipDisablePossibility : function(disableTooltipPossibility)
	{
		this.disableTooltipPossibility = disableTooltipPossibility;
	}
	// }}}
	,
	// {{{ setCookieName()
    /**
     *
	 *
     *  Specify name of cookie. Useful if you're using this script on several pages.
     *	@param String newCookieName
     *
     * @public
     */
	setCookieName : function(newCookieName)
	{
		this.cookieName = newCookieName;
	}
	// }}}
	,
	// {{{ setTooltipWidth()
    /**
     *
	 *
     *  Specify width of tooltip
     *	@param Int newWidth
     *
     * @public
     */
	setTooltipWidth : function(newWidth)
	{
		this.tooltipWidth = newWidth;
	}

	// }}}
	,
	// {{{ setArrowVisibility()
    /**
     *
	 *
     *  Display arrow at the top or at the left of the tooltip?
     *	@param Boolean displayArrow
     *
     * @public
     */

	setArrowVisibility : function(displayArrow)
	{
		this.displayArrow = displayArrow;
	}

	// }}}
	,
	// {{{ setTooltipBgColor()
    /**
     *
	 *
     *  Send true to this method if you want to be able to save tooltip visibility in cookie. If it's set to true,
     *	It means that when someone returns to the page, the tooltips won't show.
     *
     *	@param Boolean disableTooltipByCookie
     *
     * @public
     */
	setDisableTooltipByCookie : function(disableTooltipByCookie)
	{
		this.disableTooltipByCookie = disableTooltipByCookie;
	}
	// }}}
	,
	// {{{ setTooltipBgColor()
    /**
     *
	 *
     *  This method specifies background color of tooltip
     *	@param String newBgColor
     *
     * @public
     */
	setTooltipBgColor : function(newBgColor)
	{
		this.tooltipBgColor = newBgColor;
	}

	// }}}
	,
	// {{{ setTooltipCornerSize()
    /**
     *
	 *
     *  Size of rounded corners around tooltip
     *	@param Int newSize (0 = no rounded corners)
     *
     * @public
     */
	setTooltipCornerSize : function(tooltipCornerSize)
	{
		this.tooltipCornerSize = tooltipCornerSize;
	}

	// }}}
	,
	// {{{ setTopArrowHeight()
    /**
     *
	 *
     *  Size height of arrow at the top of tooltip
     *	@param Int arrowTopHeight
     *
     * @public
     */
	setTopArrowHeight : function(arrowTopHeight)
	{
		this.arrowTopHeight = arrowTopHeight;
	}

	// }}}
	,
	// {{{ setRightArrowWidth()
    /**
     *
	 *
     *  Size width of arrow when the tooltip is on the right side of inputs
     *	@param Int arrowTopHeight
     *
     * @public
     */
	setRightArrowWidth : function(arrowRightWidth)
	{
		this.arrowRightWidth = arrowRightWidth;
	}

	// }}}
	,
	// {{{ setPageBgColor()
    /**
     *
	 *
     *  Specify background color of page.
     *	@param String pageBgColor
     *
     * @public
     */
	setPageBgColor : function(pageBgColor)
	{
		this.pageBgColor = pageBgColor;
	}

	// }}}
	,
	// {{{ __hideTooltip()
    /**
     *
	 *
     *  This method displays the tooltip
     *
     *
     * @private
     */
	__displayTooltip : function()
	{
		if(DHTMLgoodies_globalTooltipObj.disableTooltipByCookie){
			var cookieValue = DHTMLgoodies_globalTooltipObj.getCookie(DHTMLgoodies_globalTooltipObj.cookieName) + '';
			if(cookieValue=='1')DHTMLgoodies_globalTooltipObj.tooltipDisabled = true;
		}

		if(DHTMLgoodies_globalTooltipObj.tooltipDisabled)return;	// Tooltip disabled
		var tooltipText = this.getAttribute('tooltipText');
		DHTMLgoodies_globalTooltipObj.activeInput = this;

		if(!tooltipText)tooltipText = this.tooltipText;
		DHTMLgoodies_globalTooltipObj.tooltipText = tooltipText;


		if(!DHTMLgoodies_globalTooltipObj.tooltipDiv)DHTMLgoodies_globalTooltipObj.__createTooltip();

		DHTMLgoodies_globalTooltipObj.__positionTooltip(this);




		DHTMLgoodies_globalTooltipObj.tooltipContentDiv.innerHTML = tooltipText;
		DHTMLgoodies_globalTooltipObj.tooltipDiv.style.display='block';

		if(DHTMLgoodies_globalTooltipObj.isMSIE){
			if(DHTMLgoodies_globalTooltipObj.tooltipPosition == 'below'){
				DHTMLgoodies_globalTooltipObj.tooltipIframeObj.style.height = (DHTMLgoodies_globalTooltipObj.tooltipDiv.clientHeight - DHTMLgoodies_globalTooltipObj.arrowTopHeight);
			}else{
				DHTMLgoodies_globalTooltipObj.tooltipIframeObj.style.height = (DHTMLgoodies_globalTooltipObj.tooltipDiv.clientHeight);
			}
		}

	}
	// }}}
	,
	// {{{ __hideTooltip()
    /**
     *
	 *
     *  This function hides the tooltip
     *
     *
     * @private
     */
	__hideTooltip : function()
	{
		try{
			DHTMLgoodies_globalTooltipObj.tooltipDiv.style.display='none';
		}catch(e){
		}

	}
	// }}}
	,
	// {{{ getSrcElement()
    /**
     *
	 *
     *  Return the source of an event.
     *
     *
     * @private
     */
    getSrcElement : function(e)
    {
    	var el;
		if (e.target) el = e.target;
			else if (e.srcElement) el = e.srcElement;
			if (el.nodeType == 3) // defeat Safari bug
				el = el.parentNode;
		return el;
    }
	// }}}
	,
	__autoHideTooltip : function(e)
	{
		if(document.all)e = event;
		var src = this.getSrcElement(e);
		if(src.tagName.toLowerCase()!='input' && src.tagName.toLowerCase().toLowerCase()!='textarea' && src.tagName.toLowerCase().toLowerCase()!='select')this.__hideTooltip();

		var attr = src.getAttribute('tooltipText');
		if(!attr)attr = src.tooltipText;
		if(!attr){
			this.__hideTooltip();
		}

	}
	// }}}
	,
	// {{{ __hideTooltipFromLink()
    /**
     *
	 *
     *  This function hides the tooltip
     *
     *
     * @private
     */
	__hideTooltipFromLink : function()
	{

		this.activeInput.focus();
		window.refToThis = this;
		setTimeout('window.refToThis.__hideTooltip()',10);
	}
	// }}}
	,
	// {{{ disableTooltip()
    /**
     *
	 *
     *  Hide tooltip and disable it
     *
     *
     * @public
     */
	disableTooltip : function()
	{
		this.__hideTooltipFromLink();
		if(this.disableTooltipByCookie)this.setCookie(this.cookieName,'1',500);
		this.tooltipDisabled = true;
	}
	// }}}
	,
	// {{{ __positionTooltip()
    /**
     *
	 *
     *  This function creates the tooltip elements
     *
     *
     * @private
     */
	__createTooltip : function()
	{
		this.tooltipDiv = document.createElement('DIV');
		this.tooltipDiv.style.position = 'absolute';

		if(this.displayArrow){
			var topDiv = document.createElement('DIV');

			if(this.tooltipPosition=='below'){

				topDiv.style.marginLeft = '20px';
				var arrowDiv = document.createElement('IMG');
				arrowDiv.src = this.imagePath + this.arrowImageFile + '?rand='+ Math.random();
				arrowDiv.style.display='block';
				topDiv.appendChild(arrowDiv);

			}else{
				topDiv.style.marginTop = '5px';
				var arrowDiv = document.createElement('IMG');
				arrowDiv.src = this.imagePath + this.arrowImageFileRight + '?rand='+ Math.random();
				arrowDiv.style.display='block';
				topDiv.appendChild(arrowDiv);
				topDiv.style.position = 'absolute';
			}

			this.tooltipDiv.appendChild(topDiv);
		}

		var outerDiv = document.createElement('DIV');
		outerDiv.style.position = 'relative';
		outerDiv.style.zIndex = 1000;
		if(this.tooltipPosition!='below' && this.displayArrow){
			outerDiv.style.left = this.arrowRightWidth + 'px';
		}

		outerDiv.id = 'DHTMLgoodies_formTooltipDiv';
		outerDiv.className = 'DHTMLgoodies_formTooltipDiv';
		outerDiv.style.backgroundColor = this.tooltipBgColor;
		this.tooltipDiv.appendChild(outerDiv);

		if(this.isMSIE){
			this.tooltipIframeObj = document.createElement('<IFRAME name="tooltipIframeObj" width="' + this.tooltipWidth + '" frameborder="no" src="about:blank"></IFRAME>');
			this.tooltipIframeObj.style.position = 'absolute';
			this.tooltipIframeObj.style.top = '0px';
			this.tooltipIframeObj.style.left = '0px';
			this.tooltipIframeObj.style.width = (this.tooltipWidth) + 'px';
			this.tooltipIframeObj.style.zIndex = 100;
			this.tooltipIframeObj.background = this.pageBgColor;
			this.tooltipIframeObj.style.backgroundColor= this.pageBgColor;
			this.tooltipDiv.appendChild(this.tooltipIframeObj);
			if(this.tooltipPosition!='below' && this.displayArrow){
				this.tooltipIframeObj.style.left = (this.arrowRightWidth) +  'px';
			}else{
				this.tooltipIframeObj.style.top = this.arrowTopHeight + 'px';
			}

			setTimeout("self.frames['tooltipIframeObj'].document.documentElement.style.backgroundColor='" + this.pageBgColor + "'",500);

		}

		this.tooltipContentDiv = document.createElement('DIV');
		this.tooltipContentDiv.style.position = 'relative';
		this.tooltipContentDiv.id = 'DHTMLgoodies_formTooltipContent';
		outerDiv.appendChild(this.tooltipContentDiv);

		var closeDiv = document.createElement('DIV');
		closeDiv.style.textAlign = 'center';

		closeDiv.innerHTML = '<A class="DHTMLgoodies_formTooltip_closeMessage" href="#" onclick="DHTMLgoodies_globalTooltipObj.__hideTooltipFromLink();return false">' + this.closeMessage + '</A>';

		if(this.disableTooltipPossibility){
			var tmpHTML = closeDiv.innerHTML;
			tmpHTML = tmpHTML + ' | <A class="DHTMLgoodies_formTooltip_closeMessage" href="#" onclick="DHTMLgoodies_globalTooltipObj.disableTooltip();return false">' + this.disableTooltipMessage + '</A>';
			closeDiv.innerHTML = tmpHTML;
		}

		outerDiv.appendChild(closeDiv);

		document.body.appendChild(this.tooltipDiv);



		if(this.tooltipCornerSize>0){
			this.roundedCornerObj = new DHTMLgoodies_roundedCorners();
			// (divId,xRadius,yRadius,color,backgroundColor,padding,heightOfContent,whichCorners)
			this.roundedCornerObj.addTarget('DHTMLgoodies_formTooltipDiv',this.tooltipCornerSize,this.tooltipCornerSize,this.tooltipBgColor,this.pageBgColor,5);
			this.roundedCornerObj.init();
		}


		this.tooltipContentDiv = document.getElementById('DHTMLgoodies_formTooltipContent');
	}
	// }}}
	,
	addEvent : function(whichObject,eventType,functionName)
	{
	  if(whichObject.attachEvent){
	    whichObject['e'+eventType+functionName] = functionName;
	    whichObject[eventType+functionName] = function(){whichObject['e'+eventType+functionName]( window.event );}
	    whichObject.attachEvent( 'on'+eventType, whichObject[eventType+functionName] );
	  } else
	    whichObject.addEventListener(eventType,functionName,false);
	}
	// }}}
	,
	__positionCurrentToolTipObj : function()
	{
		if(DHTMLgoodies_globalTooltipObj.activeInput)this.__positionTooltip(DHTMLgoodies_globalTooltipObj.activeInput);

	}
	// }}}
	,
	// {{{ __positionTooltip()
    /**
     *
	 *
     *  This function positions the tooltip
     *
     * @param Obj inputObj = Reference to text input
     *
     * @private
     */
	__positionTooltip : function(inputObj)
	{
		var offset = 0;
		if(!this.displayArrow)offset = 3;
		if(this.tooltipPosition=='below'){
			this.tooltipDiv.style.left = this.getLeftPos(inputObj)+  'px';
			this.tooltipDiv.style.top = (this.getTopPos(inputObj) + inputObj.offsetHeight + offset) + 'px';
		}else{

			this.tooltipDiv.style.left = (this.getLeftPos(inputObj) + inputObj.offsetWidth + offset)+  'px';
			this.tooltipDiv.style.top = this.getTopPos(inputObj) + 'px';
		}
		this.tooltipDiv.style.width=this.tooltipWidth + 'px';

	}
	,
	// {{{ getTopPos()
    /**
     * This method will return the top coordinate(pixel) of an object
     *
     * @param Object inputObj = Reference to HTML element
     * @public
     */
	getTopPos : function(inputObj)
	{
	  var returnValue = inputObj.offsetTop;
	  while((inputObj = inputObj.offsetParent) != null){
	  	if(inputObj.tagName!='HTML'){
	  		returnValue += inputObj.offsetTop;
	  		if(document.all)returnValue+=inputObj.clientTop;
	  	}
	  }
	  return returnValue;
	}
	// }}}

	,
	// {{{ getLeftPos()
    /**
     * This method will return the left coordinate(pixel) of an object
     *
     * @param Object inputObj = Reference to HTML element
     * @public
     */
	getLeftPos : function(inputObj)
	{
	  var returnValue = inputObj.offsetLeft;
	  while((inputObj = inputObj.offsetParent) != null){
	  	if(inputObj.tagName!='HTML'){
	  		returnValue += inputObj.offsetLeft;
	  		if(document.all)returnValue+=inputObj.clientLeft;
	  	}
	  }
	  return returnValue;
	}

	,

	// {{{ getCookie()
    /**
     *
     * 	These cookie functions are downloaded from
	 * 	http://www.mach5.com/support/analyzer/manual/html/General/CookiesJavaScript.htm
	 *
     *  This function returns the value of a cookie
     *
     * @param String name = Name of cookie
     * @param Object inputObj = Reference to HTML element
     * @public
     */
	getCookie : function(name) {
	   var start = document.cookie.indexOf(name+"=");
	   var len = start+name.length+1;
	   if ((!start) && (name != document.cookie.substring(0,name.length))) return null;
	   if (start == -1) return null;
	   var end = document.cookie.indexOf(";",len);
	   if (end == -1) end = document.cookie.length;
	   return unescape(document.cookie.substring(len,end));
	}
	// }}}
	,

	// {{{ setCookie()
    /**
     *
     * 	These cookie functions are downloaded from
	 * 	http://www.mach5.com/support/analyzer/manual/html/General/CookiesJavaScript.htm
	 *
     *  This function creates a cookie. (This method has been slighhtly modified)
     *
     * @param String name = Name of cookie
     * @param String value = Value of cookie
     * @param Int expires = Timestamp - days
     * @param String path = Path for cookie (Usually left empty)
     * @param String domain = Cookie domain
     * @param Boolean secure = Secure cookie(SSL)
     *
     * @public
     */
	setCookie : function(name,value,expires,path,domain,secure) {
		expires = expires * 60*60*24*1000;
		var today = new Date();
		var expires_date = new Date( today.getTime() + (expires) );
	    var cookieString = name + "=" +escape(value) +
	       ( (expires) ? ";expires=" + expires_date.toGMTString() : "") +
	       ( (path) ? ";path=" + path : "") +
	       ( (domain) ? ";domain=" + domain : "") +
	       ( (secure) ? ";secure" : "");
	    document.cookie = cookieString;
	}
	// }}}


}

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('9 26(){7 a=8.H("1e");6(u.I&&u.1f){N=u.I+u.1f;7 b=8.C;7 c=(b&&b.J)||8.t.J||u.I||27.I;N-=(u.I-c)}q 6(8.t.1g>8.t.1h||8.t.28>8.t.29){N=8.t.1g}q{N=8.t.1h}6(a!=F){a.v.1i="2a";a.v.1j=N}};9 2b(){7 a=8.H("1e");6(a!=F){a.v.1i="2c";a.v.1j="2d"}};9 2e(a){7 b=a.1k;1l((a=a.2f)!=F){b+=a.1k}A b};9 O(){5.12=\'\';5.z=\'\'};O.13.1m=9(){K{6(!5.z){A}q{5.z.v.14=\'1n\'}}L(e){A}};O.13.1o=9(){7 a=0;6(8.C&&8.C.V){a=8.C.V}q 6(8.t&&8.t.V){a=8.t.V}q 6(u.1p){a=u.1p}q 6(u.1q){a=u.1q}A a};O.13.1r=9(){K{5.z=8.H(5.12)}L(e){A}7 a=0;7 b=0;6(1s(u.1t)==\'2g\'){a=u.1t;b=u.I}q 6(8.C&&(8.C.W||8.C.J)){a=8.C.W;b=8.C.J}q 6(8.t&&(8.t.W||8.t.J)){a=8.t.W;b=8.t.J}5.z.v.2h=\'2i\';5.z.v.14=\'2j\';5.z.v.2k=2l;7 c=1u(5.z.v.2m);7 d=1u(5.z.v.2n);c=c?c:2o;d=d?d:2p;7 f=5.1o();7 g=(a-d)/2;7 h=(b-c)/2+f;g=(g<0)?0:g;h=(h<0)?0:h;5.z.v.2q=g+"1v";5.z.v.2r=h+"1v"};9 2s(p){5.15="2t 2u 2v.\\n";5.17=p;5.P="1w";5.w="";5.1x=Q;5.1y=18;5.X=18;5.Y=0;5.G=F;5.1z=9(){};5.1A=9(){};5.1B=9(){};5.1C=9(){};5.2w=9(a){6(!5.Y){5.Y=1;6(a){8.H(\'1D-1E-1F\').R=a}5.G=E O();5.G.12=\'1D-1E\';5.G.1r()}A};5.1G=9(){K{6(5.G&&5.G.z){5.G.1m()}}L(e){}5.Y=0;A};5.1H=9(){K{5.s=E 1I("2x.1J")}L(e){K{5.s=E 1I("2y.1J")}L(2z){5.s=F}}6(!5.s&&1s 1K!="2A")5.s=E 1K();6(!5.s){5.1L=Q}};5.1M=9(a,b){6(5.w.B<3){5.w=a+"="+b}q{5.w+="&"+a+"="+b}};5.1N=9(a,b){7 c=1O(a)+"="+1O(b);A c};5.1P=9(a){S=a.Z(\'&\');T(i=0;i<S.B;i++){M=S[i].Z(\'=\');6(M[0].19(\'2C;\')!=-1){M[0]=M[0].1Q(4)}S[i]=5.1N(M[0],M[1])}A S.2D(\'&\')};5.2E=9(a){a=a.1R();7 b=a.2F(/[\\2G-\\2H]/g);6(b){T(7 i=0;i<i.B;i++){a=a.1a(b[i],\'%2I\'+(b[i].2J(0)&2K).1R(16).2L())}}A 2M(a).1a(/\\+/g,"%2B")};5.1S=9(){7 a=E 1T;7 b=18;a=a.1U();7 c=/<U.*?>(.|[\\r\\n])*?<\\/U>/1V;7 d=c.1b(5.y);6(d!=F){7 e=E 1W(d.1X());7 b=Q;1l(d){d=c.1b(5.y);6(d!=F)e.2N(d.1X())}T(7 i=0;i<e.B;i++){5.y=5.y.1a(e[i],\'<1Y 2O="\'+a+i+\'" v="14:1n;"></1Y>\')}}6(5.X){5.D.R+=5.y}q{5.D.R=5.y}6(b){7 f=/<U.*?>((.|[\\r\\n])*?)<\\/U>/1V;T(i=0;i<e.B;i++){7 g=8.H(a+\'\'+i);7 h=g.2P;h.2Q(g);f.2R=0;7 k=f.1b(e[i]);7 l=h.2S(8.2T(\'U\'));l.1F=k[1];7 m=e[i].1Q(e[i].19(\' \',0),e[i].19(\'>\',0));7 n=m.Z(\' \');6(n.B>1){T(7 j=0;j<n.B;j++){6(n[j].B>0){7 o=n[j].Z(\'=\');o[1]=o[1].2U(1,(o[1].B-2));l.2V(o[0],o[1])}}}}}};5.2W=9(b){5.1c=E 1W(2);6(5.1L&&5.15){1d(5.15)}q{6(b){6(5.w.B){5.w=5.w+"&"+b}q{5.w=b}}6(5.1x){7 c=E 1T().1U();5.w=5.1P(5.w);5.1M("2X",c)}6(5.1Z){5.D=8.H(5.1Z)}6(5.s){7 d=5;6(5.P=="2Y"){7 f=5.17+"?"+5.w;5.s.20(5.P,f,Q)}q{5.s.20(5.P,5.17,Q)}6(5.P=="1w"){K{5.s.2Z(\'30-31\',\'32/x-33-34-35\')}L(e){}}5.s.36(5.w);5.s.37=9(){38(d.s.39){10 1:d.1z();11;10 2:d.1A();11;10 3:d.1B();11;10 4:d.y=d.s.3a;d.21=d.s.21;d.1c[0]=d.s.3b;d.1c[1]=d.s.3c;d.1G();d.1C();6(d.D){7 a=d.D.3d;a=a.3e();6(a=="3f"||a=="3g"||a=="3h"||a=="3i"){6(d.y==\'22\'){1d(\'23 24\')}q{6(d.X){d.D.25+=d.y}q{d.D.25=d.y}}}q{6(d.y==\'22\'){1d(\'23 24\')}q{6(d.1y){d.1S()}q{6(d.X){d.D.R+=d.y}q{d.D.R=d.y}}}}}d.w="";11}}}}};5.1H()};',62,205,'|||||this|if|var|document|function|||||||||||||||||else||xmlhttp|body|window|style|URLString||response|divobj|return|length|documentElement|elementObj|new|null|centerdiv|getElementById|innerHeight|clientHeight|try|catch|urlVars|yScroll|center_div|method|true|innerHTML|varArray|for|script|scrollTop|clientWidth|add_html|loading_fired|split|case|break|divname|prototype|display|AjaxFailedAlert||requestFile|false|indexOf|replace|exec|responseStatus|alert|busy_layer|scrollMaxY|scrollHeight|offsetHeight|visibility|height|offsetTop|while|clear_div|none|Ywindow|pageYOffset|scrollY|move_div|typeof|innerWidth|parseInt|px|POST|encodeURIString|execute|onLoading|onLoaded|onInteractive|onCompletion|loading|layer|text|onHide|createAJAX|ActiveXObject|XMLHTTP|XMLHttpRequest|failed|setVar|encVar|encodeURIComponent|encodeURLString|substring|toString|runResponse|Date|getTime|ig|Array|shift|span|element|open|responseXML|error|Access|denied|value|showBusyLayer|self|scrollWidth|offsetWidth|visible|hideBusyLayer|hidden|0px|_get_obj_toppos|offsetParent|number|position|absolute|block|zIndex|99|Height|Width|50|200|left|top|dle_ajax|AJAX|not|supported|onShow|Msxml2|Microsoft|err|undefined||amp|join|encodeVAR|match|x90|xFF|u00|charCodeAt|0xFF|toUpperCase|escape|push|id|parentNode|removeChild|lastIndex|appendChild|createElement|substr|setAttribute|sendAJAX|rndval|GET|setRequestHeader|Content|Type|application|www|form|urlencoded|send|onreadystatechange|switch|readyState|responseText|status|statusText|nodeName|toLowerCase|input|select|option|textarea'.split('|'),0,{}))

function bookmarks(bmDivId, bmObj, divDivId, divId)
{

	var bmDiv = document.getElementById(bmDivId);
	var divDiv = document.getElementById(divDivId);
	var div = document.getElementById(divId);

		for (var i=0; i < bmDiv.childNodes.length; i++) {

		if (bmDiv.childNodes[i].tagName == 'A') {
  			bmDiv.childNodes[i].className = null;

		}

	}
	bmObj.className = 'active';
 	bmObj.blur();

for (var i=0; i < divDiv.childNodes.length; i++) {

		if (divDiv.childNodes[i].tagName == 'DIV') {

		 divDiv.childNodes[i].className = null;

		 divDiv.childNodes[i].className = 'hidden';

		}

	}
div.className = null;
}


$(document).ready(function () {
	$('#basic-modal input.basic, #basic-modal a.basic').click(function (e) {
		e.preventDefault();
		$('#basic-modal-content').modal();
	});
});

