Tacit, is it the script at the top of the page or the one at the bottom (and how did you dig that bit of info out...I looked at it and couldn't make head or tail of it)
The one at the top.
The script is written in a highly obfuscated way, but it's easy to decode if you know a little bit about how JavaScript works.
These obfuscated scripts work by taking an encoded string, decoding it, and then putting it into the Web page by using a document.write command or an eval command. You can sort them out by saving the HTML to disk, opening them in a text editor, and looking for anything that says document.write or eval. You change the document.write or eval command to alert (the command to pop up abox), then open the HTML ile in your browser. A window will pop up containing the decoded JavaScript.
In this case, the decoded JavaScript opens an invisible iFrame from
http://7speed.info, a site hosted in Russia. The invisible frame contains instructions to trick Internet Explorer into downloading a virus.
Also - there are a bunch of invisible links on that page - mostly to porn sites, so my guess is those were dumped in there by the hacker too. I had to wonder what was the point of having invisible links - until I read a bit more about this issue. (see below) The javascript is what makes them invisible, since it has "display = none" in there, and they're not popups. Google takes a very dim view of invisible links; generally one's page rank will drop badly if you have them, so it's not just the virus problem isn't the only hack going on here.
Yes. Technically, the "display = none" isn't JavaScript, it's CSS.
All kinds of sites use this CSS. For example, if you go to a Web site that causes a picture to appear in the middle of the screen when you click a link (iWeb can do this), the picture is actually always there. It's loaded when the page loads but it is set to display = none. When you click a button or a link the display = none is changed and bink! There it is, like magic.
The purpose of putting the hidden porn links in there is money. Google's page rank works by the number of people who link *to you*. The more other web sites that link to you, the higher your page appears in the searches. So hackers make their own pages appear higher in Google's searches by hacking other people's sites and then placing links on the hacked sites to their own sites.
The nasty thing is that without the virus in there as well, the problems on that site could very well have gone undetected for ages if the page is not updated. I think I'll email the site owner. I'm assuming he doesn't have a clue about this.
That would probably be a good idea, but I think the site owner may be MIA.