function retypePlusMinus() {
	$(".custom").click(function(){
		if($(this).attr("id") != "plans") {
			$(".custom").each( function(index) {
				if($(this).next(".block1").css('display') == 'block' ) {
					$(this).next(".block1").slideToggle(100);
					$(this).toggleClass("active");
				}
			});
			$(this).next(".block1").slideToggle("normal");
			$(this).toggleClass("active");
		}
		return false;
	});

	$(".arhiv a").click(function(){
		$(this).next(".mounth").slideToggle("normal");
		$(this).toggleClass("act");
		return false;
	});
	
	$(".mounth a").click(function(){
		$(this).next(".mounth_item").slideToggle("normal");
		$(this).toggleClass("act");
		return false;
	});
}
/*$(document).ready(function(){
	//alert('load');
	retypePlusMinus();
});*/

var ttCurr = '';
function viewToolTips(id, src) {
	var url="/index.php?ajt=docs&id="+id+"&src="+src+"&head=1"; 
	var dT = parseInt(screen.height/2-300/2);
	var dL = parseInt(screen.width/2-500/2); 
	var ppp = window.open( url, "myWindow", "status = 0, height = 300, width = 600, resizable = 1, top="+dT+",left="+dL );
	ppp.focus();
	/*if(ttCurr!='') hideToolTips(ttCurr); ttCurr=id; 
	AJAXRequest(url, 'resultRequestDoc', id, 'procFunctionDoc'); return false;*/
}

/*function getClientHeight()
{
  return (document.body.scrollHeight > document.body.offsetHeight)?document.body.scrollHeight:document.body.offsetHeight;
}
function resultRequestDoc(param, result) { 
	document.getElementById(param).innerHTML = result; 
	if(document.getElementById("LINK_"+param)!=null) {
		element = document.getElementById(param);
		var els = element.style;
		var originalVisibility = els.visibility;
		var originalPosition = els.position;
		var originalDisplay = els.display;
		els.visibility = 'hidden';
		els.position = 'absolute';
		els.display = 'block';
		var originalWidth = element.clientWidth;
		var originalHeight = element.clientHeight;
		els.display = originalDisplay;
		els.position = originalPosition;
		els.visibility = originalVisibility;
		

		document.getElementById(param).style.marginTop = document.getElementById("LINK_"+param).offsetTop + 50;
		wH = getClientHeight();
		wA = document.getElementById("LINK_"+param).offsetTop + originalHeight + 410;
		if(wA>wH) document.getElementById(param).style.marginTop = document.getElementById("LINK_"+param).offsetTop  - (wA-wH) - 100;
		if(originalHeight > screen.availWidth) {
			document.getElementById(param).style.top = 0;
			document.getElementById(param).style.marginTop = 155;
		}
	}

	if(document.getElementById("tt_top_"+param)!=null) {
		document.getElementById(param).style.marginTop = document.getElementById("tt_top_"+param).offsetTop - 30;
	}

	
	document.getElementById(param).style.display='block'; 
}
function procFunctionDoc() {}
function hideToolTips(id) {	document.getElementById(id).style.display = 'none'; return false; }
*/

function unhideVideo(divID,frameID,contentID) {
	var item = document.getElementById(divID);
	var frame = document.getElementById(frameID);
	var content=contentID;
	var ClassID=item.className;
	var ClassID2=frame.className;
 	if (frame) {
 		frame.className=(frame.className=='hiddenVideo')?'unhiddenVideo':'hiddenVideo';
		frame.src = content;
 	}
	if (item) {
		item.className=(item.className=='hiddenVideo')?'unhiddenVideo':'hiddenVideo';
	}
}
