function MM_preloadImages() { //v3.0
    var d=document;
    if(d.images){
        if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
        for(i=0; i<a.length; i++)
            if (a[i].indexOf("#")!=0){
                d.MM_p[j]=new Image;
                d.MM_p[j++].src=a[i];
            }
    }
}

function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr;
    for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
    var p,i,x;
    if(!d) d=document;
    if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document;
        n=n.substring(0,p);
    }
    if(!(x=d[n])&&d.all) x=d.all[n];
    for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
    if(!x && d.getElementById) x=d.getElementById(n);
    return x;
}

function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments;
    document.MM_sr=new Array;
    for(i=0;i<(a.length-2);i+=3)
        if ((x=MM_findObj(a[i]))!=null){
            document.MM_sr[j++]=x;
            if(!x.oSrc) x.oSrc=x.src;
            x.src=a[i+2];
        }
}

(function ($) {

    $(document).ready(function() {

        /* SEARCH FUNCTIONS */
        if($("#edit-search-block-form--2").attr("value")==""){
            $("#edit-search-block-form--2").attr("value","Search this site");
        }

        $('#edit-search-block-form--2').focus(function() {
            if($("#edit-search-block-form--2").attr("value")=="Search this site"){
                $("#edit-search-block-form--2").attr("value","");
            }
        });

        $('#edit-search-block-form--2').blur(function() {
            if($("#edit-search-block-form--2").attr("value")==""){
                $("#edit-search-block-form--2").attr("value","Search this site");
            }
        });

        $('#search-block-form').submit(function() {
            if($("#edit-search-block-form--2").attr("value")==""){
                return false;
            }
            if($("#edit-search-block-form--2").attr("value")=="Search this site"){
                return false;
            }
        });
    });
})(jQuery);

function quotes()
{
//15
var ranNum= Math.round(Math.random() * 15);
if (ranNum == 0){document.write('"...after 39 years of employment by others I have found the Contractor Umbrella experience a pleasure to be part of..."'); } // 01
if (ranNum == 1){document.write('"I have been using Contractor Umbrella for 4 years and have always found their service to be excellent."'); } // 02
if (ranNum == 2){document.write('"I have been contracting for 20 years and you are by far the best professional organisation I have used in that time."'); } // 03
if (ranNum == 3){document.write('"Frankly, I would strongly recommend Contractor Umbrella to anyone who needs this kind of services."'); } // 04
if (ranNum == 4){document.write('"I have recommended CU to numerous people and all of them are very happy with the service they receive."'); } // 05
if (ranNum == 5){document.write('"Wonderful these days to have such personal, swift and human contact with a company!"'); } // 06
if (ranNum == 6){document.write('"I have also looked around for other umbrella companies to see which was the best value for money, and Contractor Umbrella are by far the best..." '); } // 07
if (ranNum == 7){document.write('"I was worried about finding a reliable umbrella company and am so glad to have been recommended Contractor Umbrella."'); } // 08
if (ranNum == 8){document.write('"Thanks for the excellent service up to now. I wish I had switched to your services years ago." '); } // 09
if (ranNum == 9){document.write('"Good work, you guys rock. I keep recommending you to everyone I meet." '); } // 10
if (ranNum == 10){document.write('"Can I just say that the service you guys have provided to me has been consistently excellent..."'); } // 11
if (ranNum == 11){document.write('"Contractor Umbrella provided a fantastic service to me during my final months as a contractor and were by far the best in the market - I even recommended a friend to you!"'); } // 12
if (ranNum == 12){document.write('"I am a difficult person to please so anyone who manages that rates highly with me. I shall not hesitate in recommending your services to others"'); } // 13
if (ranNum == 13){document.write('"I think the service you offer is great, and find your web site easy to navigate and understand. I wouldn\'t hesitate to recommend you to others."'); } // 14
if (ranNum == 14){document.write('"Thanx, and can I just say that you guys have one of the best online systems I have ever experienced (you are up there with Amazon on my list of easy-to-use sites)." '); } // 15
if (ranNum == 15){document.write('"I have found, much to my surprise in these days of poor customer service, that the CU team deliver exactly what they promise" '); } // 16
}

function showPic1() {
    var url = "/images/pics/DemoScreenInvoiceList.png";
    var hWnd = window.open(url,"","width=900,height=600,resizable=yes,status=yes,scrollbars=yes");
    if ((document.window != null) && (!hWnd.opener))
    hWnd.opener = document.window;
}
function showPic2() {
    var url = "/images/pics/DemoScreenTimesheet.png";
    var hWnd = window.open(url,"","width=900,height=600,resizable=yes,status=yes,scrollbars=yes");
    if ((document.window != null) && (!hWnd.opener))
    hWnd.opener = document.window;
}

function v2startApplicationSslWH(app, page, param, width, height) {
	popupWindow1 = window.open("http://www.jnetapp.co.uk/cgi-bin/www.jnetapp.co.uk/redirect.pl?uri="+app+"%2F"+page+"&"+param,"", "toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,width="+width+",height="+height+",screenX=25,screenY=20,top=20,left=25");
}

function startCUApplicationSsl() {
	v2startApplicationSslWH('ubr', 'signin.jsp', 'ControllingCompanyId=36563C-31-27-086E3D&HoldingCompanyId=36563C-31-27-086E3D', '800', '600');
}
function startCUApplicationRegSsl() {
	v2startApplicationSslWH('ubr', 'signup.jsp', 'ControllingCompanyId=36563C-31-27-086E3D&HoldingCompanyId=36563C-31-27-086E3D', '800', '600');
}
function startCUApplicationCalSsl() {
	v2startApplicationSslWH('Jnet-Tools/clients/cu', 'calculator.jsp', 'none', '760', '600');
}

  var syndicate = new Object;

  syndicate.title_fontbold    = false;
  syndicate.title_fontital    = false;
  syndicate.title_fontface    = 'Verdana, Arial, Helvetica, sans-serif';
  syndicate.title_fontsize    = '1';
  syndicate.title_fontcolor   = '#000000';

  syndicate.date_fontbold     = false;
  syndicate.date_fontital     = false;
  syndicate.date_fontunder    = false;
  syndicate.date_fontface     = 'Verdana, Arial, Helvetica, sans-serif';
  syndicate.date_fontsize     = '1';
  syndicate.date_fontcolor    = '#666666';

  syndicate.summary_fontbold  = false;
  syndicate.summary_fontital  = false;
  syndicate.summary_fontunder = false;
  syndicate.summary_fontface  = 'arial,helvetica,sans-serif';
  syndicate.summary_fontsize  = '2';
  syndicate.summary_fontcolor = '#000000';

  syndicate.bgcolor           = '#F9F9F9';
  syndicate.max_articles      = '3';
  syndicate.display_date      = true;
  syndicate.display_summaries = false;
  syndicate.not_found_message = '<font face="arial,helvetica,sans-serif" size="2" color="#000000">Sorry, no articles were found.</font>';;

