var d=document; var NS=(d.layers)?1:0; var IE=(d.all)?1:0; var DOM=(d.getElementById)?1:0; function setImage(id,src) {d.getElementById(id).src = src;} function showDivById(id) { if (d.getElementById(id).style.display!='block') d.getElementById(id).style.display='block'; else d.getElementById(id).style.display='none'; } function openNewWindow(name,url,width,height,scrollbars,status,resizable,left,toop) { var l=(left)?left:(screen.width-width)/2; //левый край под центр var t=(toop)?toop:(screen.height-height)/2-30; //верх под центр var y='yes';var n='no'; var sb=(scrollbars)?y:n; var st=(status)?y:n; var rz=(resizable)?y:n; return window.open(url,name,'width='+width+',height='+height+',toolbar=no,location=no,directories=no,status='+st+',menubar=no,scrollbars='+sb+',left='+l+',top='+t+',resizable='+rz) } function showAward(w,h,src) { /*Отображение элементов (фото)*/ showPicWind = openNewWindow('showPicWind','',w,h,0,0,1); showPicWind.location.reload(); showPicWind.document.writeln('Просмотр
'); } function SWContext() { event.cancelBubble = true return false } function openTovar(id,w,h){ w=w+400; h=h+10; var ggg=window.open('tovar.php?tid='+id,"ggg","height="+h+",width="+w+", toolbar=no, location=no, scrollbars=yes, resizable=yes, menubar=no, directories=no, status=no"); } function addToKorzina(id) { var l=(screen.width-300)/2; var t=(screen.height-50)/2-30; var korz=window.open('zakaz.php?id='+id,"korz","height=50,width=300,toolbar=0,locationbar=0,scrollbar=0,left="+l+",top="+t+",resizeable=0,menubar=0,directories=0,status=1"); } document.onContextMenu="return SWContext()";