(function(B) {
  B.dimensions = {
    version: "@VERSION"
  };
  B.each(["Height", "Width"], function(D, C) {
    B.fn["inner" + C] = function() {
      if (!this[0]) {
        return
      }
      var F = C == "Height" ? "Top" : "Left",
        E = C == "Height" ? "Bottom" : "Right";
      return A(this, C.toLowerCase()) + A(this, "padding" + F) + A(this, "padding" + E)
    };
    B.fn["outer" + C] = function(F) {
      if (!this[0]) {
        return
      }
      var G = C == "Height" ? "Top" : "Left",
        E = C == "Height" ? "Bottom" : "Right";
      F = B.extend({
          margin: false
        }, F || {});
      return A(this, C.toLowerCase()) + A(this, "border" + G + "Width") + A(this, "border" + E + "Width") + A(this, "padding" + G) + A(this, "padding" + E) + (F.margin ? (A(this, "margin" + G) + A(this, "margin" + E)) : 0)
    }
  });
  B.each(["Left", "Top"], function(D, C) {
    B.fn["scroll" + C] = function(E) {
      if (!this[0]) {
        return
      }
      return E != undefined ? this.each(function() {
        this == window || this == document ? window.scrollTo(C == "Left" ? E : B(window)["scrollLeft"](), C == "Top" ? E : B(window)["scrollTop"]()) : this["scroll" + C] = E
      }) : this[0] == window || this[0] == document ? self[(C == "Left" ? "pageXOffset" : "pageYOffset")] || B.boxModel && document.documentElement["scroll" + C] || document.body["scroll" + C] : this[0]["scroll" + C]
    }
  });
  B.fn.extend({
    position: function() {
      var H = 0,
        G = 0,
        F = this[0],
        I, C, E, D;
      if (F) {
          E = this.offsetParent();
          I = this.offset();
          C = E.offset();
          I.top -= A(F, "marginTop");
          I.left -= A(F, "marginLeft");
          C.top += A(E, "borderTopWidth");
          C.left += A(E, "borderLeftWidth");
          D = {
            top: I.top - C.top,
            left: I.left - C.left
          }
        }
      return D
    },
    offsetParent: function() {
      var C = this[0].offsetParent;
      while (C && (!/^body|html$/i.test(C.tagName) && B.css(C, "position") == "static")) {
        C = C.offsetParent
      }
      return B(C)
    }
  });

  function A(C, D) {
    return parseInt(B.css(C.jquery ? C[0] : C, D)) || 0
  }
})(jQuery);
(function(A) {
  A.ui = A.ui || {};
  A.ui.accordion = {};
  A.extend(A.ui.accordion, {
    defaults: {
      selectedClass: "selected",
      alwaysOpen: true,
      animated: "slide",
      event: "click",
      header: "a",
      autoheight: false
    },
    animations: {
      slide: function(B, D) {
        B = A.extend({
          easing: "swing",
          duration: 300
        }, B, D);
        if (!B.toHide.size()) {
          B.toShow.animate({
            height: "show"
          }, B);
          return
        }
        var C = B.toHide.height(),
          E = B.toShow.height(),
          F = E / C;
        B.toShow.css({
            height: 0,
            overflow: "hidden"
          }).show();
        B.toHide.filter(":hidden").each(B.complete).end().filter(":visible").animate({
            height: "hide"
          }, {
            step: function(G) {
              B.toShow.height((C - (G)) * F)
            },
            duration: B.duration,
            easing: B.easing,
            complete: B.complete
          })
      },
      bounceslide: function(B) {
        this.slide(B, {
          easing: B.down ? "bounceout" : "swing",
          duration: B.down ? 1000 : 200
        })
      },
      easeslide: function(B) {
        this.slide(B, {
          easing: "easeinout",
          duration: 700
        })
      }
    }
  });
  A.fn.extend({
    accordion: function(F) {
      if (!this.length) {
        return this
      }
      F = A.extend({}, A.ui.accordion.defaults, F);
      if (F.navigation) {
        var I = this.find("a").filter(function() {
          return this.href == location.href
        });
        if (I.length) {
          if (I.filter(F.header).length) {
            F.active = I
          } else {
            F.active = I.parent().parent().prev();
            I.addClass("current")
          }
        }
      }
      var B = this,
        D = B.find(F.header),
        E = C(F.active),
        H = 0;
      if (F.fillSpace) {
          var L = this.parent().height();
          D.each(function() {
            L -= A(this).outerHeight()
          });
          var K = 0;
          D.next().each(function() {
            K = Math.max(K, A(this).innerHeight() - A(this).height())
          }).height(L - K)
        } else {
          if (F.autoheight) {
            var L = 0;
            D.next().each(function() {
              L = Math.max(L, A(this).outerHeight())
            }).height(L)
          }
        }
      D.not(E || "").next().hide();
      E.parent().andSelf().addClass(F.selectedClass);

      function C(N) {
          return N != undefined ? typeof N == "number" ? D.filter(":eq(" + N + ")") : D.not(D.not(N)) : N === false ? A("<div>") : D.filter(":eq(0)")
        }
      function G(N, Q, R, P, S) {
          var O = function(T) {
            H = T ? 0 : --H;
            if (H) {
              return
            }
            if (F.clearStyle) {
              N.add(Q).css({
                height: "",
                overflow: ""
              })
            }
            B.trigger("change", R)
          };
          H = Q.size() == 0 ? N.size() : Q.size();
          if (F.animated) {
            if (!F.alwaysOpen && P) {
              N.slideToggle(F.animated);
              O(true)
            } else {
              A.ui.accordion.animations[F.animated]({
                toShow: N,
                toHide: Q,
                complete: O,
                down: S
              })
            }
          } else {
            if (!F.alwaysOpen && P) {
              N.toggle()
            } else {
              Q.hide();
              N.show()
            }
            O(true)
          }
        }
      function J(R) {
          if (!R.target && !F.alwaysOpen) {
            E.parent().andSelf().toggleClass(F.selectedClass);
            var P = E.next();
            var N = E = A([]);
            G(N, P);
            return false
          }
          var Q = A(R.target);
          if (Q.parents(F.header).length) {
            while (!Q.is(F.header)) {
              Q = Q.parent()
            }
          }
          var O = Q[0] == E[0];
          if (H || (F.alwaysOpen && O) || !Q.is(F.header)) {
            return false
          }
          E.parent().andSelf().toggleClass(F.selectedClass);
          if (!O) {
            Q.parent().andSelf().addClass(F.selectedClass)
          }
          var N = Q.next(),
            P = E.next(),
            S = [Q, E, N, P],
            T = D.index(E[0]) > D.index(Q[0]);
          E = O ? A([]) : Q;
          G(N, P, S, O, T);
          return false
        }
      function M(O, N) {
          if (arguments.length == 1) {
            return
          }
          J({
            target: C(N)[0]
          })
        }
      return B.bind(F.event || "", J).bind("activate", M)
    },
    activate: function(B) {
      return this.trigger("activate", [B])
    },
    unaccordion: function() {
      return this.find("*").andSelf().unbind().end().end()
    }
  })
})(jQuery);
jQuery.fn.corner = function(F) {
  function K(N) {
    var N = parseInt(N).toString(16);
    return (N.length < 2) ? "0" + N : N
  }
  function D(O) {
    for (; O && O.nodeName.toLowerCase() != "html"; O = O.parentNode) {
      var N = jQuery.css(O, "backgroundColor");
      if (N.indexOf("rgb") >= 0) {
        rgb = N.match(/\d+/g);
        return "#" + K(rgb[0]) + K(rgb[1]) + K(rgb[2])
      }
      if (N && N != "transparent") {
        return N
      }
    }
    return "#ffffff"
  }
  function M(N) {
    switch (H) {
    case "round":
      return Math.round(E * (1 - Math.cos(Math.asin(N / E))));
    case "cool":
      return Math.round(E * (1 + Math.cos(Math.asin(N / E))));
    case "sharp":
      return Math.round(E * (1 - Math.cos(Math.acos(N / E))));
    case "bite":
      return Math.round(E * (Math.cos(Math.asin((E - N - 1) / E))));
    case "slide":
      return Math.round(E * (Math.atan2(N, E / N)));
    case "jut":
      return Math.round(E * (Math.atan2(E, (E - N - 1))));
    case "curl":
      return Math.round(E * (Math.atan(N)));
    case "tear":
      return Math.round(E * (Math.cos(N)));
    case "wicked":
      return Math.round(E * (Math.tan(N)));
    case "long":
      return Math.round(E * (Math.sqrt(N)));
    case "sculpt":
      return Math.round(E * (Math.log((E - N - 1), E)));
    case "dog":
      return (N & 1) ? (N + 1) : E;
    case "dog2":
      return (N & 2) ? (N + 1) : E;
    case "dog3":
      return (N & 3) ? (N + 1) : E;
    case "fray":
      return (N % 2) * E;
    case "notch":
      return E;
    case "bevel":
      return N + 1
    }
  }
  F = (F || "").toLowerCase();
  var B = /keep/.test(F);
  var G = ((F.match(/cc:(#[0-9a-f]+)/) || [])[1]);
  var J = ((F.match(/sc:(#[0-9a-f]+)/) || [])[1]);
  var E = parseInt((F.match(/(\d+)px/) || [])[1]) || 10;
  var L = /round|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dog/;
  var H = ((F.match(L) || ["round"])[0]);
  var I = {
    T: 0,
    B: 1
  };
  var A = {
    TL: /top|tl/.test(F),
    TR: /top|tr/.test(F),
    BL: /bottom|bl/.test(F),
    BR: /bottom|br/.test(F)
  };
  if (!A.TL && !A.TR && !A.BL && !A.BR) {
    A = {
      TL: 1,
      TR: 1,
      BL: 1,
      BR: 1
    }
  }
  var C = document.createElement("div");
  C.style.overflow = "hidden";
  C.style.height = "1px";
  C.style.backgroundColor = J || "transparent";
  C.style.borderStyle = "solid";
  return this.each(function(R) {
    var O = {
      T: parseInt(jQuery.css(this, "paddingTop")) || 0,
      R: parseInt(jQuery.css(this, "paddingRight")) || 0,
      B: parseInt(jQuery.css(this, "paddingBottom")) || 0,
      L: parseInt(jQuery.css(this, "paddingLeft")) || 0
    };
    if (jQuery.browser.msie) {
      this.style.zoom = 1
    }
    if (!B) {
      this.style.border = "none"
    }
    C.style.borderColor = G || D(this.parentNode);
    var T = jQuery.curCSS(this, "height");
    for (var P in I) {
      var U = I[P];
      C.style.borderStyle = "none " + (A[P + "R"] ? "solid" : "none") + " none " + (A[P + "L"] ? "solid" : "none");
      var V = document.createElement("div");
      var N = V.style;
      U ? this.appendChild(V) : this.insertBefore(V, this.firstChild);
      if (U && T != "auto") {
        if (jQuery.css(this, "position") == "static") {
          this.style.position = "relative"
        }
        N.position = "absolute";
        N.bottom = N.left = N.padding = N.margin = "0";
        if (jQuery.browser.msie) {
          N.setExpression("width", "this.parentNode.offsetWidth")
        } else {
          N.width = "100%"
        }
      } else {
        N.margin = !U ? "-" + O.T + "px -" + O.R + "px " + (O.T - E) + "px -" + O.L + "px" : (O.B - E) + "px -" + O.R + "px -" + O.B + "px -" + O.L + "px"
      }
      for (var Q = 0; Q < E; Q++) {
        var W = Math.max(0, M(Q));
        var S = C.cloneNode(false);
        S.style.borderWidth = "0 " + (A[P + "R"] ? W : 0) + "px 0 " + (A[P + "L"] ? W : 0) + "px";
        U ? V.appendChild(S) : V.insertBefore(S, V.firstChild)
      }
    }
  })
};

function block(A) {
  jQuery("#" + A).css({
    display: "block"
  })
}
function none(A) {
  jQuery("#" + A).css({
    display: "none"
  })
}
function aff(A) {
  block("ContactBoxFlotante");
  block("cpc")
}
function affTaf() {
  block("TafBoxFlotante");
  block("cpcT")
}
function eff() {
  none("ContactBoxFlotante");
  none("cpc");
  jQuery("#AjaxConfirmation").html("Sending in progress...<br />&nbsp;");
  jQuery("#TitreEnvoie").html("...")
}
function effTaf() {
  none("TafBoxFlotante");
  none("cpcT");
  jQuery("#AjaxConfirmationTaf").html("Sending in progress...<br />&nbsp;");
  jQuery("#TitreEnvoieTaf").html("...")
}
var fadeTemps;

function effContact() {
  block("Formulaire");
  none("Confirmation");
  eff();
  jQuery("#CalqueNoir").animate({
    opacity: 0
  }, 550, function() {
    none("CalqueNoir")
  });
  fadeTemps = setTimeout(function() {
    eff()
  }, 400);
  if (jQuery.browser.mozilla) {
    document.getElementById("CalqueNoir").style.position = "fixed"
  }
}
function effContactTaf() {
  block("TafFormulaire");
  none("TafConfirmation");
  effTaf();
  jQuery("#CalqueNoirTaf").animate({
    opacity: 0
  }, 550, function() {
    none("CalqueNoirTaf")
  });
  fadeTemps = setTimeout(function() {
    effTaf()
  }, 400)
}
jQuery(document).ready(function() {
  if (jQuery.browser.safari) {
    jQuery(".titlearr").css({
      backgroundPosition: "110px 3px"
    })
  }
  jQuery(".sdhome").corner();
  jQuery(".sdhomebot").corner("top");
  jQuery("#CalqueNoir").bind("click", function() {
    effContact()
  });
  jQuery("#CalqueNoirTaf").bind("click", function() {
    effContactTaf()
  });
  jQuery("#cpc").bind("click", function() {
    effContact()
  });
  jQuery("#cpcT").bind("click", function() {
    effContactTaf()
  })
});
if (parent.frames.length > 0) {
  window.top.location.href = location.href
}
var DOM = (document.getElementById ? true : false);
var IE = (document.all && !DOM ? true : false);
var NS = (document.layers ? true : false);

function champ(A) {
  jQuery("#" + A).css({
    background: "#E1FFE1"
  });
  jQuery("#" + A).css({
    border: "1px solid #4E9B00"
  })
}
function champDef(A) {
  jQuery("#" + A).css({
    background: "#FFFFFF"
  });
  jQuery("#" + A).css({
    border: "1px solid #999999"
  })
}
function affContact() {
  aff();
  jQuery("#Formulaire").html("<form method='post' action='' id='contactboxform'><div> <div class='Potto'>	<div id='ContactMethodeLabelage'>		<div class='TopBox'> 			<div class='BoxTitre'>Send us a message</div>			<div class='BoxCroix'><a href='javascript:void(0);' onclick='effContact();' class='Croix'></a></div>		</div>			<p><br /><label for='name'>Your name:</label>			<input class='textfield' name='name' id='name' value='' title='Please enter your name' tabindex='1'			 type='text' /></p>			<p><label for='email'>Email:</label>			<input class='textfield' name='email' id='email' value='' title='Please enter your email' tabindex='2' 			 type='text' /></p>			<p><label for='phone'>Phone:</label>			<input class='textfield' name='phone' id='phone' value='' title='Please enter your phone number' tabindex='3'			 type='text' /></p>			<p><textarea name='pagetext' cols='20' rows='10' id='pagetext' title='Please type your message' tabindex='4'>Type your message here</textarea></p>	</div>	 </div> <span class='Send'> <a href='javascript:void(0);' onclick='preSendMessage();' class='Bouton' tabindex='6'>Send</a> </span></div></form>");
  jQuery("#Formulaire #name").bind("focus", function() {
    champ("name")
  }).bind("blur", function() {
    champDef("name")
  });
  jQuery("#Formulaire #name").focus();
  jQuery("#Formulaire #email").bind("focus", function() {
    champ("email")
  }).bind("blur", function() {
    champDef("email")
  });
  jQuery("#Formulaire #phone").bind("focus", function() {
    champ("phone")
  }).bind("blur", function() {
    champDef("phone")
  });
  jQuery("#Formulaire #pagetext").bind("focus", function() {
    champ("pagetext");
    if (jQuery(this)[0].value == "Type your message here") {
      jQuery(this)[0].value = ""
    }
  }).bind("blur", function() {
    champDef("email");
    champDef("pagetext");
    if (jQuery(this)[0].value === "") {
      jQuery(this)[0].value = "Type your message here"
    }
  });
  if (document.contactboxform !== undefined) {
    if (document.contactboxform.pagetext.value === "") {
      document.contactboxform.pagetext.value = "Type your message here"
    }
    document.contactboxform.name.focus()
  }
  jQuery("#CalqueNoir").css({
    opacity: 0.1
  });
  block("CalqueNoir");
  jQuery("#CalqueNoir").animate({
    opacity: 0.6
  }, 550)
}
function affContactTaf() {
  affTaf();
  jQuery("#TafFormulaire").html("<form method='post' id='tellafriendboxform' action=''><div><div class='Potto'>	<div class='TopBox'> 		<div class='BoxTitre'>Tell a friend</div>		<div class='BoxCroix'><a href='javascript:void(0);' onclick='effContactTaf();' class='Croix'></a></div>	</div>		<p class='Taf'><br />Spread the word! If you have family or friends that could benefit from NoamDesign's services, let them know! These emails address will NOT be used for any other purpose.</p>		<p><br /><label for='femail'>Your friend's email:</label>		<input class='textfieldTaf' name='femail' id='femail' value='' title='Please enter your friend's email' tabindex='7' 		 type='text' /></p>		<p><label for='emailf'>Your email:</label>		<input class='textfieldTaf' name='emailf' id='emailf' value='' title='Please enter your email' tabindex='8' 		 type='text' /></p>		<p><textarea name='pagetextf' cols='20' rows='10' id='pagetextf' title='Please type your message' tabindex='9' >Hi, I just visited www.NoamDesign.com and thought you might be interested in hearing more about them. Have a look at their Overview page!</textarea></p></div>	<span class='Send'>	<a href='javascript:void(0);' onclick='preSendTafMessage();' class='Bouton' tabindex='10'>Send</a>	</span></div></form>");
  jQuery("#TafFormulaire #femail").bind("focus", function() {
    champ("femail")
  }).bind("blur", function() {
    champDef("femail")
  });
  jQuery("#TafFormulaire #emailf").bind("focus", function() {
    champ("emailf")
  }).bind("blur", function() {
    champDef("emailf")
  });
  jQuery("#Formulaire #pagetextf").bind("focus", function() {
    champ("pagetextf")
  }).bind("blur", function() {
    champDef("pagetext");
    if (jQuery(this)[0].value === "") {
      jQuery(this)[0].value = "Hi, I just visited NoamDesign.com and thought you might be interested in hearing more about them. Have a look at their Limited Time Offer!"
    }
  });
  if (document.tellafriendboxform !== undefined) {
    if (document.tellafriendboxform.pagetextf.value === "") {
      document.tellafriendboxform.pagetextf.value = "Hi, I just visited www.NoamDesign.com and thought you might be interested in hearing more about them. Have a look at their Overview page!"
    }
    document.tellafriendboxform.femail.focus()
  }
  block("CalqueNoirTaf");
  jQuery("#CalqueNoirTaf").animate({
    opacity: 0.6
  }, 550)
}
var caseON = true;

function caseCocheON() {
  document.getElementById("Comments").focus();
  document.getElementById("OffreOptions4").checked = true
}
function caseCocheOFF() {
  document.getElementById("OffreOptions4").checked = false
}
function caseCochage() {
  document.getElementById("OffreOptions4").checked = true;
  caseON = false
}
function caseCoche() {
  if (caseON) {
    caseCocheON();
    caseON = false
  } else {
    caseCocheOFF();
    caseON = true
  }
}
var infobshowed = false;
ie = document.all;
ns = document.layers;
fi = document.getElementById && !document.all;

function get_mouse(A) {
  if (ie) {
    x = event.x;
    y = event.y
  } else {
    x = A.pageX;
    y = A.pageY
  }
}
var cacheinfob;
var afficheinfob;

function findPos(B) {
  var C = 0;
  var A = 0;
  if (B.offsetParent) {
    C = B.offsetLeft;
    A = B.offsetTop;
    while (B = B.offsetParent) {
      C += B.offsetLeft;
      A += B.offsetTop
    }
  }
  return [C, A]
}
function yinfob(D, B, C) {
  if (cacheinfob) {
    clearTimeout(cacheinfob)
  }
  if (afficheinfob) {
    clearTimeout(afficheinfob)
  }
  B = B.replace(/\*/g, "'");
  B = B.replace(/{/g, "<");
  B = B.replace(/}/g, ">");
  D = D.replace(/{/g, "<");
  D = D.replace(/}/g, ">");
  jQuery("#yinfob").html("<div id='infobInter'><div class='infobtitre'>" + D + "</div><div class='infobcontent'>" + B + "</div></div><div id='infobpied'></div>");
  var A = findPos(C);
  jQuery("#yinfob")[0].style.left = A[0] + 15 + "px";
  jQuery("#yinfob")[0].style.top = A[1] + 10 + "px";
  afficheinfob = setTimeout(function() {
    block("yinfob");
    jQuery("#yinfob").animate({
      opacity: 1
    }, 10, function() {
      infobshowed = true
    });
    infobshowed = true
  }, 200)
}
var cacheProjectInfo;
var timeoutPostInfo;
var avoidClosing = false;
var TEXT_LINK = "Project Details";
var global_obj = null;
var global_images = 0;
var global_images_total = 2;
var global_content = "";
var global_loadTempHTML;

function projectinfoOut() {
  document.onclick = null;
  var A = jQuery(".websiteOnloading").data("htmlcode");
  jQuery(".websiteOnloading").removeClass("websiteOnloading").html(A).fadeIn("slow");
  if (timeoutPostInfo) {
    clearTimeout(timeoutPostInfo)
  }
  cacheProjectInfo = setTimeout(function() {
    jQuery("#projectinfo").animate({
      opacity: 0
    }, 70, function() {
      none("projectinfo");
      jQuery("#projectinfo").html("");
      infobshowed = false
    })
  }, 200)
}
function showPS(B) {
  jQuery("#projectinfo").html(B);
  var A = findPos(global_obj);
  if (jQuery.browser.msie) {
    if (jQuery.browser.version == 6) {
      jQuery("#projectinfo")[0].style.left = A[0] + 106 + "px"
    } else {
      jQuery("#projectinfo")[0].style.left = A[0] + 97 + "px"
    }
  } else {
    jQuery("#projectinfo")[0].style.left = A[0] + 112 + "px"
  }
  jQuery("#projectinfo")[0].style.top = 50 + jQuery().scrollTop() + "px";
  jQuery("#projectinfo").bind("click", function() {
    avoidClosing = true
  });
  document.onclick = function() {
    if (!avoidClosing) {
      projectinfoOut()
    }
    avoidClosing = false
  };
  return setTimeout(function() {
    block("projectinfo");
    jQuery("#projectinfo").animate({
      opacity: 1
    }, function() {
      infobshowed = true
    });
    infobshowed = true
  }, 200)
}
function loadimageforprojectdetail() {
  global_images++;
  if (global_images == global_images_total) {
    global_images = 0;
    jQuery(".websiteOnloading").fadeOut("slow", function() {});
    timeoutPostInfo = showPS(global_content)
  }
}
function projectinfo(B) {
  if (cacheProjectInfo) {
    clearTimeout(cacheProjectInfo)
  }
  if (timeoutPostInfo) {
    clearTimeout(timeoutPostInfo)
  }
  var A = B.href + "-ajax";
  if (jQuery(".websiteOnloading").length > 0) {
    setTimeout(function() {
      projectinfo(B)
    }, 30);
    return false
  }
  global_obj = jQuery(B).parent(".website")[0];
  global_loadTempHTML = jQuery(B).parent(".website").html();
  jQuery(B).parent(".website").data("htmlcode", global_loadTempHTML);
  jQuery(B).parent(".website").addClass("websiteOnloading").html('<span id="loadPS">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loading...</span>&nbsp;<img src="http://images.noamdesign.com/nVersion/ajax.gif" alt="" />');
  jQuery.ajax({
    type: "GET",
    dataType: "html",
    url: A,
    error: function(C, E, D) {
      jQuery(B).find("span").html(TEXT_LINK);
      jQuery(B).find("img").attr("src", "http://images.noamdesign.com/nVersion/psinfo.gif");
      htmlTxt = "<div id='infobInter'><div class='infobtitre'>Project Specifications</div><div class='infobcontent'>This request return an error. Error: " + C.status + "</div></div><div id='infobpied'></div>";
      timeoutPostInfo = showPS(htmlTxt)
    },
    success: function(C) {
      global_content = C;
      if (jQuery.browser.msie) {
        arImages = ["http://images.noamdesign.com/nVersion/psbottom.gif", "http://images.noamdesign.com/nVersion/pstop.gif"]
      } else {
        arImages = ["http://images.noamdesign.com/nVersion/psbottom.png", "http://images.noamdesign.com/nVersion/pstop.png"]
      }
      iPS1 = new Image();
      iPS1.onload = loadimageforprojectdetail;
      iPS1.src = arImages[0];
      iPS2 = new Image();
      iPS2.onload = loadimageforprojectdetail;
      iPS2.src = arImages[1]
    }
  })
}
function setAvoidClosing(A) {
  avoidClosing = A
}
function projectinfoOutB() {
  if (cacheProjectInfo) {
    clearTimeout(cacheProjectInfo)
  }
}
function cyinfob() {
  if (afficheinfob) {
    clearTimeout(afficheinfob)
  }
  cacheinfob = setTimeout(function() {
    jQuery("#yinfob").animate({
      opacity: 0
    }, 50, function() {
      none("yinfob");
      jQuery("#yinfob").html("");
      infobshowed = false
    })
  }, 200)
}
function ccyinfob() {
  if (cacheinfob) {
    clearTimeout(cacheinfob)
  }
}
function isFieldEmpty(A) {
  if (A.value.length === 0) {
    return true
  } else {
    return false
  }
}
function checkQuoteValidFields(G) {
  var A = "";
  var I = G.budget;
  if (isFieldEmpty(I)) {
    jQuery("#budget").focus();
    jQuery("#budget").addClass("fieldrequired");
    A = "Please enter a Budget for you project.\n" + A
  }
  var I = G.timing;
  if (isFieldEmpty(I)) {
    jQuery("#timing").focus();
    jQuery("#timing").addClass("fieldrequired");
    A = "Please enter a Timing for you project.\n" + A
  }
  var I = G.scope;
  if (isFieldEmpty(I)) {
    jQuery("#scope").focus();
    jQuery("#scope").addClass("fieldrequired");
    A = "Please enter a Scope for you project.\n" + A
  }
  if (jQuery("form").find("input[@type$='checkbox']:checked").length === 0) {
    jQuery("form").find("input[@type$='checkbox']").addClass("fieldrequired");
    A = "Please select at least one Type of Service.\n" + A
  }
  var C = G.phone;
  if (isFieldEmpty(C)) {
    var D = G.mobile;
    if (isFieldEmpty(D)) {
      jQuery("#phone").focus();
      jQuery("#mobile").addClass("fieldrequired");
      A = "Please enter a contact Phone or Mobile.\n" + A
    }
  }
  var E = G.email;
  var F = E.value.indexOf("@", 1);
  var H = E.value.indexOf(".", F + 1);
  if (!((F > -1) && (E.value.length > 2) && (H > 1))) {
    jQuery("#email").focus();
    jQuery("#email").addClass("fieldrequired");
    A = "Please enter a valid Email.\n" + A
  }
  var B = G.lastname;
  if (isFieldEmpty(B)) {
    jQuery("#lastname").focus();
    jQuery("#lastname").addClass("fieldrequired");
    A = "Please enter a Last Name.\n" + A
  }
  var B = G.firstname;
  if (isFieldEmpty(B)) {
    jQuery("#firstname").focus();
    jQuery("#firstname").addClass("fieldrequired");
    A = "Please enter a First Name.\n" + A
  }
  jQuery(".fieldrequired").bind("focus", function() {
    jQuery(this).removeClass("fieldrequired")
  });
  if (A === "") {
    return true
  } else {
    alert(A);
    return false
  }
}
function checkTimeMess() {
  var C = new Date();
  var A = "";
  if (C.getHours() < 10) {
    A += "0"
  }
  A += C.getHours() + ":";
  if (C.getMinutes() < 10) {
    A += "0"
  }
  A += C.getMinutes() + ":";
  if (C.getSeconds() < 10) {
    A += "0"
  }
  A += C.getSeconds();
  var B;
  if ((A >= "05:00:00") && (A < "17:00:00")) {
    sDayTimeMess = "have a great day!"
  }
  if ((A >= "17:00:00") && (A < "21:00:00")) {
    sDayTimeMess = "have a great evening!"
  }
  if ((A >= "21:00:00") || (A < "05:00:00")) {
    sDayTimeMess = "have a great night!"
  }
  if ((A >= "05:00:00") && (A < "12:00:00")) {
    B = "morning"
  }
  if ((A >= "12:00:00") && (A < "17:00:00")) {
    B = "afternoon "
  }
  if ((A >= "17:00:00") && (A < "21:00:00")) {
    B = "evening"
  }
  if ((A >= "21:00:00") || (A < "05:00:00")) {
    B = "night"
  }
  return {
    greetings: B,
    goodbye: sDayTimeMess
  }
}
function sendMessage(G, F, C, B, E) {
  var A = "ContactUs=Yes&Name=" + G + "&Email=" + F + "&Phone=" + C + "&Message=" + B + "&TimeMsg=" + E;
  none("Formulaire");
  block("Confirmation");
  jQuery("#Confirmation").html("	<div class='Potto'> 	<div class='TopBox'>  		<div class='BoxTitre' id='TitreEnvoie'>...</div> 		<div class='BoxCroix'><a href='javascript:void(0);' onclick='effContact();' class='Croix'></a></div> 	</div> 	<span class='ConfirmationTxt' id='AjaxConfirmation'>Sending in progress...<br />&nbsp;</span> 	</div> 	<span class='Send'> 	<a href='javascript:void(0);' onclick='effContact();' class='Bouton'>Close</a> 	</span> ");
  jQuery.ajax({
    type: "POST",
    url: "/SendMessage.php",
    data: A,
    success: function(H) {
      jQuery("#AjaxConfirmation").html(H)
    },
    error: function(H, J, I) {
      jQuery("#AjaxConfirmation").html("Error: " + I)
    }
  });
  var D = jQuery("#contactboxform")[0];
  D.name.value = "";
  D.email.value = "";
  D.phone.value = "";
  D.pagetext.value = ""
}
function prepareSendMessage() {
  var A = checkTimeMess();
  var B = jQuery("#contactboxform")[0];
  sContactUs = "ContactUs";
  sName = B.name.value;
  sEmail = B.email.value;
  sPhone = B.phone.value;
  sMessage = B.pagetext.value;
  sendMessage(sName, sEmail, sPhone, sMessage, A.greetings)
}
function preSendMessage() {
  var F = "";
  var E = jQuery("#contactboxform")[0];
  var G = E.pagetext;
  if (isFieldEmpty(G)) {
    jQuery("#contactboxform #pagetext").focus();
    jQuery("#contactboxform #pagetext").css({
      background: "#F4CACA",
      border: "solid 1px #DD1717"
    });
    F = "Please enter a Message.\n" + F
  }
  var H = E.phone;
  if (isFieldEmpty(H)) {
    jQuery("#contactboxform #phone").focus();
    jQuery("#contactboxform #phone").css({
      background: "#F4CACA",
      border: "solid 1px #DD1717"
    });
    F = "Please enter a contact Phone.\n" + F
  }
  var D = E.email;
  var C = D.value.indexOf("@", 1);
  var B = D.value.indexOf(".", C + 1);
  if (!((C > -1) && (D.value.length > 2) && (B > 1))) {
    jQuery("#contactboxform #email").focus();
    jQuery("#contactboxform #email").css({
      background: "#F4CACA",
      border: "solid 1px #DD1717"
    });
    F = "Please enter a valid Email.\n" + F
  }
  var A = E.name;
  if (isFieldEmpty(A)) {
    jQuery("#contactboxform #name").focus();
    jQuery("#contactboxform #name").css({
      background: "#F4CACA",
      border: "solid 1px #DD1717"
    });
    F = "Please enter a Name.\n" + F
  }
  if (F === "") {
    prepareSendMessage()
  } else {
    alert(F)
  }
}
function sendTafMessage(D, F, G, A, C) {
  var B = "Emailf=" + F + "&Email=" + G + "&Message=" + A + "&TimeMsg=" + C.greetings;
  jQuery.ajax({
    type: "POST",
    url: "/SendMessageFriend.php",
    data: B,
    success: function(H) {
      jQuery("#AjaxConfirmationTaf").html("<span class='ConfirmationTxt' id='AjaxConfirmation'>" + H + "<br />&nbsp;</span> ")
    },
    error: function(H, J, I) {
      jQuery("#AjaxConfirmationTaf").html("<span class='ConfirmationTxt' id='AjaxConfirmation'>Error: " + I + "<br />&nbsp;</span> ")
    }
  });
  none("TafFormulaire");
  block("TafConfirmation");
  jQuery("#TafConfirmation").html("<div class='Potto'><div class='TopBox'>	<div class='BoxTitre' id='TitreEnvoieTaf'>...</div>	<div class='BoxCroix'><a href='javascript:void(0);' onclick='effContactTaf();' class='Croix'></a></div></div><span class='ConfirmationTxt' id='AjaxConfirmationTaf'>Sending in progress...<br />&nbsp;</span></div><span class='Send'><a href='javascript:void(0);' onclick='effContactTaf();' class='Bouton'>Close</a></span>");
  var E = jQuery("#tellafriendboxform")[0];
  E.femail.value = "";
  E.emailf.value = "";
  E.pagetextf.value = ""
}
function prepareSendTafMessage() {
  var A = checkTimeMess();
  var B = jQuery("#tellafriendboxform")[0];
  sTaf = "Taf";
  sFemail = B.femail.value;
  sFromEmail = B.emailf.value;
  sFmessage = B.pagetextf.value;
  sendTafMessage(sTaf, sFemail, sFromEmail, sFmessage, A.greetings)
}
function preSendTafMessage() {
  var E = "";
  var D = jQuery("#tellafriendboxform")[0];
  var C = D.emailf;
  var B = C.value.indexOf("@", 1);
  var A = C.value.indexOf(".", B + 1);
  if (!((B > -1) && (C.value.length > 2) && (A > 1))) {
    jQuery("#tellafriendboxform #emailf").focus();
    jQuery("#tellafriendboxform #emailf").css({
      background: "#F4CACA",
      border: "solid 1px #DD1717"
    });
    E = "Please enter a valid Email.\n" + E
  }
  C = D.femail;
  B = C.value.indexOf("@", 1);
  A = C.value.indexOf(".", B + 1);
  if (!((B > -1) && (C.value.length > 2) && (A > 1))) {
    jQuery("#tellafriendboxform #femail").focus();
    jQuery("#tellafriendboxform #femail").css({
      background: "#F4CACA",
      border: "solid 1px #DD1717"
    });
    E = "Please enter a valid Email.\n" + E
  }
  if (E === "") {
    prepareSendTafMessage()
  } else {
    alert(E)
  }
}
var global_mouser_over_permitted2 = "susanchang";
var global_mouser_over_permitted3 = "maxestenger";
var global_mouser_over_permitted4 = "logo";
var global_t_slide_auto;
var global_slide_auto_enabled = true;
var global_clientCoords = {
  X: 0,
  Y: 0
};
var global_pageCoords = {
  X: 0,
  Y: 0
};
jQuery(function() {
  if ((jQuery.browser.safari) && (jQuery.browser.version < 313)) {
    var A = document.getElementById("drawerslist1");
    A.className += " Step1MargeSizeSafari";
    var A = document.getElementById("drawerslist2");
    A.className += " Step2MargeSizeSafari";
    var A = document.getElementById("drawerslist3");
    A.className += " Step3MargeSizeSafari";
    var A = document.getElementById("drawerslist4");
    A.className += " Step4MargeSizeSafari"
  }
});

function TestImG(A, B) {
  if ((jQuery.browser.safari) && (jQuery.browser.version < 313)) {
    ImG(A, B);
    return 0
  }
  if ((B.id == global_mouser_over_permitted) || (B.id == global_mouser_over_permitted2) || (B.id == global_mouser_over_permitted3)) {
    ImG(A, B)
  }
}
var host_url = "http://sourcebits.com";
var splitter = ".com";
var section = "serv";
var hs_active = false;
var hs_length_serv = 3,
  hs_length_prod = 3,
  hs_length_ddes = 2,
  hs_length_flas = 1;
var hs_index_serv = 0;
var hs_index_prod = 0;
var hs_index_ddes = 0;
var hs_index_flas = 0;
SPEED = 300;

function click_changeControl(A) {
    try {
      section = A.id.substr(10, 4)
    } catch (B) {}
  }
function deactivate_nav(A) {
    jQuery("#" + A).unbind("mouseover");
    jQuery("#" + A).unbind("mouseout");
    jQuery("#" + A).css("cursor", "default");
    jQuery("#" + A).css("background-position", "0px 0px")
  }
function reactivate_nav(A) {
    jQuery("#" + A).bind("mouseover", function() {
      jQuery(this).css("background-position", "0px -31px")
    });
    jQuery("#" + A).bind("mouseout", function() {
      jQuery(this).css("background-position", "0px 0px")
    });
    jQuery("#" + A).css("cursor", "pointer")
  }
function updateNavBar(A) {
    if (section == "serv") {
      jQuery("#serv_0, #serv_1, #serv_2, #serv_3").removeClass("openedSlide");
      jQuery("#serv_0, #serv_1, #serv_2, #serv_3").removeClass("closedSlide");
      jQuery("#serv_0, #serv_1, #serv_2, #serv_3").addClass("closedSlide");
      jQuery("#serv_" + A).removeClass("closedSlide");
      jQuery("#serv_" + A).addClass("openedSlide")
    } else {
      if (section == "prod") {
        jQuery("#prod_0, #prod_1, #prod_2, #prod_3").removeClass("openedSlide");
        jQuery("#prod_0, #prod_1, #prod_2, #prod_3").removeClass("closedSlide");
        jQuery("#prod_0, #prod_1, #prod_2, #prod_3").addClass("closedSlide");
        jQuery("#prod_" + A).removeClass("closedSlide");
        jQuery("#prod_" + A).addClass("openedSlide")
      } else {
        if (section == "flas") {
          jQuery("#flas_0, #flas_1").removeClass("openedSlide");
          jQuery("#flas_0, #flas_1").removeClass("closedSlide");
          jQuery("#flas_0, #flas_1").addClass("closedSlide");
          jQuery("#flas_" + A).removeClass("closedSlide");
          jQuery("#flas_" + A).addClass("openedSlide")
        } else {
          jQuery("#ddes_0, #ddes_1, #ddes_2").removeClass("openedSlide");
          jQuery("#ddes_0, #ddes_1, #ddes_2").removeClass("closedSlide");
          jQuery("#ddes_0, #ddes_1, #ddes_2").addClass("closedSlide");
          jQuery("#ddes_" + A).removeClass("closedSlide");
          jQuery("#ddes_" + A).addClass("openedSlide")
        }
      }
    }
  }
function nav(E) {
    if (hs_active) {
      return
    }
    if (section == "serv") {
      var G = hs_index_serv;
      var A = hs_length_serv
    } else {
      if (section == "prod") {
        var G = hs_index_prod;
        var A = hs_length_prod
      } else {
        if (section == "flas") {
          var G = hs_index_flas;
          var A = hs_length_flas
        } else {
          var G = hs_index_ddes;
          var A = hs_length_ddes
        }
      }
    }
    if (E == "r") {
      if (G < A) {
        var D = parseInt(jQuery("#" + section + "_hscroll").css("left"));
        var J = parseInt(jQuery("#" + section + "_hscroll li").css("width"));
        var F = D - J;
        var I = F - 6;
        if (section == "serv") {
          hs_index_serv++
        } else {
          if (section == "prod") {
            hs_index_prod++
          } else {
            if (section == "flas") {
              hs_index_flas++
            } else {
              hs_index_ddes++
            }
          }
        }
        jQuery("#" + section + "_hscroll").animate({
          left: I
        }, SPEED, function() {
          hs_active = false
        })
      } else {
        if (section == "serv") {
          hs_index_serv = 0
        } else {
          if (section == "prod") {
            hs_index_prod = 0
          } else {
            if (section == "flas") {
              hs_index_flas = 0
            } else {
              hs_index_ddes = 0
            }
          }
        }
        jQuery("#" + section + "_hscroll").animate({
          left: 0
        }, SPEED, function() {
          hs_active = false
        })
      }
      hs_active = true
    } else {
      if ((G > 0) && (G < A + 1)) {
        var D = parseInt(jQuery("#" + section + "_hscroll").css("left"));
        var J = parseInt(jQuery("#" + section + "_hscroll li").css("width"));
        var F = D + J;
        var I = F + 6;
        if (section == "serv") {
          hs_index_serv--
        } else {
          if (section == "prod") {
            hs_index_prod--
          } else {
            if (section == "flas") {
              hs_index_flas--
            } else {
              hs_index_ddes--
            }
          }
        }
        jQuery("#" + section + "_hscroll").css("left", D);
        jQuery("#" + section + "_hscroll").animate({
          left: I
        }, SPEED, function() {
          hs_active = false
        })
      } else {
        var D = parseInt(jQuery("#" + section + "_hscroll").css("left"));
        var H = -1;
        var J = parseInt(jQuery("#" + section + "_hscroll li").css("width"));
        var F = D + (J * H);
        var I = F + (6 * H);
        if (section == "serv") {
          hs_index_serv = A
        } else {
          if (section == "prod") {
            hs_index_prod = A
          } else {
            if (section == "flas") {
              hs_index_flas = A
            } else {
              hs_index_ddes = A
            }
          }
        }
        var B = I * A;
        jQuery("#" + section + "_hscroll").animate({
          left: B
        }, SPEED, function() {
          hs_active = false
        })
      }
      hs_active = true
    }
    var C;
    if (section == "serv") {
      C = hs_index_serv
    } else {
      if (section == "prod") {
        C = hs_index_prod
      } else {
        if (section == "flas") {
          C = hs_index_flas
        } else {
          C = hs_index_ddes
        }
      }
    }
    updateNavBar(C)
  }
function setupSlideHorizontal() {
    jQuery("#listindex_prod, #listindex_serv, #listindex_ddes, #listindex_flas").bind("mousedown mouseover", function() {
      try {
        section = this.id.substr(10, 4)
      } catch (A) {}
    });
    jQuery("#prod_more_r span, #prod_more_r .listtext, #serv_more_r span, #serv_more_r .listtext, #ddes_more_r span, #ddes_more_r .listtext, #flas_more_r span, #flas_more_r .listtext, #prod_more_l span, #prod_more_l .listtext, #serv_more_l span, #serv_more_l .listtext, #ddes_more_l span, #ddes_more_l .listtext, #flas_more_l span, #flas_more_l .listtext").hover(function() {
      jQuery(this).css({
        "background-position": "0px -21px",
        color: "white"
      });
      jQuery(this).siblings().css({
        "background-position": "0px -21px",
        color: "white"
      })
    }, function() {
      jQuery(this).css({
        "background-position": "0px 0px",
        color: "#999999"
      });
      jQuery(this).siblings().css({
        "background-position": "0px 0px",
        color: "#999999"
      })
    });
    jQuery("#flas_0, #flas_1, #ddes_0, #ddes_1, #ddes_2, #prod_0, #prod_1, #prod_2, #prod_3, #serv_0, #serv_1, #serv_2, #serv_3").hover(function() {
      jQuery(this).addClass("highlighted")
    }, function() {
      jQuery(this).removeClass("highlighted")
    });
    jQuery("#serv_more_l span, #serv_more_r span, #prod_more_l span, #prod_more_r span, #ddes_more_l span, #ddes_more_r span, #flas_more_l span, #flas_more_r span").bind("click", function() {
      var A = (jQuery(this).hasClass("r")) ? "r" : "l";
      nav(A)
    });
    jQuery("#prod_0, #prod_1, #prod_2, #prod_3, #serv_0, #serv_1, #serv_2, #serv_3, #ddes_0, #ddes_1, #ddes_2, #flas_0, #flas_1").click(function() {
      var A = this.id.substr(5, 1);
      updateNavBar(A);
      navToPlus(A)
    })
  }
var tID;
jQuery(document).ready(function() {
    setupSlideHorizontal()
  });

function navToPlus(C) {
    if (hs_active) {
      return
    }
    if (section == "serv") {
      var H = hs_index_serv;
      var F = hs_length_serv
    } else {
      if (section == "prod") {
        var H = hs_index_prod;
        var F = hs_length_prod
      } else {
        if (section == "flas") {
          var H = hs_index_flas;
          var F = hs_length_flas
        } else {
          var H = hs_index_ddes;
          var F = hs_length_ddes
        }
      }
    }
    if (H == C) {
      return
    }
    if (!isNaN(C)) {
      dir = (C > H) ? "r" : "l";
      G = mod(H - C)
    }
    if (hs_active) {
      return
    }
    if (dir == "r") {
      if (H < F) {
        var A = parseInt(jQuery("#" + section + "_hscroll").css("left"));
        var E = parseInt(jQuery("#" + section + "_hscroll li").css("width"));
        var D = A - E;
        var B = D - 6;
        if (section == "serv") {
          hs_index_serv += G
        } else {
          if (section == "prod") {
            hs_index_prod += G
          } else {
            if (section == "flas") {
              hs_index_flas += G
            } else {
              hs_index_ddes += G
            }
          }
        }
        jQuery("#" + section + "_hscroll").animate({
          left: B * G
        }, SPEED, function() {
          hs_active = false
        })
      }
      hs_active = true
    } else {
      var A = parseInt(jQuery("#" + section + "_hscroll").css("left"));
      var E = parseInt(jQuery("#" + section + "_hscroll li").css("width"));
      if (section == "serv") {
        hs_index_serv -= G
      } else {
        if (section == "prod") {
          hs_index_prod -= G
        } else {
          if (section == "flas") {
            hs_index_flas -= G
          } else {
            hs_index_ddes -= G
          }
        }
      }
      var D = E + 6;
      var B = D * G;
      var B = A + B;
      jQuery("#" + section + "_hscroll").animate({
        left: B
      }, SPEED, function() {
        hs_active = false
      });
      hs_active = true
    }
    var G;
    if (section == "serv") {
      G = hs_index_serv
    } else {
      if (section == "prod") {
        G = hs_index_prod
      } else {
        if (section == "flas") {
          G = hs_index_flas
        } else {
          G = hs_index_ddes
        }
      }
    }
    updateNavBar(G)
  }
function ObjShowPop(elem, x_, y_) {
    var Obj = document.getElementById(elem);
    var DocRef;
    var MaxX, MaxY;
    var Top, Left;
    var Haut, Larg;
    var SavY = y_;
    x_ = x_ - 232;
    y_ = y_ + 30;
    if (Obj) {
      if (NETSCAPE) {
        with(window) {
          Left = pageXOffset;
          Top = pageYOffset;
          MaxX = innerWidth;
          MaxY = innerHeight;
          if (MaxX > document.width) {
            MaxX = document.width
          }
          if (MaxY > document.height) {
            MaxY = document.height
          }
          MaxX += Left;
          MaxY += Top
        }
        if (NS4) {
          Larg = Obj.clip.width;
          Haut = Obj.clip.height
        } else {
          Larg = Obj.offsetWidth;
          Haut = Obj.offsetHeight
        }
      } else {
        if (navigator.appName == "Microsoft Internet Explorer" || document.documentElement && document.documentElement.clientWidth && !document.all) {
          DocRef = document.documentElement
        } else {
          DocRef = document.body
        }
        with(DocRef) {
          Left = scrollLeft;
          Top = scrollTop;
          MaxX = Left + clientWidth;
          MaxY = Top + clientHeight
        }
        Larg = Obj.scrollWidth;
        Haut = Obj.scrollHeight
      }
      MaxX -= Larg;
      MaxY -= Haut;
      if (x_ > MaxX) {
        x_ = MaxX
      }
      if (x_ < Left) {
        x_ = Left
      }
      if (y_ > MaxY) {
        y_ = MaxY
      }
      if (y_ < Top) {
        y_ = Top
      }
      if (y_ == MaxY) {
        var DeltaY = MaxY - SavY;
        y_ = MaxY - DeltaY - Haut - 2 * 8
      }
      document.getElementById(elem).style.top = y_ + "px";
      document.getElementById(elem).style.left = x_ + "px"
    }
  }
function infopop4(A) {
    infopopBase = document.getElementById("flash" + A);
    var B = {};
    jQuery("#flash" + A).offset({
      scroll: false
    }, B);
    ObjShowPop("infopop" + A, 275, 250);
    block("infopop" + A)
  }
function eXinfopop4(A) {
    document.getElementById("flash" + A).style.background = "none";
    none("infopop" + A)
  }
function mod(A) {
    if (A == 0) {
      return 0
    }
    if (A > 0) {
      return A * 1
    } else {
      return A * (-1)
    }
  };

