function get_reference(id) { if( document.getElementById ) { // dom compat return document.getElementById(id); } if( document.all ) { // ie4 return document.all[id]; } if( document.layers ) { // ns layers return document.layers[id]; } if( document[id] ) { // ns alt (webtv) return document[id]; } return false; } function swap_img(id,url){ img=get_reference(id); img.setAttribute("src",url); return false; } function move_layer() { var pixel = document.childNodes ? 'px' : 0; layer_ref=get_reference('f288446'); if( layer_ref.style ) { style_ref = layer_ref.style; } if(style_ref.left != ('10'+pixel)) { style_ref.left = ( parseInt(style_ref.left) + 180 ) + pixel; setTimeout("move_layer()", 50); } } function show_layer() { layer_ref=get_reference('f288446'); if( layer_ref.style ) { style_ref = layer_ref.style; } if( !layer_ref ) { return false; // nix :( } if( layer_ref.style ) { // dom compat layer_ref.style.visibility = 'visible'; } else { if( layer_ref.visibility ) { // ns layer_ref.visibility = 'show'; } else { return false; // schon wieder nix :( } } move_layer(); return true; } function hide_layer(action) { var pixel = document.childNodes ? 'px' : 0; layer_ref=get_reference('f288446'); swap_img('adframe','http://media.ohost.de/adjsc4.php?bid=56062481'); //adframe.location.replace = 'http://www.ohost.de/media/adjsc.php?bid=56062481'; if(action==1) { open("http://partners.webmasterplan.com/click.asp?ref=106897&site=2807&type=b13&bnb=13&subid=2000", "ohost_layer", "resizable=yes, scrollbars=yes, menubar=yes, toolbar=yes, status=yes, location=yes,width=800"); } if( layer_ref.style ) { style_ref = layer_ref.style; } layer_ref.style.visibility = 'hidden'; if( !layer_ref ) { return false; // nix :( } style_ref.left = -1000 + pixel; if( layer_ref.style ) { // dom compat layer_ref.style.visibility = 'hidden'; } else { if( layer_ref.visibility ) { // ns layer_ref.visibility = 'hide'; } else { return false; // schon wieder nix :( } } } function init_layer() { var pixel = document.childNodes ? 'px' : 0; layer_ref=get_reference('f288446'); if( layer_ref.style ) { style_ref = layer_ref.style; } style_ref.left = -1070 + pixel; setTimeout("show_layer()", 8000); return false; } document.open(); document.write(''); document.close(); init_layer();