var winScroller; var screen_width; var screen_height; var ajaxcounter = 0; var fixed = 0; // setup viewports function fix(){ // resize content container if($('container')){ var containermargin = $('container').getStyle("marginTop").toInt(); } else { var containermargin = 0; } /* if($defined($('content_container'))){ if($('content_container').scrollHeight.toInt()+0 < document.body.clientHeight.toInt()){ containermargin = 0; $('container').setStyle("marginTop", 0+"px"); } } */ // resize content container $('content').setStyle('height', Math.max(document.body.clientHeight-containermargin, 370 + (230 - containermargin))+"px"); if(document.body.clientHeight < 600){ $('html').setStyle('overflow', 'auto'); } else { $('html').setStyle('overflow', 'hidden'); } if(fixed == 0){ // resize beeld container $('beeldenpark').setStyle('width', Math.max(screen_width, 941)+"px"); $('beeldenpark').setStyle('height', Math.max(document.body.clientHeight, 600)+"px"); $('beeldenpark').setStyle('margin-left', Math.max(941, Math.min(screen_width-51, 1100))+"px"); // resize internal beeld $('image').setStyle('width', $('beeldenpark').offsetWidth+"px"); $('image').setStyle('height', $('beeldenpark').offsetHeight+"px"); } fixed = 1; } function getScreenSize() { if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { screen_width = document.documentElement.clientWidth; screen_height = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { screen_width = document.body.clientWidth; screen_height = document.body.clientHeight; } } function pngfix(){ var arVersion = navigator.appVersion.split("MSIE") var version = parseFloat(arVersion[1]) if ((version >= 5.5) && (document.body.filters)) { for(var i=0; i" img.outerHTML = strNewHTML i = i-1 } } } } // scroll viewports function scroll_beeldenpark(){ winScroller.toElement($('beeldenpark')); } function scroll_website(){ winScroller.toElement($('website')); } // content loading function loadDiv(in_div, in_url, in_menusection, in_subsection){ $(in_div).setHTML('
'); if(in_menusection){ menu_set(in_menusection, in_subsection); } myajax = new Ajax('http://www.odapark.nl/page=site.'+in_url, {evalScripts: true, onComplete: function(){ initDiv(in_div); }, update: in_div, autoCancel: true}); myajax.request(); ajaxcounter++; } function loadPage(in_url, in_menusection, in_subsection){ location.href = 'http://www.odapark.nl/page=site.loadpage/url='+in_url+'/menusection='+in_menusection+'/subsection='+in_subsection; } function search(){ // close all sections var menus = $ES(".menu_main_image"); for(i=0;i