﻿Shadowbox.init({
    language: 'en',
    players:  ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv']
});

// When the document loads do everything inside here ...
$(document).ready(function(){
							
	$('.tooltip').tooltip({
		track: true,
		delay: 0,
		showURL: false,
		showBody: " | ",
		extraClass: "tooltipWin"
	});

	$.sifr({
		path: '/media/flash/',
		save: true
	});
		
	$(".teambox").fancybox({
		'zoomSpeedIn':	0, 
		'zoomSpeedOut':	0,
		'frameWidth': 780,
		'frameHeight':600
	});

		
/*if ($.fn.flash.hasFlash() && $.fn.flash.hasFlash.playerVersion()>7) {

	alert($.fn.flash.hasFlash()+" / "+$.fn.flash.hasFlash.playerVersion());*/
	if ($.fn.flash.hasFlash() && $.fn.flash.hasFlash.playerVersion().split(",")[0] > 7) {
	
		
		$('hh1').sifr({ font:'DTLAlbertinaST-Medium',color:'#004499',fontSize:'28px' });
		$('hh2').sifr({ font:'DIN-Schwind',color:'#39383e',fontSize:'20px' });
		$('hh3').sifr({ font:'DTLAlbertinaST-Medium',color:'#004499',fontSize:'16px' });
		}
	
});

function SetOverStyle(aID) {
	eval (" document.getElementById('"+aID+"_T').style.color='#52A128'; ");
	eval (" document.getElementById('"+aID+"_N').style.color='#52A128'; ");
}
function ClearOverStyle(aID) {
	eval (" document.getElementById('"+aID+"_T').style.color='#005093'; ");
	eval (" document.getElementById('"+aID+"_N').style.color='#005093'; ");
}

//Produktschulung
function toggle(idname) {

	termineID = idname+'termine';
	if(document.getElementById(termineID).style.display == '' || document.getElementById(termineID).style.display == 'none') {
		document.getElementById(idname).style.backgroundPosition='right bottom';
		document.getElementById(termineID).style.display = 'block';
	}
	else {
		document.getElementById(idname).style.backgroundPosition='right top';
		document.getElementById(termineID).style.display = 'none';
	}
}