// JavaScript Document

// +++ update_90 ---

$(document).ready(function(){
							   
	//IE z-Index Fix
	$(function() { 
		$('.scrollerBox, #colorSelect, div.overlay').bgiframe(); 
	});
	
	// Overlay + Rating
	$(function() { 
	
		// +++ update_294 +++
		// Funktion für das Overlay mit externem Content
		$("a[rel='#load-overlay']").overlay({ 
	
				expose: '#000', 
				oneInstance: true, 
				onBeforeLoad: function() { 
	
						// grab wrapper element inside content 
						var wrap = this.getContent().find("div.wrap"); 
	
						// load the page specified in the trigger 
						wrap.load(this.getTrigger().attr("href")); 
				} 
	
		}); 
		// --- update_294 ---
			   
			   
		$("a[rel]").each(function() {
			
			// +++ update_51 +++
			// +++ update_367 +++
			if (this.rel != 'nofollow' && this.rel != 'group')
			// --- update_367 ---
			{					
			// --- update_51 ---
				// +++ update_192 +++
				$(this).overlay({expose: '#000', oneInstance: true, top: "center"});
				// --- update_192 ---
			// +++ update_51 +++		
			}
			// --- update_51 ---
		});
	
		// Rating		
		$('.hover-star').rating({ 
			focus: function(value, link){ 
			var tip = $('#hover-test'); 
			tip[0].data = tip[0].data || tip.html(); 
			tip.html(link.title || 'value: '+value); 
			}, 
			blur: function(value, link){ 
			var tip = $('#hover-test'); 
			$('#hover-test').html(tip[0].data || ''); 
			} 
		});
		
		// +++ update_52 +++
		// nicht schließen
		// Submit-Funktion
		/*$('div.overlay form').submit(function(){
			$("a[rel]").each(function() { 
		$(this).overlay().close(); 
		});
			return false;
		});
		*/
		// --- update_52 ---
		
		
		
	});

});