function sizeup987(){
	document.getElementById('jcornerBig').style.top = '0px';
	document.getElementById('jcornerSmall').style.top = '-1000px';
}

function sizedown987(){
	document.getElementById("jcornerSmall").style.top = "0px";
	document.getElementById("jcornerBig").style.top = "-1000px";
}


isOpera = 0;
isOpera6 = 0;
isOpera7 = 0;
isNetscape4 = 0;
isMozilla = 0;
isDOM=(document.getElementById)?1:0;//DOM1 browser (MSIE 5+, Netscape 6, Opera 5+)
isOpera=isOpera5=(window.opera && isDOM)?1:0;//Opera 5+
isOpera6=(isOpera && window.print)?1:0; //Opera 6+
isOpera7=(isOpera && document.readyState)?1:0 ;//Opera 7+
isMSIE=(document.all && document.all.item && !isOpera)?1:0; //Microsoft Internet Explorer 4+
isMSIE5=(isDOM && isMSIE)?1:0; //MSIE 5+
isNetscape4=(document.layers)?1:0; //Netscape 4.*
isMozilla=(isDOM && navigator.appName=="Netscape")?1:0; //Mozilla eee Netscape 6.*
function chIMG_T(obj,t){
	s=obj.src;
	n=s.lastIndexOf(".");
	document.getElementById("img_big").src=s.substring(0,n)+s.substring(n,s.length);
	for(i=1;i<13;i++){
      if(t==i)
       document.getElementById('text_'+i).style.display="block";
      else 
   	   document.getElementById('text_'+i).style.display="none";
   }
}

function chIMG2(obj){
	s1=obj.src;
	n1=s1.lastIndexOf(".");
	document.getElementById("img_big1").src=s1.substring(0,n1)+s1.substring(n1,s1.length);
}
function chIMG(obj,k){
	s=obj.src;
	n=s.lastIndexOf(".");
	document.getElementById("img_big").src=s.substring(0,n)+s.substring(n,s.length);
	document.getElementById("img_sign").innerHTML = k;
}

function loadMap(m) {
	for(i=1;i<3;i++){
      if(m==i)
       document.getElementById('m_'+i).style.display="block";
      else 
   	   document.getElementById('m_'+i).style.display="none";
   }
}

function loadMapPic(map) {
	for(j=1;j<3;j++){
      if(map==j)
      document.getElementById('map_'+j).style.display="block";
      else 
   	   document.getElementById('map_'+j).style.display="none";
   }
}
function ShowAut(au) {
		if (document.getElementById('aut_'+au).style.display=="none")
		{document.getElementById('aut_'+au).style.display="block";}
		else
		{document.getElementById('aut_'+au).style.display="none";}
}
function AutOff(auf)
		{document.getElementById('aut_'+auf).style.display="none";}

function MagInfoOn(mag){
	document.getElementById('mag_'+mag).style.display="block";
	}
function MagInfoOff(mag){	
	document.getElementById('mag_'+mag).style.display="none";
	}
function ZavInfoOn(zav){
	document.getElementById('zav_'+zav).style.display="block";
	}
function ZavInfoOff(zav){	
	document.getElementById('zav_'+zav).style.display="none";
	}
function ProdOn(prod){
	document.getElementById('prod'+prod).style.display="block";
	}
function ProdOff(prod){	
	document.getElementById('prod'+prod).style.display="none";
	}
function timeLoad()
{
document.getElementById('flash').style.display="block";
}
function LoadMenu()
{
//document.getElementById('mn').style.display="block";
}
function ShowDetails(id){
	$('#inline'+id).css('visibility', 'hidden');
	$('#inline'+id).css('display', 'block');
	var width = $('#inline'+id).attr('clientWidth');
	var height = $('#inline'+id).attr('clientHeight');
	
	var left = parseInt(document.body.clientWidth)/2 - width/2;
	var top = parseInt(document.body.clientHeight + document.body.scrollTop)/2 - height/2;
	if(top+height > document.body.scrollHeight){
		top = document.body.scrollHeight - height;
	}
	$('#inline'+id).css('visibility', 'visible');
	$('#inline'+id).css('display', 'none');
	$('#inline'+id).css('left', left+'px');
	$('#inline'+id).css('top', top+'px');
	$('#inline'+id).fadeIn('normal');
}

function HideDetails(id){
	$('#inline'+id).fadeOut('normal');	
}
/* function ShowProd(prod){
	for(pr=1;pr<10;pr++){
      if(prod==pr){
		document.getElementById('prod'+pr).className='prodToo';
		document.getElementById('show'+pr).style.display="block";
		}
	  else{
		document.getElementById('prod'+pr).className='prodOne';
		document.getElementById('show'+pr).style.display="none";
		}
	}
} */

	/*	$(document).ready(function() {
			$(".lupaBtn777").fancybox({
				'titlePosition'		: 'inside',
				'transitionIn'		: 'none',
				'transitionOut'		: 'none'
			});
		});*/
		
		/*GALLERY*/
 jQuery(document).ready(function(){
	if(document.getElementById('galleria')) {
    $("#galleria a").fancybox({
    	hideOnContentClick: true,
    	overlayShow: true,
    	overlayOpacity: 0.5,
    	zoomSpeedIn: 2100,
    	zoomSpeedOut:600
    	});   
	}
});
jQuery(function(){
	jQuery(".gall").jCarouselLite({
		btnNext: ".next",
		btnPrev: ".prev"
   });
 });
		