// JavaScript Document
var d = document;
var winIE = (navigator.userAgent.indexOf("Opera")==-1 && (d.getElementById && d.documentElement.behaviorUrns)) ? true : false;
function bodySize()
{
	var a = d.getElementsByTagName("a");

	for(var i=0;i<a.length;i++) if(a[i].href == d.location.href) {
		a[i].href = "javascript:void(0);";
	}
	if(winIE && d.documentElement.clientWidth) 
	{
		sObj = d.getElementsByTagName("body")[0].style;
		sObj.width = (d.documentElement.clientWidth<1000) ? "1000px" : "auto";
		
	}
 }

 function init()
 {
	if(winIE) { bodySize(); }
 }
 onload = init;
 if(winIE) { onresize = bodySize; }
 
 
 
function ShowHide(divId) {
	var id = document.getElementById(divId);
	if (id.style.display == "none") {
		eval("id.style.display = 'block'");
	} else {
		eval("id.style.display = 'none'");
	}
}

function AdvShower (num_id)
{
	$('#' + num_id).parent().toggleClass('activ');
}

$(document).ready(function(){
	$("a[@href$=pdf]").wrap("<div class='pdf'></div>");
});


