<!--

function show_id(object_id){
	var el = document.getElementById(object_id).style.display = 'block'; 
}

function hide_id(object_id){
	var el = document.getElementById(object_id).style.display = 'none'; 
}

function get_id(object_id){
	return document.getElementById(object_id); 
}

function popupwin(datei,x,y) { 
	window.open(datei,'','width='+x+',height='+y+',scrollbars=yes,resizable=yes') 
}

function getWinSize(win) {
	if(!win) win = window;
	var s = new Object();
    
	if(typeof win.innerWidth != 'undefined') {
        s.width = win.innerWidth;
        s.height = win.innerHeight;
    } else {
        var obj = getBody(win);
        s.width = parseInt(obj.clientWidth);
        s.height = parseInt(obj.clientHeight);
    }
    
	return s;
}

function getBody(w) {
    return (w.document.compatMode && w.document.compatMode == "CSS1Compat") ? w.document.documentElement : w.document.body || null;
} 

function margeGallery(this_max, id) {
	window.setTimeout(function() {
		images = document.getElementsByName("Gallery-" + id);
				
		for(x = 0; x < images.length; x++) {
			if(images[x].offsetHeight < this_max) {
				margin_top = (this_max - images[x].offsetHeight) / 2;
				margin_bottom = ((this_max - images[x].offsetHeight) / 2) + 10;
			} else {
				margin_top = 0;
				margin_bottom = 10;
			}
				
			images[x].style.marginTop = margin_top + "px";
			images[x].style.marginBottom = margin_bottom + "px";
		}
	}, 300);
}

function margeProducts(this_max, id) {
	window.setTimeout(function() {
		div = document.getElementsByName("Product-" + id);
		
		for(x = 0; x < div.length; x++) {
			if(div[x].offsetHeight < this_max) {
				margin_top = this_max - div[x].offsetHeight;
			} else {
				margin_top = 0;
			}
				
			div[x].style.marginTop = margin_top + "px";
		}
	}, 300);
}

function moveTitle(id) {
	gallery_title = document.getElementById("Title-" + id);
	gallery_title.style.marginLeft = (234 - (gallery_title.offsetWidth/2)) + "px";
}

-->
