var url = 'http://rss.bildungsklick.de/ticker/bildungsnachrichten_js';
var added = false;

function add_to_url(key,value)
{
  if( ! value )
  {
    return;
  }
  if( added )
    url += "&"+escape(key)+"="+escape(value);
  else
  {
    added = true
    url += "?"+escape(key)+"="+escape(value);
  }
}

w = window;

add_to_url( 'BILDUNGSKLICK_WIDTH', w.BILDUNGSKLICK_WIDTH );
add_to_url( 'BILDUNGSKLICK_FONT_SIZE', w.BILDUNGSKLICK_FONT_SIZE );

add_to_url( 'BILDUNGSKLICK_COLOR_BORDER', w.BILDUNGSKLICK_COLOR_BORDER );
add_to_url( 'BILDUNGSKLICK_COLOR_LINK', w.BILDUNGSKLICK_COLOR_LINK );
add_to_url( 'BILDUNGSKLICK_COLOR_BG', w.BILDUNGSKLICK_COLOR_BG );

add_to_url( 'BILDUNGSKLICK_ANZAHL_MELDUNGEN', w.BILDUNGSKLICK_ANZAHL_MELDUNGEN );
add_to_url( 'BILDUNGSKLICK_TOPIC_NAME', w.BILDUNGSKLICK_TOPIC_NAME );
add_to_url( 'BILDUNGSKLICK_RESSORT_NAME', w.BILDUNGSKLICK_RESSORT_NAME );
add_to_url( 'BILDUNGSKLICK_TOPMELDUNGEN', w.BILDUNGSKLICK_TOPMELDUNGEN );
add_to_url( 'BILDUNGSKLICK_CHARSET', w.BILDUNGSKLICK_CHARSET );
add_to_url( 'BILDUNGSKLICK_UEBERSCHRIFT', w.BILDUNGSKLICK_UEBERSCHRIFT );
add_to_url( 'BILDUNGSKLICK_CORNELSEN_DIDACTA', w.BILDUNGSKLICK_CORNELSEN_DIDACTA );

//alert( url );

document.writeln( '<script type="text/javascript" src="'+url+'">' )
document.writeln( '</script>' );
