var browser_type=navigator.appName
   var browser_version=parseInt(navigator.appVersion)
   
   if (browser_type=="Microsoft Internet Explorer"&&browser_version>=4)   {
      document.write("<style type='text/css'>.tekst { height : 220px;}</style>");
      document.write("<style type='text/css'>#content { height : 415px;}</style>");
   }
   window.onload = function() {
		setFooter();
	}
	window.onresize = function() {
		setFooter();
	}
	
	
		    
function open_image(image_name, wi, hi)   {

   c = (wi*1)+70;
	d = (hi*1)+165;
	LeftPosition = (screen.width) ? (screen.width-c)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-d)/2 : 0;
	opties = 'scrollbars=yes, resizable=no,width='+c+',height='+d+',top='+TopPosition+',left='+LeftPosition;
	win = window.open(image_name, 'NewWin', opties);


}

function open_options(artikelid)   {
   c = (600*1)+50;
	d = (350*1)+50;
	LeftPosition = (screen.width) ? (screen.width-c)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-d)/2 : 0;
	opties = 'scrollbars=yes, resizable=no,width='+c+',height='+d+',top='+TopPosition+',left='+LeftPosition;
	win = window.open('show.php?rest=art_info&id='+artikelid, 'NewWin', opties);


}

function open_aanbieding(file_name)   {

   c = (500*1)+50;
	d = (500*1)+50;
	LeftPosition = (screen.width) ? (screen.width-c)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-d)/2 : 0;
	opties = 'scrollbars=yes, resizable=yes,width='+c+',height='+d+',top='+TopPosition+',left='+LeftPosition;
	win = window.open('../aanbiedingen/'+file_name, 'NewWin', opties);


}

function open_window(file_name)   {
	opties = 'scrollbars=no, resizable=no,width=200px,height=200px';
	win = window.open(file_name, 'NewWin', opties);
}


function open_search()   {
  document.getElementById("search_div").style.visibility="visible"
}

function getWindowHeight() {
			var windowHeight = 0;
			if (typeof(window.innerHeight) == 'number') {
				windowHeight = window.innerHeight;
			}
			else {
				if (document.documentElement && document.documentElement.clientHeight) {
					windowHeight = document.documentElement.clientHeight;
				}
				else {
					if (document.body && document.body.clientHeight) {
						windowHeight = document.body.clientHeight;
					}
				}
			}
			return windowHeight;
		}
		
function setFooter() {
	if (document.getElementById) {
		var windowHeight = getWindowHeight();
		if (windowHeight > 0) {
		   var height = windowHeight - 123 - 80;
		   var sub_height = height - 7;
		    document.getElementById('container').style.height = height + 'px';
		    document.getElementById('sub_container').style.height = sub_height + 'px';

		} 
	}


}

function go_to(Id)   {
   self.location="?go_to=" + Id;
}

		
