/***********************************************
* Memory Scroller script- ? Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var memorywidth="480px" //scroller width
var memoryheight="20px" //scroller height
// var memorybgcolor="#DEFDD9" //scroller background
var memorybgcolor="#FFFFFF"
var memorypadding="2px" //padding applied to the scroller. 0 for non.
// var borderCSS="border: 1px solid black;" //Border CSS, applied to scroller to give border.
var borderCSS="border: 0px solid black;"

var memoryspeed=2 //Scroller speed (larger is faster 1-10)
var pauseit=1 //Pause scroller onMousever (0=no. 1=yes)?

var persistlastviewedmsg=1 //should scroller's position persist after users navigate away (1=yes, 0=no)?
var persistmsgbehavior="onload" //set to "onload" or "onclick".

//Specify the scroller's content (don't delete <nobr> tag)
//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):

var memorycontent='<nobr><span style="font: bold 13px Verdana; color: FF0000">--- Capacity of Sierra Leone Remains Unknown. Rough diamond exports in Sierra Leone grew from $5 million in 1999 to $126 million in 2004. It remains unclear how much of the country\'s diamonds are smuggled out...........&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--- UAE Rough Increases 30% to $1.47 Billion. The United Arab Emirates (U.A.E.) exported $1.47 billion worth of rough diamonds in 2004, up 30 percent from $1.2 billion in 2003..........&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Thailand Estimates Gem Exports at $3.1 Billion. Thailand\'s higher economic confidence and political stability is cause for many corporations and industry-specific agencies to revise sales forecasts upward in 2005..........&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Diamonds Excel at Christie\'s Auctions. Christie\'s sales at its Important Jewels auction in New York on February 17, 2005, totaled $4.3 million, with 88 percent of goods sold at 90 percent of the expected auction value. Sales at Christie\'s St. Moritz, Switzerland, auction held February 16 totaled $12.6 million with 76 percent of goods sold at 67 percent of expected value. Colorless and colored diamonds were in strong demand. Pieces Sold in New York and St. Moritz auctions: Asscher-cut fancy brown, VVSI diamonds, 66.43 carats, $419,200 Pear-shaped diamond line necklace, 80.60 carats, $307,200 Three-stone circular-cut diamond necklace, combined 77.88 carats, $725,470 Cushion-shaped diamond ring, 17.23 carats/H/VS1, $476,581..........&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Religious jewelry, a strong desire for diamonds and fashion jewelry, and cultural-related gift occasions represent areas of interest to the segment population, but have not been addressed by jewelers, according to a research study..........&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Bill Boyajian, president of the Gemological Institute of America, said that the first 10 years of the new century would emerge as the Decade of the Colored Gemstone..........&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--- Letseng Plans Ahead After $8 Million Deal. The Letseng Diamond Mine in Lesotho, southern Africa, hopes to double current output after selling four stones (each the size of a marble) for$8 million, or 33 percent more than expected..........&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--- Thailand. Prime Minister Thaksin Shinawatra of Thailand, in addressing the Bangkok Gems and Jewelry Fair, said \‘In spite of elements causing an economic downturn in some sectors in Asia, Thailand\’s gem and jewelry industry continues to grow. I anticipate that we will reach sales of 200 billion baht (US $5.26 billion) within the next five years.\’..........&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;That\’s it Folks..........</span></nobr>'

////NO NEED TO EDIT BELOW THIS LINE////////////
var combinedcssTable="width:"+(parseInt(memorywidth)+6)+"px;background-color:"+memorybgcolor+";padding:"+memorypadding+";"+borderCSS+";"
var combinedcss="width:"+memorywidth+";height:"+memoryheight+";"

var divonclick=(persistlastviewedmsg && persistmsgbehavior=="onclick")? 'onClick="savelastmsg()" ' : ''
memoryspeed=(document.all)? memoryspeed : Math.max(1, memoryspeed-1) //slow speed down by 1 for NS
var copyspeed=memoryspeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-10000px">'+memorycontent+'</span>')
var actualwidth=''
var memoryscroller

if (window.addEventListener)
window.addEventListener("load", populatescroller, false)
else if (window.attachEvent)
window.attachEvent("onload", populatescroller)
else if (document.all || document.getElementById)
window.onload=populatescroller

function populatescroller(){
memoryscroller=document.getElementById? document.getElementById("memoryscroller") : document.all.memoryscroller
memoryscroller.style.left=parseInt(memorywidth)+8+"px"
if (persistlastviewedmsg && get_cookie("lastscrollerpos")!="")
revivelastmsg()
memoryscroller.innerHTML=memorycontent
actualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth
lefttime=setInterval("scrollmarquee()",20)
}

function get_cookie(Name) {
var search = Name + "="
var returnvalue = ""
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset)
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function savelastmsg(){
document.cookie="lastscrollerpos="+memoryscroller.style.left
}

function revivelastmsg(){
lastscrollerpos=parseInt(get_cookie("lastscrollerpos"))
memoryscroller.style.left=parseInt(lastscrollerpos)+"px"
}

if (persistlastviewedmsg && persistmsgbehavior=="onload")
window.onunload=savelastmsg

function scrollmarquee(){
if (parseInt(memoryscroller.style.left)>(actualwidth*(-1)+8))
memoryscroller.style.left=parseInt(memoryscroller.style.left)-copyspeed+"px"
else
memoryscroller.style.left=parseInt(memorywidth)+8+"px"
}

if (iedom){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0" style="'+combinedcssTable+'"><td>')
write('<div style="position:relative;overflow:hidden;'+combinedcss+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=memoryspeed">')
write('<div id="memoryscroller" style="position:absolute;left:0px;top:0px;" '+divonclick+'></div>')
write('</div>')
document.write('</td></table>')
}
}
