﻿function AltoItemControlHomeI(intPosicion) {
    this.tipo = "Interno";
    

    if (intPosicion == 0)
        intRetorno = (this.intAltoControl * 0.45);
    else if (intPosicion == 1)
        intRetorno = (this.intAltoControl * 0.575);
    else if (intPosicion == 2)
        intRetorno = (this.intAltoControl * 0.80);
    else if (intPosicion == 3)
        intRetorno = (this.intAltoControl * 0.575);
    else if (intPosicion == 4)
        intRetorno = (this.intAltoControl * 0.45);
    else
        intRetorno = (this.intAltoControl * 0);

    return intRetorno;
}
function AnchoItemControlHomeI(intPosicion) {
    if (intPosicion == 0)
        intRetorno = (this.intAnchoControl * 0.2);
    else if (intPosicion == 1)
        intRetorno = (this.intAnchoControl * 0.3);
    else if (intPosicion == 2)
        intRetorno = (this.intAnchoControl * 0.4);
    else if (intPosicion == 3)
        intRetorno = (this.intAnchoControl * 0.3);
    else if (intPosicion == 4)
        intRetorno = (this.intAnchoControl * 0.2);
    else
        intRetorno = (this.intAnchoControl * 0);

    return intRetorno;
}
function PosicionXItemControlHomeI(intPosicion) {

    if (intPosicion == 0)
        intRetorno = (this.intAnchoControl * 0.05);
    else if (intPosicion == 1)
        intRetorno = (this.intAnchoControl * 0.15);
    else if (intPosicion == 2)
        intRetorno = (this.intAnchoControl * 0.3);
    else if (intPosicion == 3)
        intRetorno = (this.intAnchoControl * 0.85) - (this.intAnchoControl * 0.3);
    else if (intPosicion == 4)
        intRetorno = (this.intAnchoControl * 0.95) - (this.intAnchoControl * 0.2);
    else
        intRetorno = (this.intAnchoControl / 2);

    return intRetorno;
}
function PosicionYItemControlHomeI(intPosicion) {
    if (intPosicion == 0)
        intRetorno = (this.intAltoControl * 0.275);
    else if (intPosicion == 1)
        intRetorno = (this.intAltoControl * 0.1625);
    else if (intPosicion == 2)
        intRetorno = (this.intAltoControl * 0.05);
    else if (intPosicion == 3)
        intRetorno = (this.intAltoControl * 0.1625);
    else if (intPosicion == 4)
        intRetorno = (this.intAltoControl * 0.275);
    else
        intRetorno = (this.intAltoControl / 2);

    return intRetorno;
}