/*
Javascript Library
Version 1.03
Copyright by Net Communication Management
Alle projekt spezifischen js funktionen werden in diese js libary verpackt.

onDomReady (wird vor onDomReady aufgerufen)
@projectDescription wird onDomReady aufgerufen, Beinhaltet die Anweisungen die beim onLoad ausgeführt werden sollen.
*/

	var headlines = { src: '/flash/sifr.swf' };
	sIFR.activate(headlines);
	// mehrere headlines activieren: sIFR.activate(headlines, headlines1, headlines2);
	//if($$('h1')){
		sIFR.replace(headlines, {
		  selector: 'h1',
		  css: {'.sIFR-root': { 'color': '#969696' }, "a": {"color": "#969696"}},
		  wmode: 'transparent'
		});
	//}
	sIFR.replace(headlines, {
	  selector: '#submenucaption',
	  css: {'.sIFR-root': { 'color': '#333333' }, "a": {"color": "#333333", "text-decoration": "none"}, "a:hover": {"color": "#333333"}},
	  wmode: 'transparent'
	});
	/* sIFR.replace(headlines, {
	  selector: '#quickright h3',
	  css: {'.sIFR-root': { 'color': '#333333' }, "a": {"color": "#333333", "text-decoration": "none"}, "a:hover": {"color": "#333333"}},
	  wmode: 'transparent'
	}); */

window.addEvent('domready', function(){	
	/* parse external links */
	$$('a[rel="external"]').addEvent('click', function(){
		window.open(this.href, '_blank'); return false;
	});
	
	
	var initMultiBox = new multiBox('versenden', {
			descClassName: 'multiBoxDesc',//the class name of the description divs
			path: './Files/',//path to mp3 and flv players
			useOverlay: true,//use a semi-transparent background. default: false;
			maxWidth: false,//max width (set to false to disable)
			maxHeight: false,//max height (set to false to disable)
			addDownload: false,//do you want the files to be downloadable?
			pathToDownloadScript: './Scripts/forceDownload.asp',//if above is true, specify download script
			addRollover: false,//add rollover fade to each multibox link
			addOverlayIcon: false,//adds overlay icons to images within multibox links
			addChain: true,//cycle through all images fading them out then in
			recalcTop: true//subtract the height of controls panel from top position
		});
	

	/* Kalender */
	/*$each($$('#qanfrage input[type=text]'), function(el,i){
		el.kalender = new Calender(new Element('div').addClass('jscalender').setProperty('id','q_jscalender'+i).inject(el.getParent().getParent()),lang);
		el.kalender.callBackFunction = function(t,m,j){
			el.setProperty('value', t+'.'+m+'.'+j);
			this.hide();
		};
		el.addEvent('click', function(){
			this.kalender.show();
		});
	});*/
	
	/*if($$('.mb').length > 0){
		var initMultiBox = new multiBox('mb', {
			descClassName: 'multiBoxDesc',//the class name of the description divs
			path: './Files/',//path to mp3 and flv players
			useOverlay: true,//use a semi-transparent background. default: false;
			maxWidth: false,//max width (set to false to disable)
			maxHeight: false,//max height (set to false to disable)
			addDownload: false,//do you want the files to be downloadable?
			pathToDownloadScript: './Scripts/forceDownload.asp',//if above is true, specify download script
			addRollover: true,//add rollover fade to each multibox link
			addOverlayIcon: true,//adds overlay icons to images within multibox links
			addChain: true,//cycle through all images fading them out then in
			recalcTop: true//subtract the height of controls panel from top position
		});
	};*/
	
});
/*
Flash Healdine 3.0
Kommt in die extend.js vor dem domready aufruf
 */





