/// <reference path="notused/jquery-1.2.6.js" />

/// <reference path="notused/jquery-1.2.6-vsdoc.js" />
/// <reference path="jquery.flip.js" />

/// <reference path="jquery.highlightFade.js" />

function slideform() { $("#divid").slideToggle(3e3); $(window).scrollTo("#main", 1e3, { axis: "y" }); return false } jQuery.easing["BounceEaseOut"] = function(e, a, b, c, d) { if ((a /= d) < 1 / 2.75) return c * (7.5625 * a * a) + b; else if (a < 2 / 2.75) return c * (7.5625 * (a -= 1.5 / 2.75) * a + .75) + b; else if (a < 2.5 / 2.75) return c * (7.5625 * (a -= 2.25 / 2.75) * a + .9375) + b; else return c * (7.5625 * (a -= 2.625 / 2.75) * a + .984375) + b };
$(document).ready(function() {    
    $(".example7").colorbox({ width: "80%", height: "90%", iframe: true });
    $(".casestudy").colorbox({ scrolling: false });
    $(".casestudy").colorbox().resize();
    jQuery("div.slider1").codaSlider();
    jQuery("#topcarousel").jcarousel({ vertical: true, scroll: 1, start: 1, easing: "BounceEaseOut", animation: 800 });
    $(".menu2 a").hover(function() { $(this).next("em").animate({ opacity: "show", top: "40" }, "slow") }, function() { $(this).next("em").animate({ opacity: "hide", top: "65" }, "fast") });
    jQuery("#mycarousel").jcarousel({ vertical: true, scroll: 1, start: 1, easing: "BounceEaseOut", animation: 1e3 });
    jQuery("#mycarousel2").jcarousel({ vertical: true, scroll: 1, start: 1, easing: "BounceEaseOut", animation: 1e3 });
    jQuery("#mycarousel3").jcarousel({ vertical: true, scroll: 1, start: 1, easing: "BounceEaseOut", animation: 1e3 });
    $("#contact, #contact2, #Button2").click(function() {
        $("#divid").slideDown(3e3);
        $(window).scrollTo("#mygallery", 1e3, { axis: "y" }); return false
    });
    $("#formhide").click(function() { $("#divid").slideUp(1e3); return false });
    $("#portifolioid").click(function() { $(window).scrollTo("#porstart", 1e3, { axis: "y" }) });
    $("#servicesid").click(function() { $(window).scrollTo("#main", 1e3, { axis: "y" }); return false });
    $(".menu a").hover(function() { $(this).next("em").animate({ opacity: "show", top: "-75" }, "slow") }, function() { $(this).next("em").animate({ opacity: "hide", top: "-85" }, "fast") })
})

function pageLoad() {
try{
    var s = document.getElementById('ctl00_sidebar_inc_Hidden1').value;
    }
    catch(err){
    var s = document.getElementById('sidebar_inc_Hidden1').value;
    }
    
    if (s == "WRONGEMAIL") 
    {
        $('#flipcover').highlightFade({ color: 'red', speed: 1000, iterator: 'exponential' });
        
        return false;
    }
    if (s == "WRONGDESC") {
        $('#flipcover').highlightFade({ color: 'red', speed: 1000, iterator: 'exponential' });
        
        return false;
    }
    if (s == "Success") {
        $('#quickquote').flip({ direction: 'bt', color: '#12120f', speed: 1000, content: $('#flipvisible') });
        $('#quickquote').highlightFade({ color: 'rgb(153,204,51)', speed: 4000, iterator: 'exponential' });        
        document.getElementById('quickquote').style.color = "#99cc33";
        return false; 
    }
}
