/************************************************************************************************************
Ajax dynamic list
Copyright (C) September 2005  DTHMLGoodies.com, Alf Magne Kalleland

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

Dhtmlgoodies.com., hereby disclaims all copyright interest in this script
written by Alf Magne Kalleland.

Alf Magne Kalleland, 2006
Owner of DHTMLgoodies.com
	
************************************************************************************************************/

var objBig,obj2Big,stBig,leftPosBig;
var cssAltIdBig = "cssChangeAltBig";

function hideToolTipBig(){
	document.getElementById("bubble_tooltip_big").style.display = "none";
}

function moveToolTipLBig(e,cssIdL,cssUrl,text){
	objBig = document.getElementById("bubble_tooltip_big");
	obj2Big = document.getElementById("bubble_tooltip_content_big");
	obj2Big.innerHTML = text;

	setOpacityBig(objBig);
	
	if(text == ""){
		objBig.style.display = "none";
	}
	else{
		objBig.style.display = "block";
	}
	
	if(navigator.userAgent.toLowerCase().indexOf("msie") >= 0){
		replace_css_for_IEBig(cssIdL,cssAltIdBig);
		replace_css_for_IEBig(cssAltIdBig,cssIdL);
	}
	else{
		replace_cssBig(cssIdL,cssUrl);
	}
	
	if(document.all){
		e = event;
	}
	
	stBig = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
	sl = Math.max(document.body.scrollLeft,document.documentElement.scrollLeft);
	
	leftPosBig = e.clientX - 181;
	objBig.style.left = leftPosBig + 5 + sl + "px";
	objBig.style.top = e.clientY - objBig.offsetHeight -1 + stBig + "px";
}

function moveToolTipRBig(e,cssIdR,cssUrl,text){

	objBig = document.getElementById("bubble_tooltip_big");
	obj2Big = document.getElementById("bubble_tooltip_content_big");
	obj2Big.innerHTML = text;

	setOpacityBig(objBig);
	if(text == ""){
		objBig.style.display = "none";
	}
	else{
		objBig.style.display = "block";
	}
	
	if(navigator.userAgent.toLowerCase().indexOf("msie") >= 0){
		replace_css_for_IEBig(cssAltIdBig,cssIdR);
		replace_css_for_IEBig(cssIdR,cssAltIdBig);
	}
	else{
		replace_cssBig(cssIdR,cssUrl);
	}
	
	if(document.all){
		e = event;
	}
	
	stBig = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
	sl = Math.max(document.body.scrollLeft,document.documentElement.scrollLeft);
	
	leftPosBig = e.clientX - 28;
	objBig.style.left = leftPosBig + 5 + sl + "px";
	objBig.style.top = e.clientY - objBig.offsetHeight -1 + stBig + "px";
}

function setOpacityBig(el){
	el.style.filter = "alpha(opacity:100)";
	el.style.KHTMLOpacity = "1";
	el.style.MozOpacity = "1";
	el.style.opacity = "1";
}

function replace_cssBig(id,url){
  if(!document.getElementById) return false;
  var element = document.getElementById(id);
  if(!element || !element.cloneNode) return false;
  var new_node = element.cloneNode(true);
  new_node.href = url;
  element.parentNode.replaceChild(new_node,element);
  return true;
}

function replace_css_for_IEBig(id,id2){
  document.getElementById(id).disabled = false;
  document.getElementById(id2).disabled = true;
}

function AddCssBig(cssUrl)
{
	var l = document.createElement("link");
	l.setAttribute("type","text/css");
	l.setAttribute("rel","stylesheet");
	l.id = cssAltIdBig;
	l.setAttribute("href",cssUrl);
	l.setAttribute("media","screen");
	document.getElementsByTagName("head")[0].appendChild(l);
}

if(navigator.userAgent.toLowerCase().indexOf("msie") >= 0){
	AddCssBig("css/bubble-tooltip-l-big.css");
}
