function addOptionProvider() {
	window.external.AddSearchProvider("http://www.izito.com/Addons/Includes/xml/izito_com.xml");
	closeOptionProvider();
	return false;
}
function closeOptionProvider() {
	document.getElementById('addsearch').style.display = 'none';
	document.cookie = "izito_ie7top=hidden; expires=Thu, 2 Aug 2500 20:47:11 UTC; path=/; domain=.izito.com;";
}

$(document).ready( function() {
	if (window.external && ("AddSearchProvider" in window.external)) {
		if (!window.external.IsSearchProviderInstalled('http://www.izito.com/') && document.cookie.indexOf("izito_ie7top") == -1) {
			var pluginHTML = '<div id="addsearch">'
			+'<div style="background:url(http://images.izito.com/v2/open_search_v2.png) no-repeat;font:12px arial;color:#005aab">'
			+'<a href="#" style="color:#005aab;text-decoration:none;display:block;cursor:pointer;height:32px;width:152px;padding:18px 10px 24px 15px;" onclick="addOptionProvider();n(this, \'searchplugin\'); return false;">'
			+'Add iZito to<br />'
			+(BrowserDetect.browser == "Explorer" ? 'the Internet Explorer.' : 'the Firefox browser.');
			+'</a></div></div>';
			
			if ( $('#right').length ) {
				$('#right').append( pluginHTML );
				$('#addsearch').css( { margin: '16px auto 0 auto', width: '180px'  } );
			} else {
				$('body').prepend( pluginHTML );
				$('#addsearch').css( { position: 'absolute', top: '5px', right: '68px', width: '180px', display: 'block' } );
			}
		}
	}
} );	

