
// Run all lightbox images
jQuery(function() {
    if (jQuery('.lightbox').length>0){
        jQuery('.lightbox').lightBox({
            overlayBgColor: '#000',
            overlayOpacity: 0.5,
            imageLoading: 'resources_core/images/lightbox/loading.gif',
            imageBtnClose: 'resources_core/js/lightwindow/images/closelabel.gif',
            imageBtnPrev: 'resources_core/js/lightwindow/images/prevlabel.gif',
            imageBtnNext: 'resources_core/js/lightwindow/images/nextlabel.gif',
            containerResizeSpeed: 300,
            txtImage: '',
            txtOf: '/'
        });
    }
});

// Create slide down for login
jQuery(document).ready(function(){
	//slide down login
	jQuery('.switchLogin').click(function() {
		jQuery('#loginForm').slideDown("slow");
		jQuery('#loginForm').removeClass('hidden');
		return false;
	});
});

// Implement hack which fix the width of select in IE on mouseover
jQuery(document).ready(function(){
	if (jQuery.browser.msie) {
		jQuery("select").each(function(){
			// Don't do the this hack for small selects (regija)
			// this.id != 'panoga' && 
			if (this.id != 'regija') {
				new YAHOO.Hack.FixIESelectWidth(this.id);
			}
		});
	}
});

