function viewer(imageID,imageWidth,imageHeight,posLeft,posTop) {
        newWindow = window.open("","newWindow","width="+imageWidth+",height="+(45+parseInt(imageHeight))+",scrollbars=no,left="+posLeft+",top="+posTop);
        newWindow.document.open();
        newWindow.document.write('<html><title>Детские товары</title><meta http-equiv=\"content-type\" content=\"text/html; charset=windows-1251\"><body bgcolor=#ffffff leftmargin=0 topmargin=0 marginheight=0 marginwidth=0 onBlur="self.close()">');
        //newWindow.document.write('<img src=\"/php/pict.php3?bp=1&id='+imageID+'\">');
		newWindow.document.write('<img src=\"/ill/screen/'+imageID+'\" width='+imageWidth+' height='+imageHeight+'>');
		newWindow.document.write('<br><iframe align=right src=\"http://www.babyco.ru/css/viewer_counter.inc\" height=40 width='+imageWidth+' frameborder=0 scrolling=no></iframe>');
		newWindow.document.write('</body></html>');
        newWindow.document.close();
        newWindow.focus();
}

function viewerT(imageID,imageWidth,imageHeight,posLeft,posTop,t) {
		newWindow = window.open("","newWindow","width="+imageWidth+",height="+(45+parseInt(imageHeight))+",scrollbars=no,left="+posLeft+",top="+posTop);
        newWindow.document.open();
        newWindow.document.write('<html><title>Детские товары</title><meta http-equiv=\"content-type\" content=\"text/html; charset=windows-1251\"><body bgcolor=#ffffff leftmargin=0 topmargin=0 marginheight=0 marginwidth=0 onBlur="self.close()">');
        //newWindow.document.write('<img src=\"/php/pict.php3?bp=1&t='+ t +'&id='+imageID+'\">');
		newWindow.document.write('<img src=\"http://www.babyco.ru/ill/articul/'+imageID+'_b.jpg\" width='+imageWidth+' height='+imageHeight+'>');
		newWindow.document.write('<br><iframe align=right src=\"http://www.babyco.ru/css/viewer_counter.inc\" height=40 width='+imageWidth+' frameborder=0 scrolling=no></iframe>');
		newWindow.document.write('</body></html>');
        newWindow.document.close();
        newWindow.focus();
}

function viewerA(imageID,imageWidth,imageHeight) {
        newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left=0,top=0");
        newWindow.document.open();
        newWindow.document.write('<html><title>Pict</title><body bgcolor=#ffffff leftmargin=0 topmargin=0 marginheight=0 marginwidth=0 onBlur="self.close()">');
        newWindow.document.write('<img src=\"pict/adress_'+imageID+'.jpg\" width='+imageWidth+' height='+imageHeight+'>');
        newWindow.document.write('</body></html>');
        newWindow.document.close();
        newWindow.focus();
}

function viewerS(imageID,imageWidth,imageHeight) {
        newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left=0,top=0");
        newWindow.document.open();
        newWindow.document.write('<html><title>Pict</title><body bgcolor=#ffffff leftmargin=0 topmargin=0 marginheight=0 marginwidth=0 onBlur="self.close()">');
        newWindow.document.write('<img src=\"'+imageID+'\" width='+imageWidth+' height='+imageHeight+'>');
        newWindow.document.write('</body></html>');
        newWindow.document.close();
        newWindow.focus();
}

function viewerFlash(imageID,imageWidth,imageHeight) {
        newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=0,resizable=0,left=0,top=0");
        newWindow.document.open();
        newWindow.document.write('<html><title>Демонстрация</title><body bgcolor=#ffffff leftmargin=0 topmargin=0 marginheight=0 marginwidth=0>');
        newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
        newWindow.document.write('<param name=\"movie\" value=\"/swf/'+imageID+'.swf\">');
        newWindow.document.write('<param name=\"quality\" value=\"high\">')
        newWindow.document.write('<embed src=\"/swf/'+imageID+'.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\"></embed></object>');
        newWindow.document.write('</body></html>');
        newWindow.document.close();
        newWindow.focus();
}
