var html = "";

if (typeof(nwb_type) == 'undefined'){
var nwb_type = 'dflt';
}

var stype = (nwb_type != "") ? nwb_type : "dflt" ;

//section array avec toute les propriété pour chacunes des barres de recherches
var type_config = new Array();

type_config['dflt'] = new Array();
type_config['dflt']['id'] = 'nwsb_default_fr';

type_config['newd'] = new Array();
type_config['newd']['id'] = 'nwsb_newd';

type_config['longnew'] = new Array();
type_config['longnew']['id'] = 'nwsb_longnew';

document.write('<link rel="StyleSheet" href="http://static.search.canoe.ca/s-toile/img/css/network_searchbar.css" />');

html += '<div id='+type_config[stype]['id']+'>'+
'<form name="seek" action="http://www.toile.com/search?" method="get" target="_top">'+
'<span class="title">Recherche :</span> '+
'<input type="text" class="text" name="q"/>'+
'<input type="image" class="go_btn" src="http://static.search.canoe.ca/s-toile/img/network_searchbar/bt_go_recherche.gif" />';

if (stype == 'dflt' || stype == 'newd'){
	html += '<br/>';
}

html += '<input type="radio" class="radio_ctw" name="sen" value="act" id="act"><label class="radio_ctw" for="act"> Canoë</label>'+
'<input type="radio" class="radio_ctw" name="sen" value="tle" id="tle"><label class="radio_ctw" for="tle"> La Toile du Québec</label>'+
'<input type="radio" class="radio_ctw" name="sen" value="yahoo" id="yahoo" checked="checked"><label class="radio_ctw" for="yahoo"> Web</label>'+
'<input type="hidden" name="ie" value="iso-8859-1"/>'+
'</form>'+

'</div>';

document.write(html);
