function detectBrowser() {
	var browser=navigator.appName;
	if ((browser=="Microsoft Internet Explorer") /*|| (browser=="Netscape")*/) {
		return false;
	} else  {
		return true;
	}
}

function alertSize() {
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
	//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	height = myHeight-600;
	height = Math.round(height/2);
	if (height >0) {
		document.cookie = "wysokosc=" + height;
		document.getElementById('start_top').style.height = height+'px';
	}
}
function alertSize_content() {
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
	//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	height = myHeight-600;
	height = Math.round(height/2);
	if (height >0) {
//		document.getElementById('content_cos').style.height = height+'px';
		document.getElementById('content_cos').style.marginTop = (-130+height)+'px';
	}
}
function alertSize2(co) {
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
	//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	if (co == 'height') {
		return myHeight;
	}
	if (co == 'width') {
		return myWidth;
	}
	return false;
}
function zmien(sel,foward) {
	
	if (detectBrowser()) {
		if (sel == 'kawa') {
			if (foward == 1) {
				mint.fx.Fade('herbata',50,10,400);
				mint.fx.Fade('other',50,10,400);
			} else {
				mint.fx.Fade('herbata',100,10,400);
				mint.fx.Fade('other',100,10,400);
			}
		}

		if (sel == 'herbata') {
			if (foward == 1) {
				mint.fx.Fade('kawa',50,10,400);
				mint.fx.Fade('other',50,10,400);
			} else {
				mint.fx.Fade('kawa',100,10,400);
				mint.fx.Fade('other',100,10,400);
			}
		}
		if (sel == 'other') {
			if (foward == 1) {
				mint.fx.Fade('kawa',50,10,400);
				mint.fx.Fade('herbata',50,10,400);
			} else {
				mint.fx.Fade('kawa',100,10,400);
				mint.fx.Fade('herbata',100,10,400);
			}
		}
	}
	return false;
}
function lista_all(ile) {
	for (i=1; i<=ile;i++) {
		mint.fx.Fade('list_'+i,0,1,1);
		mint.fx.Fade('podtitle_'+i,0,1,1);
	}
}
function lista(element,foward,color) {
	if (foward == 1) {
		mint.fx.Fade('list_'+element,100,10,400);
		mint.fx.Fade('podtitle_'+element,100,10,400);
//		mint.fx.Color('title_'+element, "color", "#666666", "#91AED0", "20", "200");
		document.getElementById('title_'+element).style.color=color;
		Cufon.replace('span.sunsans_title', { fontFamily: 'sunsans', hover:'true' });
	} else {
		mint.fx.Fade('list_'+element,0,10,400);
		mint.fx.Fade('podtitle_'+element,0,10,400);
		document.getElementById('title_'+element).style.color="#666666";
		Cufon.replace('span.sunsans_title', { fontFamily: 'sunsans', hover:'true' });
	}
}
function pokaz_wybor(element,foward) {
	if (foward == 1) {
		mint.fx.Fade(element,100,10,400);
	} else {
		mint.fx.Fade(element,0,10,400);
	}
}
function choice(el) {
	mint.fx.Fade(el,0,1,1);

}
function zamknij_gal() {
	document.getElementById('galeryjka').style.display="none";
	return false;
}
function getUrl(url) {
	window.open(url, "_blank");
//	document.location.href=url; 
}