/*	
#####################################################################################
#### EXTERNE JS LADEN ###############################################################
#####################################################################################
*/
/*
document.write('<script src="fileadmin/sonnenschutzglas/templates/js/sifr/sifr.js" type="text/javascript"></script>');
document.write('<script src="fileadmin/sonnenschutzglas/templates/js/sifr/sifr-addons.js" type="text/javascript"></script>');
document.write('<script src="fileadmin/sonnenschutzglas/templates/js/framework/mootools.js" type="text/javascript"></script>');
document.write('<script src="fileadmin/sonnenschutzglas/templates/js/slimbox/slimbox.js" type="text/javascript"></script>');
*/

window.onload = function defaultscript() {

/*
#####################################################################################
#### ROLLOVER_EFFEKTE ###############################################################
#####################################################################################
*/

/*
		window.addEvent('domready', function(){
		var nav = $$('#nav_main a');
		var nav2 = $$('.mmLevel1 a');
		var nav3 = $$('.mmLevel2 a');
		var link = $$('#main a');
		var headnav = $$('#header_nav a');
		var footerleft = $$('#footer_left a');
		var footerright = $$('#footer_right a');
		var startlink = $$('.kwick a');
		var blockleft = $$('#kwick_red');
		var blockmiddle = $$('#kwick_orange');
		var blockright = $$('#kwick_yellow');
		var popUp = $$('.popUp');

		nav.each(function(element) {
			
			var fx = new Fx.Styles(element, {duration:250, wait:false});
			
			element.addEvent('mouseenter', function(){
				fx.start({
						'color': '#ffffff'
				});
			});
			
			element.addEvent('mouseleave', function(){
				fx.start({
						'color': '#90b6d6'
				});
			});
			
		});	

		nav2.each(function(element) {
			
			var fx = new Fx.Styles(element, {duration:200, wait:false});
			
			element.addEvent('mouseenter', function(){
				fx.start({
						'color': '#8fb7d9',
						'background-color': '#ffffff',
						'padding-left': 20
				});
			});
			
			element.addEvent('mouseleave', function(){
				fx.start({
						'color': '#ffffff',
						'background-color': '#92b8d8',
						'padding-left': 15
				});
			});
			
		});	

		nav3.each(function(element) {
			
			var fx = new Fx.Styles(element, {duration:200, wait:false});
			
			element.addEvent('mouseenter', function(){
				fx.start({
						'color': '#ffffff',
						'background-color': '#92b8d8',
						'padding-left': 18
				});
			});
			
			element.addEvent('mouseleave', function(){
				fx.start({
						'color': '#203d81',
						'background-color': '#f4f4f4',
						'padding-left': 13
				});
			});
			
		});	

		link.each(function(element) {
			
			var fx = new Fx.Styles(element, {duration:250, wait:false});
			
			element.addEvent('mouseenter', function(){
				fx.start({
						'color': '#2756b1'
				});
			});
			
			element.addEvent('mouseleave', function(){
				fx.start({
						'color': '#65c5f2'
				});
			});
			
		});	

		headnav.each(function(element) {
			
			var fx = new Fx.Styles(element, {duration:250, wait:false});
			
			element.addEvent('mouseenter', function(){
				fx.start({
						'color': '#2756b1'
				});
			});
			
			element.addEvent('mouseleave', function(){
				fx.start({
						'color': '#65c5f2'
				});
			});
			
		});	

		footerleft.each(function(element) {
			
			var fx = new Fx.Styles(element, {duration:250, wait:false});
			
			element.addEvent('mouseenter', function(){
				fx.start({
						'color': '#65c5f2'
				});
			});
			
			element.addEvent('mouseleave', function(){
				fx.start({
						'color': '#4e4e4e'
				});
			});
			
		});

		footerright.each(function(element) {
			
			var fx = new Fx.Styles(element, {duration:250, wait:false});
			
			element.addEvent('mouseenter', function(){
				fx.start({
						'color': '#2756b1'
				});
			});
			
			element.addEvent('mouseleave', function(){
				fx.start({
						'color': '#65c5f2'
				});
			});
			
		});

		startlink.each(function(element) {
			
			var fx = new Fx.Styles(element, {duration:250, wait:false});
			
			element.addEvent('mouseenter', function(){
				fx.start({
						'color': '#ffffff'
				});
			});
			
			element.addEvent('mouseleave', function(){
				fx.start({
						'color': '#65c5f2'
				});
			});
			
		});


		});

*/
/*
#####################################################################################
#### TOOLTIP-EINSTELLUNGEN ##########################################################
#####################################################################################
*/
/*
		window.addEvent('domready', function(){

			var Tips2 = new Tips($$('.Tips2'), {
				initialize:function(){
					this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 200, wait: false}).set(0);
				},
				onShow: function(toolTip) {
					this.fx.start(1);
				},
				onHide: function(toolTip) {
					this.fx.start(0);
				}
			});

		}); 

*/
/*
#####################################################################################
#### SIFR-EINSTELLUNGEN #############################################################
#####################################################################################
*/
/*

		if(typeof sIFR == "function"){
			sIFR.replaceElement("h1", "fileadmin/sonnenschutzglas/templates/html/media/trebuchet.swf", "#2756b1", null, null, null, 0, 0, 0, 0);
			sIFR.replaceElement("h2", "fileadmin/sonnenschutzglas/templates/html/media/trebuchet.swf", "#a4a5a6", null, null, null, 0, 0, 0, 0);
			sIFR.replaceElement("h3", "fileadmin/sonnenschutzglas/templates/html/media/trebuchet.swf", "#2756b1", null, null, null, 0, 0, 0, 0, null);
			sIFR.replaceElement("span.ueberschrift", "fileadmin/sonnenschutzglas/templates/html/media/trebuchet.swf", "#ffffff", null, null, null, 0, 0, 0, 0);
		};
*/

}


function winOpen(url) {
// Errechnet Koordinaten, um das Popup zentriert zu platzieren
hoehe = 400;
breite = 500;
links = (screen.width/2)-(breite/2);
oben = (screen.height/2)-(hoehe/2);
window.open(url,"popup","height="+hoehe+",width="+breite+",status = no,toolbar = no,menubar = no,location = no,resizable = yes,titlebar = no,scrollbars =yes,fullscreen = no,top ="+oben+",left ="+links);
}

