var offsetxpoint=45 //Customize x offset of tooltip
var offsetypoint=-150 //Customize y offset of tooltip
var clockoffsetxpoint=0 //Customize x offset of clock
var clockoffsetypoint=-50 //Customize y offset of clock
var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
var clocktipshowing=false
var enabletip
function add_image(cate,id,folder,wpt) {
var under = "";
if (folder=="themes") { under = "_1"; }
return '
';
}
if (ie||ns6)
var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""
var popinner=document.all? document.all["popinner"] : document.getElementById? document.getElementById("popinner") : ""
var poptitle=document.all? document.all["poptitle"] : document.getElementById? document.getElementById("poptitle") : ""
var poparrow=document.all? document.all["poparrow"] : document.getElementById? document.getElementById("poparrow") : ""
var urc=document.all? document.all["urc"] : document.getElementById? document.getElementById("urc") : ""
var ulc=document.all? document.all["ulc"] : document.getElementById? document.getElementById("ulc") : ""
var llc=document.all? document.all["llc"] : document.getElementById? document.getElementById("llc") : ""
var lrc=document.all? document.all["lrc"] : document.getElementById? document.getElementById("lrc") : ""
var clockobj=document.all? document.all["dhtmlclocktip"] : document.getElementById? document.getElementById("dhtmlclocktip") : ""
//This is for general usage: to find a true position of an object
//get different current screen values
function pageWidth() {return window.innerWidth != null? window.innerWidth : document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body != null ? document.body.clientWidth : null;} function pageHeight() {return window.innerHeight != null? window.innerHeight : document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body != null? document.body.clientHeight : null;} function posLeft() {return typeof window.pageXOffset != 'undefined' ? window.pageXOffset :document.documentElement && document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ? document.body.scrollLeft : 0;} function posTop() {return typeof window.pageYOffset != 'undefined' ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ? document.body.scrollTop : 0;} function posRight() {return posLeft()+pageWidth();} function posBottom() {return posTop()+pageHeight();}
function moveobject(tomove,original,addx,addy) {
var org = document.all? document.all[original] : document.getElementById? document.getElementById(original) : ""
var mov = document.all? document.all[tomove] : document.getElementById? document.getElementById(tomove) : ""
mov.style.position='absolute';
mov.style.top=(findPosY(org)+addy)+'px';
mov.style.left=(findPosX(org)+addx)+'px';
}
function changewidth(tomove,original,add) {
var mov = document.all? document.all[tomove] : document.getElementById? document.getElementById(tomove) : ""
mov.style.position='absolute';
mov.style.width=(ElmDimX(original)+add)+'px';
}
function disable() {
var dis = document.all? document.all['disable'] : document.getElementById? document.getElementById('disable') : ""
var showdis = document.all? document.all['showdisable'] : document.getElementById? document.getElementById('showdisable') : ""
dis.style.width=getPageSizeWithScroll()[0]+'px';
dis.style.height=getPageSizeWithScroll()[1]+'px';
dis.style.visibility='visible';
showdis.innerHTML='1';
}
//show a hack thing for ie to hide all form elements on a page when disabling
function iefuckup()
{
}
function removeiefuckup()
{
}
//get the true size of our page
function getPageSizeWithScroll()
{
if (window.innerHeight && window.scrollMaxY)
{// Firefox
yWithScroll = window.innerHeight + window.scrollMaxY;
xWithScroll = window.innerWidth + window.scrollMaxX;
}
else if (document.body.scrollHeight > document.body.offsetHeight)
{ // all but Explorer Mac
yWithScroll = document.body.scrollHeight;
xWithScroll = document.body.scrollWidth;
}
else
{ // works in Explorer 6 Strict, Mozilla (not FF) and Safari
yWithScroll = document.body.offsetHeight;
xWithScroll = document.body.offsetWidth;
}
arrayPageSizeWithScroll = new Array(xWithScroll,yWithScroll);
return arrayPageSizeWithScroll;
}
//Find true left of an object
function findPosX(obj)
{
var oFirst=obj;
var curleft = 0;
if (obj.offsetParent)
{
while (obj.offsetParent)
{
curleft += obj.offsetLeft
obj = obj.offsetParent;
}
}
else if (obj.x)
curleft += obj.x;
if(!window.opera && document.all && document.compatMode && document.compatMode != "BackCompat" && oFirst.style.position!='absolute') {
//IE in standards mode, but not position:absolute
curleft +=parseInt(document.body.currentStyle.marginLeft);
}
return curleft;
}
//find true top of an object
function findPosY(obj)
{
var oFirst=obj;
var curtop = 0;
if (obj.offsetParent)
{
while (obj.offsetParent)
{
curtop += obj.offsetTop
obj = obj.offsetParent;
}
}
else if (obj.y)
curtop += obj.y;
if(!window.opera && document.all && document.compatMode && document.compatMode != "BackCompat" && oFirst.style.position!='absolute') {
curtop +=parseInt(document.body.currentStyle.marginTop);
}
return curtop;
}
//Find true height of an object
function ElmDimY(obj) {
return parseInt(document.getElementById(obj).offsetHeight);
}
//Find true width of an object
function ElmDimX(obj) {
return parseInt(document.getElementById(obj).offsetWidth);
}
function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function showtip(thetext, thetitle){
if (thetext=='clock')
{
clocktipshowing = true;
var innerclock = document.all? document.all["clock"+thetitle] : document.getElementById? document.getElementById("clock"+thetitle) : "";
clockobj.innerHTML=innerclock.innerHTML;
clockobj.style.position="absolute";
clockobj.style.top="10px";
} else {
clocktipshowing = false;
poptitle.innerHTML=thetitle
popinner.innerHTML='
![]() | '+thetext+' |