function catalogue_height () 
	{
	if(window.innerHeight) 
		{ display_height = window.innerHeight; }
	else if(document.body.clientHeight) 
		{ display_height = document.body.clientHeight; }
	else 
		{ display_height = 1024; }
	desired_height = display_height - 30;
	return desired_height.toString() + 'px';
	}
	
function IEfix()
	{
	var ver = navigator.appVersion;
    var el = document.getElementById('ecpaper');
	var barH = 30; // Height of bottom bar, in pixels
	
	if(ver.indexOf('MSIE') != -1)
		{
		var attrH = document.documentElement.clientHeight;
		if ( attrH != 'undefined' && attrH > 0 )
			{
			newH = attrH - barH;
			el.style.height = newH + 'px';
			
/*			if(ver.indexOf('MSIE 6.0') != -1) 
				{
			    var el2 = document.getElementById('horizont-menu');
			    el2.style.bottom = '-15px';
			    }*/
			}
		}  
	}
	
	function getFlashMovieObject(movieName) {
		if (window.document[movieName]) {
			return window.document[movieName];
			}
		if (navigator.appName.indexOf("Microsoft Internet")==-1) {
		if (document.embeds && document.embeds[movieName])
		  return document.embeds[movieName]; 
			} else {
			return document.getElementById(movieName);
				}
			}

	function doSearch(arg) 
		{
		var book = getFlashMovieObject("ecpaper");
		book.SetVariable("externalsearch",encodeURI(arg));
		book.SetVariable("externalsearchText",arg);					
		}
