$(document).ready(function() {
	$("a[rel*='lightbox']").lightBox({fixedNavigation:true}); // Select all links that contains lightbox in the attribute rel
});


<!--
    highlight_color	= "#efffa2";
    current_highlight	= "";
    name1	= location.hash;
    name1	= name1.substring(1, name1.length);

    // adds "highlight_color" to text or headings
    function highlight_heading(name, color) 
    {
      if(color != "" && typeof(color) != "undefined")
      {
	remove_highlights ("span");
      }
      else { color = highlight_color; }

      if(name == "onload")
      {
	name = location.hash;
	name = name.substring(1, name.length);
      }

      remove_highlights("h1");
      remove_highlights("h2");
      remove_highlights();

      name = name.replace(/ /gi, '_');       

      if(document.getElementById(name)) {
	highlight_block = document.getElementById(name);
	highlight_block.style.padding = '4px';
	highlight_block.style.backgroundColor	= color;
	highlight_block.style.borderColor	= "#DAD9A0";
	highlight_block.style.borderWidth	= "1px";
	highlight_block.style.borderStyle	= "solid";
	current_highlight = name;
	return 1;
      }
      else { 
	return 0; 
      }

    }

    // Removes the background highlights from highlighted text or headings
    function remove_highlights (tagtype, tagid) 
    {

      // there's a specific tag name that is higlight (ie, <h1> or <p>)
      if(tagtype != "") {
	tag_array = document.getElementsByTagName(tagtype);
      }

      // there's a specific element that is highlighted
      if(current_highlight != "") {
	current_element = document.getElementById(current_highlight);
	current_element.style.backgroundColor = "transparent";
	current_element.style.borderWidth     = "0px";
	current_element.style.padding         = "0px";
      }

      // there is a group of tags loop through them
      for(i = 0; i < tag_array.length; i++)
      {
	if(navigator.appName == "Netscape")
	{
          if(tag_array[i].id != "" && tag_array[i].style.backgroundColor != "")
          {   
            tag_array[i].style.backgroundColor = "transparent";
            tag_array[i].style.borderWidth     = "0px";
            tag_array[i].style.padding         = "0px";
          }
        }
        else 
        {
          if(tag_array[i].id != "")
          {
            tag_array[i].style.backgroundColor = "";
            tag_array[i].style.borderWidth     = "0px";
            tag_array[i].style.padding         = "0px";
          }
        }
      }
    }


    // expands all collapsed 
    function expand_all(tag_name, current_level, text) {

          toggle_expand_text(text, "expand all", "hide all");

          if(typeof tag_name == "undefined") {
             tag_name = "ul";
          }

      	  elements         = document.getElementsByTagName(tag_name);
          current_bg_color = document.getElementById(current_level).style.backgroundColor;
          highlight_block  = document.getElementById(current_level);

          if(typeof current_level != "undefined") {
            if(current_bg_color == "" || current_bg_color == null || current_bg_color == "transparent" ) {
		highlight_block.style.backgroundColor = "#FFFED8";
		highlight_block.style.borderColor     = "#DAD9A0";
		highlight_block.style.borderWidth     = "1px";
		highlight_block.style.borderStyle     = "solid";
		highlight_block.style.padding         = "5px";
		highlight_block.style.backgroundImage    = "url('images/tick-callout.gif')";
		highlight_block.style.backgroundPosition = "bottom right";
		highlight_block.style.backgroundRepeat   = "no-repeat";
            }
            else if (document.getElementById(current_level).style.backgroundColor != ""){
		highlight_block.style.backgroundColor = "transparent";
		highlight_block.style.backgroundImage = "none";
		highlight_block.style.borderWidth     = "0px";
		highlight_block.style.padding         = "0px";
            }
	    else { document.getElementById(current_level).style.backgroundColor = "transparent"; }

	    for( i = 0; i < elements.length; i++) {
		if(elements[i].id != "" && elements[i].id.match(current_level) != null) {
		  toggle_row(elements[i].id);
		}
            }
          }
	  else {
	    for( i = 0; i < elements.length; i++) {
		if(elements[i].id != "" && elements[i].id.match("-") != null) {
		  toggle_row(elements[i].id);
		}
            }
          }

   

    }

    function toggle_expand_text(text, val1, val2)  {
      if(text.innerHTML == val1) {
	text.innerHTML = val2;
      }
      else if (text.innerHTML == val2) {
	text.innerHTML = val1;
      }
      else {
	text.innerHTML = val1;
      }
    }


    // function toggles the expand/retract arrows on the text columns
    function toggle_row(name)
    { 
          var optional_image = name + "_img";
          var toggled_image = "";
 
      if(typeof document.images[optional_image] != "undefined" && document.getElementById(name + "_img").src != "") {

	if(document.images[optional_image].src.indexOf("images/retract_up.gif") > 0 ) {
		toggled_image = document.getElementById(name + "_img").src = "images/expand_down.gif";
	}
	else if(document.images[optional_image].src.indexOf("images/expand_down.gif") > 0) {
		toggled_image = "images/retract_up.gif";
	}
	else if(document.images[optional_image].src.indexOf("images/plus_btn.gif") > 0) {
		toggled_image = "images/minus_btn.gif";
	}
	else if(document.images[optional_image].src.indexOf("images/minus_btn.gif") > 0) {
		toggled_image = "images/plus_btn.gif";
	}
	else {
		toggled_image = ""
	}
      }

          current_element = document.getElementById(name);

          if(current_element.style.display == 'none')
          { 
              if(typeof document.images[optional_image] != "undefined" && document.getElementById(name + "_img").src != "") {
                  document.getElementById(name + "_img").src = toggled_image;

              }
              revealElement(current_element);

          }
          else
          {  
              if(typeof document.images[optional_image] != "undefined" && document.getElementById(name + "_img").src != "") {
                  document.getElementById(name + "_img").src = toggled_image;
              }
              hideElement(current_element);
          }
    }


    function hideElement (elementObj) {

	if(typeof elementObj == "string") {
		elementObj = document.getElementById(elementObj);
	}
	if(elementObj.style.display = "none") {
		return 1;
	}
	return 0;
    }


    function revealElement (elementObj) {
	if(typeof elementObj == "string") {
		elementObj = document.getElementById(elementObj);
	}
	if(elementObj.style.display = "block") {
		return 1;
	}
	return 0;
    }


    maskPoint  = 1; 
    maskCount  = 6;

    function rotateMask() {
       maskPoint++; 
       maskObj = document.getElementById("spotlightImageMask");
       maskObj.style.backgroundImage = "url('images/spotlight-img-mask" + maskPoint % maskCount + ".gif')";


    }


    var agt=navigator.userAgent.toLowerCase();
    var appVer = navigator.appVersion.toLowerCase();

    var is_opera = (agt.indexOf("opera") != -1);
    var is_opera2 = (agt.indexOf("opera 2") != -1 || agt.indexOf("opera/2") != -1);
    var is_opera3 = (agt.indexOf("opera 3") != -1 || agt.indexOf("opera/3") != -1);
    var is_opera4 = (agt.indexOf("opera 4") != -1 || agt.indexOf("opera/4") != -1);
    var is_opera5 = (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1);
    var is_opera6 = (agt.indexOf("opera 6") != -1 || agt.indexOf("opera/6") != -1); // new 020128- abk
    var is_opera7 = (agt.indexOf("opera 7") != -1 || agt.indexOf("opera/7") != -1); // new 021205- dmr
    var is_opera5up = (is_opera && !is_opera2 && !is_opera3 && !is_opera4);
    var is_opera6up = (is_opera && !is_opera2 && !is_opera3 && !is_opera4 && !is_opera5); // new020128
    var is_opera7up = (is_opera && !is_opera2 && !is_opera3 && !is_opera4 && !is_opera5 && !is_opera6); // new021205 -- dmr






/**
 * Read the JavaScript cookies tutorial at:
 *   http://www.netspade.com/articles/javascript/cookies.xml
 */

/**
 * Sets a Cookie with the given name and value.
 *
 * name       Name of the cookie
 * value      Value of the cookie
 * [expires]  Expiration date of the cookie (default: end of current session)
 * [path]     Path where the cookie is valid (default: path of calling document)
 * [domain]   Domain where the cookie is valid
 *              (default: domain of calling document)
 * [secure]   Boolean value indicating if the cookie transmission requires a
 *              secure transmission
 */
function setCookie(name, value, expires, path, domain, secure)
{
    document.cookie= name + "=" + escape(value) +
        ((expires) ? "; expires=" + expires.toGMTString() : "") +
        ((path) ? "; path=" + path : "") +
        ((domain) ? "; domain=" + domain : "") +
        ((secure) ? "; secure" : "");
}

/**
 * Gets the value of the specified cookie.
 *
 * name  Name of the desired cookie.
 *
 * Returns a string containing value of specified cookie,
 *   or null if cookie does not exist.
 */
function getCookie(name)
{
    var dc = document.cookie;
    var prefix = name + "=";
    var begin = dc.indexOf("; " + prefix);
    if (begin == -1)
    {
        begin = dc.indexOf(prefix);
        if (begin != 0) return null;
    }
    else
    {
        begin += 2;
    }
    var end = document.cookie.indexOf(";", begin);
    if (end == -1)
    {
        end = dc.length;
    }
    return unescape(dc.substring(begin + prefix.length, end));
}

/**
 * Deletes the specified cookie.
 *
 * name      name of the cookie
 * [path]    path of the cookie (must be same as path used to create cookie)
 * [domain]  domain of the cookie (must be same as domain used to create cookie)
 */
function deleteCookie(name, path, domain)
{
    if (getCookie(name))
    {
        document.cookie = name + "=" + 
            ((path) ? "; path=" + path : "") +
            ((domain) ? "; domain=" + domain : "") +
            "; expires=Thu, 01-Jan-70 00:00:01 GMT";
    }
}



function getArgs() {
              		var args = new Object();
              		var query = location.search.substring(1);
              		var pairs = query.split('&');
              		for(var i = 0; i < pairs.length; i++) {
              			var pos = pairs[i].indexOf('=');
              			if (pos == -1) continue;
              			var argname = pairs[i].substring(0,pos);
              			var value = pairs[i].substring(pos+1);
              			args[argname] = unescape(value);
              		}
			return args;
}


  -->
