jQuery(function() {
	var tabContainers = jQuery('div.tabs > div.tabscontent');
	tabContainers.hide().filter(':first').show();
	
	var a = jQuery('div.tabs ul.tabNavigation a').click(function() {
		tabContainers.hide();
		tabContainers.filter(this.hash).show();
		location.hash = this.hash;
		jQuery('div.tabs ul.tabNavigation a').removeClass('selected');
		jQuery(this).addClass('selected');
		return false;
	});
	if (location.hash == "") 
	{
		a.filter(':first').click();
	}
	jQuery('div.tabs ul.tabNavigation a').each(function() {
		var ex = jQuery(this).attr("href").split("#");
		hash = "";
		if (ex[1]) 
		{
			hash = "#" + ex[1];
		}
		if (hash == location.hash) 
		{
			tabContainers.hide();
			tabContainers.filter(this.hash).show();
			jQuery('div.tabs ul.tabNavigation a').removeClass('selected');
			jQuery(this).addClass('selected');
			return false;
		}
	})
	
	jQuery('.subnav').droppy();
	
	var set = 
	{
		imageLoading: 'WWW_files/files/user_files/graphics/lightbox/lightbox-ico-loading.gif', // (string) Path and the name of the loading icon
		imageBtnPrev: 'WWW_files/files/user_files/graphics/lightbox/lightbox-btn-prev.gif', // (string) Path and the name of the prev button image
		imageBtnNext: 'WWW_files/files/user_files/graphics/lightbox/lightbox-btn-next.gif', // (string) Path and the name of the next button image
		imageBtnClose: 'WWW_files/files/user_files/graphics/lightbox/lightbox-btn-close.gif', // (string) Path and the name of the close btn
		imageBlank: 'WWW_files/files/user_files/graphics/lightbox/lightbox-blank.gif',
		fixedNavigation: true
	}
	jQuery('#pildid a').lightBox(set);
});

