
/* Start include files */
/* http://www.naden.de/blog/javascript-include-mit-document-object-model-dom-2 */
function Include( files ) {
	if( files.length == 0 ) {
		return;
	}
	if( !document.createElement ) {
		return;
	}
	for( index in files ) {
		if( '/' + files[ index ][ 0 ] == document.location.pathname || files[ index ][ 0 ] == '' ) {
			var script = document.createElement( 'script' );
			if( script ) {
				script.setAttribute( 'type', 'text/javascript' );
				script.setAttribute( 'src', files[ index ][ 1 ] );
				var head = document.getElementsByTagName( 'head' )[ 0 ];
				if( head ) {
					head.appendChild( script );
				}
			}
		}
	}
}

/* Aufruf der Include-Funktion.
 * Ist das Erste Feld ein leerer String '', dann wird immer included.
 * Beispiel: [ '', 'datei.js' ]
 * */
Include( [
	[ '', '/resources/dsk/js/partnerSlider.js' ],
] );
/* END include files */

