function initPage()
{
	var nav = document.getElementById("navigation");
	if (nav)
	{
		var nodes = nav.getElementsByTagName("li");
		for (var i = 0; i < nodes.length; i++)
		{		
				nodes[i].onmouseover = function () 
				{
					this.className += " hover";
				}
				nodes[i].onmouseout = function ()
				{
					this.className = this.className.replace(" hover", "");
				}
		}
	}
}
if (window.attachEvent)
	window.attachEvent("onload", initPage);

<!-- COLLAPSIBLE TEXT -->
//preload image
var collimg = new Image();
collimg.src = "imgs7/collapse.gif";
var expimg = new Image();
collimg.src = "imgs7/expand.gif";

function ShowHideLayer(boxID) {
	/* Obtain reference for the selected boxID layer and its button */
	var box = document.getElementById("box"+boxID);
	var boxbtn = document.getElementById("btn"+boxID);
	
	/* If the selected box is currently invisible, show it */
	if(box.style.display == "none" || box.style.display=="") {
		box.style.display = "block";
 		/*boxbtn.src = "imgs7/collapse.gif";*/
	}
	/* otherwise hide it */
	else {
		box.style.display = "none";
		/*boxbtn.src = "imgs7/expand.gif";*/
	}
}

function P7_Uberlink(cl,d){
	var i,ob,tA,h=document.location.href;
	if(document.getElementById){
	ob=(d)?document.getElementById(d):document;
	if(ob){
	tA=ob.getElementsByTagName('A');
	for(i=0;i<tA.length;i++){
	if(tA[i].href==h){
	tA[i].className=cl;
}}}}}

<!-- Scrolling logos

var p=0;
var speed=40; // vary this to suit, larger value - slower speed

window.onload=function() {
 scrollinglogos();
 }
function scrollinglogos() {

 document.getElementById('container').style.backgroundPosition=p+'px 0';

 p++;//change this to p-- for right to left direction

setTimeout('scrollinglogos()',speed);
 }
//-->

// Add this
var addthis_config = {
    data_track_clickback: true
}

function readCookie() {
	var nameEQ = "Product Tour Form=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	
}

// Product Tour
function CheckCookieDPT(){
 var a = readCookie();
 if (a =="T"){
 window.location = "http://www.dovico.com/dovico_planning/project_online.aspx";
 }
 else
 {
 window.location = "http://www.dovico.com/contact_tour.aspx";
 }
  return false;
}
function CheckCookieDT(){
 var a = readCookie();
 if (a =="T"){
 window.location = "http://www.dovico.com/dovico_timesheet/online_timesheet.aspx";
 }
 else
 {
 window.location = "http://www.dovico.com/contact_tourdt.aspx";
 }
  return false;
}

function readCookie() {
	var nameEQ = "Product Tour Form=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

