﻿function getStyleValue(c,a){var b="";if(document.defaultView&&document.defaultView.getComputedStyle)b=document.defaultView.getComputedStyle(c,"").getPropertyValue(a);else if(c.currentStyle){a=a.replace(/\-(\w)/g,function(b,a){return a.toUpperCase()});b=c.currentStyle[a]}return b}function findLeft(a){if(typeof a=="string")a=document.getElementById(a);if(a==null)return;var b=0;if(a.offsetParent)while(true){b+=a.offsetLeft;if(!a.offsetParent)break;a=a.offsetParent}else if(a.x)b+=a.x;return b}function findRight(a){if(typeof a=="string")a=document.getElementById(a);if(a==null)return;var b=a.offsetWidth;if(a.offsetParent)while(true){b+=a.offsetLeft;if(!a.offsetParent)break;a=a.offsetParent}else if(a.x)b+=a.x;return b}function findTop(a){if(typeof a=="string")a=document.getElementById(a);if(a==null)return;var b=0;if(a.offsetParent)while(true){if(a.offsetTop)b+=a.offsetTop;if(!a.offsetParent)break;a=a.offsetParent}else if(a.y)b+=a.y;return b}function findBottom(a){if(typeof a=="string")a=document.getElementById(a);if(a==null)return;var b=a.offsetHeight;if(a.offsetParent)while(true){b+=a.offsetTop;if(!a.offsetParent)break;a=a.offsetParent}else if(a.y)b+=a.y;return b}