var now_playing_id = ''; aSources = new Array(); aSources[0] = "../images/poly_stop.gif"; aSources[1] = "../images/mono_stop.gif"; aSources[2] = "../images/real_stop.gif"; aSources[3] = "../images/true_stop.gif"; aSources[4] = "../images/poly40_stop.gif"; aImages = new Object(); for (iImage = 0; iImage < aSources.length; iImage++) { aImages[iImage] = new Image(); aImages[iImage].src = aSources[iImage]; } function siteSearch() { formOK = true; f = document.forms['fFind']; if (formOK == true && f.selectCat.value == '') { formOK = false; } if (formOK == true && f.keyWord.value == '') { formOK = false; } if (formOK == true) { loc = f.selectCat.value + '?q=' + f.keyWord.value; self.location = loc; } } function mKp() { if (window.event.keyCode == 13) { siteSearch(); } return false; } function send_feedback() { if (document.getElementById('comment').value != '') { document.form1.submit(); } } function changeCat(sUrl) { if (sUrl != "none") { document.location.href = sUrl; } } function playPreview (sType, file, id) { var sPlayer = ''; var go = true; var sThisPlayIcon; // Set play icon if (14 == sType) { sThisPlayIcon = 'poly'; } else if (2 == sType) { sThisPlayIcon = 'mono'; } else if (25 == sType) { sThisPlayIcon = 'real'; } else if (34 == sType) { sThisPlayIcon = 'poly40'; } else if (52 == sType) { sThisPlayIcon = 'true'; } if (now_playing_id == id) { // same play button sType = ''; file = ''; go = false; now_playing_id = ''; document.getElementById("play_button_"+id).src = "../images/" + sThisPlayIcon + ".gif"; } else { // other play button if (now_playing_id != '') { document.getElementById("play_button_"+now_playing_id).src = "../images/" + sThisPlayIcon + ".gif"; now_playing_id = id; go = true; } } if (go) { document.getElementById("play_button_"+id).src = "../images/" + sThisPlayIcon + "_stop.gif"; now_playing_id = id; } sPlayer += ''; sPlayer += ''; sPlayer += ''; sPlayer += ''; sPlayer += ''; sPlayer += ''; sPlayer += ''; document.getElementById("previewPlayer").innerHTML = sPlayer; } function scrshtPreview(sLink) { p = "height=300,width=300,left=100,top=100,toolbar=no,directories=no,status=no,scrollbars=auto,resizable=no,menubar=no"; hWnd = window.open(sLink, "Hwnd", p); hWnd.focus(); } function myOwnPic() { window.open('http://www.sonnerie.net/photoperso/index.php?la=&a=', '_blank', 'toolbar=0, location=0, directories=0, status=1, scrollbars=0, resizable=0, copyhistory=0, menuBar=0, width=640, height=586, left=20, top=20'); } function animatedAvatar() { window.open('http://www.sonnerie.net/phonetoon/index.php?c=US&lang=US&a=', '_blank', 'toolbar=0, location=0, directories=0, status=1, scrollbars=0, resizable=0, copyhistory=0, menuBar=0, width=450, height=450, left=20, top=20'); }