///////////////////////////////////////////////////////////////////////////
// Bloc de recherche dictionnaire-japonais.com V2.0
// Dictionnaire-japonais.com © 2008
// Guillaume Chasleries © 2008
///////////////////////////////////////////////////////////////////////////
// style par défault :
// <script type="text/javascript" src="http://www.dictionnaire-japonais.com/externForms/bloc.js"></script>
//
// styles perso via classes :
// <script type="text/javascript">
// 	nichifutsu = new Object();
// 	nichifutsu.useClasses = true;
// </script>
// <script type="text/javascript" src="http://www.dictionnaire-japonais.com/externForms/bloc.js"></script>
//
// styles perso via script : 
// <script type="text/javascript">
// 	nichifutsu = new Object();
// 	nichifutsu.headerStyle = "background:#008800;height:50px;";
// 	nichifutsu.footerStyle = "border:3px solid #000;";
// </script>
// <script type="text/javascript" src="http://www.dictionnaire-japonais.com/externForms/bloc.js"></script>
//
////////////////////////////////////////////////////////////////////////////

var html = "";

var defaultStyle = new Object();
	defaultStyle.bodyStyle			= "font-family:Arial, Helvetica, sans-serif;font-size:11px;width:200px;border:1px solid #333;";
	defaultStyle.headerStyle 		= "background:#740000 url(header.png) no-repeat top left;height:16px;overflow:hidden;font-size:9px;text-align:right;color:#FFF;padding:4px 5px 0 0;";
	defaultStyle.innerStyle 		= "padding:3px;";
	defaultStyle.innerTextStyle 	= "font-size:10px;color:#333;border:1px solid #333;width:117px;";
	defaultStyle.innerInputStyle 	= "font-size:10px;background:#333;color:#FFF;border:1px solid #666;width:70px;";
	defaultStyle.footerStyle 		= "padding:3px;font-size:9px;background:#333;color:#7F7F7F;text-align:center;";
	defaultStyle.footerLinkStyle	= "color:#7F7F7F;text-decoration:none;";


if(typeof(nichifutsu)!="undefined"){
	if(nichifutsu.useClasses != true){
		nichifutsu.useClasses = false;
		if(typeof(nichifutsu.bodyStyle) == "undefined")  nichifutsu.bodyStyle = defaultStyle.bodyStyle;
		if(typeof(nichifutsu.headerStyle) == "undefined")  nichifutsu.headerStyle = defaultStyle.headerStyle;
		if(typeof(nichifutsu.innerStyle) == "undefined")  nichifutsu.innerStyle = defaultStyle.innerStyle;
		if(typeof(nichifutsu.innerTextStyle) == "undefined")  nichifutsu.innerTextStyle = defaultStyle.innerTextStyle;
		if(typeof(nichifutsu.innerInputStyle) == "undefined")  nichifutsu.innerInputStyle = defaultStyle.innerInputStyle;
		if(typeof(nichifutsu.footerStyle) == "undefined")  nichifutsu.footerStyle = defaultStyle.footerStyle;
		if(typeof(nichifutsu.footerLinkStyle) == "undefined")  nichifutsu.footerLinkStyle = defaultStyle.footerLinkStyle;
	}else{
		nichifutsu.bodyStyle		= 
		nichifutsu.headerStyle 		= 
		nichifutsu.innerStyle 		= 
		nichifutsu.innerTextStyle 	= 
		nichifutsu.innerInputStyle 	= 
		nichifutsu.footerStyle 		= 
		nichifutsu.footerLinkStyle	= null;	
	}
}else{
	//pas de personalisation
	nichifutsu = new Object();
	nichifutsu.useClasses 		= false;
	nichifutsu.bodyStyle		= defaultStyle.bodyStyle;
	nichifutsu.headerStyle 		= defaultStyle.headerStyle;
	nichifutsu.innerStyle 		= defaultStyle.innerStyle ;
	nichifutsu.innerTextStyle 	= defaultStyle.innerTextStyle;
	nichifutsu.innerInputStyle 	= defaultStyle.innerInputStyle;
	nichifutsu.footerStyle 		= defaultStyle.footerStyle;
	nichifutsu.footerLinkStyle	= defaultStyle.footerLinkStyle;
}

//le style :
if(nichifutsu.useClasses == false){
html += "<style type=\"text/css\">";
html += "	#nichifutsu{";
html += 	nichifutsu.bodyStyle;
html += "	}";
html += "	#nichifutsu .nichifutsu_header{";
html += 	nichifutsu.headerStyle;
html += "	}";
html += "	#nichifutsu .nichifutsu_inner{";
html += 	nichifutsu.innerStyle;
html += "	}";
html += "	#nichifutsu .nichifutsu_inner .nichifutsu_text{";
html += 	nichifutsu.innerTextStyle;
html += "	}";
html += "	#nichifutsu .nichifutsu_inner .nichifutsu_input{";
html += 	nichifutsu.innerInputStyle;		
html += "	}";
html += "	#nichifutsu .nichifutsu_footer{";
html += 	nichifutsu.footerStyle;		
html += "	}";
html += "	#nichifutsu .nichifutsu_footer a:link,";
html += "	#nichifutsu .nichifutsu_footer a:visited{";
html += 	nichifutsu.footerLinkStyle;		
html += "	}	";
html += "</style>";
}

//le bloc HTML

html += "<form 	action=\"http://www.dictionnaire-japonais.com/rechercher.php?search=1\" ";
html += "		method=\"post\" ";
html += "		target=\"_blank\" ";
html += "		 accept-charset=\"utf-8\" >";
html += "<div id=\"nichifutsu\">";
html += "	<div class=\"nichifutsu_header\">dictionnaire de japonais</div>	";
html += "	<div class=\"nichifutsu_inner\">";
html += "	<input type=\"hidden\" name=\"jpIN\" 		value=\"1\" />";
html += "	<input type=\"hidden\" name=\"frIN\" 		value=\"1\" />";
html += "	<input type=\"hidden\" name=\"romajiIN\" 	value=\"1\" />";
html += '   <input id="siteRef" name="siteRef" type="hidden" value="'+window.location.href+'" />';
html += "	<lable>Rechercher dans le dictionnaire :</label>";
html += "	<input type=\"text\" name=\"mot\" class=\"nichifutsu_text\" />";
html += "	<input type=\"submit\" class=\"nichifutsu_input\" value=\"rechercher\" />";
html += "	</div>";
html += "	<div class=\"nichifutsu_footer\">";
html += "		<a href=\"http://www.dictionnaire-japonais.com\" target=\"_blank\" title=\"dictionnaire de japonais en ligne\">Dictionnaire-japonais.com © 2008</a>";
html += "	</div>";
html += "</div>";
html += "</form>";
	
document.write(html);
	