function LoadGallery(p,i){var preload = document.getElementById('preload_'+current_preload);if(document.all){document.getElementById('preloaded_img_'+current_preload).style.filter="blendTrans(duration=1)";document.getElementById('preloaded_img_'+current_preload).filters.blendTrans.Apply();document.getElementById('preloaded_img_'+current_preload).filters.blendTrans.Play();}s = preload.style;s.display = 'none';var np = document.getElementById('preload_'+i);if (document.all){document.getElementById('preloaded_img_'+i).style.filter="blendTrans(duration=1)";document.getElementById('preloaded_img_'+i).filters.blendTrans.Apply();document.getElementById('preloaded_img_'+i).filters.blendTrans.Play();}s = np.style;s.display = 'block';current_preload = i;}function popup2(t){p= window.open(t,'PopupViewer','scrollbars=yes,location=no,status=no,menubar=0,directories=no,top=0,left=0,width=390,height=360,titlebar=no');self.aNoteWin = p;return false;}function popup(t,w,h){p= window.open(t,'PopupViewer','scrollbars=yes,location=no,status=no,menubar=0,directories=no,top=0,left=0,width='+w+',height='+h+',titlebar=no');self.aNoteWin = p;return false;}function popupWindow(i,p){xl = (screen.width) ? (screen.width-500)/2 : 0;xt = (screen.height) ? (screen.height-500)/2 : 0;settings = 'height=525,width=450,top='+xt+',left='+xl+',toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1';win = window.open("/view_image.html?image_id="+i+"&product_id="+p,null,settings);}function confirmAction(m){var a = confirm (m);if (a){return true;}else{return false;}}window.onload = attachFormHandlers;function attachFormHandlers(){if (document.getElementsByTagName){var f=document.getElementsByTagName('form');for (var i=0;i= 4) { win.window.focus(); }}