﻿
//----------IMPORTANT
//THIS FILE IS NOT BEING LOADED ANYLONGER-----THE CONTENT OF THIS FILE HAVE BEEN MOVED TO ARZANEW.JS



/* Set Menu Definition */
/*
    var timeout = 500;
    var closetimer = 0;
    var ddmenuitem = 0;
    
    $(document).ready(function() {
        $('#jsddm li ul').css('visibility', 'hidden');
    });

    function jsddm_open() {
        jsddm_canceltimer();
        jsddm_close();
        ddmenuitem = $(this).find('ul').css('visibility', 'visible');
    }

    function jsddm_close()
    { if (ddmenuitem) ddmenuitem.css('visibility', 'hidden'); }

    function jsddm_timer()
    { closetimer = window.setTimeout(jsddm_close, timeout); }

    function jsddm_canceltimer() {
        if (closetimer) {
            window.clearTimeout(closetimer);
            closetimer = null;
        } 
    }

    $(document).ready(function() {
        $('#jsddm > li').bind('mouseover', jsddm_open)
        $('#jsddm > li').bind('mouseout', jsddm_timer)
    });

    document.onclick = jsddm_close;
*/
/* Set Menu Definition */

/* Set Search input to empty in get focus */
function emptySearch(el) {

    if (!el) return false;
	el.value=(trim(el.value)).toLowerCase();
    if (el.value == "search") {
        el.value = "";
    } else if (el.value == "") {
        el.value = "Search";
    }
}
/* Set Search input to empty in get focus */

/* BEGIN LivePerson Monitor. */
//FIC 09/01/2009 *** BEGIN
//var lpMTagConfig = { 'lpServer': "server.iad.liveperson.net", 'lpNumber': "17283664", 'lpProtocol': "http" };
var locProtocol = (("https:" == document.location.protocol) ? "https" : "http");
//FIC 09/01/2009 *** END
if (locProtocol=='https'){var lpMTagConfig = { 'lpServer': "server.iad.liveperson.net", 'lpNumber': "17283664", 'lpProtocol': "https" };}
else {var lpMTagConfig = { 'lpServer': "server.iad.liveperson.net", 'lpNumber': "17283664", 'lpProtocol': "http" };}

function lpAddMonitorTag(src) {
    if (typeof (src) == 'undefined' || typeof (src) == 'object') {
        src = lpMTagConfig.lpMTagSrc ? lpMTagConfig.lpMTagSrc : '/hcp/html/mTag.js';
    }

    if (src.indexOf('http') != 0) {
        src = lpMTagConfig.lpProtocol + "://" + lpMTagConfig.lpServer + src + '?site=' + lpMTagConfig.lpNumber;
    } else {
        if (src.indexOf('site=') < 0) {
            if (src.indexOf('?') < 0) src = src + '?';
            else src = src + '&';
            src = src + 'site=' + lpMTagConfig.lpNumber;
        }
    };

    var s = document.createElement('script');
    s.setAttribute('type', 'text/javascript');
    s.setAttribute('charset', 'iso-8859-1');
    s.setAttribute('src', src);
    document.getElementsByTagName('head').item(0).appendChild(s);
}

if (window.attachEvent) window.attachEvent('onload', lpAddMonitorTag);
else window.addEventListener("load", lpAddMonitorTag, false);
/* END LivePerson Monitor. */

/* Ajax load pic first */
//$(function() {
    function preloadImg(image) {
        var img = new Image();
        img.src = image;
    }

    preloadImg('Pics/ajaxLoader.gif');

//});
/* Ajax load pic first */

/* Load Page DTR */
//window.onload = function() {$('.dtr').each(function() {string = $(this).text();filename = string.toLowerCase().replace(/ /g, '-').replace(/([^0-9a-z-])/g, '');$(this).html('<img src="Pics/' + filename + '.gif" alt="' + string + '" title="' + string + '" />');});};
//$(document).ready(function() {
//    $('.dtr').each(function() {
//        string = $(this).text();
//        filename = string.toLowerCase().replace(/ /g, '-').replace(/([^0-9a-z-])/g, '');
//        $(this).html('<img src="Pics/' + filename + '.gif" alt="' + string + '" title="' + string + '" />');
//    });
//});
/* Load Page DTR */