
jQuery.noConflict();

jQuery(document).ready(function() {
	
	jQuery('.hh1').mouseover(function() {
		jQuery('#hh1a').hide();
		jQuery('#hh1b').show();
	});
	jQuery('.hh1').mouseout(function() {
		jQuery('#hh1b').hide();
		jQuery('#hh1a').show();
	});
	
	jQuery('.hh2').mouseover(function() {
		jQuery('#hh2a').hide();
		jQuery('#hh2b').show();
	});
	jQuery('.hh2').mouseout(function() {
		jQuery('#hh2b').hide();
		jQuery('#hh2a').show();
	});
	
	jQuery('.hh3').mouseover(function() {
		jQuery('#hh3a').hide();
		jQuery('#hh3b').show();
	});
	jQuery('.hh3').mouseout(function() {
		jQuery('#hh3b').hide();
		jQuery('#hh3a').show();
	});
	
	jQuery('.hh4').mouseover(function() {
		jQuery('#hh4a').hide();
		jQuery('#hh4b').show();
	});
	jQuery('.hh4').mouseout(function() {
		jQuery('#hh4b').hide();
		jQuery('#hh4a').show();
	});
	
	jQuery('#slider_box').cycle({
		fx: 'scrollHorz', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		prev:   '#prev', 
		next:   '#next', 
		timeout: 0
	});
	
	jQuery('#slider_box_wide').cycle({
		fx: 'scrollHorz', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		prev:   '#prev', 
		next:   '#next', 
		timeout: 0
	});
	
	var startPoint = jQuery('#lang_current').val() - 1;
	jQuery('#lang_options').cycle({
		fx: 'none', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		prev:   '#lang_arr_right', 
		next:   '#lang_arr_left', 
		startingSlide: startPoint,
		timeout: 0
	});
	
});

function gal_data(a) {
	if((a.length >= 2)) {
		var patt1=/(\d{2})/i;
		if(a.match(patt1)) {
			document.getElementById('gal_data').style.display="block";
		} else { document.getElementById('gal_data').style.display="none"; }
	} else { document.getElementById('gal_data').style.display="none"; }
}

function close_jurex_popup(a, b) {
	document.getElementById(a).style.display="none";
	document.getElementById(b).style.display="none";
	return false;
}

function init_jurex_popup() {
	var arrayPageSize = getPageSize();
	Element.setHeight('pop_overlay', arrayPageSize[1]);
	new Effect.Appear('pop_overlay', { duration: overlayDuration, from: 0.0, to: 0.8 });

	var arrayPageScroll = getPageScroll();
	var lightboxTop = arrayPageScroll[1] + (arrayPageSize[3] / 10);
	Element.setTop('pop_lightbox', lightboxTop);
	Element.show('pop_lightbox');
}
