/*
*  Webdesigner: FOCUS Usługi internetowe
*  Contact: biuro@focustf.pl http://focusTF.pl/
*/

var siteurl = '';

function EkoStanInit()
{
}

function pokaz(_elemId)
{
	var thisElement = document.getElementById(_elemId);
	var otherElement;
	var i = 0;
	var j = 0;
	var ile_str = 4;
	var head3 = document.getElementsByTagName('h3');
	for (i=0; i<ile_str; i=i+1) {
		if (head3[i].className==_elemId) {
			head3[i].className +=' active';
		}
		else head3[i].className=head3[i].className.replace(/ active/,'');
	}
	for (i=1; i<=ile_str; i=i+1) {
		otherElement = document.getElementById('t'+i+'t');
//		alert(otherElement.className+" "+otherElement.parentNode.nodeName+" "+otherElement.previousSibling.nodeName+" "+otherElement.previousSibling.className);
		if (otherElement.parentNode!=thisElement) {
			if (otherElement.style.display!="none") otherElement.style.display = "none";
		}
		else 
			if (otherElement.style.display!="block") otherElement.style.display = "block";
	}
}

switchFontSize=function(ckname,val){
	var bd = $E('BODY');
	switch (val) {
		case 'inc':
			if (CurrentFontSize+1 < 7) {
				bd.removeClass('fs'+CurrentFontSize);
				CurrentFontSize++;
				bd.addClass('fs'+CurrentFontSize);
			}
		break;
		case 'dec':
			if (CurrentFontSize-1 > 0) {
				bd.removeClass('fs'+CurrentFontSize);
				CurrentFontSize--;
				bd.addClass('fs'+CurrentFontSize);
			}
		break;
		default:
			bd.removeClass('fs'+CurrentFontSize);
			CurrentFontSize = val;
			bd.addClass('fs'+CurrentFontSize);
	}
	Cookie.set(ckname, CurrentFontSize,{duration:365});
}
