// LISTS function handlerror(){ void(0); return false; } onerror = handlerror; function add_list_fx(header_id, container_id){ var listfx = new Fx.Height(container_id, {duration:750, onComplete: function(){ initialize: fix_height(); }}); listfx.hide(); $(header_id).onclick = function(){ initialize: { listfx.toggle(); } } } function list_mouseover(id){ $(id).setStyle('cursor', 'pointer'); var fx1 = new Fx.Color(id, 'background-color', {duration:300}); fx1.custom('FFFFFF','909090'); } function list_mouseout(id){ $(id).setStyle('background-color','#525252'); setTimeout("$('"+id+"').setStyle('background-color','#525252');", 350); } function item_mouseover(id){ $(id).setStyle('cursor', 'pointer'); var fx1 = new Fx.Color(id, 'background-color', {duration:300}); fx1.custom('FFFFFF','909090'); } function item_mouseout(id, type){ if(type == "dark"){ $(id).setStyle('background-color','#3F3F3F'); setTimeout("$('"+id+"').setStyle('background-color','#3F3F3F');", 350); } else if(type == "light") { $(id).setStyle('background-color','#525252'); setTimeout("$('"+id+"').setStyle('background-color','#525252');", 350); } else if(type == "red") { $(id).setStyle('background-color','#ff0000'); setTimeout("$('"+id+"').setStyle('background-color','#ff0000');", 350); } } function containsDOM (container, containee) { var isParent = false; do { if ((isParent = container == containee)) break; containee = containee.parentNode; } while (containee != null); return isParent; } function checkMouseEnter(element, evt) { if(evt){ if (element.contains && evt.fromElement) { return !element.contains(evt.fromElement); } else if (evt.relatedTarget) { return !containsDOM(element, evt.relatedTarget); } } } function checkMouseLeave(element, evt) { if(evt){ if (element.contains && evt.toElement) { return !element.contains(evt.toElement); } else if (evt.relatedTarget) { return !containsDOM(element, evt.relatedTarget); } } } function fix_height(){ if(!$('content_full')){ h = Math.max($('content_left').offsetHeight, $('content_right').offsetHeight); h = Math.max(h, $('site').offsetHeight - 172); h = Math.max(h, $('bg_fade2').offsetHeight + 172); $('bg').style.height = h + 172 + "px"; } else { h = Math.max($('content_full').offsetHeight, $('site').offsetHeight - 172); h = Math.max(h, $('site').offsetHeight - 172); h = Math.max(h, $('bg_fade2').offsetHeight + 172); $('bg').style.height = h + 202 + "px"; } $('footer').style.top = h + 172 + "px"; $('bg_fade_fill').style.height = h - 280 + "px"; } function fix_height_zb(){ if(!$('content_full')){ h = Math.max($('content_left').offsetHeight, $('content_right').offsetHeight); h = Math.max(h, $('site').offsetHeight - 172); h = Math.max(h, $('bg_fade2').offsetHeight + 172); $('bg').style.height = h + 202 + "px"; } else { h = Math.max($('content_full').offsetHeight, $('site').offsetHeight - 172); h = Math.max(h, $('site').offsetHeight - 172); h = Math.max(h, $('bg_fade2').offsetHeight + 172); $('bg').style.height = h + 202 + "px"; } $('footer').style.top = h + 172 + "px"; $('bg_fade_fill').style.height = h - 310 + "px"; } // PLAYER function load_player(playlist, with_playlist, autostart){ if(!autostart){ autostart = false; } if(with_playlist){ var FU = { movie:"http://www.berkmusic.nl/swf/mediaplayer.swf",width:"338",height:"404",majorversion:"7",build:"0",bgcolor:"#000000",wmode:"transparent",flashvars:"file=" + escape(playlist) + "&shuffle=false&overstretch=none&repeat=true&displayheight=325&showdigits=true&autostart="+autostart+"&lightcolor=0x525252&backcolor=0x000000&frontcolor=0xffffff" }; } else { var FU = { movie:"http://www.berkmusic.nl/swf/mediaplayer.swf",width:"338",height:"344",majorversion:"7",build:"0",bgcolor:"#000000",wmode:"transparent",flashvars:"file=" + escape(playlist) + "&shuffle=false&overstretch=none&repeat=true&showdigits=true&autostart=="+autostart+"&lightcolor=0x525252&backcolor=0x000000&frontcolor=0xffffff" }; } UFO.create( FU, "player"); } // MENU var menu_opened_id = ''; var menu_status = new Array(); var menu_fx = new Array(); function add_menu_fx(menu_id, submenu_id){ if(submenu_id){ var fx = new Fx.Height(submenu_id, {duration:350, onComplete: function(){ }}); fx.hide(); fx.submenu_id = submenu_id; menu_status[submenu_id] = 0; $(menu_id).onmouseover = function(){ initialize: { for(i=0;i