function buildGuides(columnWidth,gutterWidth,count,subdivisions) { var pixelsPerInch = 72; var inchScale = pixelsPerInch; var cmScale = inchScale / 2.54; var mmScale = cmScale / 10; var phi = 1.61803399; //var selectOuterGutters = dlg.optionsPanel.selectOuterGutters.value;1.61803399 var rowHeight = columnWidth / phi; var gutterHeight = gutterWidth; var width = (columnWidth*count)+(gutterWidth*(count-1)); var height = (rowHeight*count)+(gutterHeight*(count-1)); width = width + (gutterWidth * 2); height = height + (gutterHeight * 2); //width=parseInt(width); //height=parseInt(height); var numberOfGuides=((count*2)-2) + (count*subdivisions); var numberOfRowGuides=(count*2)-2; numberOfGuides=numberOfGuides + 2; numberOfRowGuides=numberOfRowGuides + 2; var guides = new Array(); var rowGuides = new Array(); rowGuides[0]=gutterHeight; rowGuides[1]=rowHeight; guides[0]=gutterWidth; for(i=0;i