﻿//Pop out box
var theObj="";
var newObj="";
function toolTip(text,me,box) {
  theObj=me;
  newObj=box;
  theObj.onmousemove=updatePos;
  document.getElementById(newObj).innerHTML=text;
  document.getElementById(newObj).style.display="block";
  //window.onscroll=updatePos;
}

function updatePos() {
  var ev=arguments[0]?arguments[0]:event;
  var x=ev.clientX;
  var y=ev.clientY;
  diffX=-150;
  diffY=-100;
  document.getElementById(newObj).style.top  = y+diffY+f_scrollTop()+"px";
  document.getElementById(newObj).style.left = x+diffX+f_scrollLeft()+"px";
  theObj.onmouseout=hideMe;
   //alert(f_scrollTop());
}
function hideMe() {
  document.getElementById(newObj).style.display="none";
}

function f_clientWidth() {
	return f_filterResults (
		window.innerWidth ? window.innerWidth : 0,
		document.documentElement ? document.documentElement.clientWidth : 0,
		document.body ? document.body.clientWidth : 0
	);
}
function f_clientHeight() {
	return f_filterResults (
		window.innerHeight ? window.innerHeight : 0,
		document.documentElement ? document.documentElement.clientHeight : 0,
		document.body ? document.body.clientHeight : 0
	);
}
function f_scrollLeft() {
	return f_filterResults (
		window.pageXOffset ? window.pageXOffset : 0,
		document.documentElement ? document.documentElement.scrollLeft : 0,
		document.body ? document.body.scrollLeft : 0
	);
}
function f_scrollTop() {
	return f_filterResults (
		window.pageYOffset ? window.pageYOffset : 0,
		document.documentElement ? document.documentElement.scrollTop : 0,
		document.body ? document.body.scrollTop : 0
	);
}
function f_filterResults(n_win, n_docel, n_body) {
	var n_result = n_win ? n_win : 0;
	if (n_docel && (!n_result || (n_result > n_docel)))
		n_result = n_docel;
	return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;
}



//End pop out box

/*
Milonic Flash Activation Script - insert_active_flash.js version 1.0 - May 4 2006

Copyright 2005 (c) Milonic Solutions Limited. All Rights Reserved.
This is a commercial software product, please visit http://www.milonic.com/ for more information.
*/

function commitFlashObject(_obj, _container) {
    _output = ""
    _paramoutput = ""
    _src = ""
    _ver = ""
    for (_cO in _obj) {
        _output += _cO + "=\"" + _obj[_cO] + "\" "
        _paramoutput += "<param name=" + _cO + " value=\"" + _obj[_cO] + "\">";
        if (_cO == "movie") _src = "src=\"" + _obj[_cO] + "\"";
        if (_cO == "version") _ver = _obj[_cO];
    }
    if (_ver == "") _ver = "8,0,0,0"
    ihtm = "<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=" + _ver + " " + _output + ">\n"
    ihtm += _paramoutput + "\n"
    ihtm += "<embed " + _src + " pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash type=application/x-shockwave-flash " + _output + ">\n";
    ihtm += "</embed>\n";
    ihtm += "</object>\n";
    document.getElementById(_container).innerHTML = ihtm
}