// var sliding_img_list = new Array(); var sliding_imgs_nr = 6; var this_slide_img = 1; sliding_img_list[0] = '../images/sliding/07a_w.jpg'; sliding_img_list[1] = '../images/sliding/isolde_tw5.jpg'; sliding_img_list[2] = '../images/sliding/Soziela_alpin05_ast (93)tw.jpg'; sliding_img_list[3] = '../images/sliding/Ponza_Mi_tw.jpg'; sliding_img_list[4] = '../images/sliding/Broschu_SC Gherdeina1w.jpg'; sliding_img_list[5] = '../images/sliding/kelder.christina_tw.jpg'; sliding_img_list[6] = '../images/sliding/Senoner_Catherin4_ast_tw.jpg'; preload_images('../images/sliding/07a_w.jpg', '../images/sliding/isolde_tw5.jpg', '../images/sliding/Soziela_alpin05_ast (93)tw.jpg', '../images/sliding/Ponza_Mi_tw.jpg', '../images/sliding/Broschu_SC Gherdeina1w.jpg', '../images/sliding/kelder.christina_tw.jpg', '../images/sliding/Senoner_Catherin4_ast_tw.jpg'); window.setInterval("sliding()", 4000); function sliding() { if (!document.images) { return; } document.slideimg.src = sliding_img_list[this_slide_img]; this_slide_img++; if (this_slide_img > sliding_imgs_nr) this_slide_img = 0; } function openewin(file,title,width,height,left,top,sb) { window.open(file,title,'hotkey=no,toolbar=no,location=no,status=no,directories=no,menubar=no,scrollbars='+sb+',resizable=no,width='+width+',height='+height+',dependent=yes,left='+left+',top='+top); } function preloadImagesA() { if (document.images) { if (typeof(document.LI) == 'undefined') { document.LI = new Object(); } document.LI.loadedImagesA = new Array(); var argLength = preloadImagesA.arguments.length; number = 1; for(arg = 0; arg < argLength; arg++) { document.LI.loadedImagesA[number] = new Image(); document.LI.loadedImagesA[number].src = preloadImagesA.arguments[arg]; number++; } } } function preloadImagesI() { if (document.images) { if (typeof(document.LI) == 'undefined') { document.LI = new Object(); } document.LI.loadedImagesI = new Array(); var argLength = preloadImagesI.arguments.length; number = 1; for(arg = 0; arg < argLength; arg++) { document.LI.loadedImagesI[number] = new Image(); document.LI.loadedImagesI[number].src = preloadImagesI.arguments[arg]; number++; } } } function change_season (primary_link, new_attribute, value_name) { thisElementID = document.getElementById(value_name); window.location.href = 'index.php'+primary_link+'&'+new_attribute+'='+thisElementID.value; } // decode email-addresses function sendmail(address) { var cc = 0; var result = ''; for(var i = 0; i < address.length; i++) { cc = address.charCodeAt(i); if (cc >= 8364) cc = 128; if (cc == 169) { //result += String.fromCharCode(39); } else { result += String.fromCharCode(cc - 3); } } location.href = 'mailto:'+result; //alert(result); } function onPageLoad() { if (document.getElementById('mrctitle')) document.getElementById('mrctitle').focus(); if (document.getElementById('gbname')) document.getElementById('gbname').focus(); if (document.getElementById('reget_email')) document.getElementById('reget_email').focus(); if (document.getElementById('msgcontent'))document.getElementById('msgcontent').focus(); if (document.getElementById('phone')) { if (document.getElementById('phone').value == '') document.getElementById('phone').focus(); } if (document.getElementById('email')) { if (document.getElementById('email').value == '') document.getElementById('email').focus(); } if (document.getElementById('subject')) { if (document.getElementById('subject').value == '') document.getElementById('subject').focus(); } if (document.getElementById('name')) { if (document.getElementById('name').value == '') document.getElementById('name').focus(); } if (document.getElementById('mrcname')) document.getElementById('mrcname').focus(); if (document.getElementById('code')) document.getElementById('code').focus(); if (document.getElementById('mrc_loginemail')) document.getElementById('mrc_loginemail').focus(); if (document.getElementById('imagetoupload')) document.getElementById('imagetoupload').focus(); } function deleteinserzione (link, lang) { if (lang == 'it') { Check = confirm("Sei sicuro di voler cancellare questa inserzione?"); } else { Check = confirm("Bist Du sicher diesen Eintrag löschen zu wollen?"); } if(Check != false) window.location.href = link; } function deleteimage (link, lang) { if (lang == 'it') { Check = confirm("Sei sicuro di voler cancellare questa immagine?"); } else { Check = confirm("Bist Du sicher dieses Bild löschen zu wollen?"); } if(Check != false) window.location.href = link; } function changeimgselect (userid) { thisSelect = document.getElementById('mrcimages[]'); thisPreview = document.getElementById('imagepreview'); var thisitem = thisSelect.selectedIndex; thisPreview.src = 'get_image.php?image=../mimages/'+userid+thisSelect.options[thisitem].value+'&height=96'; } function showimgpopup (source, width, height) { newwin = window.open( 'imgpopup.php?image='+source, 'imgpopup', 'hotkey=no,toolbar=no,location=no,status=no,directories=no,menubar=no,scrollbars=no,resizable=no,width='+width+',height='+height+',dependent=yes,left=100,top=50'); } function preload_images() { if (document.images) { if (typeof(document.LI) == 'undefined') { document.LI = new Object(); } document.LI.loaded_images = new Array(); var argLength = preload_images.arguments.length; number = 1; for(arg = 0; arg < argLength; arg++) { document.LI.loaded_images[number] = new Image(); document.LI.loaded_images[number].src = preload_images.arguments[arg]; number++; } } } // (C) 2000 www.CodeLifter.com // http://www.codelifter.com // Free for all users, but leave in this header // NS4-6,IE4-6 // Fade effect only in IE; degrades gracefully var stopstatus = 0; // Set slideShowSpeed (milliseconds) var slideShowSpeed = 5000; // Duration of crossfade (seconds) var crossFadeDuration = 3; // Specify the image files var Pic = new Array(); var Didascila = new Array(); // to add more images, just continue // the pattern, adding to the array below // auto generating images from dbase