﻿
//---------------------------TABS ------------------------------------------------//
function tabMouseOver(lnkid) {

    if (lnkid == "divAbout") {
        document.getElementById('lnkAbout').className = "tabSelected";
        document.getElementById('lnkAboutSub').style.display = "block";
    }
    else if (lnkid == "divProducts") {

        document.getElementById('lnkProducts').className = "tabSelected";
    }
    else if (lnkid == "divServices") {

        document.getElementById('lnkServices').className = "tabSelected";
    }
    else if (lnkid == "divCareer") {

        document.getElementById('lnkCareer').className = "tabSelected";
    }
    else if (lnkid == "divTestimonials") {

        document.getElementById('lnkTestimonials').className = "tabSelected";
    }
    else if (lnkid == "divPartnerUs") {

        document.getElementById('lnkPartnerUs').className = "tabSelected";
    }

}


function tabMouseOut(lnkid, value) {

    if (lnkid == "lnkAbout") {
        if (value == "1") {
            document.getElementById('lnkAbout').className = "tabSelected";
            document.getElementById('lnkAboutSub').style.display = "none";
        } else {
            document.getElementById('lnkAbout').className = "tab";
            document.getElementById('lnkAboutSub').style.display = "none";
        }
    }
    else if (lnkid == "lnkProducts") {
        if (value == "1") {
            document.getElementById('lnkProducts').className = "tabSelected";
        } else {
            document.getElementById('lnkProducts').className = "tab";
        }
    }
    else if (lnkid == "lnkServices") {
        if (value == "1") {
            document.getElementById('lnkServices').className = "tabSelected";
        } else {
            document.getElementById('lnkServices').className = "tab";
        }
    }
    else if (lnkid == "lnkCareer") {
        if (value == "1") {
            document.getElementById('lnkCareer').className = "tabSelected";
        } else {
            document.getElementById('lnkCareer').className = "tab";
        }
    }
    else if (lnkid == "lnkTestimonials") {
        if (value == "1") {
            document.getElementById('lnkTestimonials').className = "tabSelected";
        } else {
            document.getElementById('lnkTestimonials').className = "tab";
        }
    }
    else if (lnkid == "lnkPartnerUs") {
        if (value == "1") {
            document.getElementById('lnkPartnerUs').className = "tabSelected";
        } else {
            document.getElementById('lnkPartnerUs').className = "tab";
        }
    }

}

//---------------------------TECHNICAL EXPERTISE CYCLE ------------------------------------------------//


$(document).ready(function() {
    $('.technical_expertise').cycle({
        fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
    });
});

//---------------------------VALIDATION QUICK QUOTE ------------------------------------------------//

function isEmpty(s) {
    if (s.length == 0) return true;
    if (trim(s).length == 0) return true;
    return false;
}

//	TODO: check the function
function isEmail(s) {

    return chkEmail(s);

}

/**
* Validates the email address.
*/
function isValidEmail(s) {

    var v = trim(s);
    var we_had_monkey = false, relief = true;
    var we_had_dot = false;
    var count = 0;

    // sta je dobra email adresa?
    // mora da ima jedno majmunce
    // ne sme da ima razmake, moze da ima slova, cifre, crtice
    for (i = 0; i < v.length; i++) {
        c = v.charAt(i);
        count++;

        // tacka ne sme da ide iza majmunceta i
        // dve tacke ne smeju da idu jedna za drugom
        if (we_had_monkey == true) {
            if (c == '.') {
                we_had_dot = true;
                if (relief == true) {
                    relief = false;
                    continue;
                } else {
                    return false;
                }
            }
            if (relief == false) relief = true;
        } else {
            if (c == '.') continue;
            if (c == '@') {
                // ima li znakova ispred majmunceta?
                if (count == 1) {
                    return false;
                }
                count = 0;
                we_had_monkey = true;
                relief = false;
                continue;
            }
        }

        // standardno, slova, cifre i crtice su dozvoljeni
        if ((c >= 'a') && (c <= 'z')) continue;
        if ((c >= 'A') && (c <= 'Z')) continue;
        if ((c >= '0') && (c <= '9')) continue;
        if ((c == '-') || (c == '_')) continue;
        if ((c == "'")) continue;

        return false;
    }
}

function validate_quote() {

    var error_occured = false;
    var ddl = document.getElementById("category");

    if (isEmpty(document.getElementById("txtname").value)) {
        document.getElementById("txtname_err").style.display = 'block';
        error_occured = true;
    }
    if (isEmpty(document.getElementById("txtemail").value)) {
        document.getElementById("txtemail_err").style.display = 'block';
        error_occured = true;
    }
    if (isEmpty(document.getElementById("txtdetails").value)) {
        document.getElementById("txtdetails_err").style.display = 'block';
        error_occured = true;
    }
    if (ddl.options[ddl.selectedIndex].value == '0') {
        document.getElementById("category_err").style.display = 'block';
        error_occured = true;
    }
    if (!(isEmail(document.getElementById("txtemail").value))) {
        document.getElementById("txtemail_err").style.display = 'block';
        error_occured = true;
    }


    if (!error_occured) {
        //addquote();
        return true;
    }
    else {
        return false;
    }
}

function changecss(obj, errid) {
    if (obj.value != '') {
        obj.style.background = 'White';
        eval(errid + ".style.display = 'none'");
    }
}

function trim(strText) {
    // this will get rid of leading spaces 
    while (strText.substring(0, 1) == ' ')
        strText = strText.substring(1, strText.length);

    // this will get rid of trailing spaces 
    while (strText.substring(strText.length - 1, strText.length) == ' ')
        strText = strText.substring(0, strText.length - 1);

    return strText;
}

function chkEmail(strEmail) {
    strIndex = strEmail.indexOf("@");

    len = strEmail.length;
    strFind = strEmail.substring(strIndex, len);
    if (strEmail.indexOf("@") < 1 || strEmail.indexOf(".") < 1 || strEmail.length < 5) {
        return false;
    }
    if (strFind.indexOf(".") < 3)
        return false;
    else
        return true;
}
function hide_error(obj, panel) {
    if (obj.value != '') {
        obj.style.background = 'White';
        //eval(panel+".style.display = 'none'");
        document.getElementById(panel).style.display = 'none';
    }
}

//---------------------------VALIDATION REQUEST FOR PROPOSAL ------------------------------------------------//

var obj
obj = "document.form-query."
function requestproposal_validate() {
    error_occured = false;
    var f = document.forms['form-query'];
    if (trim(f.txtcname.value) == "") {
        document.getElementById("error_txtcname").style.display = 'block';
        document.getElementById("error_txtcname").innerHTML = "<span class='errorheader'>Please enter Company name";
        f.txtcname.focus();
        error_occured = true;
    }

    if (trim(f.txtcperson.value) == "") {
        document.getElementById("error_txtcperson").style.display = 'block';
        document.getElementById("error_txtcperson").innerHTML = "<span class='errorheader'>Please enter your name";
        (error_occured == false ? f.txtcperson.focus() : '');
        error_occured = true;
    }

    if (trim(f.txtcemail.value) == "") {
        document.getElementById("error_txtcemail").style.display = 'block';
        document.getElementById("error_txtcemail").innerHTML = "<span class='errorheader'>Please enter Your Contact email";
        (error_occured == false ? f.txtcemail.focus() : '');
        error_occured = true;
    }
    if (!(isEmail(f.txtcemail.value))) {
        document.getElementById("error_txtcemail").style.display = 'block';
        document.getElementById("error_txtcemail").innerHTML = "<span class='errorheader'>Please enter email like someone@host.com";
        (error_occured == false ? f.txtcemail.focus() : '');
        error_occured = true;

    }

    if (trim(f.txtcurl.value) == "") {
        document.getElementById("error_txtcurl").style.display = 'block';
        document.getElementById("error_txtcurl").innerHTML = "<span class='errorheader'>Please enter Company url";
        (error_occured == false ? f.txtcurl.focus() : '');
        error_occured = true;
    }

    if (trim(f.services.value) == "") {
        document.getElementById("error_services").style.display = 'block';
        document.getElementById("error_services").innerHTML = "<span class='errorheader'>Please select one";
        (error_occured == false ? f.services.focus() : '');
        error_occured = true;
    }


    if (!error_occured) {
        return true;
        document.getElementById("divThanks").style.display = 'block';
        document.getElementById("divDetails").style.display = 'none';
    }
    else {
        return false;
    }

}

function IsWholeNumber(TextBoxObj, e) {

    //var keyCode = window.event.keyCode; 
    var key = '';
    var strCheck = '0123456789';
    var whichCode = (window.Event) ? e.which : e.keyCode;
    key = String.fromCharCode(whichCode);
    if (whichCode == 13 || whichCode == 8 || whichCode == 0) return true;
    // alert(strCheck.indexOf(key));
    if (strCheck.indexOf(key) == -1) {
        return false;
    }
}
var http = getHTTPObject();
function addquote() {
    var f = document.form1;
    var load = "<img src='images/indicator.gif'>";

    var details = f.details.value;
    var category = document.getElementById("category").value;
    var txtname = document.getElementById("txtname").value;

    var txtemail = document.getElementById("txtemail").value;
    if (txtemail != '') {

        var url = "addquote.asp?details=" + details + "&category=" + category + "&txtname=" + txtname + "&txtemail=" + txtemail;

        showmsg.innerHTML = '';
        showmsg.innerHTML = load;
        showmsg.style.display = 'block';
        var params = url + '&' + (new Date()).getTime();
        http.open("GET", params, true);
        http.onreadystatechange = handleHttpResponse;
        http.send(null);
    }
    else {
        showmsg.style.display = 'none';
    }
}
function getHTTPObject() {

    var xmlhttp;
    //if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
        if (window.XMLHttpRequest) { // Mozilla, Safari, ...
            xmlhttp = new XMLHttpRequest();
        }
        else if (window.ActiveXObject) {
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
    }
    catch (e) {
        xmlhttp = false;
    }
    //}
    //alert(xmlhttp);
    return xmlhttp;
}
function handleHttpResponse() {
    if (http.readyState == 4) {
        results = http.responseText;

        if (results != '') {
            document.getElementById("showmsg").style.display = 'block';
            document.getElementById("showmsg").innerHTML = "<span class='errornormal'>Thank you we will get back to you soon";
            document.getElementById("details").value = '';
            document.getElementById("txtname").value = '';
            document.getElementById("txtemail").value = '';
        }
        else {
            showmsg.style.display = 'none';
        }
    }
}

function trim(inputString) {
    // Removes leading and trailing spaces from the passed string. Also removes
    // consecutive spaces and replaces it with one space. If something besides
    // a string is passed in (null, custom object, etc.) then return the input.
    if (typeof inputString != "string") { return inputString; }
    var retValue = inputString;
    var ch = retValue.substring(0, 1);
    while (ch == " ") { // Check for spaces at the beginning of the string
        retValue = retValue.substring(1, retValue.length);
        ch = retValue.substring(0, 1);
    }
    ch = retValue.substring(retValue.length - 1, retValue.length);
    while (ch == " ") { // Check for spaces at the end of the string
        retValue = retValue.substring(0, retValue.length - 1);
        ch = retValue.substring(retValue.length - 1, retValue.length);
    }
    while (retValue.indexOf("  ") != -1) { // Note that there are two spaces in the string - look for multiple spaces within the string
        retValue = retValue.substring(0, retValue.indexOf("  ")) + retValue.substring(retValue.indexOf("  ") + 1, retValue.length); // Again, there are two spaces in each of the strings
    }
    return retValue; // Return the trimmed string back to the user
} // Ends the "trim" function


//---------------------------VALIDATION CAREER ------------------------------------------------//

function textCounter(field, cntfield, maxlimit) {
    if (field.value.length > maxlimit) // if too long...trim it!
        field.value = field.value.substring(0, maxlimit);
    // otherwise, update 'characters left' counter
    else
        cntfield.value = maxlimit - field.value.length;
}

var obj
obj = "document.form1."
function career_validate() {
    error_occured = false;
    var f = document.forms['form1'];
    if (trim(f.txtResumeNm.value) == "") {
        document.getElementById("error_txtResumeNm").style.display = 'block';
        document.getElementById("error_txtResumeNm").innerHTML = "<span class='errorheader'>Please enter resume name";
        error_occured = true;
    }

    if (trim(f.txtSkillset.value) == "") {
        document.getElementById("error_txtSkillset").style.display = 'block';
        document.getElementById("error_txtSkillset").innerHTML = "<span class='errorheader'>Please enter your skill sets";
        error_occured = true;
    }

    if (trim(f.txtPQual.value) == "") {
        document.getElementById("error_txtPQual").style.display = 'block';
        document.getElementById("error_txtPQual").innerHTML = "<span class='errorheader'>Please enter Your professional qualification";
        error_occured = true;
    }


    if (trim(f.txtEQual.value) == "") {
        document.getElementById("error_txtEQual").style.display = 'block';
        document.getElementById("error_txtEQual").innerHTML = "<span class='errorheader'>Please enter Educational qualification";
        error_occured = true;
    }

    if (trim(f.fname.value) == "" || trim(f.lname.value) == "") {
        document.getElementById("error_fname").style.display = 'block';
        document.getElementById("error_fname").innerHTML = "<span class='errorheader'>Please enter your first name and last name";
        error_occured = true;
    }

    if (f.dd.value == "" || f.mm.value == "" || f.yy.value == "") {
        document.getElementById("error_dd").style.display = 'block';
        document.getElementById("error_dd").innerHTML = "<span class='errorheader'>Please enter your dob in dd mm yy format";
        error_occured = true;
    }
    if (f.email.value == "") {
        document.getElementById("error_email").style.display = 'block';
        document.getElementById("error_email").innerHTML = "<span class='errorheader'>Please enter Your email address";
        error_occured = true;
    }

    if (!(isEmail(f.email.value))) {
        document.getElementById("error_email").style.display = 'block';
        document.getElementById("error_email").innerHTML = "<span class='errorheader'>Please enter email like someone@host.com";
        error_occured = true;

    }

    if (f.txtSkillset.value != "") {
        if ((f.txtSkillset.value.length) > 1000) {
            document.getElementById("error_txtSkillset").style.display = 'block';
            document.getElementById("error_txtSkillset").innerHTML = "<span class='errorheader'>Your 1000 characters are complete";
            error_occured = true;
        }
    }

    if (f.txtProjAch.value != "") {
        if ((f.txtProjAch.value.length) > 5000) {
            document.getElementById("error_project").style.display = 'block';
            document.getElementById("error_project").innerHTML = "<span class='errorheader'>Your 5000 characters are complete";
            error_occured = true;
        }
    }

    if (f.txtNatureWork.value != "") {
        if ((f.txtNatureWork.value.length) > 1000) {
            document.getElementById("error_naturework").style.display = 'block';
            document.getElementById("error_naturework").innerHTML = "<span class='errorheader'>Your 1000 characters are complete";
            error_occured = true;
        }
    }

    if (f.txtPQual.value != "") {
        if ((f.txtPQual.value.length) > 1000) {
            document.getElementById("error_txtPQual").style.display = 'block';
            document.getElementById("error_txtPQual").innerHTML = "<span class='errorheader'>Your 1000 characters are complete";
            error_occured = true;
        }
    }

    if (f.txtEQual.value != "") {
        if ((f.txtEQual.value.length) > 1000) {
            document.getElementById("error_txtEQual").style.display = 'block';
            document.getElementById("error_txtEQual").innerHTML = "<span class='errorheader'>Your 1000 characters are complete";
            error_occured = true;
        }
    }

    if (!error_occured) {
        return true;
    }
    else {
        return false;
    }

}


//---------------------------OTHER ------------------------------------------------//
function open(idc, ido) {
    alert(idc);
    document.getElementById(idc).style.display = 'none';
    document.getElementById(ido).style.display = 'block';
    return false;
}

function close(ido, idc) {
    document.getElementById(idc).style.display = 'none';
    document.getElementById(ido).style.display = 'block';
    return false;
}

$(document).ready(function() {
    $('#Chicago').click(function() {
        $('#Chicagoshort').hide();
        $('#Chicagolarge').show();

    });

    $('#Chicago1').click(function() {
        $('#Chicagolarge').hide();
        $('#Chicagoshort').show();

    });

    $('#CSchafer').click(function() {
        $('#CSchaferShort').hide();
        $('#CSchaferLarge').show();

    });

    $('#CSchafer1').click(function() {
        $('#CSchaferLarge').hide();
        $('#CSchaferShort').show();

    });
});


function showform() {
    tble = document.getElementById("tb1");

    if (tble.style.display == 'none') {
        tble.style.display = 'block';
    }
    else {
        tble.style.display = 'none';
    }

}

function showPanel(id) {

	var str = '';
	str = str + '<!-- RIGHT PANEL STARTS HERE -->' + '\n';
	str = str + '<div class="rightBox">' + '\n';
	str = str + '<!-- QUICK QUOTE STARTS HERE -->' + '\n';
	str = str + '<div class="boxLightGray">' + '\n';
	str = str + '<!--- box border -->' + '\n';
	str = str + '<div class="lblightgray">' + '\n';
	str = str + '<div class="rblightgray">' + '\n';
	str = str + '<div class="bblightgray">' + '\n';
	str = str + '<div class="blclightgray">' + '\n';
	str = str + '<div class="brclightgray">' + '\n';
	str = str + '<div class="tblightgray">' + '\n';
	str = str + '<div class="tlclightgray">' + '\n';
	str = str + '<div class="trclightgray">' + '\n';
	str = str + '<div class="newsEventsRightBlock">' + '\n';
	str = str + '<div class="quickQuoteListStyleBtn">' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="leftContentAreaHeading">&nbsp;Quick Quote</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="clear"></div>' + '\n';
	
	str = str + '<form id="form_quote" style="padding: 0; margin: 0" method="post" action="addquote.asp" onsubmit="return validate_quote();">' + '\n';
	str = str + '<input type="hidden" name="actiontype" id="actiontype" value="i" />' + '\n';
	str = str + '<table cellpadding="0" cellspacing="15">' + '\n';
	str = str + '<tr>' + '\n';
	str = str + '<td>' + '\n';
	str = str + '<div class="quickQuoteText">Name:&nbsp;<span class="star">*</span></div>' + '\n';
	str = str + '<div class="floatLeft">' + '\n';
	str = str + '<input id="txtname" name="txtname" type="text" class="txtBox" onblur="hide_error(this,\'txtname_err\')" value="" />' + '\n';
	str = str + '<div align="left" id="txtname_err" class="validationText" style="display: none">&nbsp;Enter Name</div></div>' + '\n';
	str = str + '<div class="clear3"></div>' + '\n';
	str = str + '<div class="quickQuoteText">Email:&nbsp;<span class="star">*</span></div>' + '\n';
	str = str + '<div class="floatLeft">' + '\n';
	str = str + '<input name="txtemail" id="txtemail" type="text" class="txtBox" onblur="hide_error(this,\'txtemail_err\')" value="" />' + '\n';
	str = str + '<div align="left" id="txtemail_err" class="validationText" style="display: none">&nbsp;Enter valid Email</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="clear5"></div>' + '\n';
	str = str + '<div class="quickQuoteText">Category:&nbsp;<span class="star">*</span>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="floatLeft">' + '\n';
	str = str + '<select id="category" name="category" class="dropDownList1" onblur="hide_error(this,\'category_err\')">' + '\n';
	str = str + '<option value="0">-- Select Category -- </option>' + '\n';
	str = str + '<optgroup label="PRODUCTS" style="font-style: normal; padding: 0; margin: 0">' + '\n';
	str = str + '<option value="CRM">CRM</option>' + '\n';
	str = str + '<option value="E-Commerce">E-Commerce</option>' + '\n';
	str = str + '<option value="Print Management">Print Management</option>' + '\n';
	str = str + '<option value="Warehouse Management">Warehouse Management</option>' + '\n';
	str = str + '</optgroup>' + '\n';
	str = str + '<optgroup label="SERVICES" style="font-style: normal;">' + '\n';
	str = str + '<option value="Web Development">Web Development</option>' + '\n';
	str = str + '<option value="PHP Development">PHP Development</option>' + '\n';
	str = str + '<option value="Open Source">Open Source</option>' + '\n';
	str = str + '<option value="Microsoft Technologies">Microsoft Technologies</option>' + '\n';
	str = str + '<option value="iPhone">iPhone / Android Development </option>' + '\n';
	str = str + '<option value="Yahoo Store">Yahoo Store</option>' + '\n';
	str = str + '<option value="Web Marketing">Web Marketing / SEO</option>' + '\n';
	str = str + '</optgroup>' + '\n';
	str = str + '<option value="Others">Others</option>' + '\n';
	str = str + '</select>' + '\n';
	str = str + '<div align="left" id="category_err" class="validationText" style="display: none">' + '\n';
	str = str + '&nbsp;Please Select Category' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="clear5">' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="quickQuoteText">' + '\n';
	str = str + 'Requirement:&nbsp;<span class="star">*</span>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="floatLeft">' + '\n';
	str = str + '<textarea name="txtdetails" id="txtdetails" cols="18" rows="2" class="txtBox" onblur="hide_error(this,\'txtdetails_err\')"></textarea>' + '\n';
	str = str + '<div align="left" id="txtdetails_err" class="validationText" style="display: none">' + '\n';
	str = str + '&nbsp;Enter Requirement</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="clear5">' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="quickQuoteText">' + '\n';
	str = str + '&nbsp;' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="floatLeft">' + '\n';
	str = str + '<input name="btn" id="btn" value="Submit" class="button" type="submit" />' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</td>' + '\n';
	str = str + '</tr>' + '\n';
	str = str + '</table>' + '\n';
	str = str + '</form>' + '\n';
	
	str = str + '<div class="clear">' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<!-- QUICK QUOTE ENDS HERE -->' + '\n';
	str = str + '<div class="clear10">' + '\n';
	str = str + '<br />' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<!-- TECHNICAL EXPERTISE START HERE -->' + '\n';
	str = str + '<div class="boxLightGray">' + '\n';
	str = str + '<!--- box border -->' + '\n';
	str = str + '<div class="lblightgray">' + '\n';
	str = str + '<div class="rblightgray">' + '\n';
	str = str + '<div class="bblightgray">' + '\n';
	str = str + '<div class="blclightgray">' + '\n';
	str = str + '<div class="brclightgray">' + '\n';
	str = str + '<div class="tblightgray">' + '\n';
	str = str + '<div class="tlclightgray">' + '\n';
	str = str + '<div class="trclightgray">' + '\n';
	str = str + '<div class="newsEventsRightBlock">' + '\n';
	str = str + '<div class="quickQuoteListStyleBtn">' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="leftContentAreaHeading">' + '\n';
	str = str + '&nbsp;Technical Expertise</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="clear10">' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="technical_expertise">' + '\n';
	str = str + '<img alt="ajax" style="z-index: 15;" src="images/ajax.gif" />' + '\n';
	str = str + '<img alt="cakephp" style="z-index: 15" src="images/cakephp.gif" />' + '\n';
	str = str + '<img alt="drupal" style="z-index: 15" src="images/drupal.gif" />' + '\n';
	str = str + '<img alt="iphone" style="z-index: 16;" src="images/iphone.gif" />' + '\n';
	str = str + '<img alt="java" style="z-index: 11" src="images/java.gif" />' + '\n';
	str = str + '<img alt="joomla" style="z-index: 10" src="images/joomla.gif" />' + '\n';
	str = str + '<img alt="magento" style="z-index: 9" src="images/magento.gif" />' + '\n';
	str = str + '<img alt="microsoft" style="z-index: 8" src="images/microsoft.gif" />' + '\n';
	str = str + '<img alt="osc" style="z-index: 7" src="images/osc.gif" />' + '\n';
	str = str + '<img alt="php" style="z-index: 6" src="images/php.gif" />' + '\n';
	str = str + '<img alt="wordpress" style="z-index: 4" src="images/wordpress.gif" />' + '\n';
	str = str + '<img alt="xcart" style="z-index: 3" src="images/xcart.gif" />' + '\n';
	str = str + '<img alt="yahoo" style="z-index: 2" src="images/yahoo.gif" />' + '\n';
	str = str + '<img alt="zend" style="z-index: 1" src="images/zend.gif" />' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="clear">' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<!-- TECHNICAL EXPERTISE ENDS HERE -->' + '\n';
	str = str + '<div class="clear10">' + '\n';
	str = str + '<br />' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<!-- CLIENT TESTIMONIAL STARTS HERE -->' + '\n';
	str = str + '<div class="boxLightGray">' + '\n';
	str = str + '<!--- box border -->' + '\n';
	str = str + '<div class="lblightgray">' + '\n';
	str = str + '<div class="rblightgray">' + '\n';
	str = str + '<div class="bblightgray">' + '\n';
	str = str + '<div class="blclightgray">' + '\n';
	str = str + '<div class="brclightgray">' + '\n';
	str = str + '<div class="tblightgray">' + '\n';
	str = str + '<div class="tlclightgray">' + '\n';
	str = str + '<div class="trclightgray">' + '\n';
	str = str + '<div class="newsEventsRightBlock">' + '\n';
	str = str + '<div class="quickQuoteListStyleBtn">' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="leftContentAreaHeading">' + '\n';
	str = str + '&nbsp;Customer Testimonial</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="clear">' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<table cellpadding="0" cellspacing="15">' + '\n';
	str = str + '<tr>' + '\n';
	str = str + '<td>' + '\n';
	str = str + '<span class="leftContentAreaText">Just completed second project with Vic and I am very' + '\n';
	str = str + 'pleased with the outcome. A complex project on many levels brings many problems' + '\n';
	str = str + 'which were worked through and resolved...</span>' + '\n';
	str = str + '<div align="right">' + '\n';
	str = str + '<span class="leftContentAreaText"><strong><em>Ian Collinge, MOWMOW, UK</em></strong></span></div>' + '\n';
	str = str + '<div class="clear10">' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<a id="lnkTestimonial" class="viewAllButton" href="testimonials.htm"></a>' + '\n';
	str = str + '</td>' + '\n';
	str = str + '</tr>' + '\n';
	str = str + '</table>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="clear10">' + '\n';
	str = str + '<br />' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<!-- CLIENT TESTIMONIAL ENDS HERE -->' + '\n';
	str = str + '<!-- NEWS & EVENTS STARTS HERE -->' + '\n';
	str = str + '<div class="boxLightGray">' + '\n';
	str = str + '<!--- box border -->' + '\n';
	str = str + '<div class="lblightgray">' + '\n';
	str = str + '<div class="rblightgray">' + '\n';
	str = str + '<div class="bblightgray">' + '\n';
	str = str + '<div class="blclightgray">' + '\n';
	str = str + '<div class="brclightgray">' + '\n';
	str = str + '<div class="tblightgray">' + '\n';
	str = str + '<div class="tlclightgray">' + '\n';
	str = str + '<div class="trclightgray">' + '\n';
	str = str + '<div class="newsEventsRightBlock">' + '\n';
	str = str + '<div class="quickQuoteListStyleBtn">' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="leftContentAreaHeading">' + '\n';
	str = str + '&nbsp;News And Events</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="clear10">' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<table cellpadding="0" cellspacing="15">' + '\n';
	str = str + '<tr>' + '\n';
	str = str + '<td valign="top">' + '\n';
	str = str + '<img alt="Infomaze at Bangalore IT BIZ 2010" src="images/bangalore-it-biz-2010.jpg"' + '\n';
	str = str + 'border="0" />' + '\n';
	str = str + '</td>' + '\n';
	str = str + '<td valign="top">' + '\n';
	str = str + '<div class="date">' + '\n';
	str = str + 'October-2010' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="clear5">' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="leftContentAreaText">' + '\n';
	str = str + 'Meet Infomaze at <strong>Bangalore IT event</strong> at Stall # T-12 during the' + '\n';
	str = str + 'dates <strong>28th Oct. - 30th Oct 2010</strong>.</div>' + '\n';
	str = str + '<div class="clear5">' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="leftContentAreaText">' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="clear10">' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</td>' + '\n';
	str = str + '</tr>' + '\n';
	str = str + '<tr>' + '\n';
	str = str + '<td valign="top">' + '\n';
	str = str + '<img alt="image2" src="images/image2.PNG" />' + '\n';
	str = str + '</td>' + '\n';
	str = str + '<td valign="top">' + '\n';
	str = str + '<div class="date">' + '\n';
	str = str + 'August-2010' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="clear5">' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="leftContentAreaText">' + '\n';
	str = str + 'Training conducted at Infomaze - <strong>HTML 5</strong> and <strong>iPhone Application' + '\n';
	str = str + 'Development</strong>.' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="clear5">' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="leftContentAreaText">' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</td>' + '\n';
	str = str + '</tr>' + '\n';
	str = str + '</table>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<div class="clear10">' + '\n';
	str = str + '<br />' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<!-- NEWS & EVENTS ENDS HERE -->' + '\n';
	str = str + '</div>' + '\n';
	str = str + '<!-- RIGHT PANEL ENDS HERE -->' + '\n';
	document.getElementById(id).innerHTML = str;
}

function showFooter() {
var str = '';
str = '<div id="boxGray">';
str= str + '<!--- box border -->' +'\n';
str= str + '<div id="lbgray">' +'\n';
str= str + '<div id="rbgray">' +'\n';
str= str + '<div id="bbgray">' +'\n';
str= str + '<div id="blcgray">' +'\n';
str= str + '<div id="brcgray">' +'\n';
str= str + '<div id="tbgray">' +'\n';
str= str + '<div id="tlcgray">' +'\n';
str= str + '<div id="trcgray">' +'\n';
str= str + '<div class="footerPanel">' +'\n';
str= str + '<table cellpadding="0" cellspacing="0" width="100%">' +'\n';
str= str + '<tr>' +'\n';
str= str + '<td align="left" class="footerLeptPanel">' +'\n';

str= str + '<a class="footerLinkUseful" id="lnkAboutUsFooter" href="android-application-development.htm">Android Application Development</a>' +'<br>';
str= str + '<a class="footerLinkUseful" id="lnkProductsFooter" href="iPhone-application-development.htm">iPhone Application Development</a>' +'<br>';
str= str + '<a class="footerLinkUseful" id="lnkServicesFooter" href="web-development-australia.htm">Web Development Australia</a>' +'<br>';

str= str + '</td>' +'\n';

str= str + '<td align="right" class="footerRightPanel">' +'\n';
str= str + '<div class="floatRight">' +'\n';
str= str + '<div class="floatLeft">' +'\n';
str= str + '<div class="copyRightText">&copy; 2004-2011 Infomaze Technologies.</div>' +'\n';
str= str + '<div class="footerLinkArea">' +'\n';
str= str + '<a class="footerLinkSelected" id="lnkAboutUsFooter" href="about-infomaze.htm">About Us</a>' +'\n';
str= str + '<div class="delimiter">|' +'\n';
str= str + '</div>' +'\n';
str= str + '<a class="footerLink" id="lnkProductsFooter" href="products.htm">Products</a>' +'\n';
str= str + '<div class="delimiter">|' +'\n';
str= str + '</div>' +'\n';
str= str + '<a class="footerLink" id="lnkServicesFooter" href="services.htm">Services</a>' +'\n';
str= str + '<div class="delimiter">|' +'\n';
str= str + '</div>' +'\n';
str= str + '<a class="footerLink" id="lnkCareerFooter" href="career.htm">Career</a>' +'\n';
str= str + '<div class="delimiter">|' +'\n';
str= str + '</div>' +'\n';
str= str + '<a class="footerLink" id="lnkTestimonialsFooter" href="testimonials.htm">Testimonials</a>' +'\n';
str= str + '<div class="delimiter">|' +'\n';
str= str + '</div>' +'\n';
str= str + '<a class="footerLink" id="lnkPartnerUsFooter" href="partner-us.htm">Partner Us</a>' +'\n';
str= str + '</div>' +'\n';
str= str + '</div>' +'\n';

str= str + '</div>' +'\n';
str= str + '</td>' +'\n';
str= str + '</tr>' +'\n';
str= str + '</table>' +'\n';
str= str + '</div>' +'\n';
str= str + '</div>' +'\n';
str= str + '</div>' +'\n';
str= str + '</div>' +'\n';
str= str + '</div>' +'\n';
str= str + '</div>' +'\n';
str= str + '</div>' +'\n';
str= str + '</div>' +'\n';
str= str + '</div>' +'\n';
str= str + '</div>' +'\n';
document.write(str);}

