// Diese Variable schaltet die Minithumbs aktiv
var galeriebilder = false;


function imgover(object)
{
	object.style.border ="solid #304879 1px";
}

function imgout(object)
{
	object.style.border ="solid #ccc 1px";
}	
	
	
// Bild über Minithumbs ändern
// CSS-ID Vorschau: Bild
// CSS-ID Vorschautext: Text zum Bild
function ChangePreImage(bild,bildtext){
	
	if (!galeriebilder) return;
	
	newTween.set(0);

	el.src=bild;
	eltext.firstChild.nodeValue = bildtext;
	
	newTween.start(1);				
}


// Galerie Popup erzeugen 
function popupDivGalerie(galerieordner, galerie, galeriebild, popTitle, typ ) {
	
	// Werte setzen
	popupPluginSrc = galeriePopupPluginSrc;
	popupIframe = galeriePopupIframe;
	popupIframeTitle = popTitle;	
	
	// Je nach Galerietyp
	if ( typ == 'single' && galeriebild != '')
	{
		Slimbox.open(galeriesFolder+galerieordner+'/'+galerie+'/'+galeriebild);
	}
	else
	{
		if ( typ == 'minithumbs')
		{
			popupWidth = minithumbPopupWidth;
			popupHeight = minithumbPopupHeight;
		}
		else
		{
			popupWidth = galeriePopupWidth + galerieImageShiftLeft*2;
			popupHeight = galeriePopupHeight + 120;
		}
		
		popupWidth = parseInt(popupWidth);
		popupHeight = parseInt(popupHeight);
			
		popupIframe += '?config='+galerieordner+'&galerie='+galerie+'&bild='+galeriebild+'&typ='+typ ;
		
		// Popup erzeugen
		windowname = popupDivName;	
		popupHtml();
			
		blanket_size(windowname);

		// Popup positionieren
		window_pos(windowname);		
	}
}


// Event Text und Bild Minithumbs
window.addEvent('domready', function() {
	el = $('Vorschau');
	eltext = $('Vorschautext');
	newTween = new Fx.Tween(el,{property: "opacity", duration: 200});
});

