imglibpos=new Array();
imglibwidth=new Array();
imglibheight=new Array();

imglibpos["iconsbig/cancel"]="-0px -0px";
imglibpos["iconsbig/clock"]="-48px -0px";
imglibpos["iconsbig/chat"]="-96px -0px";
imglibpos["iconsbig/lock"]="-144px -0px";
imglibpos["iconsbig/news"]="-192px -0px";
imglibpos["iconsbig/inbox"]="-240px -0px";
imglibpos["iconsbig/home"]="-288px -0px";
imglibpos["iconsbig/printer"]="-336px -0px";
imglibpos["iconsbig/settings"]="-384px -0px";
imglibpos["iconsbig/user"]="-432px -0px";
imglibpos["iconsbig/tags"]="-480px -0px";
imglibpos["iconsbig/archive"]="-528px -0px";
imglibpos["iconsbig/blog"]="-576px -0px";
imglibpos["iconsbig/beer"]="-624px -0px";
imglibpos["iconsbig/box"]="-672px -0px";
imglibpos["iconsbig/book"]="-720px -0px";
imglibpos["iconsbig/creditcard"]="-768px -0px";
imglibpos["iconsbig/delete"]="-816px -0px";
imglibpos["iconsbig/save"]="-864px -0px";
imglibpos["iconsbig/folder"]="-912px -0px";
imglibpos["iconsbig/graph"]="-960px -0px";
imglibpos["iconsbig/image"]="-1008px -0px";
imglibpos["iconsbig/analytics"]="-1056px -0px";
imglibpos["iconsbig/mail"]="-1104px -0px";
imglibpos["iconsbig/message"]="-1152px -0px";
imglibpos["iconsbig/rss"]="-0px -48px";
imglibpos["iconsbig/floppy"]="-48px -48px";
imglibpos["iconsbig/piechart"]="-96px -48px";
imglibpos["iconsbig/plugin"]="-144px -48px";
imglibpos["iconsbig/podcast"]="-192px -48px";
imglibpos["iconsbig/print"]="-240px -48px";
imglibpos["iconsbig/question"]="-288px -48px";
imglibpos["iconsbig/smiley"]="-336px -48px";
imglibpos["iconsbig/tool"]="-384px -48px";
imglibpos["iconsbig/play"]="-432px -48px";
imglibpos["iconsbig/tableblue"]="-480px -48px";
imglibpos["iconsbig/tablegreen"]="-528px -48px";
imglibpos["iconsbig/themes"]="-576px -48px";
imglibpos["iconsbig/speaker"]="-624px -48px";
imglibpos["iconsbig/twitter"]="-672px -48px";
imglibpos["iconsbig/down"]="-720px -48px";
imglibpos["iconsbig/left"]="-768px -48px";
imglibpos["iconsbig/right"]="-816px -48px";
imglibpos["iconsbig/up"]="-864px -48px";
imglibpos["icons/delete"]="-0px -0px";
imglibpos["icons/calendar"]="-16px -0px";
imglibpos["icons/settings"]="-32px -0px";
imglibpos["icons/folder"]="-48px -0px";
imglibpos["icons/key"]="-64px -0px";
imglibpos["icons/inbox"]="-80px -0px";
imglibpos["icons/outbox"]="-96px -0px";
imglibpos["icons/mail-new"]="-112px -0px";
imglibpos["icons/user"]="-128px -0px";
imglibpos["icons/news"]="-144px -0px";
imglibpos["icons/print"]="-160px -0px";
imglibpos["icons/guestbook"]="-176px -0px";
imglibpos["icons/tags"]="-192px -0px";
imglibpos["icons/lock"]="-208px -0px";
imglibpos["icons/table-edit"]="-224px -0px";
imglibpos["icons/down"]="-240px -0px";
imglibpos["icons/chat"]="-256px -0px";
imglibpos["icons/help"]="-272px -0px";
imglibpos["icons/bold"]="-288px -0px";
imglibpos["icons/italic"]="-304px -0px";
imglibpos["icons/underline"]="-320px -0px";
imglibpos["icons/header1"]="-336px -0px";
imglibpos["icons/header2"]="-352px -0px";
imglibpos["icons/header3"]="-368px -0px";
imglibpos["icons/header4"]="-384px -0px";
imglibpos["icons/header5"]="-400px -0px";
imglibpos["icons/header6"]="-416px -0px";
imglibpos["icons/alignjustify"]="-432px -0px";
imglibpos["icons/aligncenter"]="-448px -0px";
imglibpos["icons/alignleft"]="-464px -0px";
imglibpos["icons/alignright"]="-480px -0px";
imglibpos["icons/omega"]="-496px -0px";
imglibpos["icons/sub"]="-512px -0px";
imglibpos["icons/sup"]="-528px -0px";
imglibpos["icons/strike"]="-544px -0px";
imglibpos["icons/textindent"]="-560px -0px";
imglibpos["icons/textoutdent"]="-576px -0px";
imglibpos["icons/letterspacing"]="-592px -0px";
imglibpos["icons/linespacing"]="-608px -0px";
imglibpos["icons/listbullets"]="-624px -0px";
imglibpos["icons/listnumbers"]="-640px -0px";
imglibpos["icons/right"]="-656px -0px";
imglibpos["icons/up"]="-672px -0px";
imglibpos["icons/left"]="-688px -0px";
imglibpos["icons/size"]="-704px -0px";
imglibpos["icons/smiley"]="-720px -0px";
imglibpos["icons/cross"]="-736px -0px";
imglibpos["icons/foreground"]="-752px -0px";
imglibpos["icons/background"]="-768px -0px";
imglibpos["icons/preview"]="-784px -0px";
imglibpos["icons/app"]="-800px -0px";
imglibpos["icons/picture-plus"]="-816px -0px";
imglibpos["icons/picture"]="-832px -0px";
imglibpos["icons/link-add"]="-848px -0px";
imglibpos["icons/link"]="-864px -0px";
imglibpos["icons/html"]="-880px -0px";
imglibpos["icons/smile2"]="-896px -0px";
imglibpos["icons/undo"]="-912px -0px";
imglibpos["icons/redo"]="-928px -0px";
imglibpos["icons/copy"]="-944px -0px";
imglibpos["icons/paste"]="-640px -16px";
imglibpos["icons/layers"]="-976px -0px";
imglibpos["icons/font"]="-992px -0px";
imglibpos["icons/link-break"]="-1008px -0px";
imglibpos["icons/youtube"]="-1024px -0px";
imglibpos["icons/blockbg"]="-1040px -0px";
imglibpos["icons/css"]="-1056px -0px";
imglibpos["icons/rss"]="-1072px -0px";
imglibpos["icons/cog"]="-1088px -0px";
imglibpos["icons/twitter"]="-1104px -0px";
imglibpos["icons/wong"]="-1120px -0px";
imglibpos["icons/delicious"]="-1136px -0px";
imglibpos["icons/digg"]="-1152px -0px";
imglibpos["icons/google"]="-1168px -0px";
imglibpos["icons/live"]="-1184px -0px";
imglibpos["icons/seomantic"]="-1200px -0px";
imglibpos["icons/anonator"]="-1216px -0px";
imglibpos["icons/tidyrte"]="-1232px -0px";
imglibpos["icons/file"]="-1248px -0px";
imglibpos["icons/web"]="-1264px -0px";
imglibpos["icons/clock"]="-1280px -0px";
imglibpos["icons/coins"]="-1296px -0px";
imglibpos["icons/game"]="-1312px -0px";
imglibpos["icons/shop"]="-1328px -0px";
imglibpos["icons/chart"]="-1344px -0px";
imglibpos["icons/keyboard"]="-1360px -0px";
imglibpos["icons/layout"]="-1376px -0px";
imglibpos["icons/flash"]="-1392px -0px";
imglibpos["icons/map"]="-1408px -0px";
imglibpos["icons/box"]="-1424px -0px";
imglibpos["icons/user-online"]="-1440px -0px";
imglibpos["icons/user-offline"]="-1456px -0px";
imglibpos["icons/user-busy"]="-1472px -0px";
imglibpos["icons/user-away"]="-1488px -0px";
imglibpos["icons/server-link"]="-1504px -0px";
imglibpos["icons/server"]="-1520px -0px";
imglibpos["icons/script"]="-1536px -0px";
imglibpos["icons/linux"]="-1552px -0px";
imglibpos["icons/note"]="-1568px -0px";
imglibpos["icons/music"]="-1584px -0px";
imglibpos["icons/dollar"]="-0px -16px";
imglibpos["icons/pound"]="-16px -16px";
imglibpos["icons/euro"]="-32px -16px";
imglibpos["icons/yen"]="-48px -16px";
imglibpos["icons/money"]="-64px -16px";
imglibpos["icons/money-plus"]="-80px -16px";
imglibpos["icons/gold"]="-96px -16px";
imglibpos["icons/silver"]="-112px -16px";
imglibpos["icons/bronze"]="-128px -16px";
imglibpos["icons/monitor"]="-144px -16px";
imglibpos["icons/zomm-out"]="-160px -16px";
imglibpos["icons/zoom-in"]="-176px -16px";
imglibpos["icons/zoom"]="-192px -16px";
imglibpos["icons/xhtml-validate"]="-208px -16px";
imglibpos["icons/xhtml-go"]="-224px -16px";
imglibpos["icons/xhtml-add"]="-240px -16px";
imglibpos["icons/xhtml"]="-256px -16px";
imglibpos["icons/tool"]="-272px -16px";
imglibpos["icons/vcard"]="-288px -16px";
imglibpos["icons/user-business"]="-304px -16px";
imglibpos["icons/user-red"]="-320px -16px";
imglibpos["icons/user-orange"]="-336px -16px";
imglibpos["icons/user-green"]="-352px -16px";
imglibpos["icons/user-balck"]="-368px -16px";
imglibpos["icons/user-female"]="-384px -16px";
imglibpos["icons/user-edit"]="-400px -16px";
imglibpos["icons/user-comment"]="-416px -16px";
imglibpos["icons/user-add"]="-432px -16px";
imglibpos["icons/ok"]="-448px -16px";
imglibpos["icons/textfield"]="-464px -16px";
imglibpos["icons/tv"]="-480px -16px";
imglibpos["icons/telephone"]="-496px -16px";
imglibpos["icons/tag-yellow"]="-512px -16px";
imglibpos["icons/tag-green"]="-528px -16px";
imglibpos["icons/tag-edit"]="-544px -16px";
imglibpos["icons/tag"]="-560px -16px";
imglibpos["icons/htmltags"]="-576px -16px";
imglibpos["icons/shield"]="-592px -16px";
imglibpos["icons/shape"]="-608px -16px";
imglibpos["icons/edit"]="-624px -16px";
imglibpos["icons/content-edit"]="-656px -16px";
imglibpos["icons/joystick"]="-672px -16px";
imglibpos["icons/ipod"]="-688px -16px";
imglibpos["icons/html-valid"]="-704px -16px";
imglibpos["icons/html-go"]="-720px -16px";
imglibpos["icons/html-logo"]="-736px -16px";
imglibpos["icons/heart"]="-752px -16px";
imglibpos["icons/folder-tools"]="-768px -16px";
imglibpos["icons/folder-favorites"]="-784px -16px";
imglibpos["icons/folder-link"]="-800px -16px";
imglibpos["icons/folder-picture"]="-816px -16px";
imglibpos["icons/folder-find"]="-832px -16px";
imglibpos["icons/folder-rss"]="-848px -16px";
imglibpos["icons/folder-edit"]="-864px -16px";
imglibpos["icons/folder-blank"]="-880px -16px";
imglibpos["icons/warning"]="-896px -16px";
imglibpos["icons/hdd-find"]="-912px -16px";
imglibpos["icons/hdd-key"]="-928px -16px";
imglibpos["icons/hdd-edit"]="-944px -16px";
imglibpos["icons/hdd-save"]="-960px -16px";
imglibpos["icons/hdd"]="-976px -16px";
imglibpos["icons/door"]="-992px -16px";
imglibpos["icons/door-leave"]="-1008px -16px";
imglibpos["icons/door-closed"]="-1024px -16px";
imglibpos["icons/save-all"]="-1040px -16px";
imglibpos["icons/save"]="-1056px -16px";
imglibpos["icons/disconnect"]="-1072px -16px";
imglibpos["icons/db-save"]="-1088px -16px";
imglibpos["icons/db-link"]="-1104px -16px";
imglibpos["icons/db-key"]="-1120px -16px";
imglibpos["icons/db-edit"]="-1136px -16px";
imglibpos["icons/db-connect"]="-1152px -16px";
imglibpos["icons/db-add"]="-1168px -16px";
imglibpos["icons/db"]="-1184px -16px";
imglibpos["icons/cut"]="-1200px -16px";
imglibpos["icons/pointer"]="-1216px -16px";
imglibpos["icons/coffee-key"]="-1232px -16px";
imglibpos["icons/coffee"]="-1248px -16px";
imglibpos["icons/css-valid"]="-1264px -16px";
imglibpos["icons/css-go"]="-1280px -16px";
imglibpos["icons/css-add"]="-1296px -16px";
imglibpos["icons/css-logo"]="-1312px -16px";
imglibpos["icons/connect"]="-1328px -16px";
imglibpos["icons/machine-link"]="-1344px -16px";
imglibpos["icons/machine-key"]="-1360px -16px";
imglibpos["icons/machine-go"]="-1376px -16px";
imglibpos["icons/machine-warning"]="-1392px -16px";
imglibpos["icons/machine-edit"]="-1408px -16px";
imglibpos["icons/machine-add"]="-1424px -16px";
imglibpos["icons/machine"]="-1440px -16px";
imglibpos["icons/compress"]="-1456px -16px";
imglibpos["icons/comments"]="-1472px -16px";
imglibpos["icons/comment-add"]="-1488px -16px";
imglibpos["icons/comment"]="-1504px -16px";
imglibpos["icons/chart-bar"]="-1520px -16px";
imglibpos["icons/camera"]="-1536px -16px";
imglibpos["icons/calendar-2"]="-1552px -16px";
imglibpos["icons/calc"]="-1568px -16px";
imglibpos["icons/city"]="-1584px -16px";
imglibpos["icons/bug"]="-0px -32px";
imglibpos["icons/case"]="-16px -32px";
imglibpos["icons/bricks"]="-32px -32px";
imglibpos["icons/book-edit"]="-48px -32px";
imglibpos["icons/brick-link"]="-64px -32px";
imglibpos["icons/brick-go"]="-80px -32px";
imglibpos["icons/brick-edit"]="-96px -32px";
imglibpos["icons/brick-add"]="-112px -32px";
imglibpos["icons/brick"]="-128px -32px";
imglibpos["icons/addressbook"]="-144px -32px";
imglibpos["icons/book-add"]="-160px -32px";
imglibpos["icons/book"]="-176px -32px";
imglibpos["icons/bell"]="-192px -32px";
imglibpos["icons/award-silver"]="-208px -32px";
imglibpos["icons/award-gold"]="-224px -32px";
imglibpos["icons/award-bronze"]="-240px -32px";
imglibpos["icons/wildcard"]="-256px -32px";
imglibpos["icons/shuffle"]="-272px -32px";
imglibpos["icons/refresh"]="-288px -32px";
imglibpos["icons/rotate-clock"]="-304px -32px";
imglibpos["icons/rotate-anticlock"]="-320px -32px";
imglibpos["icons/join"]="-336px -32px";
imglibpos["icons/divide"]="-352px -32px";
imglibpos["icons/out"]="-368px -32px";
imglibpos["icons/in"]="-384px -32px";
imglibpos["icons/branch"]="-400px -32px";
imglibpos["icons/terminal"]="-416px -32px";
imglibpos["icons/winapp"]="-432px -32px";
imglibpos["icons/gallery"]="-448px -32px";
imglibpos["icons/app-flash"]="-464px -32px";
imglibpos["icons/app-key"]="-480px -32px";
imglibpos["icons/app-go"]="-496px -32px";
imglibpos["icons/form-edit"]="-512px -32px";
imglibpos["icons/form"]="-528px -32px";
imglibpos["icons/cut-1"]="-544px -32px";
imglibpos["icons/cut-2"]="-560px -32px";
imglibpos["icons/menu-1"]="-576px -32px";
imglibpos["icons/menu-2"]="-592px -32px";
imglibpos["icons/minus-yellow"]="-608px -32px";
imglibpos["icons/minus-green"]="-624px -32px";
imglibpos["icons/minus-red"]="-640px -32px";
imglibpos["icons/minus-blue"]="-656px -32px";
imglibpos["icons/plus-yellow"]="-672px -32px";
imglibpos["icons/plus-green"]="-688px -32px";
imglibpos["icons/plus-red"]="-704px -32px";
imglibpos["icons/plus"]="-720px -32px";
imglibpos["icons/blue"]="-736px -32px";
imglibpos["icons/server-flash"]="-752px -32px";
imglibpos["icons/server-key"]="-768px -32px";
imglibpos["icons/server-go"]="-784px -32px";
imglibpos["icons/server-warning"]="-800px -32px";
imglibpos["icons/server-delete"]="-816px -32px";
imglibpos["icons/server-db"]="-832px -32px";
imglibpos["icons/server-connect"]="-848px -32px";
imglibpos["icons/server-compress"]="-864px -32px";
imglibpos["icons/server-chart"]="-880px -32px";
imglibpos["icons/server-add"]="-896px -32px";
imglibpos["icons/server-uncompress"]="-912px -32px";
imglibpos["icons/client-flash"]="-928px -32px";
imglibpos["icons/client-go"]="-944px -32px";
imglibpos["icons/client-edit"]="-960px -32px";
imglibpos["icons/client-delete"]="-976px -32px";
imglibpos["icons/client-warning"]="-992px -32px";
imglibpos["icons/client-add"]="-1008px -32px";
imglibpos["icons/client"]="-1024px -32px";
imglibpos["icons/client-link"]="-1040px -32px";
imglibpos["icons/turn-right"]="-1056px -32px";
imglibpos["icons/turn-left"]="-1072px -32px";
imglibpos["icons/valid"]="-1088px -32px";
imglibpos["icons/add"]="-1104px -32px";
imglibpos["icons/page-flash"]="-1120px -32px";
imglibpos["icons/page-key"]="-1136px -32px";
imglibpos["icons/page-green"]="-1152px -32px";
imglibpos["icons/page-go"]="-1168px -32px";
imglibpos["icons/page-delete"]="-1184px -32px";
imglibpos["icons/page-warning"]="-1200px -32px";
imglibpos["icons/page-edit"]="-1216px -32px";
imglibpos["icons/page-add"]="-1232px -32px";
imglibpos["icons/page-paint"]="-1248px -32px";
imglibpos["icons/page-red"]="-1264px -32px";
imglibpos["icons/page"]="-1280px -32px";
imglibpos["icons/color"]="-1296px -32px";
imglibpos["icons/shape-move"]="-1312px -32px";
imglibpos["icons/code"]="-1328px -32px";
imglibpos["icons/palette"]="-1344px -32px";
imglibpos["icons/rainbow"]="-1360px -32px";
imglibpos["icons/plugin"]="-1376px -32px";
imglibpos["icons/paintcan"]="-1392px -32px";
imglibpos["icons/paint"]="-1408px -32px";
imglibpos["icons/mute"]="-1424px -32px";
imglibpos["icons/page-web"]="-1440px -32px";
imglibpos["icons/sound"]="-1456px -32px";
imglibpos["icons/page-link"]="-1472px -32px";
imglibpos["icons/searchranch"]="-1488px -32px";
imglibpos["icons/close"]="-1504px -32px";
imglibpos["icons/group"]="-1520px -32px";
imglibpos["icons/group-edit"]="-1536px -32px";
imglibpos["icons/group-add"]="-1552px -32px";
imglibpos["icons/lupe"]="-1568px -32px";
imglibpos["icons/coffee-machine"]="-1584px -32px";
imglibpos["icons/speaker-blue"]="-0px -48px";
imglibpos["icons/speaker"]="-16px -48px";
imglibpos["icons/broadcast"]="-32px -48px";
imglibpos["icons/time"]="-48px -48px";
imglibpos["icons/vector"]="-64px -48px";
imglibpos["icons/stop-blue"]="-80px -48px";
imglibpos["icons/stop"]="-96px -48px";
imglibpos["icons/play-blue"]="-112px -48px";
imglibpos["icons/play"]="-128px -48px";
imglibpos["icons/sports-tennis"]="-144px -48px";
imglibpos["icons/sports-soccer"]="-160px -48px";
imglibpos["icons/sports-golf"]="-176px -48px";
imglibpos["icons/sports-shuttlecock"]="-192px -48px";
imglibpos["icons/sports-raquet"]="-208px -48px";
imglibpos["icons/sports-football"]="-224px -48px";
imglibpos["icons/sports-basketball"]="-240px -48px";
imglibpos["icons/sports-8ball"]="-256px -48px";
imglibpos["icons/spell-check"]="-272px -48px";
imglibpos["icons/lorry"]="-288px -48px";
imglibpos["icons/lightbulb"]="-304px -48px";
imglibpos["icons/house"]="-320px -48px";
imglibpos["icons/hourglass"]="-336px -48px";
imglibpos["icons/male"]="-352px -48px";
imglibpos["icons/female"]="-368px -48px";
imglibpos["smileys/yell"]="-400px -368px";
imglibpos["smileys/wink"]="-418px -368px";
imglibpos["smileys/undecided"]="-436px -368px";
imglibpos["smileys/tongue-out"]="-454px -368px";
imglibpos["smileys/surprised"]="-472px -368px";
imglibpos["smileys/smile"]="-490px -368px";
imglibpos["smileys/sealed"]="-508px -368px";
imglibpos["smileys/money-mouth"]="-526px -368px";
imglibpos["smileys/laughing"]="-544px -368px";
imglibpos["smileys/kiss"]="-562px -368px";
imglibpos["smileys/innocent"]="-580px -368px";
imglibpos["smileys/frown"]="-598px -368px";
imglibpos["smileys/foot-in-mouth"]="-616px -368px";
imglibpos["smileys/embarassed"]="-634px -368px";
imglibpos["smileys/cry"]="-652px -368px";
imglibpos["smileys/cool"]="-670px -368px";
imglibpos["general/navbar"]="-0px -448px";
imglibpos["navbar"]="-0px -448px";
imglibpos["general/navbar-red"]="-0px -96px";
imglibpos["navbar-red"]="-0px -96px";
imglibpos["general/button-one-red"]="-1200px -144px";
imglibpos["button-one-red"]="-1200px -144px";
imglibpos["general/button-one-red-hover"]="-1280px -144px";
imglibpos["button-one-red-hover"]="-1280px -144px";
imglibpos["general/button-one-red-active"]="-1360px -144px";
imglibpos["button-one-red-active"]="-1360px -144px";
imglibpos["general/button-one"]="-0px -144px";
imglibpos["button-one"]="-0px -144px";
imglibpos["general/button-one-hover"]="-80px -144px";
imglibpos["button-one-hover"]="-80px -144px";
imglibpos["general/button-one-active"]="-160px -144px";
imglibpos["button-one-active"]="-160px -144px";
imglibpos["general/logo"]="-0px -240px";
imglibpos["logo"]="-0px -240px";
imglibpos["general/votestarempty"]="-0px -304px";
imglibpos["votestarempty"]="-0px -304px";
imglibpos["general/votestar"]="-32px -304px";
imglibpos["votestar"]="-32px -304px";
imglibpos["general/votestarhalf"]="-64px -304px";
imglibpos["votestarhalf"]="-64px -304px";
imglibpos["general/votestarempty-small"]="-96px -304px";
imglibpos["votestarempty-small"]="-96px -304px";
imglibpos["general/votestar-small"]="-132px -304px";
imglibpos["votestar-small"]="-132px -304px";
imglibpos["general/votestarhalf-small"]="-114px -304px";
imglibpos["votestarhalf-small"]="-114px -304px";
imglibpos["general/button"]="-240px -144px";
imglibpos["button"]="-240px -144px";
imglibpos["general/button-hover"]="-560px -144px";
imglibpos["button-hover"]="-560px -144px";
imglibpos["general/button-active"]="-880px -144px";
imglibpos["button-active"]="-880px -144px";
imglibpos["general/button-red"]="-336px -240px";
imglibpos["button-red"]="-336px -240px";
imglibpos["general/button-red-hover"]="-656px -240px";
imglibpos["button-red-hover"]="-656px -240px";
imglibpos["general/button-red-active"]="-976px -240px";
imglibpos["button-red-active"]="-976px -240px";
imglibpos["general/hover"]="-696px -344px";
imglibpos["hover"]="-696px -344px";
imglibpos["general/active"]="-1016px -344px";
imglibpos["active"]="-1016px -344px";
imglibpos["general/graybalk"]="-0px -352px";
imglibpos["graybalk"]="-0px -352px";
imglibpos["general/colorbalk"]="-0px -372px";
imglibpos["colorbalk"]="-0px -372px";
imglibpos["general/balktext"]="-0px -392px";
imglibpos["balktext"]="-0px -392px";
imglibpos["general/textbutton"]="-160px -304px";
imglibpos["textbutton"]="-160px -304px";
imglibpos["general/textbutton-hover"]="-192px -304px";
imglibpos["textbutton-hover"]="-192px -304px";
imglibpos["general/textbutton-active"]="-224px -304px";
imglibpos["textbutton-active"]="-224px -304px";


moveobj="msgBox";
objMoving=0;
currenttextarea="";
writing=0;
globalmsg="msg";

function xhr()
{
 var xmlHttp;
 try
	{
		xmlHttp=new XMLHttpRequest();
	}
 catch (e) 
 {
 try
		{ 
			xmlHttp=new ActiveXObject('Msxml2.XMLHTTP');			
		}
 catch (e2) 
 {
			try
			{
				xmlHttp=new ActiveXObject('Microsoft.XMLHTTP');
			}
			catch (e3)
			{
				xmlHttp=false;
			}
 }
 }
	 return xmlHttp;	
}


function rnd(num)
{
	if (!num) num=7;
	return Math.ceil(Math.random()*10*num);
}

function ajaxget(url, obj)
{
	xmlreq=xhr();
	xmlreq.onreadystatechange = function()
	{
		if (xmlreq.readyState==4)
		{
			document.getElementById(obj).innerHTML=xmlreq.responseText; 
			try { domxml=xmlreq.responseXML } catch(e) {}
		}
	} ; 
	
	if (ie()) { if (!url.match("#\?#i")) url=url+"?cache="+Math.ceil(Math.random()*1000000);
	else url=url+"&amp;cache="+Math.ceil(Math.random()*1000000); }
	
	xmlreq.open("GET", url, true);
	xmlreq.setRequestHeader('If-Modified-Since', 'Sat, 1 Jan 2000 00:00:00 GMT');		
	xmlreq.send(null);
}

function ajax(url, obj)
{
	xmlreq=xhr();
	xmlreq.open("GET", url, true);

	if (ie()) { if (!url.match("#\?#i")) url=url+"?cache="+Math.ceil(Math.random()*1000000);
	else url=url+"&amp;cache="+Math.ceil(Math.random()*1000000); }	
	
	xmlreq.setRequestHeader('If-Modified-Since', 'Sat, 1 Jan 2000 00:00:00 GMT');	
	xmlreq.send(null);
}

function ajaxpost(url, str)
{
	xmlreq=xhr();
	
	if (ie()) { if (!url.match("#\?#i")) url=url+"?cache="+Math.ceil(Math.random()*1000000);
	else url=url+"&amp;cache="+Math.ceil(Math.random()*1000000); }	

	xmlreq.open("POST", url, true); 
	xmlreq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	xmlreq.send(str);
}

function iframeget(url, obj)
{ 
	xmlreq=xhr();
	xmlreq.onreadystatechange = function()
	{
		if(xmlreq.readyState==4)
		{
			document.getElementById(obj).contentWindow.document.body.innerHTML=xmlreq.responseText; 
			try { domxml=xmlreq.responseXML } catch(e) {}
		}
	} ; 
	
	xmlreq.open("GET", url, true); 
	xmlreq.send(null);
}

function closeopenbar(id)
{
	if (document.getElementById("rb_element_" + id).style.display!="none")
	{
		document.getElementById("rb_control_" + id).src="/<?=img()?>pl-plus.png";
		document.getElementById("rb_element_" + id).style.display="none";
		setcookie("rb_element_" + id + "_hidden", "1", 3600*24*365);
	}
	else
	{
		document.getElementById("rb_control_" + id).src="/<?=img()?>pl-minus.png";
		document.getElementById("rb_element_" + id).style.display="block";
		killcookie("rb_element_" + id + "_hidden");
	}
}

function setcookie(n,w,e)
{
	var a = new Date();
	a = new Date(a.getTime() +e);
	document.cookie = n+'='+w+'; expires='+a.toGMTString()+';';
}

function getcookie(n)
{
	a = document.cookie;
	res = '';
	while(a != '')
	{
	 while(a.substr(0,1) == ' '){a = a.substr(1,a.length);}
	 cookiename = a.substring(0,a.indexOf('='));
	 if(a.indexOf(';') != -1)
	 {cookiewert = a.substring(a.indexOf('=')+1,a.indexOf(';'));}
	 else{cookiewert = a.substr(a.indexOf('=')+1,a.length);}
	 if(n == cookiename){res = cookiewert;}
	 i = a.indexOf(';')+1;
	 if(i == 0){i = a.length}
	 a = a.substring(i,a.length);
	}
	return(res);
}

function killcookie(n)
{
	document.cookie = n+'=; expires=Thu, 01-Jan-70 00:00:01 GMT;';
}

function getbrowser()
{
 brows=navigator.appName;
 browser="";
 if (brows.match("Explorer")) browser="IE";
 if (brows.match("Opera")) browser="Opera";
 if (brows.match("PSP")) browser="PSP";
 if (brows.match("Firefox")) browser="Firefox";
 if (brows.match("Netscape")) browser="Netscape";
 if (brows.match("Safari")) browser="Safari";
 return browser;
}

function isie()
{
	if (getbrowser()=="IE") return 1;
}

function ie()
{
	if (getbrowser()=="IE") return 1;
}

function ie6()
{
	return (navigator.userAgent.match("MSIE 6") || navigator.userAgent.match("MSIE 5") || navigator.userAgent.match("MSIE 4"));
}

function ietag(msg, front, end)
{
	msg.focus();
	msg.caretPos.text = front + msg.caretPos.text + end;
}

function storeCaret(textEl)
{
	currenttextarea=textEl;
	writing=1;
	if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate();
}

function gotext(txtarea, text)
{
	txtarea=document.getElementById(txtarea);
	if (getbrowser()!="IE")
	{
	 txtarea.value =
	 txtarea.value.substring(0, txtarea.selectionStart)
	 + text
	 + txtarea.value.substring(txtarea.selectionEnd, txtarea.value.length);
	}
	else ietag(txtarea, "", text);
}

function inserttext(txtarea, text1, text2)
{
	txtarea=document.getElementById(txtarea);
	if (getbrowser()!="IE")
	{
		selStart=txtarea.selectionStart;
	 txtarea.value =
	 txtarea.value.substring(0, txtarea.selectionStart)
	 + text1
	 + txtarea.value.substring(txtarea.selectionStart, txtarea.selectionEnd)
	 + text2
	 + txtarea.value.substring(txtarea.selectionEnd, txtarea.value.length);
	}
	else ietag(txtarea, text1, text2);
	txtarea.focus();
	txtarea.setSelectionRange(selStart, selStart)
}

function pushtext(txtarea, text)
{
	txtarea=document.getElementById(txtarea);
	txtarea.value=text+txtarea.value;
}

function blank(elem)
{
	elem.value="";
}

function hide(elem)
{
	document.getElementById(elem).style.display="none";
}

function show(elem)
{
	document.getElementById(elem).style.display="block";
}

var cursorX, cursorY, msgBoxMoving, difX, difY;

function cursorCoords(e)
{
	if (isie())
	{
	 cursorX = event.clientX - document.documentElement.scrollLeft;
	 cursorY = event.clientY - document.documentElement.scrollTop;
	}
	else
	{
	 cursorX = e.pageX - window.pageXOffset;
	 cursorY = e.pageY - window.pageYOffset;
	}
}

function showobj(elem, x, y)
{
	if (!x) x=5;
	if (!y) y=5;
	if (x=="topleft")
	{
		document.getElementById(elem).style.left=y+"px";
		document.getElementById(elem).style.top=y+"px";		
	}
	else
	{

		document.getElementById(elem).style.left=cursorX+x+"px";
		document.getElementById(elem).style.top=cursorY+y+"px";
	}
	if (document.getElementById(elem).style.display=='block') document.getElementById(elem).style.display='none';
	else document.getElementById(elem).style.display='block';	
}

function objMove(e)
{
	cursorCoords(e);
	makepreview();	
	if (objMoving)
	{
		finalX = cursorX - difX;
		finalY = cursorY - difY;

	 if (!isie()) { document.getElementById(moveobj).style.left = finalX + "px";
	 document.getElementById(moveobj).style.top = finalY + "px"; }

		else { document.getElementById(moveobj).style.posLeft = finalX;
 	 document.getElementById(moveobj).style.posTop = finalY; }
	}
}

function objNoMove()
{
	objMoving=0;
}

function objHold(obj)
{
	objMoving=1;
	moveobj=obj;
	
	if (!ie6()) document.getElementById(moveobj).style.position="fixed";	
	if (ie6()) document.getElementById(moveobj).style.position="absolute";
	
 if (!isie()) { 	difX = cursorX - document.getElementById(moveobj).style.left.replace(/px/i, "");
		difY = cursorY - document.getElementById(moveobj).style.top.replace(/px/i, ""); }

	else { 	difX = cursorX - document.getElementById(moveobj).style.posLeft;
		difY = cursorY - document.getElementById(moveobj).style.posTop; }
}

function objClose(box)
{
	document.getElementById(box).style.display='none';
}

document.onmousemove = objMove;
document.onmouseup = objNoMove;
document.onkeyup = makepreview;
document.onclick = makepreview;
document.onselect = makepreview;

function makepreview()
{
	if (writing && 0)
	{
		text=currenttextarea.value.replace(/\n/gi, "<br />");
		text=text.replace(/<[\s\/]*script[^>]*>/gi, "");
		text=text.replace(/\:yell\:/gi, "<span class='libimg' style='width:18px; height:18px; background:url(http://img.rabbitcoder.de/lib.png) repeat scroll " + imglibpos["smileys/yell"] + ";'> </span>");
text=text.replace(/\:wink\:/gi, "<span class='libimg' style='width:18px; height:18px; background:url(http://img.rabbitcoder.de/lib.png) repeat scroll " + imglibpos["smileys/wink"] + ";'> </span>");
text=text.replace(/\:undecided\:/gi, "<span class='libimg' style='width:18px; height:18px; background:url(http://img.rabbitcoder.de/lib.png) repeat scroll " + imglibpos["smileys/undecided"] + ";'> </span>");
text=text.replace(/\:tongue-out\:/gi, "<span class='libimg' style='width:18px; height:18px; background:url(http://img.rabbitcoder.de/lib.png) repeat scroll " + imglibpos["smileys/tongue-out"] + ";'> </span>");
text=text.replace(/\:surprised\:/gi, "<span class='libimg' style='width:18px; height:18px; background:url(http://img.rabbitcoder.de/lib.png) repeat scroll " + imglibpos["smileys/surprised"] + ";'> </span>");
text=text.replace(/\:smile\:/gi, "<span class='libimg' style='width:18px; height:18px; background:url(http://img.rabbitcoder.de/lib.png) repeat scroll " + imglibpos["smileys/smile"] + ";'> </span>");
text=text.replace(/\:sealed\:/gi, "<span class='libimg' style='width:18px; height:18px; background:url(http://img.rabbitcoder.de/lib.png) repeat scroll " + imglibpos["smileys/sealed"] + ";'> </span>");
text=text.replace(/\:money-mouth\:/gi, "<span class='libimg' style='width:18px; height:18px; background:url(http://img.rabbitcoder.de/lib.png) repeat scroll " + imglibpos["smileys/money-mouth"] + ";'> </span>");
text=text.replace(/\:laughing\:/gi, "<span class='libimg' style='width:18px; height:18px; background:url(http://img.rabbitcoder.de/lib.png) repeat scroll " + imglibpos["smileys/laughing"] + ";'> </span>");
text=text.replace(/\:kiss\:/gi, "<span class='libimg' style='width:18px; height:18px; background:url(http://img.rabbitcoder.de/lib.png) repeat scroll " + imglibpos["smileys/kiss"] + ";'> </span>");
text=text.replace(/\:innocent\:/gi, "<span class='libimg' style='width:18px; height:18px; background:url(http://img.rabbitcoder.de/lib.png) repeat scroll " + imglibpos["smileys/innocent"] + ";'> </span>");
text=text.replace(/\:frown\:/gi, "<span class='libimg' style='width:18px; height:18px; background:url(http://img.rabbitcoder.de/lib.png) repeat scroll " + imglibpos["smileys/frown"] + ";'> </span>");
text=text.replace(/\:foot-in-mouth\:/gi, "<span class='libimg' style='width:18px; height:18px; background:url(http://img.rabbitcoder.de/lib.png) repeat scroll " + imglibpos["smileys/foot-in-mouth"] + ";'> </span>");
text=text.replace(/\:embarassed\:/gi, "<span class='libimg' style='width:18px; height:18px; background:url(http://img.rabbitcoder.de/lib.png) repeat scroll " + imglibpos["smileys/embarassed"] + ";'> </span>");
text=text.replace(/\:cry\:/gi, "<span class='libimg' style='width:18px; height:18px; background:url(http://img.rabbitcoder.de/lib.png) repeat scroll " + imglibpos["smileys/cry"] + ";'> </span>");
text=text.replace(/\:cool\:/gi, "<span class='libimg' style='width:18px; height:18px; background:url(http://img.rabbitcoder.de/lib.png) repeat scroll " + imglibpos["smileys/cool"] + ";'> </span>");

		document.getElementById("preview").innerHTML=text;
	}
}

// AJAX

function quote(saveid)
{
	xmlHttp=new XMLHttpRequest();
	xmlHttp.open("GET", "<?=fulladdr()?>readthread.php?showpost=" + saveid, true);
	xmlHttp.onreadystatechange=quote2;
	xmlHttp.send(null);
}

function quote2(user)
{
	if (xmlHttp.readyState==4)
	{
		text=xmlHttp.responseText;
		document.getElementById('msg').value='[quote=' + quoteuser + ']' + text + '[/quote]';
	}
}

// Misc

function showhide(elem, controller)
{
	if (document.getElementById(elem).style.display!='block')
	{
	 document.getElementById(elem).style.display='block';
	 document.getElementById(controller).src='/<?=iconpath("upload")?>';
	}
	else
	{
	 document.getElementById(elem).style.display='none';
	 document.getElementById(controller).src='/<?=iconpath("download")?>';
	}
}

function sh(elem)
{
	if (document.getElementById(elem).style.display=='none') document.getElementById(elem).style.display='block';
	else document.getElementById(elem).style.display='none';
}

function byid(id)
{
	return document.getElementById(id);
}

function plswait(id)
{
	document.getElementById(id).innerHTML="Please wait...";
}

function normalize()
{
	var wincorrection = 99;
	var wincorrection2 = 130;
	if (document.getElementById('content').style.height!=(document.documentElement.clientHeight-wincorrection2)+"px")
	{
		document.getElementById('content').style.height=(document.documentElement.clientHeight-wincorrection2)+"px";
		document.getElementById('content').style.Width=(document.documentElement.clientWidth-wincorrection)+"px";
		document.getElementById('outline').style.height=(document.documentElement.clientHeight-wincorrection2)+"px";
	}
	window.setTimeout("normalize()", 250);
}



function starvoteover(prefix, stars, size)
{
	star1=document.getElementById(prefix + "1").style.backgroundPosition;
	star2=document.getElementById(prefix + "2").style.backgroundPosition;
	star3=document.getElementById(prefix + "3").style.backgroundPosition;
	star4=document.getElementById(prefix + "4").style.backgroundPosition;
	star5=document.getElementById(prefix + "5").style.backgroundPosition;
	
	for (i=1; i<=5; i++)
	{
		if (i<=stars) document.getElementById(prefix + i).style.backgroundPosition=imglibpos["votestar"+size];
		else document.getElementById(prefix + i).style.backgroundPosition=imglibpos["votestarempty"+size];
	}

	switch (stars)
	{
		case "1": text="Poor"; break;
		case "2": text="Nothing special"; break;
		case "3": text="Not bad"; break;
		case "4": text="Pretty cool"; break;
		case "5": text="Awesome!"; break;									
	}
	try { document.getElementById("textrating" + prefix).innerHTML=" - "+text; } catch(e) {}	
}

function starvoteout(prefix)
{
	try {
	document.getElementById(prefix + "1").style.backgroundPosition=star1;
	document.getElementById(prefix + "2").style.backgroundPosition=star2;
	document.getElementById(prefix + "3").style.backgroundPosition=star3;
	document.getElementById(prefix + "4").style.backgroundPosition=star4;
	document.getElementById(prefix + "5").style.backgroundPosition=star5;
	try { document.getElementById("textrating" + prefix).innerHTML=""; } catch(e) {}
	} catch(e) {}	
}

function starvote(code, value, size)
{
	xmlreq=xhr();
	
	xmlreq.onreadystatechange = function()
	{
		if(xmlreq.readyState==4)
		{
			document.getElementById("ratingstars"+code).innerHTML=xmlreq.responseText; 
		}
	} ; 
	
	if (size) sizeadd = "/" + size;
	else sizeadd="";
	
	xmlreq.open("GET", "/modules/rating/" + code + "/" + value + sizeadd, true); 
	xmlreq.send(null);
}

rtestarted=0;

function rte(msg, myheight)
{
	rtestarted=1;
	
	globalmsg=msg;

	document.getElementById("area"+msg).className="hidden";
	document.getElementById("area"+msg+"move").className="moveobj";
	document.getElementById("buttons"+msg).style.display="block";
	
	var editorframe = document.createElement("iframe");
	editorframe.name = editorframe.id = msg;
	editorframe.className = "frameEditor";

	frameborder=document.createAttribute("frameborder");
	frameborder.nodeValue="0";
	editorframe.setAttributeNode(frameborder);
	
	width=document.createAttribute("width");
	width.nodeValue="100%";
	editorframe.setAttributeNode(width);	

	myheight=myheight?myheight:256;
	height=document.createAttribute("height");
	height.nodeValue=myheight;
	editorframe.setAttributeNode(height);

	if (editorframe.addEventListener)
	{
		editorframe.addEventListener("load", function (e) { this.contentWindow.document.designMode = "on"; }, false);
	}
	else if (editorframe.attachEvent)
	{
		editorframe.attachEvent("load", function (e) { this.contentWindow.document.designMode = "on"; } );
	}

	document.getElementById(msg+"Holder").appendChild(editorframe);

	document.getElementById(msg).contentWindow.document.designMode="on";
	document.getElementById(msg).contentWindow.document.open();
	document.getElementById(msg).contentWindow.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-type" content="text/html; charset=UTF-8" /><link rel="stylesheet" type="text/css" href="/theme.css" media="all" /><style type="text/css">body.content { margin:0; padding:0; padding-left:5px; border:0; font-family:Arial,sans-serif,Trebuchet MS; font-size:14px; line-height:150%; } a { text-decoration:none; border:0; } a:hover { border:0; }</style><script type="text/javascript">msg=\'' + msg + '\';</script></head><body onkeyup="parent.document.getElementById(\'textarea\'+msg).value=document.body.innerHTML;" onfocus="parent.document.getElementById(\'textarea\'+msg).value=document.body.innerHTML;" onselect="parent.document.getElementById(\'textarea\'+msg).value=document.body.innerHTML;" onclick="parent.document.getElementById(\'textarea\'+msg).value=document.body.innerHTML;" onchange="parent.document.getElementById(\'textarea\'+msg).value=document.body.innerHTML;" class="content">' + parent.document.getElementById("textarea"+msg).value + '</body></html>');
	document.getElementById(msg).contentWindow.document.close();

	xchange(msg);
}

function format(msg, x,y)
{
	if (!y) y = null;
	document.getElementById(msg).contentWindow.document.execCommand(x,false,y);
	document.getElementById(msg).contentWindow.focus();
	frame2text(msg);
}

function html(msg, tag1, tag2)
{
	var sel=document.getElementById(msg).contentWindow.getSelection();
	if (!sel) return;
	var range=sel.getRangeAt(0);
	var pos1=range.startOffset;
	var pos2=range.endOffset;
	var container = range.startContainer;

	container.insertData(pos1, tag1);
	container.insertData(pos2+tag1.length, tag2);
 
	xhtml=document.getElementById(msg).contentWindow.document.body.innerHTML.replace(/&amp;mylt;/gmi, "<");
	xhtml=xhtml.replace(/&amp;mygt;/gmi, ">");
	document.getElementById(msg).contentWindow.document.body.innerHTML=xhtml;

 range.setStart(container, pos1);
 range.setEnd(container, pos2);

	frame2text(msg); 
}

function msgbox(title, content, width)
{
	document.getElementById("titleMsgBox").innerHTML=title;
	document.getElementById("contentMsgBox").innerHTML=content;
	document.getElementById("MsgBox").style.top="5px";
	document.getElementById("MsgBox").style.left="5px";
	document.getElementById("MsgBox").style.width=width;
	document.getElementById("MsgBox").style.display="block";
}

function ajaxbox(url, title, width)
{
	document.getElementById("titleMsgBox").innerHTML=title;
	ajaxget(url, "contentMsgBox");
	document.getElementById("MsgBox").style.top="5px";
	document.getElementById("MsgBox").style.left="5px";
	document.getElementById("MsgBox").style.width=width;
	document.getElementById("MsgBox").style.display="block";
}

htmledit=0;

function showhtml(msg)
{
	frame2text(msg);
	if (document.getElementById("area"+msg).className=="hidden" || document.getElementById("area"+msg).style.display=="none")
	{
		document.getElementById("area"+msg).className="box absbox box3 msgbox left areabox visible";
		document.getElementById("area"+msg).style.display="block";		
		document.getElementById("area"+msg).style.top="5px";	
		document.getElementById("area"+msg).style.left="5px";
		htmledit=1;
	}
	else
	{
		document.getElementById("area"+msg).className="hidden";
		document.getElementById("area"+msg).style.display="none";		
		htmledit=0;
	}
}

areawidth=0;
textareawidth=0;
textareaheight=0;

function areaexpand(msg, form, text, uri, file)
{
	document.getElementById("area"+msg).className="box absbox box3 msgbox left areabox visible";
	document.getElementById("area"+msg).style.display="block";		
	document.getElementById("area"+msg+"move").style.display="block";
	document.getElementById("area"+msg).style.top="5px";	
	document.getElementById("area"+msg).style.left="5px";

	areawidth=document.getElementById("area"+msg).style.width;
	textareawidth=document.getElementById("textarea"+msg).style.width;	
	textareaheight=document.getElementById("textarea"+msg).style.height;
	document.getElementById("area"+msg).style.width="1000px";
	
	document.getElementById("area"+msg+"moveobj").style.width="975px";	
	document.getElementById("textarea"+msg).style.width="990px";
	document.getElementById("textarea"+msg).style.height="660px";

	text=text?text:"Submit";

	document.getElementById("area"+msg+"submit").className="topspacer";
	document.getElementById("area"+msg+"submit").innerHTML="<a onclick=\"ajaxpost('"+uri+"?file="+file+"&amp;ajax=1', 'mesg='+document.getElementById('textarea"+msg+"').value.replace(/\&/gmi, '%26').replace(/\\+/gmi, '%2b')); document.getElementById('area"+msg+"moveobj').innerHTML='Saved!';\" onmouseout=\"document.getElementById('area"+msg+"moveobj').innerHTML='Edit HTML';\" class=\"button submitbutton\" href=\"#\">AJAX "+text+"</a> <a onclick=\"document.getElementById('" + form + "').submit()\" class=\"button submitbutton\" href=\"#\">HTTP "+text+"</a> <span id='thisbox'> </span>";
}

function areaimplode(msg)
{
	if (!rtestarted)
	{
		document.getElementById("area"+msg).style.width=areawidth;
		document.getElementById("area"+msg).className="";
		document.getElementById("area"+msg).style.position="";				 
		document.getElementById("textarea"+msg).style.height=textareaheight;
		document.getElementById("textarea"+msg).style.width=textareawidth;
		document.getElementById("area"+msg+"move").style.display="none";
		document.getElementById("area"+msg+"submit").className="hidden";
	}
	else objClose('area' + msg);
}

function xchange(msg)
{
	if (!msg) msg=globalmsg;
	if (!htmledit) frame2text(msg);
	window.setTimeout("xchange()", 500);	
}

function text2frame(msg)
{
	if (rtestarted) { if (!msg) msg=globalmsg;
	document.getElementById(msg).contentWindow.document.body.innerHTML=document.getElementById("textarea"+msg).value; }
}

function frame2text(msg)
{		
	if (rtestarted) { if (!msg) msg=globalmsg;
	document.getElementById("textarea"+msg).value=document.getElementById(msg).contentWindow.document.body.innerHTML;	}
}

function showads()
{
	for (var i = 0; i < 10; i++)
	{
		try { document.getElementById("ad"+i).style.display="block"; } catch(e){}
	}
}

function jsbuttons()
{
	len1=document.getElementsByTagName("input").length;
	len2=document.getElementsByName("jsbutton").length;
	len=len1>len2?len1:len2;
	for (var i = 0; i < len; i++)
	{
		try { document.getElementsByName("jsbutton")[i].style.display="inline-block"; } catch(e){}
		try { if (document.getElementsByTagName("input")[i].className=="htmlsubmit") document.getElementsByTagName("input")[i].style.display="none"; } catch(e){}
	}
}
