﻿$(document).ready(function() {
    //START mouseover fade in for 3 banners on bottom right side
    $('#sDigDesign').cycle({
        fx: 'fade',
        timeout: 0,
        speed: 1000,
        startingSlide: 0
    });

    $('#sDigDesign').hover(function() {
        $('#sDigDesign').cycle(1);
        return false;
    });
    $('#sDigDesign').mouseleave(function(e) {
        $('#sDigDesign').cycle(0);
        return false;
    });

    $('#sJoycube').cycle({
        fx: 'fade',
        timeout: 0,
        speed: 1000,
        startingSlide: 0
    });

    $('#sJoycube').hover(function() {
        $('#sJoycube').cycle(1);
        return false;
    });
    $('#sJoycube').mouseleave(function(e) {
        $('#sJoycube').cycle(0);
        return false;
    });

    $('#sConsultancy').cycle({
        fx: 'fade',
        timeout: 0,
        speed: 1000,
        startingSlide: 0
    });

    $('#sConsultancy').hover(function() {
        $('#sConsultancy').cycle(1);
        return false;
    });
    $('#sConsultancy').mouseleave(function(e) {
        $('#sConsultancy').cycle(0);
        return false;
    });
    //END mouseover fade in for 3 banners on bottom right side





    $('#home').mouseover(function() {
        $(this).fadeTo("slow", 0.33);

    });

    $('#home').mouseleave(function() {
        $(this).fadeTo("slow", 1);
    });


               $('#aboutUs').mouseover(function() {
    $(this).fadeTo("slow", 0.33);
               
    });

                $('#aboutUs').mouseleave(function() {
    $(this).fadeTo("slow",1);
    });

                $('#portfolio').mouseover(function() {
    $(this).fadeTo("slow", 0.33);
    });

                $('#portfolio').mouseleave(function() {
    $(this).fadeTo("slow", 1);
    });

                $('#clientList').mouseover(function() {
    $(this).fadeTo("slow", 0.33);
    });

                $('#clientList').mouseleave(function() {
    $(this).fadeTo("slow", 1);
    });

                $('#contactUs').mouseover(function() {
    $(this).fadeTo("slow", 0.33);
    });

                $('#contactUs').mouseleave(function() {
    $(this).fadeTo("slow", 1);
}); 
    
    
    


});

var clear = "clear.gif"; //path to clear.gif
document.write('<script type="text/javascript" id="ct" defer="defer" src="javascript:void(0)"><\/script>'); var ct = document.getElementById("ct"); ct.onreadystatechange = function() { pngfix() }; pngfix = function() { var els = document.getElementsByTagName('*'), ip = /\.png/i, al = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='", i = els.length, uels = new Array(), c = 0; while (i-- > 0) { if (els[i].className.match(/unitPng/)) { uels[c] = els[i]; c++; } } if (uels.length == 0) pfx(els); else pfx(uels); function pfx(els) { i = els.length; while (i-- > 0) { var el = els[i], es = el.style, elc = el.currentStyle, elb = elc.backgroundImage; if (el.src && el.src.match(ip) && !es.filter) { es.height = el.height; es.width = el.width; es.filter = al + el.src + "',sizingMethod='crop')"; el.src = clear; } else { if (elb.match(ip)) { var path = elb.split('"'), rep = (elc.backgroundRepeat == 'no-repeat') ? 'crop' : 'scale', elkids = el.getElementsByTagName('*'), j = elkids.length; es.filter = al + path[1] + "',sizingMethod='" + rep + "')"; es.height = el.clientHeight + 'px'; es.backgroundImage = 'none'; if (j != 0) { if (elc.position != "absolute") es.position = 'static'; while (j-- > 0) if (!elkids[j].style.position) elkids[j].style.position = "relative"; } } } } }; };

