﻿
Cufon.replace("h1, .heading", { fontFamily: "AmerType Md BT" });

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-519504-12']);
_gaq.push(['_trackPageview']);

(function () {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

function Openform() {
    $("#fastApp").animate({ "top": "105px" }, "fast", "linear", function () { $("#fastApp").effect("bounce", { times: 5 }, 300); });
}

function OpenformDef() {
    $("#fastApp").animate({ "top": "105px" }, "fast", "linear", function () { $("#fastApp").effect("bounce", { times: 5 }, 300); });
    document.getElementById('Vid').src = "blank.htm"
    document.getElementById('video').style.visibility = "hidden"
}
function CloseformDef() {
    $("#fastApp").animate({ "top": "-450px" }, "fast");
    document.getElementById('Vid').src = "http://www.youtube.com/embed/u8Bqa6loUeM?rel=0"
    document.getElementById('video').style.visibility = "visible"
}
function Closeform() {
    $("#fastApp").animate({ "top": "-450px" }, "fast");
}
function OpenAsk() {
    $("#askForm").animate({ "top": "105px" }, "fast", "linear", function () { $("#askForm").effect("bounce", { times: 5 }, 300); });
}
function OpenAskDef() {
    $("#askForm").animate({ "top": "105px" }, "fast", "linear", function () { $("#askForm").effect("bounce", { times: 5 }, 300); });
    document.getElementById('Vid').src = "blank.htm"
    document.getElementById('video').style.visibility = "hidden"
}
function CloseAsk() {
    $("#askForm").animate({ "top": "-450px" }, "fast");
}
function CloseAskDef() {
    $("#askForm").animate({ "top": "-450px" }, "fast");
    document.getElementById('Vid').src = "http://www.youtube.com/embed/u8Bqa6loUeM?rel=0"
    document.getElementById('video').style.visibility = "visible"
}
function OpenCoffee() {
    $("#coffee").animate({ "top": "105px" }, "fast", "linear", function () { $("#coffee").effect("bounce", { times: 5 }, 300); });
}
function OpenCoffeeDef() {
    $("#coffee").animate({ "top": "105px" }, "fast", "linear", function () { $("#coffee").effect("bounce", { times: 5 }, 300); });
    document.getElementById('Vid').src = "blank.htm"
    document.getElementById('video').style.visibility = "hidden"
}
function CloseCoffee() {
    $("#coffee").animate({ "top": "-450px" }, "fast");
}
function CloseCoffeeDef() {
    $("#coffee").animate({ "top": "-450px" }, "fast");
    document.getElementById('Vid').src = "http://www.youtube.com/embed/u8Bqa6loUeM?rel=0"
    document.getElementById('video').style.visibility = "visible"
}
function Openform2(Height) {
    $("#fastApp").animate({ "top": Height }, "fast", "linear", function () { $("#fastApp").effect("bounce", { times: 5 }, 300); });
}
function Closeform2() {
    $("#fastApp").animate({ "top": "-450px" }, "fast");
}
function imageOneFade() {
    $('#Img1').fadeIn(1000, function () { setTimeout("$('#Img1').fadeOut(1000); imageTwoFade();", 5000); });
}

function imageTwoFade() {
    $('#Img2').fadeIn(1000, function () { setTimeout("$('#Img2').fadeOut(1000); imageOneFade();", 5000); });
}

$(document).ready(function () {
    imageOneFade();
});

