// Load Calculator
if(location.pathname == "/kyintrucking/web/"){
	loadCalculator("");
}else{
	loadCalculator(".");
}
function loadCalculator(root){
var calculator = ''+
'<div class="calculatorShow side">'+
'    <a href="#">Measurement&nbsp;Calculator</a>'+
'</div>'+
'<div id="measurementCalcDisplay">'+
'    <div class="measurementCalcWrap draggable">'+
'        <div class="closeCalc"><a href="#Close"><img src="'+ root +'./images/fancy_close.png" alt="Close" width="30" height="30" /></a></div>'+
'        <div class="measurementCalc">'+
'            <h5 class="dragHandle">Measurement Calculator</h5>'+
'            <div class="measurementInfo">'+
'                <form action="#" method="post" id="calculationForm">'+
'                    <fieldset style="padding-top:12px;">'+
'                        <label for="lenghtInches">Length (Feet):</label>'+
'                        <input class="rightAlign" type="text" name="lenghtInches" id="lenghtInches" />'+
'                        <br />'+
'                        <label for="widthInches">Width (Feet):</label>'+
'                        <input class="rightAlign" type="text" name="widthInches" id="widthInches" />'+
'                        <br />'+
'                        <label for="heightInches">Depth (Feet):</label>'+
'                        <input class="rightAlign" type="text" name="heightInches" id="heightInches" />'+
'                        <br />'+
'                        <label for="material">Material:</label>'+
'                        <select name="material" id="material">'+
'                            <option selected="selected" value="Dirt">Dirt</option>'+
'                            <option value="Rocks">Rock</option>'+
'                            <option value="Sand">Sand</option>'+
'                        </select>'+
'                    </fieldset>'+
'                    <fieldset style="text-align:right;margin:2px;padding:2px 14px;">'+
'                        <input type="button" value="Calculate" id="calcButton" style="width:100px;" />'+
'                    </fieldset>'+
'                    <fieldset>'+
'                        <label for="cubicYards" style="width:78px;">Cubic Yards:</label>'+
'                        <input type="text" disabled="disabled" name="cubicYards" id="cubicYards" style="width:90px;background-color:#CCC;color:#111 !important;text-align:center;" />'+
'                        <label for="Tonnage" style="width:78px;">Tonnage:</label>'+
'                        <input type="text" disabled="disabled" name="Tonnage" id="Tonnage" style="width:90px;background-color:#CCC;color:#111 !important;text-align:center;" />'+
'                    </fieldset>'+
'                </form>'+
'            </div>'+
'        </div>'+
'    </div>'+
'    <span style="clear:both;">&nbsp;</span>'+
'</div>';
document.write(calculator);
}

