<div id="dashboard-plugins-top" style="width:100%; min-height:5px; overflow:auto"></div>
<div id="dashboard-plugins" style="width:100%; min-height:100px; overflow:auto"></div>

<!--
<div id="dashboard-tabs" style="width:100%;min-height:100px"></div>
-->
<div style="float:right;background-color: #F5F5F5;-moz-border-radius: 0 0 5px 5px;-webkit-border-top-left-radius: 0px;-webkit-border-top-right-radius: 0px;-webkit-border-bottom-left-radius: 5px;-webkit-border-bottom-right-radius: 5px;">
    <span style="display: block;padding: 5px 20px;font-size: 10px;">
        <a onclick="customizeDashboard();" href="javascript:void(0);"><img alt="settings" width="16" height="16" src="../templates/admin/images/gear.png"></a>
    </span>
</div>

<script type="text/javascript">
var dashboardPlugins = {DashboardPlugins};
var dashboardPanels = {DashboardPanels};
var numColumns = {NumColumns};
var numPercentages = "{NumPercentages}";
var aPercentages = numPercentages.split(',');

if(numColumns==1){
    subtractfromcol1 = ".02";
    subtractfromcol2 = ".00";
    subtractfromcol3 = ".00";
}else if(numColumns==2){
    subtractfromcol1 = ".01";
    subtractfromcol2 = ".00";
    subtractfromcol3 = ".00";
}else{
    subtractfromcol1 = ".01";
    subtractfromcol2 = ".00";
    subtractfromcol3 = ".00";
}

var col1width = (aPercentages[0]/100) - subtractfromcol1;
var col2width = (aPercentages.length>1) ? (aPercentages[1]/100) - subtractfromcol2 : "0";
var col3width = (aPercentages.length>2) ? (aPercentages[2]/100) - subtractfromcol3 : "0";
</script>