javascript not working properly

Go down

javascript not working properly Empty javascript not working properly

Post by Bleachzor on May 7th 2010, 6:55 pm

The following javascript is supposed to display 3 different counters. The counters appear different per timezone. They are supposed to update every second.

Why does it not work?

Heres the code:

head part:
Code:
<script type="text/javascript" charset="utf-8">
ftwDay=8;ftwHours=22;ftwMin=42;ftwSec=21;ctfHours=1;ctfMins=42;ctfSec=21;
function updateSroClock() {
   var tDate = new Date();
   var currentTimeString;

   thehours = tDate.getUTCHours()+9;
   themins = tDate.getUTCMinutes();
   thesecs = tDate.getUTCSeconds();
   if (thehours > 23) { thehours = thehours - 24; }
   if (thehours < 10) { thehours = "0" + thehours; }
   if (themins < 10) { themins = "0" + themins; }
   if (thesecs < 10) { thesecs = "0" + thesecs; }
   if (thehours > 11) currentTimeString = "" + thehours + ":" + themins + ":" + thesecs + " PM";
   else currentTimeString = "" + thehours + ":" + themins + ":" + thesecs + " AM";

   document.getElementById("sroclock").innerHTML=currentTimeString;
}

function updateCtf() {
   var currentTimeString;
   var isReg;

   ctfSec-=1;
   if(ctfSec<0){ctfSec=59;ctfMins-=1;if(ctfMins<0) {ctfMins=59;ctfHours=1-ctfHours;}}

   if(!ctfHours&&ctfMins<10) {
      themins=ctfMins;
      thesecs=ctfSec;
      thehours=0;
      isReg=1;
   } else {
      thehours=ctfHours;
      themins=ctfMins-10;
      thesecs=ctfSec;
      if(themins<0) {themins+=60;thehours-=1;}
      isReg=0;
   }

   if (thehours&&themins<10) {themins="0"+themins;if (thesecs<10) thesecs="0"+thesecs;}
   else if ((thehours||themins)&&thesecs<10) {thesecs="0"+thesecs;}

   if(isReg) {
      if(ctfMins) currentTimeString = themins + ":" + thesecs;
      else currentTimeString = thesecs + "s";
   } else {
      currentTimeString = ""
      if(thehours) currentTimeString+=thehours + ":" + themins + ":" + thesecs;
      else if(parseInt(themins)) currentTimeString+=themins + ":" + thesecs;
      else currentTimeString+=thesecs + "s";
   }
   document.getElementById("ctfclock").innerHTML=currentTimeString;
}
function updateCtf2() {
   var tDate = new Date();
   var currentTimeString;

   themins = (1-(tDate.getUTCHours()%2))*60+(60-tDate.getUTCMinutes())-11;
   thesecs = 60-tDate.getUTCSeconds();
   if(themins<0){
      themins+=10;
      if (thesecs < 10) {thesecs = "0" + thesecs;}
      currentTimeString = themins + ":" + thesecs;
   } else {
      if (themins>59 && themins-60<10) { themins = "1:0" + (themins-60);}
      else if (themins>59) { themins = "1:" + (themins-60);}
      if (thesecs < 10) { thesecs = "0" + thesecs; }
      currentTimeString = themins + ":" + thesecs;
   }
   document.getElementById("ctfclock").innerHTML=currentTimeString;
}
function updateFtw() {
   var currentTimeString;

   ftwSec-=1;
   if(ftwSec<0){ftwSec=59;ftwMin-=1;if(ftwMin<0) {ftwMin=59;ftwHours-=1;if(ftwHours<0) {ftwHours=23;ftwDay-=1;}}}
   
   thedays=ftwDay;
   thehours=ftwHours;
   themins=ftwMin;
   thesecs=ftwSec;

   if (thehours<10) {thehours="0"+thehours;}
   if (themins<10) {themins="0"+themins;}
   if (thesecs<10) {thesecs="0"+thesecs;}

   if (thedays<0) {currentTimeString="NOW!";}
   else if(thedays>0) {currentTimeString= thedays + " days " + thehours + ":" + themins + ":" + thesecs;}
   else {currentTimeString= thehours + ":" + themins + ":" + thesecs;}

   document.getElementById("ftwclock").innerHTML=currentTimeString;
}

</script>
body part:
Code:
<body class="twoColLiqRtHdr" onload="updateCtf(); updateSroClock(); updateFtw(); OnLoadScript(); setInterval('updateCtf();updateSroClock();updateFtw()',1000);">
Code:
<div id="ftwclock"> </div>
<div id="ctfclock"> </div>
<div id="sroclock"> </div>

Those who answer my question first get a cornflake!!!
Bleachzor
Bleachzor
Forumember

Posts : 211
Reputation : -10
Language : Dutch

Back to top Go down

javascript not working properly Empty Re: javascript not working properly

Post by Bleachzor on May 9th 2010, 10:17 am

With all respect: My last 3 normal questions have not been answered at all. I have bumped them only over 24 hours and every1 of them at least 2 times.

At least let me know if you wish to help me or not at all so I know where I'm at. Being ignored like this isn't nice and not really appreciated

I wish to know where I stand. If you cannot or do not wish to help me then that's ok too but atleast you can give me an answer. honesty is important to me. it is something i can work with.

*bump*
Bleachzor
Bleachzor
Forumember

Posts : 211
Reputation : -10
Language : Dutch

Back to top Go down

javascript not working properly Empty Re: javascript not working properly

Post by kirk on May 9th 2010, 6:40 pm

where are these codes supposed to be going? template, html,css or other?

i have tested it in a few places and nothing is appearing for me at all.
was there any directions on where to place the code?
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

javascript not working properly Empty Re: javascript not working properly

Post by Bleachzor on May 9th 2010, 8:17 pm

The code is used in my homepage(see attachment). I explained what they are supposed to do. The div's display 3 clocks. 2 count backwards and 1 counts forward. On my homepage they are supposed to show "when" cirtain repeating events will occur. The 3th clock is supposed to be our common clock.

I can't make the image sprites(in the divs) display properly on IE.
If you have the time and the knowledge to fix it then it is ok, but I rather have you look at the counters.
That is why I only posted the javascript parts. I do not wish to air my homepage without them. I view them as a crucial part from my homepage. As childish as it may sound. Please respect my wish.

Regards,

Bleach
Attachments
javascript not working properly Attachment
sacredhomepage.zip You don't have permission to download attachments.(6 Kb) Downloaded 6 times
Bleachzor
Bleachzor
Forumember

Posts : 211
Reputation : -10
Language : Dutch

Back to top Go down

javascript not working properly Empty Re: javascript not working properly

Post by Bleachzor on May 10th 2010, 10:02 pm

BURB
Bleachzor
Bleachzor
Forumember

Posts : 211
Reputation : -10
Language : Dutch

Back to top Go down

javascript not working properly Empty Re: javascript not working properly

Post by MrMario on May 10th 2010, 10:17 pm

I've been testing it and it doesn't even work.
MrMario
MrMario
Helper
Helper

Male Posts : 22186
Reputation : 1839
Language : test

Back to top Go down

javascript not working properly Empty Re: javascript not working properly

Post by kirk on May 11th 2010, 12:32 am

i donnt get it.
what ever it is it dont work or it's missing something major?
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

javascript not working properly Empty Re: javascript not working properly

Post by Bleachzor on May 11th 2010, 9:46 am

@MrMario wrote:I've been testing it and it doesn't even work.

@kirk wrote:i donnt get it.
what ever it is it dont work or it's missing something major?

Forgive me but, I think this is ironic. You are both saying exactly the same thing as I've been thinking all this time. Yet, this script works perfectly fine on another site: www.rev6.com .
With firefox you can view the sourcecode of their site(I can't post it since it would be illegal)

For those who think"are we helping this dude steal contents from another site!?":
Spoiler:
Their site originally founded for different purpose, they gather information from silkroad server and then they calculate server capicity and allow people to view the set of another player using their system. Currently they have a few of these scripts available (in program form) for free download and their site is free for use. The counters only came later.

For those who think "can't you just simply redirect them towards that site!?":
Spoiler:
No. Those counters are part of an x-amount of different contents that make my homepage worth visiting. Basically I want them to look at this homepage and think: "oh its allready this late!? oh and there is also some interresting news lets visit the forum see if there is more talk". For server capicity and player info I would still redirect them towards rev6. The purpose of my homepage is merrilly to inform my union about recent happenings.
Bleachzor
Bleachzor
Forumember

Posts : 211
Reputation : -10
Language : Dutch

Back to top Go down

javascript not working properly Empty Re: javascript not working properly

Post by iJerick on May 11th 2010, 9:49 am

What version of forum do you use?
iJerick
iJerick
Forumember

Male Posts : 98
Reputation : 1
Language : HTML, JAVASCRIPT, CSS and ENGLISH
Location : Philippines

Back to top Go down

javascript not working properly Empty Re: javascript not working properly

Post by Bleachzor on May 11th 2010, 12:31 pm

Invision
Bleachzor
Bleachzor
Forumember

Posts : 211
Reputation : -10
Language : Dutch

Back to top Go down

javascript not working properly Empty Re: javascript not working properly

Post by MrMario on May 12th 2010, 1:29 am

Bleachzor excuse me but you want help? At least show it that you want help.

To me it looks like you have half the code.

I don't even see this code on that website.
MrMario
MrMario
Helper
Helper

Male Posts : 22186
Reputation : 1839
Language : test

Back to top Go down

javascript not working properly Empty Re: javascript not working properly

Post by Bleachzor on May 12th 2010, 8:37 am

@MrMario wrote:Bleachzor excuse me but you want help? At least show it that you want help.

To me it looks like you have half the code.

I don't even see this code on that website.
I told you. You can use firefox to view it.

Here is the HTML sourcecode of rev6:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <meta name="robots" content="index,follow,all"/>
 <meta name="category" content="Mmorpg Game"/>
 <meta name="subject" content="Silkroad Online Mmorpg Game" />
 <meta name="verify-v1" content="YfvOHojiVDULZNO/bHlmprSxSvP8i9yefZQxZicPXM4=" >
 <meta name="Copyright" content="www.rev6.com" />
 <meta name="Identifier-URL" content="http://www.rev6.com" />
 
 <meta name="description" content="The 6th revolution bring you a Silkroad Online mmorpg Datamining website. Ladder, player stats, guild stats, character builder, mmorpg, tutorial and more." />

 <meta name="Keywords" content="Silkroad, Mmorpg, game, online, ladder, stats, guild, silk, capacity, server, revolution, monster, map, builder, character, tutorial, chinese, europe" />
 <title>Rev6.com - The 6th Revolution</title>
 <link rel="stylesheet" type="text/css" media="screen" href="/styles/default.css" />
 <link rel="stylesheet" type="text/css" media="screen" href="http://www.google.com/cse/api/branding.css" />
 <script type="text/javascript" src="/jscripts/svstats.js"></script>
 <script type="text/javascript" src="/jscripts/update/val.js"></script>
 <script type="text/javascript" charset="utf-8" src="/jscripts/news.js"></script>

</head>
<body onload="updateCtf(); updateSroClock(); updateFtw(); OnLoadScript(); setInterval('updateCtf();updateSroClock();updateFtw()',1000);"><script type="text/javascript" src="/jscripts/wz_tooltip.js"></script>
 <div id="header">
  <div id="header-inside">
  <div id="logo">
    <h1><a href="/"><span>Rev6</span></a></h1>
    <p>The 6th Revolution</p>
  </div>

  <div id="login"><p><!-- login --></p></div>
  <ul id="menu">
    <li><a class="selected" href="/">Home</a></li>
    <li><a class="ajaxLink" id="searcht" href="/search">Search</a></li>
    <li><a target="nivlam" href="http://nivlam.rev6.com/">Nivlam</a></li>
    <li><a class="ajaxLink" id="serverstatst" href="/serverstats">Server Stats</a></li>
    <li><a class="ajaxLink" id="servercapacityt" href="/servercapacity">Serv. Capacity</a></li>

    <li><a target="forum" href="http://forum.rev6.com/">Forum</a></li>
    <li><a class="ajaxLink" id="uniquet" href="/unique">Unique Monster</a></li>
    <li><a class="ajaxLink" id="wuniquet" href="/unique/BestKiller/">Weekly Contest</a></li>
    <!--li><a class="ajaxLink" id="bestsett" href="/bestset">Best Item Set</a></li-->
    <li><a class="ajaxLink" id="skillTool" href="/tools/skill/ch/">SP Calculator</a></li>
    <li><a class="ajaxLink" id="weblinkt" href="/weblink">Web Links</a></li>

  </ul>
  </div>
 </div>
 <div class="ads728">
<!--/* Ad4Game Javascript Tag 728x90 */-->
<script type='text/javascript'><!--//<![CDATA[
  var m3_u = (location.protocol=='https:'?'https://ads.ad4game.com/www/delivery/ajs.php':'http://ads.ad4game.com/www/delivery/ajs.php');
  var m3_r = Math.floor(Math.random()*99999999999);
  if (!document.MAX_used) document.MAX_used = ',';
  document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
  document.write ("?zoneid=2635&block=1&blockcampaign=1");
  document.write ('&cb=' + m3_r);
  if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used);
  document.write (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : ''));
  document.write ("&loc=" + escape(window.location));
  if (document.referrer) document.write ("&referer=" + escape(document.referrer));
  if (document.context) document.write ("&context=" + escape(document.context));
  if (document.mmm_fo) document.write ("&mmm_fo=1");
  document.write ("'><\/scr"+"ipt>");
//]]>--></script><noscript><a href='http://ads.ad4game.com/www/delivery/ck.php?n=a0b5d6d7&cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://ads.ad4game.com/www/delivery/avw.php?zoneid=2635&cb=INSERT_RANDOM_NUMBER_HERE&n=a0b5d6d7' border='0' alt='' /></a></noscript>
</div>
 <div id="wrapper">
  <div id="container">

  <ul id="list">
    <li class="home" onclick="classActionTrigger();">MAIN MENU</li>
    <li class="lstMain"><a href="/">Home</a></li>
    <li class="lstMain"><a id="skillTooll" href="/tools/skill/ch/">SP Calculator <font color=red>* New *</font></a></li>
    <li class="lstMain"><a target="nivlam" href="http://nivlam.rev6.com/">Nivlam</a></li>
    <li class="lstMain"><a id="serverstatsl" href="/serverstats">Server Stats</a></li>

    <li class="lstMain"><a id="servercapacityl" href="/servercapacity">Server Capacity</a></li>
    <li class="lstMain"><a target="forum" href="http://forum.rev6.com/">Forum</a></li>
    <li class="lstMain"><a id="uniquel" href="/unique">Unique Monster</a></li>
    <li class="lstMain"><a href="/unique/BestKiller/">Unique Monster Contest</a></li>
    <li class="lstMain"><a id="bestsetl" href="/bestset">Best Item Set</a></li>
    <li class="lstMain"><a id="weblinkl" href="/weblink">Silkroad Web Link</a></li>

    <li class="home"><a id="Search1" href="/search">Search</a></li>
    <li class="svSelected"><a id="Search2" href="/search">Search</a></li>
   
    <li class="home"><b><font color="yellow">Last Server Visited</font></b></li>
    <li class="svSelected" id='lastVisited'>
   <script type="text/javascript">

if (  get_cookie ( "myOwnsv" ) )
{
  var myOwnsv = get_cookie ( "myOwnsv" );
  myOwnsv = myOwnsv.substr(0, 1).toUpperCase() + myOwnsv.substr(1);
  document.write ( "<li class=\"svSelected\"><a href=\"/stats/" + myOwnsv.toLowerCase() + "/\">" + myOwnsv + "</a></li>" );
}
else
{
  document.write ( "<li class=\"svSelected\">   Coming soon...</li>" );
}

</script></li>
   
    <li class="home">Select a Server</li>

    <li class="svSelected"><a href="/stats/aege/">Aege</a></li>
   <li class="svSelected"><a href="/stats/alexander/">Alexander</a></li>
   <li class="svSelected"><a href="/stats/alps/">Alps</a></li>
   <li class="svSelected"><a href="/stats/apollo/">Apollo</a></li>
   <li class="svSelected"><a href="/stats/ares/">Ares</a></li>
   <li class="svSelected"><a href="/stats/athens/">Athens</a></li>

   <li class="svSelected"><a href="/stats/babel/">Babel</a></li>
   <li class="svSelected"><a href="/stats/eldorado/">Eldorado</a></li>
   <li class="svSelected"><a href="/stats/eos/">Eos</a></li>
   <li class="svSelected"><a href="/stats/gaia/">Gaia</a></li>
   <li class="svSelected"><a href="/stats/greece/">Greece</a></li>
   <li class="svSelected"><a href="/stats/helios/">Helios</a></li>

   <li class="svSelected"><a href="/stats/hera/">Hera</a></li>
   <li class="svSelected"><a href="/stats/hercules/">Hercules</a></li>
   <li class="svSelected"><a href="/stats/iris/">Iris</a></li>
   <li class="svSelected"><a href="/stats/malazgirt/">Malazgirt</a></li>
   <li class="svSelected"><a href="/stats/mars/">Mars</a></li>
   <li class="svSelected"><a href="/stats/mercury/">Mercury</a></li>

   <li class="svSelected"><a href="/stats/neptune/">Neptune</a></li>
   <li class="svSelected"><a href="/stats/oasis/">Oasis</a></li>
   <li class="svSelected"><a href="/stats/odin/">Odin</a></li>
   <li class="svSelected"><a href="/stats/olympus/">Olympus</a></li>
   <li class="svSelected"><a href="/stats/pacific/">Pacific</a></li>
   <li class="svSelected"><a href="/stats/persia/">Persia</a></li>

   <li class="svSelected"><a href="/stats/phoenix/">Phoenix</a></li>
   <li class="svSelected"><a href="/stats/pluto/">Pluto</a></li>
   <li class="svSelected"><a href="/stats/poseidon/">Poseidon</a></li>
   <li class="svSelected"><a href="/stats/redsea/">RedSea</a></li>
   <li class="svSelected"><a href="/stats/rome/">Rome</a></li>
   <li class="svSelected"><a href="/stats/saturn/">Saturn</a></li>

   <li class="svSelected"><a href="/stats/sparta/">Sparta</a></li>
   <li class="svSelected"><a href="/stats/tibet/">Tibet</a></li>
   <li class="svSelected"><a href="/stats/titan/">Titan</a></li>
   <li class="svSelected"><a href="/stats/troy/">Troy</a></li>
   <li class="svSelected"><a href="/stats/uranus/">Uranus</a></li>
   <li class="svSelected"><a href="/stats/venice/">Venice</a></li>

   <li class="svSelected"><a href="/stats/venus/">Venus</a></li>
   <li class="svSelected"><a href="/stats/xian/">Xian</a></li>
   <li class="svSelected"><a href="/stats/zeus/">Zeus</a></li>
    <li class="home"> </li>
  </ul>
  <div id="content">
    <div id="topbar">

    <div id="ftwclock"> </div>
    <div id="ctfclock"> </div>
    <div id="sroclock"> </div>
    <div class="ads470">
<script type="text/javascript"><!--
google_ad_client = "pub-1061360519158881";
/* 468x60, rev6 TopMiddle */
google_ad_slot = "4951437462";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
    </div>

    <div id="crumb">
    </div>
  <div id="ajaxDiv">
<div align="right">
<a href="/?p=1&c=all"><img src="/img/link.gif" onmouseover="Tip('Direct link to this page<br>/?p=1&c=all')" onmouseout="UnTip()" alt="Direct link to this page" /></a>
<a class="ajaxLink" onClick="fAddFav('News - all','/?p=1&c=all');"><img src="/img/favorites.gif" onmouseover="Tip('Pages added to favorite will appear in the left menu')" onmouseout="UnTip()" alt="Pages added to favorite will appear in the left menu" /></a>
</div>

    <div class="news">
    <h2>Welcome to the 6th Revolution <a href="/stats/serverstats.asp">Server Statistics</a></h2>

    <hr />
    <div id="newsUpdate">
<div id="java"><div id="newsUpdate1"><ul class="newsHistory"><li class="selected" onclick="process('',1);">All News</li><li onclick="process('sro',1);">Sro News</li><li onclick="process('rev6',1);">Rev6 News</li><li onclick="process('yt',1);">Youtube News</li><li onclick="process('exploit',1);">Exploits</li><li><form><select id="fNewsList" class="svNewsList"  onchange="process(this.options[this.selectedIndex].value,1);"><option>Aege</option><option>Alexander</option><option>Alps</option><option>Apollo</option><option>Ares</option><option>Athens</option><option>Babel</option><option>Eldorado</option><option>Eos</option><option>Gaia</option><option>Greece</option><option>Helios</option><option>Hera</option><option>Hercules</option><option>Iris</option><option>Malazgirt</option><option>Mars</option><option>Mercury</option><option>Neptune</option><option>Oasis</option><option>Odin</option><option>Olympus</option><option>Pacific</option><option>Persia</option><option>Phoenix</option><option>Pluto</option><option>Poseidon</option><option>RedSea</option><option>Rome</option><option>Saturn</option><option>Sparta</option><option>Tibet</option><option>Titan</option><option>Troy</option><option>Uranus</option><option>Venice</option><option>Venus</option><option>Xian</option><option>Zeus</option></select><input class="lSubmit" value=">" type="button" onClick="process(document.getElementById('fNewsList').options[document.getElementById('fNewsList').selectedIndex].value,1);"></form></li></ul><div class="newsSection" onClick="nShow('newsID2272')"><span class="newsrev6News"><a href="/news/Alchemy-Gamer-10th-Degree-Silkroad-Fan-Game.2272.html#2272"><img src="/img/2.gif" title="rev6">rev6 News:</a> </span><span class="newsDate"><a name="2272">2010-05-03</a></span> - <span class="newsTitle">Alchemy Gamer 10th Degree - Silkroad Fan Game</span><div id="newsID2272" class="snewsContent"><p>For those that fell like playing a nice<br />little game of D10 Alchemy<br /><br /><a title="Alchemy Gamer 10th Degree - Silkroad Fan Game" href="http://alchemygamer.de/">http://alchemygamer.de/</a><br />Updated February 2010<br /><br />Enjoy the easy alchemy as D11 alchemy seem to be harder.<br />Please note, you can save your game and there is also a HighScrore History.<br /><br />Sincerely,<br />Rev6 Team</p></div></div></div><!--{[Split]}--><div align="center"><script type="text/javascript"><!--
google_ad_client = "pub-1061360519158881";
/* 300x250, created 15/06/09 */
google_ad_slot = "2852790840";
google_ad_width = 300;
google_ad_height = 250;
//-->

</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><!--{[Split]}--><div id="newsUpdate2"><div class="newsSection" onClick="nShow('newsID2244')"><span class="newsytNews"><a href="/news/Silkroad-Mars-PandoraBoxen-DutchMafia.2244.html#2244"><img src="/img/3.gif" title="yt">yt News:</a> </span><span class="newsDate"><a name="2244">2010-04-25</a></span> - <span class="newsTitle">Silkroad Mars PandoraBoxen DutchMafia!!</span><div id="newsID2244" class="snewsContent"><p>
<object width="560" height="340" data="http://www.youtube.com/v/DErw_ZBwdlg&hl=en_US&fs=1&" type="application/x-shockwave-flash">
<param name="allowFullScreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="src" value="http://www.youtube.com/v/DErw_ZBwdlg&hl=en_US&fs=1&" />
<param name="allowfullscreen" value="true" />
</object>
</p></div></div><!--{[Split]}--><div class="newsSection" onClick="nShow('newsID2243')"><span class="newsytNews"><a href="/news/Silkroad-Online-Prince-of-Persia-Sands-of-Time.2243.html#2243"><img src="/img/3.gif" title="yt">yt News:</a> </span><span class="newsDate"><a name="2243">2010-04-21</a></span> - <span class="newsTitle">Silkroad Online [Prince of Persia Sands of Time] </span><div id="newsID2243" class="snewsContent"><p>

<object width="480" height="385" data="http://www.youtube.com/v/owz9aLJ5CLs&hl=en_US&fs=1&" type="application/x-shockwave-flash">
<param name="allowFullScreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="src" value="http://www.youtube.com/v/owz9aLJ5CLs&hl=en_US&fs=1&" />
<param name="allowfullscreen" value="true" />
</object>
</p></div></div><!--{[Split]}--><div class="newsSection" onClick="nShow('newsID2240')"><span class="newsrev6News"><a href="/news/Congradulation-to-all-the-level-105-out-there.2240.html#2240"><img src="/img/2.gif" title="rev6">rev6 News:</a> </span><span class="newsDate"><a name="2240">2010-04-07</a></span> - <span class="newsTitle">Congradulation to all the level 105 out there</span><div id="newsID2240" class="snewsContent"><p>We just detected the first level 105 on helios server:<br />
<a title="Alescha" href="/player/Helios/Alescha.html" target="_blank">http://www.rev6.com/player/Helios/Alescha.html</a><br />
<a title="MaDStOrM" href="/player/Pacific/MaDStOrM.html" target="_blank">http://www.rev6.com/player/Pacific/MaDStOrM.html</a><br />

This indirectly mean that there are more and more people that will become level 105.<br /><br />
Complete your 3rd berserk quest if you want to be recorded as level 105 more easily.<br /><br />
Sincerely,<br />Rev6 team</p></div></div><!--{[Split]}--><div class="newsSection" onClick="nShow('newsID2154')"><span class="newsexploitNews"><a href="/news/Massive-DC-Exploit-Solved.2154.html#2154"><img src="/img/4.gif" title="exploit">exploit News:</a> </span><span class="newsDate"><a name="2154">2009-12-21</a></span> - <span class="newsTitle">Massive DC Exploit Solved!</span><div id="newsID2154" class="snewsContent"><p>We posted a few hours earlier a Massive DC exploit which can only be used to make the client of legit player crash. This exploit is due to the following missing file:<br /><br />data.pk2<br />prim\ani\mob\common\event_winter_snowman\event_winter_snowman_pickup.ban<br />Thank to kaperucito<br /><br />By added that file to the pk2, Joymax will have solved the main part of the client crashing issue.<br />There is some solution on srf forum and rev6 forum about how to temporarily make the new event monster appear as a mangnyan monster to prevent the client from crashing. Though, it would be appreciated if Joymax could take the time to add that file.<br /><br />It is Christmas holiday; I do not believe there will be a fix anytime soon. Though, we have pin-pointed the issue.<br /><br />Sincerely,<br />Rev6 team</p></div></div><!--{[Split]}--><div id="newsInfo"></div></div></div>

<script type="text/javascript"> try {
 document.getElementById('fNewsList').selectedIndex=document.getElementById('mysv').selectedIndex-1;
} catch(err) {} </script>
    </div>
    </div><br />
    <hr />
    <span class="newsContent"><a onclick="new_window('http://silkroadonline.net/')" href="#">Silkroad online</a> is an MMORPG (Massively Multiplayer Online RPG)
    that puts the player deep into ancient Chinese, Islamic, and European civilizations. Silkroad Online is designed to re-enact the Silk
    Road trades of 7th Century and through use of being a MMORPG Silkroad Online is grounded on the history, culture, and stories of each
    and every Silk Road trade route. The game characteristic include: Encounter of the East fantasy and the West fantasy, Episode-centered
    quest system, Organization of various communities, Unique and fresh skill system, Realistic and vigorous action battle, Movies-like
    presentation, More realistic character animation, More comfortable game environment.
    </span>
    </div>
  </div>

  <div id="rightbar">
    <div class="ads160">
<!-- BEGIN STANDARD TAG - 160 x 600 - ROS: Run-of-site - DO NOT MODIFY -->
<IFRAME FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=160 HEIGHT=600 SRC="http://adserving.cpxinteractive.com/st?ad_type=iframe&ad_size=160x600&section=297193"></IFRAME>
<!-- END TAG -->
</div><br /><br /><div class="ads160">
<SCRIPT language="Javascript">
var cpmstar_rnd=Math.round(Math.random()*999999);
var cpmstar_pid=1504;
document.writeln("<SCR"+"IPT language='Javascript' src='http://server.cpmstar.com/view.aspx?poolid="+cpmstar_pid+"&script=1&rnd="+cpmstar_rnd+"'></SCR"+"IPT>");
</SCRIPT>
</div>
  </div>
  <span class="clr"></span>
  </div>

 </div>
 <div id="footer">
  <div id="footer-inside">
  <p>Copyright � 2008 <a href="http://rev6.com">Rev6</a>.com. All rights reserved. Design by <a onclick="new_window('http://agnarson.com/')" href="#">Alx</a>.</p>
  </div>
 </div>

 <script type="text/javascript" charset="utf-8" src="/jscripts/function.js"></script>
 <script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-1396041-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</body>
</html>
/styles/default.css :
Code:
table.stats {
text-align: center;
font-family:'Lucida Grande', 'Trebuchet MS','Lucida Sans Unicode','Lucida Sans Regular', Verdana, sans-serif;
font-weight: normal;
font-size: 11px;
color: #fff;
/* width: 630px; */
background-color: #313131;
border: 0px;
border-collapse: collapse;
border-spacing: 0px;
margin-left: auto;
margin-right: auto;
}

table.statsC {
text-align: center;
font-family:'Lucida Grande', 'Trebuchet MS','Lucida Sans Unicode','Lucida Sans Regular', Verdana, sans-serif;
font-weight: normal;
font-size: 11px;
color: #fff;
/* width: 630px; */
background-color: #313131;
border: 0px;
border-collapse: collapse;
border-spacing: 0px;
margin-left: auto;
margin-right: auto;
}


.SvBackground {background:url(/img/server.png); width:560px; height:674px overflow:hidden; max-width:560px; max-height:674px; margin:0px 0px 0px 0px; text-align:left}

.SvBackground a:link {color: #000; text-decoration:none}
.SvBackground a:active {color: #ccc; text-decoration:none}
.SvBackground a:visited {color: #600; text-decoration:none}
.SvBackground a:hover {color: #f00; text-decoration:underline}

.SvAround {width:560px; height:16px; overflow:hidden; margin:0px 0px 0px 0px}
.SvArea {height:654px; float:left; overflow:hidden; display:inline-block; margin:0px 0px 0px 0px}
.textMenu {background-color:#111111}

.SvMenuItem { width:525px; height:21px; float:left; overflow:hidden; margin:0px 0px 0px 0px; display:inline-block; color:#FFFFFF; font-size:14px; font-weight:bold; font-family:Verdana, Arial, Helvetica, sans-serif; padding-left:10px; padding-right:10px}

.SvMenuTitle {width:525px; height:43px; float:left; overflow:hidden; margin:0px 0px 0px 0px; display:inline-block; text-align:center; font-size:36px; font-family:Verdana, Arial, Helvetica, sans-serif; color:#666666}

.SvMenuItem a:link {color: #fff; text-decoration:none}
.SvMenuItem a:active {color: #333; text-decoration:none}
.SvMenuItem a:visited {color: #aff; text-decoration:none}
.SvMenuItem a:hover {color: #f00; text-decoration:underline}

.SvMenuItemL {float:left; width:58%; display:inline-block}
.SvMenuItemR {float:left; width:37%; display:inline-block}

.SvTextItem {width:525px; height:95px; float:left; overflow:hidden; margin:0px 0px 0px 0px; display:inline-block; color:#333333; padding:0px 10px 0px 10px; font-weight:bold}

.SvTextItemL {float:left; width:58%; display:inline-block}
.SvTextItemC {float:left; width:19%; display:inline-block}
.SvTextItemR {float:left; width:40%; display:inline-block}

.tbox {
background-color: #f1f1f1;
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
width:100px;
BORDER-RIGHT: #000000 1px solid;
PADDING-RIGHT: 4px;
BORDER-TOP: #000000 1px solid;
PADDING-LEFT: 4px;
FONT-SIZE: 8pt;
PADDING-BOTTOM: 1px;
BORDER-LEFT: #000000 1px solid;
COLOR: #000000;
PADDING-TOP: 1px;
BORDER-BOTTOM: #000000 1px solid;
}

.lSubmit {
   font-family:Arial, Helvetica, sans-serif;
   font-weight:900;
   text-align:center;
   width:18px;
    border: 1px solid #006;
   padding:0px;
    background: #ccf;
}
.lSubmit:hover {
    border: 1px solid #f00;
    background: #eef;
}

dt{display:inline}
dd{display:inline}
.lbox {
background-color: #f1f1f1;
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
width:95px;
BORDER-RIGHT: #000000 1px solid;
PADDING-RIGHT: 0px;
BORDER-TOP: #000000 1px solid;
PADDING-LEFT: 4px;
FONT-SIZE: 8pt;
PADDING-BOTTOM: 1px;
BORDER-LEFT: #000000 1px solid;
COLOR: #000000;
PADDING-TOP: 1px;
BORDER-BOTTOM: #000000 1px solid;
}

.svNewsList {
background-color: #f1f1f1;
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
width:60px;
BORDER-RIGHT: #000000 1px solid;
PADDING-RIGHT: 0px;
BORDER-TOP: #000000 1px solid;
PADDING-LEFT: 4px;
FONT-SIZE: 8pt;
PADDING-BOTTOM: 1px;
BORDER-LEFT: #000000 1px solid;
COLOR: #000000;
PADDING-TOP: 1px;
BORDER-BOTTOM: #000000 1px solid;
}

.cbox {
background-color: #f1f1f1;
font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
BORDER-RIGHT: #000000 1px solid;
PADDING-RIGHT: 4px;
BORDER-TOP: #000000 1px solid;
PADDING-LEFT: 4px;
FONT-SIZE: 8pt;
PADDING-BOTTOM: 1px;
BORDER-LEFT: #000000 1px solid;
COLOR: #000000;
PADDING-TOP: 1px;
BORDER-BOTTOM: #000000 1px solid;
}

table.stats a:link {color: #ddd; text-decoration: underline;}
table.stats a:hover {color: #f00; text-decoration: underline;}
table.stats a:active {color: #ccc; text-decoration: underline;}
table.stats a:visited {color: #ff0;}

table.statsC a:link {color: #09f; text-decoration: underline;}
table.statsC a:hover {color: #f00; text-decoration: underline;}
table.statsC a:active {color: #f00; text-decoration: underline;}
table.statsC a:visited {color: #ff0;}

a.itemLink {cursor: pointer}

td a:link {color: #ddd;}
td a:hover {color: #ff0; text-decoration: underline;}
td a:active {color: #ccc; text-decoration: underline;}
td a:visited {color: #ff0;}

table.stats td
{background-color: #313131;
color: #fff;
padding: 4px;
text-align: center;
border: 1px #3e3e3e solid;}

table.statsC td
{background-color: #313131;
color: #fff;
padding: 4px;
text-align: center;
border: 1px #3e3e3e solid;}

table.stats td.dark
{background-color: #292929;
color: #fff;
padding: 4px;
text-align: left;
font-weight: bold;
border: 1px #3e3e3e solid;}

table.stats td.svFull
{background-color: #861818;
color: #fff;
padding: 4px;
text-align: left;
border: 1px #b43131 solid;}

table.stats td.svRFull
{background-color: #661313;
color: #fff;
padding: 4px;
text-align: left;
border: 1px #842424 solid;}

table.stats td.svMedium
{background-color: #284716;
color: #fff;
padding: 4px;
text-align: left;
border: 1px #375e20 solid;}

table.stats td.svClosed
{background-color: #1a3349;
color: #fff;
padding: 4px;
text-align: left;
border: 1px #20415e solid;}

table.stats td.svCrowded
{background-color: #4c4b14;
color: #fff;
padding: 4px;
text-align: left;
border: 1px #5e5d20 solid;}

table.stats td.svOpen
{background-color: #8fcf6d;
color: #fff;
padding: 4px;
text-align: left;
border: 1px #426f97 solid;}

table.stats td.svEasy
{background-color: #3b6722;
color: #fff;
padding: 4px;
text-align: left;
border: 1px #4f8331 solid;}

table.stats td.hed
{background-color: #161616;
color: #666;
padding: 6px;
text-align: left;
border-bottom: 1px #313131 solid;
font-size: 13px;
font-weight: bold;}



body {
   background: #242424;
   color: #CCC;
   font-size: 12px;;
   font-family:'Lucida Grande', 'Trebuchet MS','Lucida Sans Unicode','Lucida Sans Regular', Verdana, sans-serif;
}


#wrapper {
   background: #242424;
   padding: 15px 0;
}
div.ads728 {
    background: #fff;
    margin-left: auto;
    margin-right: auto;
    width: 728px;
   text-align:center
}
div.ads470 {
    background: #fff;
    margin-left: auto;
    margin-right: auto;
    width: 470px;
   text-align:center
}
div.ads160 {
    background: #fff;
    margin-left: auto;
    margin-right: auto;
    width: 160px;
   text-align:center
}
#container {
   width: 940px;
   margin: 0 auto;
}
#news {
   text-align:left;
}
#topbar {
   width: 570px;
   text-align:center;
   border-bottom: 1px solid #3b3b3b;
   padding:0 0 5px 0;
   margin-bottom:15px;
}
#rightbar {
   width: 165px;
   float: left;
   border-left: 1px solid #3b3b3b;
   padding-left: 5px;
}
#content {
   width: 570px;
   padding:0 18px;
   float: left;
}

#list {
   width: 160px;
   float: left;
   border-right: 1px solid #3b3b3b;
}
#list p {
   padding: 4px 4px 4px 8px;
   font-size: 11px;
   background-color: #2b2b2b;
   color: #999999;
}

#list li {
   width: 160px;
   background: #2b2b2b;
   color: #999999;
   text-decoration: none;
   margin: 2px 0;
   font-size: 10px;
}

#list li a
{
    display:block;
   padding: 2px 8px;
   width: 144px;
   background: #2b2b2b;
   color: #999999;
   text-decoration: none;
   font-size: 10px;
}

#list li a:hover {
   background: #353535;
   color: #189edb;
}

#list li a.selected {
   background: #353535;
   color: #189edb;
}

#list li.home {
   background: #161616;
   color: #189ddb;
   text-align: center;
}

#list li.home a {
   background: #161616;
   color: #189ddb;
   text-align: center;
}

#list li.home a:hover {
   background: #1a1a1a;
   color: #189ddb;
}

#list li.home a.selected {
   background: #161616;
   color: #189edb;
}

#list li.lstMain {
 cursor: pointer
}

#list li.svSelected {
 cursor: pointer
}

a.ajaxLink {
 cursor: pointer
}

#list li.svSelectedTitle {
   background: #161616;
   color: #189ddb;
   text-align: center;
}

span.clr {
   display: block;
   clear: both;
}

a:link, a:visited {
   color: #1591d3;
}

a:hover, a:active {
   color: #FFFFFF;
}

p.img {
   margin: 20px 0pt;
   text-align: center;
}

ul.start li {
   list-style-type: decimal;
   margin-left: 2em;
}
span.important {
   color: #ffffff;
   font-weight: bold;
}

h2 {
   color: #1591d3;
   font-size: 16px;
   border-bottom: 1px solid #ddd;
   padding-bottom: 5px;
   margin-bottom: 10px;
   font-weight: normal;
}

/*header*/

div#header p, div#header h1, div#header ul {
   margin: 0;
   padding: 0;
}

div#logo a {
   margin-top: 20px;
   display: block;
}

div#logo h1 a span, div#logo p {
   display: none;
}

div#header {
   background: #161616;
   height: 120px;
   border-bottom: 8px solid #2b2b2b;
}

div#header-inside, div#footer-inside {
    font-family:'Lucida Grande', 'Trebuchet MS','Lucida Sans Unicode','Lucida Sans Regular', Verdana, sans-serif;
   width: 1000px;
   margin: 0 auto;
}

div#logo h1 a {
   background: url(/img/logo.gif) no-repeat;
   background-position: bottom right;
   height: 82px;
   width: 155px;
   float: left;
}

div#login {
   position: relative;
   top: 20px;
   left: 500px;
}

ul#menu {
   clear: both;
   float: right;
   list-style: none;
   position: relative;
   top: 3px;
   left: -90px;
}

ul#menu li {
   float: left;
   margin-left: 5px;
   line-height: 1.4;
}

ul#menu li a {
   color: #fff;
   text-decoration: none;
   font-weight: bold;
   text-align: center;
   width: 85px;
   height: 15px;
   padding: 5px 0;
   display: block;
   background-image: url(/img/nav.gif);
   background-repeat: no-repeat;
   background-position: center left;
   font-size: 10px;
}

ul#menu li a:hover, ul#menu li a:active {
   background-position: top left;
}

ul#menu li a.selected {
   background-position: bottom left;
   color: #fff;
}

/*footer*/

body #footer {
   background: #161616;
   border-top: 8px solid #2b2b2b;
   font-size: 10px;
   color: #666666;
   padding: 15px 0;
   height: 1%;
   text-align: center;
}

#footer a.copy:hover {
   background-position: top right;
}

div.newsSection {
   padding: 10px 20px 5px 15px;
   display:block
}
br.clear {
   clear:both
}
div#newsInfo {
   display:block;
   display:none;
   clear:both;
   text-align: center
}
ul.newsPage {
   clear: both;
   list-style: none;
   display:block;
   position:relative;
   margin-left: auto;
   margin-right: auto
}
ul.newsPage li {
   font-weight:bold;
   float: left;
   margin-left: 20px;
   line-height: 1.4;
   cursor:pointer
}
ul.newsPage li:hover, ul.newsPage li:active {
   color:#FF0
}
ul.newsPage li.selected {
   color:#FF0000
}
ul.newsHistory {
   clear: both;
   list-style: none;
   display:block;
   position:relative
}
div#newsUpdate a:link {text-decoration:underline ;color: #ddd;}
div#newsUpdate a:hover {color:#FF0; text-decoration: underline;}
div#newsUpdate a:active {color:#fff;}
div#newsUpdate a:visited {color: #ff0;}
div#newsUpdate li.selected a:link    {color: #f00; text-decoration: underline;}
div#newsUpdate li.selected a:hover  {color: #F00; text-decoration: underline;}
div#newsUpdate li.selected a:active  {color: #f00; text-decoration: underline;}
div#newsUpdate li.selected a:visited {color: #f00; text-decoration: underline;}

div#newsUpdate1 a:link {text-decoration:underline ;color: #ddd;}
div#newsUpdate1 a:hover {color:#FF0; text-decoration: underline;}
div#newsUpdate1 a:active {color:#fff;}
div#newsUpdate1 a:visited {color: #ff0;}
div#newsUpdate1 li.selected a:link    {color: #f00; text-decoration: underline;}
div#newsUpdate1 li.selected a:hover  {color: #F00; text-decoration: underline;}
div#newsUpdate1 li.selected a:active  {color: #f00; text-decoration: underline;}
div#newsUpdate1 li.selected a:visited {color: #f00; text-decoration: underline;}

div#newsUpdate2 a:link {text-decoration:underline ;color: #ddd;}
div#newsUpdate2 a:hover {color:#FF0; text-decoration: underline;}
div#newsUpdate2 a:active {color:#fff;}
div#newsUpdate2 a:visited {color: #ff0;}
div#newsUpdate2 li.selected a:link    {color: #f00; text-decoration: underline;}
div#newsUpdate2 li.selected a:hover  {color: #F00; text-decoration: underline;}
div#newsUpdate2 li.selected a:active  {color: #f00; text-decoration: underline;}
div#newsUpdate2 li.selected a:visited {color: #f00; text-decoration: underline;}

div.newsSection {
   clear: both;
   display:block
}
ul.newsHistory li {
   color: #fff;
   cursor:pointer;
   text-decoration: none;
   font-weight: bold;
   text-align: center;
   width: 85px;
   height: 15px;
   padding: 5px 0;
   display: inline;
   background-image: url(/img/nav2.gif);
   background-repeat: no-repeat;
   background-position: center left;
   font-size: 10px;
   float: left;
   margin-right: 5px;
   line-height: 1.4;
}

ul.newsHistory li:hover, ul.newsHistory li:active {
   background-position: top left;
}

ul.newsHistory li.selected {
   background-position: bottom left;
   color:#FF0000
}
span.newsDate {
   display:inline;
   color:#FFFF00
}
span.newsTitle {
   display:inline;
   color:#00FF33
}
div.hnewsContent {
   visibility:hidden;
   display:none;
   text-align:justify;
   border-bottom-color:#CCCCCC;
   border-bottom-style:dotted;
   border-bottom-width:thin
}
div.snewsContent {
   text-align:justify;
   border-bottom-color:#CCCCCC;
   border-bottom-style:dotted;
   border-bottom-width:thin
}
span.newsContent {
   text-align:justify
}
div.newsCategory {
   text-align:center
}
ul.newsCatNotSel li {
}
ul.span#newsCatSel li {
}
div#java {
  clear: both;
  display:block
}
div#nojava {
  clear: both;
  display:block
}

/* @group Reset */

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, cite, code, del, em, img, ins, strong, sub, sup, dd, dl, dt, li, ol, ul, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
   margin: 0;
   padding: 0;
   border: 0;
}

a img, :link img, :visited img {
   border: 0;
}

table {
   border-collapse: collapse;
   border-spacing: 0;
}

ol, ul {
   list-style: none;
}

div.itemSearch {
 display:none;
 visibility:hidden
}


Last edited by Bleachzor on May 12th 2010, 8:39 am; edited 1 time in total
Bleachzor
Bleachzor
Forumember

Posts : 211
Reputation : -10
Language : Dutch

Back to top Go down

javascript not working properly Empty Re: javascript not working properly

Post by Bleachzor on May 12th 2010, 8:38 am

http://www.google.com/cse/api/branding.css :
Code:
.cse-branding-bottom,
.cse-branding-right {
margin:0;
padding:0
}
.cse-branding-bottom,
.cse-branding-right {
zoom: 1;
}
.cse-branding-bottom:after,
.cse-branding-right:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden
}
.cse-branding-text {
font: 10px Arial;
}
.cse-branding-form form {
margin-bottom: 0;
padding-bottom: 0;
}
/* Bottom-specific selectors */
.cse-branding-bottom .cse-branding-logo,
.cse-branding-bottom .cse-branding-text {
display: block;
float: left
}
.cse-branding-bottom .cse-branding-form {
margin-bottom: 3px;
}
.cse-branding-bottom .cse-branding-logo {
padding: 0
}
.cse-branding-bottom .cse-branding-text {
padding-top: 4px
}
.cse-branding-right .cse-branding-form {
float: left;
}
/* Right-specific selectors */
.cse-branding-right .cse-branding-logo,
.cse-branding-right .cse-branding-text {
margin-left: 4px;
}
.cse-branding-right .cse-branding-form {
float: left;
margin-right: 4px;
}
.cse-branding-right .cse-branding-logo {
padding: 0
}
.cse-branding-right .cse-branding-text {
margin-top: -4px
}
/jscripts/svstats.js :
Code:
var timerStatsID = 5;
var dTimer=5000;
var xmlHttpStats = createXmlHttpStatsRequestObject();
var serverStatsAdr = "http://"+location.host+"/servercapacity/update";
fStatsProcess();


function set_cookie ( name, value, exp_y, exp_m, exp_d, path, domain, secure )
{
  var cookie_string = name + "=" + escape ( value );

  if ( exp_y )
  {
    var expires = new Date ( exp_y, exp_m, exp_d );
    cookie_string += "; expires=" + expires.toGMTString();
  }

  if ( path )
        cookie_string += "; path=" + escape ( path );

  if ( domain )
        cookie_string += "; domain=" + escape ( domain );
 
  if ( secure )
        cookie_string += "; secure";
 
  document·cookie = cookie_string;
}

function delete_cookie ( cookie_name )
{
  var cookie_date = new Date ( );  // current date & time
  cookie_date.setTime ( cookie_date.getTime() - 1 );
  document·cookie = cookie_name += "=; expires=" + cookie_date.toGMTString();
}

function get_cookie ( cookie_name )
{
  var results = document·cookie.match ( '(^|;) ?' + cookie_name + '=([^;]*)(;|$)' );

  if ( results )
    return ( unescape ( results[2] ) );
  else
    return null;
}
function set_sv_cookie(sv_name) {
   var current_date = new Date;
   var cookie_year = current_date.getFullYear ( ) + 1;
   var cookie_month = current_date.getMonth ( );
   var cookie_day = current_date.getDate ( );
   set_cookie ( "myOwnsv", sv_name, cookie_year, cookie_month, cookie_day, '/',"rev6.com" );
}

function createXmlHttpStatsRequestObject() {
  var xmlHttpStats;
  try {
    xmlHttpStats = new XMLHttpRequest();
  } catch(e) {
    var XmlHttpVersions = new Array("MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP");
    for (var i=0;i<XmlHttpVersions.length;i++) {
      try {
        xmlHttpStats = new ActiveXObject(XmlHttpVersions[i]);
      } catch (e) {}
      if(xmlHttpStats) break;
    }
  }
  if (!xmlHttpStats)
    alert("Error creating the XMLHttpRequest object.");
  else
    return xmlHttpStats;
}

function fStatsProcess() {
var sData;
  if (xmlHttpStats) {
    try {
     sData=document.getElementById("data").innerHTML;
      xmlHttpStats.open("GET", serverStatsAdr, true);
      xmlHttpStats.onreadystatechange = handleRequestStatsStateChange;
      xmlHttpStats.send(null);
    } catch (e){}
  }
}

function fDelete(sID) {
var sData;
  if (xmlHttpStats) {
    try {
      xmlHttpStats.open("GET", "http://"+location.host+"/stall/mylisting/delete/?id=" + sID, true);
      xmlHttpStats.onreadystatechange = handleRequestDelete;
      xmlHttpStats.send(null);
    } catch (e){}
  }
}

function fSave(sID,sPrice,sQty) {
var sData;
  if (xmlHttpStats) {
    try {
      xmlHttpStats.open("GET", "http://"+location.host+"/stall/mylisting/save/?id=" + sID + "&price=" + sPrice + "&quant=" + sQty, true);
      xmlHttpStats.onreadystatechange = handleRequestSave;
      xmlHttpStats.send(null);
    } catch (e){}
  }
}

function trim(stringToTrim) {
   return stringToTrim.replace(/^\s+|\s+$/g,"");
}

function handleRequestDelete() {
  if (xmlHttpStats.readyState == 4) {
    if (xmlHttpStats.status == 200) {
      try {
      var sData = xmlHttpStats.responseText;
      var sArr=sData.split('|');
      document.getElementById("sMsg").innerHTML=sArr[2];
      if(sArr[1]=="success"){
         var objt = document.getElementById("t" + trim(sArr[0]));
         objt.style.visibility = "hidden";
         objt.style.display = "none";
      }
      } catch(e) {}
    } else {}
  }
}

function handleRequestSave() {
  if (xmlHttpStats.readyState == 4) {
    if (xmlHttpStats.status == 200) {
      try {
      var sData = xmlHttpStats.responseText;
      var sArr=sData.split('|');
      document.getElementById("sMsg").innerHTML=sArr[2];
      if(sArr[1]=="success"){
         var objs = document.getElementById("s" + trim(sArr[0]));
         objs.style.visibility = "hidden";
         objs.style.display = "none";
         objs = document.getElementById("d" + trim(sArr[0]));
         objs.style.visibility = "visible";
         objs.style.display = "inline";
      }
      } catch(e) {}
    } else {}
  }
}

function handleRequestStatsStateChange() {
  if (xmlHttpStats.readyState == 4) {
    if (xmlHttpStats.status == 200) {
      try {
   var sData = xmlHttpStats.responseText;
   if(sData.indexOf('<!-- Very Slow -->')>-1) window.dTimer=30000;
   if(sData.indexOf('<!-- Slow -->')>-1) window.dTimer=15000;
   if(sData.indexOf('<!-- Fast -->')>-1) window.dTimer=5000;
   if(sData.indexOf('<!-- Very Fast -->')>-1) window.dTimer=2000;
      document.getElementById("data").innerHTML=sData;
      //pageTracker._trackPageview("/sv_stats.html" );
      } catch(e) {
        //alert("Error reading the response: " + e.toString());
      }
      handleServerResponse();
    } else {
      //alert("There was a problem retrieving the data:\n" + xmlHttpStats.statusText);
    }
  }
}

function handleServerResponse() {
  window.clearInterval(timerStatsID);
  timerStatsID = window.setInterval("fStatsProcess()",window.dTimer);
}
/jscripts/update/val.js :
Code:
ftwDay=3;ftwHours=10;ftwMin=56;ftwSec=12;ctfHours=1;ctfMins=56;ctfSec=12;
/jscripts/news.js :
Code:
var xmlHttp = createXmlHttpRequestObject();
var serverAddress = "http://"+location.host+"/news/";

function createXmlHttpRequestObject() {
  var xmlHttp;
  try {
    xmlHttp = new XMLHttpRequest();
  } catch(e) {
    var XmlHttpVersions = new Array("MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP");
    for (var i=0;i<XmlHttpVersions.length;i++) {
      try {
        xmlHttp = new ActiveXObject(XmlHttpVersions[i]);
      } catch (e) {}
      if(xmlHttp) break;
    }
  }
  if (!xmlHttp)
    alert("Error creating the XMLHttpRequest object.");
  else
    return xmlHttp;
}

function process(opt,page) {
  //var sMysv=document.getElementById("mysv").options[document.getElementById("mysv").selectedIndex].value;
  //if(sMysv=="") sMysv="Apollo";
  if (xmlHttp) {
    try {
      if(opt=="" || opt=="all") {
         xmlHttp.open("GET", serverAddress+ "js/page1.asp", true);
      //pageTracker._trackPageview("/news/js/page1.asp");
     } else {
         xmlHttp.open("GET", serverAddress + opt + "/js/" + "page" + page + ".asp", true);
      //pageTracker._trackPageview("/news/" + opt + "/js/" + "page" + page + ".asp" );
     }
      xmlHttp.onreadystatechange = handleRequestStateChange;
      xmlHttp.send(null);
    } catch (e){}
  }
}

function handleRequestStateChange() {
var sData;
  if (xmlHttp.readyState == 4) {
    if (xmlHttp.status == 200) {
      try {
      sData=xmlHttp.responseText.split('<!--{[Split]}-->');
      if(sData.length==1) {
         document.getElementById("newsUpdate").innerHTML=xmlHttp.responseText;
      } else {
         try {
         document.getElementById("newsUpdate1").innerHTML=sData[0];
         sData.splice(0,1);
         document.getElementById("newsUpdate2").innerHTML=sData.join('');
         } catch(e) {
            document.getElementById("newsUpdate").innerHTML=xmlHttp.responseText;
         }
      }
      //document.getElementById("newsUpdate").innerHTML=xmlHttp.responseText;
      //document.getElementById('fNewsList').selectedIndex=document.getElementById('mysv').selectedIndex-1;
      } catch(e) {
        alert("Error reading the response: " + e.toString());
      }
    } else {
      //alert("There was a problem retrieving the data:\n" + xmlHttp.statusText);
    }
  }
}

function nShow(id) {
 /*var divs=document.getElementsByTagName('div');
 for (var i=0;i<divs.length;i++){
  if(divs[i].id==id) {
    divs[i].style.display='block';
    divs[i].style.visibility='visible';
  } else if(divs[i].id.substr(0,6).toUpperCase()=="NEWSID") {
    divs[i].style.display='none';
    divs[i].style.visibility='hidden';
  }
 }*/
}
/jscripts/wz_tooltip.js :
Code:
/* This notice must be untouched at all times.
Copyright (c) 2002-2008 Walter Zorn. All rights reserved.

wz_tooltip.js    v. 5.31

The latest version is available at
http://www.walterzorn.com
or http://www.devira.com
or http://www.walterzorn.de

Created 1.12.2002 by Walter Zorn (Web: http://www.walterzorn.com )
Last modified: 7.11.2008

Easy-to-use cross-browser tooltips.
Just include the script at the beginning of the <body> section, and invoke
Tip('Tooltip text') to show and UnTip() to hide the tooltip, from the desired
HTML eventhandlers. Example:
<a onmouseover="Tip('Some text')" onmouseout="UnTip()" href="index.htm">My home page</a>
No container DIV required.
By default, width and height of tooltips are automatically adapted to content.
Is even capable of dynamically converting arbitrary HTML elements to tooltips
by calling TagToTip('ID_of_HTML_element_to_be_converted') instead of Tip(),
which means you can put important, search-engine-relevant stuff into tooltips.
Appearance & behaviour of tooltips can be individually configured
via commands passed to Tip() or TagToTip().

Tab Width: 4
LICENSE: LGPL

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License (LGPL) 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.

For more details on the GNU Lesser General Public License,
see http://www.gnu.org/copyleft/lesser.html
*/

var config = new Object();


//===================  GLOBAL TOOLTIP CONFIGURATION  =========================//
var tt_Debug   = true      // false or true - recommended: false once you release your page to the public
var tt_Enabled   = true      // Allows to (temporarily) suppress tooltips, e.g. by providing the user with a button that sets this global variable to false
var TagsToTip   = true      // false or true - if true, HTML elements to be converted to tooltips via TagToTip() are automatically hidden;
                     // if false, you should hide those HTML elements yourself

// For each of the following config variables there exists a command, which is
// just the variablename in uppercase, to be passed to Tip() or TagToTip() to
// configure tooltips individually. Individual commands override global
// configuration. Order of commands is arbitrary.
// Example: onmouseover="Tip('Tooltip text', LEFT, true, BGCOLOR, '#FF9900', FADEIN, 400)"

config. Above         = false      // false or true - tooltip above mousepointer
config. BgColor         = '#E2E7FF'   // Background colour (HTML colour value, in quotes)
config. BgImg         = ''      // Path to background image, none if empty string ''
config. BorderColor      = '#003099'
config. BorderStyle      = 'solid'   // Any permitted CSS value, but I recommend 'solid', 'dotted' or 'dashed'
config. BorderWidth      = 1
config. CenterMouse      = false      // false or true - center the tip horizontally below (or above) the mousepointer
config. ClickClose      = false      // false or true - close tooltip if the user clicks somewhere
config. ClickSticky      = false      // false or true - make tooltip sticky if user left-clicks on the hovered element while the tooltip is active
config. CloseBtn      = false      // false or true - closebutton in titlebar
config. CloseBtnColors   = ['#990000', '#FFFFFF', '#DD3333', '#FFFFFF']   // [Background, text, hovered background, hovered text] - use empty strings '' to inherit title colours
config. CloseBtnText   = ' X '   // Close button text (may also be an image tag)
config. CopyContent      = true      // When converting a HTML element to a tooltip, copy only the element's content, rather than converting the element by its own
config. Delay         = 400      // Time span in ms until tooltip shows up
config. Duration      = 0         // Time span in ms after which the tooltip disappears; 0 for infinite duration, < 0 for delay in ms _after_ the onmouseout until the tooltip disappears
config. Exclusive      = false      // false or true - no other tooltip can appear until the current one has actively been closed
config. FadeIn         = 100      // Fade-in duration in ms, e.g. 400; 0 for no animation
config. FadeOut         = 100
config. FadeInterval   = 30      // Duration of each fade step in ms (recommended: 30) - shorter is smoother but causes more CPU-load
config. Fix            = null      // Fixated position, two modes. Mode 1: x- an y-coordinates in brackets, e.g. [210, 480]. Mode 2: Show tooltip at a position related to an HTML element: [ID of HTML element, x-offset, y-offset from HTML element], e.g. ['SomeID', 10, 30]. Value null (default) for no fixated positioning.
config. FollowMouse      = true      // false or true - tooltip follows the mouse
config. FontColor      = '#000044'
config. FontFace      = 'Verdana,Geneva,sans-serif'
config. FontSize      = '8pt'      // E.g. '9pt' or '12px' - unit is mandatory
config. FontWeight      = 'normal'   // 'normal' or 'bold';
config. Height         = 0         // Tooltip height; 0 for automatic adaption to tooltip content, < 0 (e.g. -100) for a maximum for automatic adaption
config. JumpHorz      = false      // false or true - jump horizontally to other side of mouse if tooltip would extend past clientarea boundary
config. JumpVert      = true      // false or true - jump vertically      "
config. Left         = false      // false or true - tooltip on the left of the mouse
config. OffsetX         = 14      // Horizontal offset of left-top corner from mousepointer
config. OffsetY         = 8         // Vertical offset
config. Opacity         = 100      // Integer between 0 and 100 - opacity of tooltip in percent
config. Padding         = 3         // Spacing between border and content
config. Shadow         = false      // false or true
config. ShadowColor      = '#C0C0C0'
config. ShadowWidth      = 5
config. Sticky         = false      // false or true - fixate tip, ie. don't follow the mouse and don't hide on mouseout
config. TextAlign      = 'left'   // 'left', 'right' or 'justify'
config. Title         = ''      // Default title text applied to all tips (no default title: empty string '')
config. TitleAlign      = 'left'   // 'left' or 'right' - text alignment inside the title bar
config. TitleBgColor   = ''      // If empty string '', BorderColor will be used
config. TitleFontColor   = '#FFFFFF'   // Color of title text - if '', BgColor (of tooltip body) will be used
config. TitleFontFace   = ''      // If '' use FontFace (boldified)
config. TitleFontSize   = ''      // If '' use FontSize
config. TitlePadding   = 2
config. Width         = 0         // Tooltip width; 0 for automatic adaption to tooltip content; < -1 (e.g. -240) for a maximum width for that automatic adaption;
                           // -1: tooltip width confined to the width required for the titlebar
//=======  END OF TOOLTIP CONFIG, DO NOT CHANGE ANYTHING BELOW  ==============//




//=====================  PUBLIC  =============================================//
function Tip()
{
   tt_Tip(arguments, null);
}
function TagToTip()
{
   var t2t = tt_GetElt(arguments[0]);
   if(t2t)
      tt_Tip(arguments, t2t);
}
function UnTip()
{
   tt_OpReHref();
   if(tt_aV[DURATION] < 0 && (tt_iState & 0x2))
      tt_tDurt.Timer("tt_HideInit()", -tt_aV[DURATION], true);
   else if(!(tt_aV[STICKY] && (tt_iState & 0x2)))
      tt_HideInit();
}

//==================  PUBLIC PLUGIN API    =====================================//
// Extension eventhandlers currently supported:
// OnLoadConfig, OnCreateContentString, OnSubDivsCreated, OnShow, OnMoveBefore,
// OnMoveAfter, OnHideInit, OnHide, OnKill

var tt_aElt = new Array(10), // Container DIV, outer title & body DIVs, inner title & body TDs, closebutton SPAN, shadow DIVs, and IFRAME to cover windowed elements in IE
tt_aV = new Array(),   // Caches and enumerates config data for currently active tooltip
tt_sContent,         // Inner tooltip text or HTML
tt_t2t, tt_t2tDad,      // Tag converted to tip, and its DOM parent element
tt_musX, tt_musY,
tt_over,
tt_x, tt_y, tt_w, tt_h; // Position, width and height of currently displayed tooltip

function tt_Extension()
{
   tt_ExtCmdEnum();
   tt_aExt[tt_aExt.length] = this;
   return this;
}
function tt_SetTipPos(x, y)
{
   var css = tt_aElt[0].style;

   tt_x = x;
   tt_y = y;
   css.left = x + "px";
   css.top = y + "px";
   if(tt_ie56)
   {
      var ifrm = tt_aElt[tt_aElt.length - 1];
      if(ifrm)
      {
         ifrm.style.left = css.left;
         ifrm.style.top = css.top;
      }
   }
}
function tt_HideInit()
{
   if(tt_iState)
   {
      tt_ExtCallFncs(0, "HideInit");
      tt_iState &= ~(0x4 | 0x8);
      if(tt_flagOpa && tt_aV[FADEOUT])
      {
         tt_tFade.EndTimer();
         if(tt_opa)
         {
            var n = Math.round(tt_aV[FADEOUT] / (tt_aV[FADEINTERVAL] * (tt_aV[OPACITY] / tt_opa)));
            tt_Fade(tt_opa, tt_opa, 0, n);
            return;
         }
      }
      tt_tHide.Timer("tt_Hide();", 1, false);
   }
}
function tt_Hide()
{
   if(tt_db && tt_iState)
   {
      tt_OpReHref();
      if(tt_iState & 0x2)
      {
         tt_aElt[0].style.visibility = "hidden";
         tt_ExtCallFncs(0, "Hide");
      }
      tt_tShow.EndTimer();
      tt_tHide.EndTimer();
      tt_tDurt.EndTimer();
      tt_tFade.EndTimer();
      if(!tt_op && !tt_ie)
      {
         tt_tWaitMov.EndTimer();
         tt_bWait = false;
      }
      if(tt_aV[CLICKCLOSE] || tt_aV[CLICKSTICKY])
         tt_RemEvtFnc(document, "mouseup", tt_OnLClick);
      tt_ExtCallFncs(0, "Kill");
      // In case of a TagToTip tip, hide converted DOM node and
      // re-insert it into DOM
      if(tt_t2t && !tt_aV[COPYCONTENT])
         tt_UnEl2Tip();
      tt_iState = 0;
      tt_over = null;
      tt_ResetMainDiv();
      if(tt_aElt[tt_aElt.length - 1])
         tt_aElt[tt_aElt.length - 1].style.display = "none";
   }
}
function tt_GetElt(id)
{
   return(document.getElementById ? document.getElementById(id)
         : document.all ? document.all[id]
         : null);
}
function tt_GetDivW(el)
{
   return(el ? (el.offsetWidth || el.style.pixelWidth || 0) : 0);
}
function tt_GetDivH(el)
{
   return(el ? (el.offsetHeight || el.style.pixelHeight || 0) : 0);
}
function tt_GetScrollX()
{
   return(window.pageXOffset || (tt_db ? (tt_db.scrollLeft || 0) : 0));
}
function tt_GetScrollY()
{
   return(window.pageYOffset || (tt_db ? (tt_db.scrollTop || 0) : 0));
}
function tt_GetClientW()
{
   return tt_GetWndCliSiz("Width");
}
function tt_GetClientH()
{
   return tt_GetWndCliSiz("Height");
}
function tt_GetEvtX(e)
{
   return (e ? ((typeof(e.pageX) != tt_u) ? e.pageX : (e.clientX + tt_GetScrollX())) : 0);
}
function tt_GetEvtY(e)
{
   return (e ? ((typeof(e.pageY) != tt_u) ? e.pageY : (e.clientY + tt_GetScrollY())) : 0);
}
function tt_AddEvtFnc(el, sEvt, PFnc)
{
   if(el)
   {
      if(el.addEventListener)
         el.addEventListener(sEvt, PFnc, false);
      else
         el.attachEvent("on" + sEvt, PFnc);
   }
}
function tt_RemEvtFnc(el, sEvt, PFnc)
{
   if(el)
   {
      if(el.removeEventListener)
         el.removeEventListener(sEvt, PFnc, false);
      else
         el.detachEvent("on" + sEvt, PFnc);
   }
}
function tt_GetDad(el)
{
   return(el.parentNode || el.parentElement || el.offsetParent);
}
function tt_MovDomNode(el, dadFrom, dadTo)
{
   if(dadFrom)
      dadFrom.removeChild(el);
   if(dadTo)
      dadTo.appendChild(el);
}

//======================  PRIVATE  ===========================================//
var tt_aExt = new Array(),   // Array of extension objects

tt_db, tt_op, tt_ie, tt_ie56, tt_bBoxOld,   // Browser flags
tt_body,
tt_ovr_,            // HTML element the mouse is currently over
tt_flagOpa,            // Opacity support: 1=IE, 2=Khtml, 3=KHTML, 4=Moz, 5=W3C
tt_maxPosX, tt_maxPosY,
tt_iState = 0,         // Tooltip active |= 1, shown |= 2, move with mouse |= 4, exclusive |= 8
tt_opa,               // Currently applied opacity
tt_bJmpVert, tt_bJmpHorz,// Tip temporarily on other side of mouse
tt_elDeHref,         // The tag from which we've removed the href attribute
// Timer
tt_tShow = new Number(0), tt_tHide = new Number(0), tt_tDurt = new Number(0),
tt_tFade = new Number(0), tt_tWaitMov = new Number(0),
tt_bWait = false,
tt_u = "undefined";


function tt_Init()
{
   tt_MkCmdEnum();
   // Send old browsers instantly to hell
   if(!tt_Browser() || !tt_MkMainDiv())
      return;
   tt_IsW3cBox();
   tt_OpaSupport();
   tt_AddEvtFnc(document, "mousemove", tt_Move);
   // In Debug mode we search for TagToTip() calls in order to notify
   // the user if they've forgotten to set the TagsToTip config flag
   if(TagsToTip || tt_Debug)
      tt_SetOnloadFnc();
   // Ensure the tip be hidden when the page unloads
   tt_AddEvtFnc(window, "unload", tt_Hide);
}
// Creates command names by translating config variable names to upper case
function tt_MkCmdEnum()
{
   var n = 0;
   for(var i in config)
      eval("window." + i.toString().toUpperCase() + " = " + n++);
   tt_aV.length = n;
}
function tt_Browser()
{
   var n, nv, n6, w3c;

   n = navigator.userAgent.toLowerCase(),
   nv = navigator.appVersion;
   tt_op = (document.defaultView && typeof(eval("w" + "indow" + "." + "o" + "p" + "er" + "a")) != tt_u);
   tt_ie = n.indexOf("msie") != -1 && document.all && !tt_op;
   if(tt_ie)
   {
      var ieOld = (!document.compatMode || document.compatMode == "BackCompat");
      tt_db = !ieOld ? document.documentElement : (document.body || null);
      if(tt_db)
         tt_ie56 = parseFloat(nv.substring(nv.indexOf("MSIE") + 5)) >= 5.5
               && typeof document.body.style.maxHeight == tt_u;
   }
   else
   {
      tt_db = document.documentElement || document.body ||
            (document.getElementsByTagName ? document.getElementsByTagName("body")[0]
            : null);
      if(!tt_op)
      {
         n6 = document.defaultView && typeof document.defaultView.getComputedStyle != tt_u;
         w3c = !n6 && document.getElementById;
      }
   }
   tt_body = (document.getElementsByTagName ? document.getElementsByTagName("body")[0]
            : (document.body || null));
   if(tt_ie || n6 || tt_op || w3c)
   {
      if(tt_body && tt_db)
      {
         if(document.attachEvent || document.addEventListener)
            return true;
      }
      else
         tt_Err("wz_tooltip.js must be included INSIDE the body section,"
               + " immediately after the opening <body> tag.", false);
   }
   tt_db = null;
   return false;
}
function tt_MkMainDiv()
{
   // Create the tooltip DIV
   if(tt_body.insertAdjacentHTML)
      tt_body.insertAdjacentHTML("afterBegin", tt_MkMainDivHtm());
   else if(typeof tt_body.innerHTML != tt_u && document.createElement && tt_body.appendChild)
      tt_body.appendChild(tt_MkMainDivDom());
   if(window.tt_GetMainDivRefs /* FireFox Alzheimer */ && tt_GetMainDivRefs())
      return true;
   tt_db = null;
   return false;
}
function tt_MkMainDivHtm()
{
   return(
      '<div id="WzTtDiV"></div>' +
      (tt_ie56 ? ('<iframe id="WzTtIfRm" src="javascript:false" scrolling="no" frameborder="0" style="filter:Alpha(opacity=0);position:absolute;top:0px;left:0px;display:none;"></iframe>')
      : '')
   );
}
function tt_MkMainDivDom()
{
   var el = document.createElement("div");
   if(el)
      el.id = "WzTtDiV";
   return el;
}
function tt_GetMainDivRefs()
{
   tt_aElt[0] = tt_GetElt("WzTtDiV");
   if(tt_ie56 && tt_aElt[0])
   {
      tt_aElt[tt_aElt.length - 1] = tt_GetElt("WzTtIfRm");
      if(!tt_aElt[tt_aElt.length - 1])
         tt_aElt[0] = null;
   }
   if(tt_aElt[0])
   {
      var css = tt_aElt[0].style;

      css.visibility = "hidden";
      css.position = "absolute";
      css.overflow = "hidden";
      return true;
   }
   return false;
}
function tt_ResetMainDiv()
{
   tt_SetTipPos(0, 0);
   tt_aElt[0].innerHTML = "";
   tt_aElt[0].style.width = "0px";
   tt_h = 0;
}
function tt_IsW3cBox()
{
   var css = tt_aElt[0].style;

   css.padding = "10px";
   css.width = "40px";
   tt_bBoxOld = (tt_GetDivW(tt_aElt[0]) == 40);
   css.padding = "0px";
   tt_ResetMainDiv();
}
function tt_OpaSupport()
{
   var css = tt_body.style;

   tt_flagOpa = (typeof(css.KhtmlOpacity) != tt_u) ? 2
            : (typeof(css.KHTMLOpacity) != tt_u) ? 3
            : (typeof(css.MozOpacity) != tt_u) ? 4
            : (typeof(css.opacity) != tt_u) ? 5
            : (typeof(css.filter) != tt_u) ? 1
            : 0;
}
// Ported from http://dean.edwards.name/weblog/2006/06/again/
// (Dean Edwards et al.)
function tt_SetOnloadFnc()
{
   tt_AddEvtFnc(document, "DOMContentLoaded", tt_HideSrcTags);
   tt_AddEvtFnc(window, "load", tt_HideSrcTags);
   if(tt_body.attachEvent)
      tt_body.attachEvent("onreadystatechange",
         function() {
            if(tt_body.readyState == "complete")
               tt_HideSrcTags();
         } );
   if(/WebKit|KHTML/i.test(navigator.userAgent))
   {
      var t = setInterval(function() {
               if(/loaded|complete/.test(document.readyState))
               {
                  clearInterval(t);
                  tt_HideSrcTags();
               }
            }, 10);
   }
}
function tt_HideSrcTags()
{
   if(!window.tt_HideSrcTags || window.tt_HideSrcTags.done)
      return;
   window.tt_HideSrcTags.done = true;
   if(!tt_HideSrcTagsRecurs(tt_body))
      tt_Err("There are HTML elements to be converted to tooltips.\nIf you"
            + " want these HTML elements to be automatically hidden, you"
            + " must edit wz_tooltip.js, and set TagsToTip in the global"
            + " tooltip configuration to true.", true);
}
function tt_HideSrcTagsRecurs(dad)
{
   var ovr, asT2t;
   // Walk the DOM tree for tags that have an onmouseover or onclick attribute
   // containing a TagToTip('...') call.
   // (.childNodes first since .children is bugous in Safari)
   var a = dad.childNodes || dad.children || null;

   for(var i = a ? a.length : 0; i;)
   {--i;
      if(!tt_HideSrcTagsRecurs(a[i]))
         return false;
      ovr = a[i].getAttribute ? (a[i].getAttribute("onmouseover") || a[i].getAttribute("onclick"))
            : (typeof a[i].onmouseover == "function") ? (a[i].onmouseover || a[i].onclick)
            : null;
      if(ovr)
      {
         asT2t = ovr.toString().match(/TagToTip\s*\(\s*'[^'.]+'\s*[\),]/);
         if(asT2t && asT2t.length)
         {
            if(!tt_HideSrcTag(asT2t[0]))
               return false;
         }
      }
   }
   return true;
}
function tt_HideSrcTag(sT2t)
{
   var id, el;

   // The ID passed to the found TagToTip() call identifies an HTML element
   // to be converted to a tooltip, so hide that element
   id = sT2t.replace(/.+'([^'.]+)'.+/, "$1");
   el = tt_GetElt(id);
   if(el)
   {
      if(tt_Debug && !TagsToTip)
         return false;
      else
         el.style.display = "none";
   }
   else
      tt_Err("Invalid ID\n'" + id + "'\npassed to TagToTip()."
            + " There exists no HTML element with that ID.", true);
   return true;
}
function tt_Tip(arg, t2t)
{
   if(!tt_db || (tt_iState & 0x8))
      return;
   if(tt_iState)
      tt_Hide();
   if(!tt_Enabled)
      return;
   tt_t2t = t2t;
   if(!tt_ReadCmds(arg))
      return;
   tt_iState = 0x1 | 0x4;
   tt_AdaptConfig1();
   tt_MkTipContent(arg);
   tt_MkTipSubDivs();
   tt_FormatTip();
   tt_bJmpVert = false;
   tt_bJmpHorz = false;
   tt_maxPosX = tt_GetClientW() + tt_GetScrollX() - tt_w - 1;
   tt_maxPosY = tt_GetClientH() + tt_GetScrollY() - tt_h - 1;
   tt_AdaptConfig2();
   // Ensure the tip be shown and positioned before the first onmousemove
   tt_OverInit();
   tt_ShowInit();
   tt_Move();
}
function tt_ReadCmds(a)
{
   var i;

   // First load the global config values, to initialize also values
   // for which no command is passed
   i = 0;
   for(var j in config)
      tt_aV[i++] = config[j];
   // Then replace each cached config value for which a command is
   // passed (ensure the # of command args plus value args be even)
   if(a.length & 1)
   {
      for(i = a.length - 1; i > 0; i -= 2)
         tt_aV[a[i - 1]] = a[i];
      return true;
   }
   tt_Err("Incorrect call of Tip() or TagToTip().\n"
         + "Each command must be followed by a value.", true);
   return false;
}
function tt_AdaptConfig1()
{
   tt_ExtCallFncs(0, "LoadConfig");
   // Inherit unspecified title formattings from body
   if(!tt_aV[TITLEBGCOLOR].length)
      tt_aV[TITLEBGCOLOR] = tt_aV[BORDERCOLOR];
   if(!tt_aV[TITLEFONTCOLOR].length)
      tt_aV[TITLEFONTCOLOR] = tt_aV[BGCOLOR];
   if(!tt_aV[TITLEFONTFACE].length)
      tt_aV[TITLEFONTFACE] = tt_aV[FONTFACE];
   if(!tt_aV[TITLEFONTSIZE].length)
      tt_aV[TITLEFONTSIZE] = tt_aV[FONTSIZE];
   if(tt_aV[CLOSEBTN])
   {
      // Use title colours for non-specified closebutton colours
      if(!tt_aV[CLOSEBTNCOLORS])
         tt_aV[CLOSEBTNCOLORS] = new Array("", "", "", "");
      for(var i = 4; i;)
      {--i;
         if(!tt_aV[CLOSEBTNCOLORS][i].length)
            tt_aV[CLOSEBTNCOLORS][i] = (i & 1) ? tt_aV[TITLEFONTCOLOR] : tt_aV[TITLEBGCOLOR];
      }
      // Enforce titlebar be shown
      if(!tt_aV[TITLE].length)
         tt_aV[TITLE] = " ";
   }
   // Circumvents broken display of images and fade-in flicker in Geckos < 1.8
   if(tt_aV[OPACITY] == 100 && typeof tt_aElt[0].style.MozOpacity != tt_u && !Array.every)
      tt_aV[OPACITY] = 99;
   // Smartly shorten the delay for fade-in tooltips
   if(tt_aV[FADEIN] && tt_flagOpa && tt_aV[DELAY] > 100)
      tt_aV[DELAY] = Math.max(tt_aV[DELAY] - tt_aV[FADEIN], 100);
}
function tt_AdaptConfig2()
{
   if(tt_aV[CENTERMOUSE])
   {
      tt_aV[OFFSETX] -= ((tt_w - (tt_aV[SHADOW] ? tt_aV[SHADOWWIDTH] : 0)) >> 1);
      tt_aV[JUMPHORZ] = false;
   }
}
// Expose content globally so extensions can modify it
function tt_MkTipContent(a)
{
   if(tt_t2t)
   {
      if(tt_aV[COPYCONTENT])
         tt_sContent = tt_t2t.innerHTML;
      else
         tt_sContent = "";
   }
   else
      tt_sContent = a[0];
   tt_ExtCallFncs(0, "CreateContentString");
}
function tt_MkTipSubDivs()
{
   var sCss = 'position:relative;margin:0px;padding:0px;border-width:0px;left:0px;top:0px;line-height:normal;width:auto;',
   sTbTrTd = ' cellspacing="0" cellpadding="0" border="0" style="' + sCss + '"><tbody style="' + sCss + '"><tr><td ';

   tt_aElt[0].style.width = tt_GetClientW() + "px";
   tt_aElt[0].innerHTML =
      (''
      + (tt_aV[TITLE].length ?
         ('<div id="WzTiTl" style="position:relative;z-index:1;">'
         + '<table id="WzTiTlTb"' + sTbTrTd + 'id="WzTiTlI" style="' + sCss + '">'
         + tt_aV[TITLE]
         + '</td>'
         + (tt_aV[CLOSEBTN] ?
            ('<td align="right" style="' + sCss
            + 'text-align:right;">'
            + '<span id="WzClOsE" style="position:relative;left:2px;padding-left:2px;padding-right:2px;'
            + 'cursor:' + (tt_ie ? 'hand' : 'pointer')
            + ';" onmouseover="tt_OnCloseBtnOver(1)" onmouseout="tt_OnCloseBtnOver(0)" onclick="tt_HideInit()">'
            + tt_aV[CLOSEBTNTEXT]
            + '</span></td>')
            : '')
         + '</tr></tbody></table></div>')
         : '')
      + '<div id="WzBoDy" style="position:relative;z-index:0;">'
      + '<table' + sTbTrTd + 'id="WzBoDyI" style="' + sCss + '">'
      + tt_sContent
      + '</td></tr></tbody></table></div>'
      + (tt_aV[SHADOW]
         ? ('<div id="WzTtShDwR" style="position:absolute;overflow:hidden;"></div>'
            + '<div id="WzTtShDwB" style="position:relative;overflow:hidden;"></div>')
         : '')
      );
   tt_GetSubDivRefs();
   // Convert DOM node to tip
   if(tt_t2t && !tt_aV[COPYCONTENT])
      tt_El2Tip();
   tt_ExtCallFncs(0, "SubDivsCreated");
}
function tt_GetSubDivRefs()
{
   var aId = new Array("WzTiTl", "WzTiTlTb", "WzTiTlI", "WzClOsE", "WzBoDy", "WzBoDyI", "WzTtShDwB", "WzTtShDwR");

   for(var i = aId.length; i; --i)
      tt_aElt[i] = tt_GetElt(aId[i - 1]);
}
function tt_FormatTip()
{
   var css, w, h, pad = tt_aV[PADDING], padT, wBrd = tt_aV[BORDERWIDTH],
   iOffY, iOffSh, iAdd = (pad + wBrd) << 1;

   //--------- Title DIV ----------
   if(tt_aV[TITLE].length)
   {
      padT = tt_aV[TITLEPADDING];
      css = tt_aElt[1].style;
      css.background = tt_aV[TITLEBGCOLOR];
      css.paddingTop = css.paddingBottom = padT + "px";
      css.paddingLeft = css.paddingRight = (padT + 2) + "px";
      css = tt_aElt[3].style;
      css.color = tt_aV[TITLEFONTCOLOR];
      if(tt_aV[WIDTH] == -1)
         css.whiteSpace = "nowrap";
      css.fontFamily = tt_aV[TITLEFONTFACE];
      css.fontSize = tt_aV[TITLEFONTSIZE];
      css.fontWeight = "bold";
      css.textAlign = tt_aV[TITLEALIGN];
      // Close button DIV
      if(tt_aElt[4])
      {
         css = tt_aElt[4].style;
         css.background = tt_aV[CLOSEBTNCOLORS][0];
         css.color = tt_aV[CLOSEBTNCOLORS][1];
         css.fontFamily = tt_aV[TITLEFONTFACE];
         css.fontSize = tt_aV[TITLEFONTSIZE];
         css.fontWeight = "bold";
      }
      if(tt_aV[WIDTH] > 0)
         tt_w = tt_aV[WIDTH];
      else
      {
         tt_w = tt_GetDivW(tt_aElt[3]) + tt_GetDivW(tt_aElt[4]);
         // Some spacing between title DIV and closebutton
         if(tt_aElt[4])
            tt_w += pad;
         // Restrict auto width to max width
         if(tt_aV[WIDTH] < -1 && tt_w > -tt_aV[WIDTH])
            tt_w = -tt_aV[WIDTH];
      }
      // Ensure the top border of the body DIV be covered by the title DIV
      iOffY = -wBrd;
   }
   else
   {
      tt_w = 0;
      iOffY = 0;
   }

   //-------- Body DIV ------------
   css = tt_aElt[5].style;
   css.top = iOffY + "px";
   if(wBrd)
   {
      css.borderColor = tt_aV[BORDERCOLOR];
      css.borderStyle = tt_aV[BORDERSTYLE];
      css.borderWidth = wBrd + "px";
   }
   if(tt_aV[BGCOLOR].length)
      css.background = tt_aV[BGCOLOR];
   if(tt_aV[BGIMG].length)
      css.backgroundImage = "url(" + tt_aV[BGIMG] + ")";
   css.padding = pad + "px";
   css.textAlign = tt_aV[TEXTALIGN];
   if(tt_aV[HEIGHT])
   {
      css.overflow = "auto";
      if(tt_aV[HEIGHT] > 0)
         css.height = (tt_aV[HEIGHT] + iAdd) + "px";
      else
         tt_h = iAdd - tt_aV[HEIGHT];
   }
   // TD inside body DIV
   css = tt_aElt[6].style;
   css.color = tt_aV[FONTCOLOR];
   css.fontFamily = tt_aV[FONTFACE];
   css.fontSize = tt_aV[FONTSIZE];
   css.fontWeight = tt_aV[FONTWEIGHT];
   css.textAlign = tt_aV[TEXTALIGN];
   if(tt_aV[WIDTH] > 0)
      w = tt_aV[WIDTH];
   // Width like title (if existent)
   else if(tt_aV[WIDTH] == -1 && tt_w)
      w = tt_w;
   else
   {
      // Measure width of the body's inner TD, as some browsers would expand
      // the container and outer body DIV to 100%
      w = tt_GetDivW(tt_aElt[6]);
      // Restrict auto width to max width
      if(tt_aV[WIDTH] < -1 && w > -tt_aV[WIDTH])
         w = -tt_aV[WIDTH];
   }
   if(w > tt_w)
      tt_w = w;
   tt_w += iAdd;

   //--------- Shadow DIVs ------------
   if(tt_aV[SHADOW])
   {
      tt_w += tt_aV[SHADOWWIDTH];
      iOffSh = Math.floor((tt_aV[SHADOWWIDTH] * 4) / 3);
      // Bottom shadow
      css = tt_aElt[7].style;
      css.top = iOffY + "px";
      css.left = iOffSh + "px";
      css.width = (tt_w - iOffSh - tt_aV[SHADOWWIDTH]) + "px";
      css.height = tt_aV[SHADOWWIDTH] + "px";
      css.background = tt_aV[SHADOWCOLOR];
      // Right shadow
      css = tt_aElt[8].style;
      css.top = iOffSh + "px";
      css.left = (tt_w - tt_aV[SHADOWWIDTH]) + "px";
      css.width = tt_aV[SHADOWWIDTH] + "px";
      css.background = tt_aV[SHADOWCOLOR];
   }
   else
      iOffSh = 0;

   //-------- Container DIV -------
   tt_SetTipOpa(tt_aV[FADEIN] ? 0 : tt_aV[OPACITY]);
   tt_FixSize(iOffY, iOffSh);
}
// Fixate the size so it can't dynamically change while the tooltip is moving.
function tt_FixSize(iOffY, iOffSh)
{
   var wIn, wOut, h, add, pad = tt_aV[PADDING], wBrd = tt_aV[BORDERWIDTH], i;

   tt_aElt[0].style.width = tt_w + "px";
   tt_aElt[0].style.pixelWidth = tt_w;
   wOut = tt_w - ((tt_aV[SHADOW]) ? tt_aV[SHADOWWIDTH] : 0);
   // Body
   wIn = wOut;
   if(!tt_bBoxOld)
      wIn -= (pad + wBrd) << 1;
   tt_aElt[5].style.width = wIn + "px";
   // Title
   if(tt_aElt[1])
   {
      wIn = wOut - ((tt_aV[TITLEPADDING] + 2) << 1);
      if(!tt_bBoxOld)
         wOut = wIn;
      tt_aElt[1].style.width = wOut + "px";
      tt_aElt[2].style.width = wIn + "px";
   }
   // Max height specified
   if(tt_h)
   {
      h = tt_GetDivH(tt_aElt[5]);
      if(h > tt_h)
      {
         if(!tt_bBoxOld)
            tt_h -= (pad + wBrd) << 1;
         tt_aElt[5].style.height = tt_h + "px";
      }
   }
   tt_h = tt_GetDivH(tt_aElt[0]) + iOffY;
   // Right shadow
   if(tt_aElt[8])
      tt_aElt[8].style.height = (tt_h - iOffSh) + "px";
   i = tt_aElt.length - 1;
   if(tt_aElt[i])
   {
      tt_aElt[i].style.width = tt_w + "px";
      tt_aElt[i].style.height = tt_h + "px";
   }
}
function tt_DeAlt(el)
{
   var aKid;

   if(el)
   {
      if(el.alt)
         el.alt = "";
      if(el.title)
         el.title = "";
      aKid = el.childNodes || el.children || null;
      if(aKid)
      {
         for(var i = aKid.length; i;)
            tt_DeAlt(aKid[--i]);
      }
   }
}
// This hack removes the native tooltips over links in Opera
function tt_OpDeHref(el)
{
   if(!tt_op)
      return;
   if(tt_elDeHref)
      tt_OpReHref();
   while(el)
   {
      if(el.hasAttribute && el.hasAttribute("href"))
      {
         el.t_href = el.getAttribute("href");
         el.t_stats = window.status;
         el.removeAttribute("href");
         el.style.cursor = "hand";
         tt_AddEvtFnc(el, "mousedown", tt_OpReHref);
         window.status = el.t_href;
         tt_elDeHref = el;
         break;
      }
      el = tt_GetDad(el);
   }
}
function tt_OpReHref()
{
   if(tt_elDeHref)
   {
      tt_elDeHref.setAttribute("href", tt_elDeHref.t_href);
      tt_RemEvtFnc(tt_elDeHref, "mousedown", tt_OpReHref);
      window.status = tt_elDeHref.t_stats;
      tt_elDeHref = null;
   }
}
function tt_El2Tip()
{
   var css = tt_t2t.style;

   // Store previous positioning
   tt_t2t.t_cp = css.position;
   tt_t2t.t_cl = css.left;
   tt_t2t.t_ct = css.top;
   tt_t2t.t_cd = css.display;
   // Store the tag's parent element so we can restore that DOM branch
   // when the tooltip is being hidden
   tt_t2tDad = tt_GetDad(tt_t2t);
   tt_MovDomNode(tt_t2t, tt_t2tDad, tt_aElt[6]);
   css.display = "block";
   css.position = "static";
   css.left = css.top = css.marginLeft = css.marginTop = "0px";
}
function tt_UnEl2Tip()
{
   // Restore positioning and display
   var css = tt_t2t.style;

   css.display = tt_t2t.t_cd;
   tt_MovDomNode(tt_t2t, tt_GetDad(tt_t2t), tt_t2tDad);
   css.position = tt_t2t.t_cp;
   css.left = tt_t2t.t_cl;
   css.top = tt_t2t.t_ct;
   tt_t2tDad = null;
}
function tt_OverInit()
{
   if(window.event)
      tt_over = window.event.target || window.event.srcElement;
   else
      tt_over = tt_ovr_;
   tt_DeAlt(tt_over);
   tt_OpDeHref(tt_over);
}
function tt_ShowInit()
{
   tt_tShow.Timer("tt_Show()", tt_aV[DELAY], true);
   if(tt_aV[CLICKCLOSE] || tt_aV[CLICKSTICKY])
      tt_AddEvtFnc(document, "mouseup", tt_OnLClick);
}
function tt_Show()
{
   var css = tt_aElt[0].style;

   // Override the z-index of the topmost wz_dragdrop.js D&D item
   css.zIndex = Math.max((window.dd && dd.z) ? (dd.z + 2) : 0, 1010);
   if(tt_aV[STICKY] || !tt_aV[FOLLOWMOUSE])
      tt_iState &= ~0x4;
   if(tt_aV[EXCLUSIVE])
      tt_iState |= 0x8;
   if(tt_aV[DURATION] > 0)
      tt_tDurt.Timer("tt_HideInit()", tt_aV[DURATION], true);
   tt_ExtCallFncs(0, "Show")
   css.visibility = "visible";
   tt_iState |= 0x2;
   if(tt_aV[FADEIN])
      tt_Fade(0, 0, tt_aV[OPACITY], Math.round(tt_aV[FADEIN] / tt_aV[FADEINTERVAL]));
   tt_ShowIfrm();
}
function tt_ShowIfrm()
{
   if(tt_ie56)
   {
      var ifrm = tt_aElt[tt_aElt.length - 1];
      if(ifrm)
      {
         var css = ifrm.style;
         css.zIndex = tt_aElt[0].style.zIndex - 1;
         css.display = "block";
      }
   }
}
function tt_Move(e)
{
   if(e)
      tt_ovr_ = e.target || e.srcElement;
   e = e || window.event;
   if(e)
   {
      tt_musX = tt_GetEvtX(e);
      tt_musY = tt_GetEvtY(e);
   }
   if(tt_iState & 0x4)
   {
      // Prevent jam of mousemove events
      if(!tt_op && !tt_ie)
      {
         if(tt_bWait)
            return;
         tt_bWait = true;
         tt_tWaitMov.Timer("tt_bWait = false;", 1, true);
      }
      if(tt_aV[FIX])
      {
         tt_iState &= ~0x4;
         tt_PosFix();
      }
      else if(!tt_ExtCallFncs(e, "MoveBefore"))
         tt_SetTipPos(tt_Pos(0), tt_Pos(1));
      tt_ExtCallFncs([tt_musX, tt_musY], "MoveAfter")
   }
}
function tt_Pos(iDim)
{
   var iX, bJmpMod, cmdAlt, cmdOff, cx, iMax, iScrl, iMus, bJmp;

   // Map values according to dimension to calculate
   if(iDim)
   {
      bJmpMod = tt_aV[JUMPVERT];
      cmdAlt = ABOVE;
      cmdOff = OFFSETY;
      cx = tt_h;
      iMax = tt_maxPosY;
      iScrl = tt_GetScrollY();
      iMus = tt_musY;
      bJmp = tt_bJmpVert;
   }
   else
   {
      bJmpMod = tt_aV[JUMPHORZ];
      cmdAlt = LEFT;
      cmdOff = OFFSETX;
      cx = tt_w;
      iMax = tt_maxPosX;
      iScrl = tt_GetScrollX();
      iMus = tt_musX;
      bJmp = tt_bJmpHorz;
   }
   if(bJmpMod)
   {
      if(tt_aV[cmdAlt] && (!bJmp || tt_CalcPosAlt(iDim) >= iScrl + 16))
         iX = tt_PosAlt(iDim);
      else if(!tt_aV[cmdAlt] && bJmp && tt_CalcPosDef(iDim) > iMax - 16)
         iX = tt_PosAlt(iDim);
      else
         iX = tt_PosDef(iDim);
   }
   else
   {
      iX = iMus;
      if(tt_aV[cmdAlt])
         iX -= cx + tt_aV[cmdOff] - (tt_aV[SHADOW] ? tt_aV[SHADOWWIDTH] : 0);
      else
         iX += tt_aV[cmdOff];
   }
   // Prevent tip from extending past clientarea boundary
   if(iX > iMax)
      iX = bJmpMod ? tt_PosAlt(iDim) : iMax;
   // In case of insufficient space on both sides, ensure the left/upper part
   // of the tip be visible
   if(iX < iScrl)
      iX = bJmpMod ? tt_PosDef(iDim) : iScrl;
   return iX;
}
function tt_PosDef(iDim)
{
   if(iDim)
      tt_bJmpVert = tt_aV[ABOVE];
   else
      tt_bJmpHorz = tt_aV[LEFT];
   return tt_CalcPosDef(iDim);
}
function tt_PosAlt(iDim)
{
   if(iDim)
      tt_bJmpVert = !tt_aV[ABOVE];
   else
      tt_bJmpHorz = !tt_aV[LEFT];
   return tt_CalcPosAlt(iDim);
}
function tt_CalcPosDef(iDim)
{
   return iDim ? (tt_musY + tt_aV[OFFSETY]) : (tt_musX + tt_aV[OFFSETX]);
}
function tt_CalcPosAlt(iDim)
{
   var cmdOff = iDim ? OFFSETY : OFFSETX;
   var dx = tt_aV[cmdOff] - (tt_aV[SHADOW] ? tt_aV[SHADOWWIDTH] : 0);
   if(tt_aV[cmdOff] > 0 && dx <= 0)
      dx = 1;
   return((iDim ? (tt_musY - tt_h) : (tt_musX - tt_w)) - dx);
}
function tt_PosFix()
{
   var iX, iY;

   if(typeof(tt_aV[FIX][0]) == "number")
   {
      iX = tt_aV[FIX][0];
      iY = tt_aV[FIX][1];
   }
   else
   {
      if(typeof(tt_aV[FIX][0]) == "string")
         el = tt_GetElt(tt_aV[FIX][0]);
      // First slot in array is direct reference to HTML element
      else
         el = tt_aV[FIX][0];
      iX = tt_aV[FIX][1];
      iY = tt_aV[FIX][2];
      // By default, vert pos is related to bottom edge of HTML element
      if(!tt_aV[ABOVE] && el)
         iY += tt_GetDivH(el);
      for(; el; el = el.offsetParent)
      {
         iX += el.offsetLeft || 0;
         iY += el.offsetTop || 0;
      }
   }
   // For a fixed tip positioned above the mouse, use the bottom edge as anchor
   // (recommended by Christophe Rebeschini, 31.1.2008)
   if(tt_aV[ABOVE])
      iY -= tt_h;
   tt_SetTipPos(iX, iY);
}
function tt_Fade(a, now, z, n)
{
   if(n)
   {
      now += Math.round((z - now) / n);
      if((z > a) ? (now >= z) : (now <= z))
         now = z;
      else
         tt_tFade.Timer(
            "tt_Fade("
            + a + "," + now + "," + z + "," + (n - 1)
            + ")",
            tt_aV[FADEINTERVAL],
            true
         );
   }
   now ? tt_SetTipOpa(now) : tt_Hide();
}
function tt_SetTipOpa(opa)
{
   // To circumvent the opacity nesting flaws of IE, we set the opacity
   // for each sub-DIV separately, rather than for the container DIV.
   tt_SetOpa(tt_aElt[5], opa);
   if(tt_aElt[1])
      tt_SetOpa(tt_aElt[1], opa);
   if(tt_aV[SHADOW])
   {
      opa = Math.round(opa * 0.8);
      tt_SetOpa(tt_aElt[7], opa);
      tt_SetOpa(tt_aElt[8], opa);
   }
}
function tt_OnCloseBtnOver(iOver)
{
   var css = tt_aElt[4].style;

   iOver <<= 1;
   css.background = tt_aV[CLOSEBTNCOLORS][iOver];
   css.color = tt_aV[CLOSEBTNCOLORS][iOver + 1];
}
function tt_OnLClick(e)
{
   //  Ignore right-clicks
   e = e || window.event;
   if(!((e.button && e.button & 2) || (e.which && e.which == 3)))
   {
      if(tt_aV[CLICKSTICKY] && (tt_iState & 0x4))
      {
         tt_aV[STICKY] = true;
         tt_iState &= ~0x4;
      }
      else if(tt_aV[CLICKCLOSE])
         tt_HideInit();
   }
}
function tt_Int(x)
{
   var y;

   return(isNaN(y = parseInt(x)) ? 0 : y);
}
Number.prototype.Timer = function(s, iT, bUrge)
{
   if(!this.value || bUrge)
      this.value = window.setTimeout(s, iT);
}
Number.prototype.EndTimer = function()
{
   if(this.value)
   {
      window.clearTimeout(this.value);
      this.value = 0;
   }
}
function tt_GetWndCliSiz(s)
{
   var db, y = window["inner" + s], sC = "client" + s, sN = "number";
   if(typeof y == sN)
   {
      var y2;
      return(
         // Gecko or Opera with scrollbar
         // ... quirks mode
         ((db = document.body) && typeof(y2 = db[sC]) == sN && y2 &&  y2 <= y) ? y2
         // ... strict mode
         : ((db = document.documentElement) && typeof(y2 = db[sC]) == sN && y2 && y2 <= y) ? y2
         // No scrollbar, or clientarea size == 0, or other browser (KHTML etc.)
         : y
      );
   }
   // IE
   return(
      // document.documentElement.client+s functional, returns > 0
      ((db = document.documentElement) && (y = db[sC])) ? y
      // ... not functional, in which case document.body.client+s
      // is the clientarea size, fortunately
      : document.body[sC]
   );
}
function tt_SetOpa(el, opa)
{
   var css = el.style;

   tt_opa = opa;
   if(tt_flagOpa == 1)
   {
      if(opa < 100)
      {
         // Hacks for bugs of IE:
         // 1.) Once a CSS filter has been applied, fonts are no longer
         // anti-aliased, so we store the previous 'non-filter' to be
         // able to restore it
         if(typeof(el.filtNo) == tt_u)
            el.filtNo = css.filter;
         // 2.) A DIV cannot be made visible in a single step if an
         // opacity < 100 has been applied while the DIV was hidden
         var bVis = css.visibility != "hidden";
         // 3.) In IE6, applying an opacity < 100 has no effect if the
         //     element has no layout (position, size, zoom, ...)
         css.zoom = "100%";
         if(!bVis)
            css.visibility = "visible";
         css.filter = "alpha(opacity=" + opa + ")";
         if(!bVis)
            css.visibility = "hidden";
      }
      else if(typeof(el.filtNo) != tt_u)
         // Restore 'non-filter'
         css.filter = el.filtNo;
   }
   else
   {
      opa /= 100.0;
      switch(tt_flagOpa)
      {
      case 2:
         css.KhtmlOpacity = opa; break;
      case 3:
         css.KHTMLOpacity = opa; break;
      case 4:
         css.MozOpacity = opa; break;
      case 5:
         css.opacity = opa; break;
      }
   }
}
function tt_Err(sErr, bIfDebug)
{
   if(tt_Debug || !bIfDebug)
      alert("Tooltip Script Error Message:\n\n" + sErr);
}

//============  EXTENSION (PLUGIN) MANAGER  ===============//
function tt_ExtCmdEnum()
{
   var s;

   // Add new command(s) to the commands enum
   for(var i in config)
   {
      s = "window." + i.toString().toUpperCase();
      if(eval("typeof(" + s + ") == tt_u"))
      {
         eval(s + " = " + tt_aV.length);
         tt_aV[tt_aV.length] = null;
      }
   }
}
function tt_ExtCallFncs(arg, sFnc)
{
   var b = false;
   for(var i = tt_aExt.length; i;)
   {--i;
      var fnc = tt_aExt[i]["On" + sFnc];
      // Call the method the extension has defined for this event
      if(fnc && fnc(arg))
         b = true;
   }
   return b;
}

tt_Init();

This is all the javascript they have. The .asp is a database I believe and therefore it should not be needed for solving my problem.

I hope this helps and sorry for my rudeness.
Bleachzor
Bleachzor
Forumember

Posts : 211
Reputation : -10
Language : Dutch

Back to top Go down

javascript not working properly Empty Re: javascript not working properly

Post by kirk on May 12th 2010, 9:14 pm

this is a big mess.

Ok for one why do you want to add something like this if it's not going to show up on other browsers.

2 we are not mind readers or rocket scientist. how in the world are supposed to know exactly what you want the code to do and everthing with this mess.

here is what comes up my html page using FireFox. on chrome and Ie nothing at all is showing. on FireFox i get this.

http://tesing123kirk.freeforum.me.uk/test-h47.htm

so everthing that is appearing. if you click the links it just goes to my forum. so that is telling me ware every you want the links to go you are going to have to add the links to the code.. and you can change the manes as well.

then you have adds and other things on there.. all of this can be adjusted and you can what ever you want.

But i can tell you right now. if you are going to add everything thats in that list etc.. and manage to maintain getting appearing on other browser.
Well my friend you are going to have some work cut out for you.

everthing you want will have to added.

i mean i will go through and try to explain the best and suggest any best ways to try to get what you want working correctly.. but you are going to have to specific on exactly what you want and are doing.

thats a whole lot code. if you can break it down in terms that we can understand and comprehend then we may be able to help.

depending what it is you want.. i will try to get a hold of rono and he can give you something better that is easier to set and will work with other browser.. i mean it seems your asking alot.. but then again it might not be as hard as it appears. i just dont understand exactly what it is you need to do.

but judging by whats in the code now it seems you have a lot of links to add.

Also have tried contacting the people where you got this code from?
i mean where here to help but we have to understand the situation.

but you know there are people out there that get paid good money for hooking things like this up.. and yeah all support is free here and i will go out of my way to help someone. if there's a way to do what ever your asking and i can do it then i will help.

but right now i dont even know what to think accept it looks like a big mess and whole lot of work.. but once again it may not be as hard as it appears.

please explain.. do it a few parts at a time.. that a lot of stuff going on with that.. most seems to be just adding links images etc...

and i dint even begin to look at the css and all that other google or what it is you have posted yet... javascript not working properly Guish2
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

javascript not working properly Empty Re: javascript not working properly

Post by Bleachzor on May 14th 2010, 11:13 am

@kirk wrote:
Read the thread properly before you post please.

I cannot avoid clearing the misunderstanding without having to lecture and im not going to do that.

Hint: read that html and check the links.

*Update I made it work!!!*
(view attachment)

Can anyone help me making the site display properly for IE6 and higher?
Attachments
javascript not working properly Attachment
nice2.zip You don't have permission to download attachments.(7 Kb) Downloaded 2 times


Last edited by Bleachzor on May 17th 2010, 11:47 am; edited 1 time in total
Bleachzor
Bleachzor
Forumember

Posts : 211
Reputation : -10
Language : Dutch

Back to top Go down

javascript not working properly Empty Re: javascript not working properly

Post by Bleachzor on May 17th 2010, 11:44 am

maybe i should create a new topic for the other part of this conversation.
Bleachzor
Bleachzor
Forumember

Posts : 211
Reputation : -10
Language : Dutch

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum