<!--

var inc=1;
var ns4=document.layers;
var ie5ns6=document.getElementById||document.all;

//Slide-in scoller- © Dynamic Drive (www.dynamicdrive.com)
//For full source code, 100's more DHTML scripts, and TOS,
//visit http://www.dynamicdrive.com
//Configure delay between messages (4000=4 secs):
var xdelay=8000;
//Configure scroller width
var scrollwidth="176px";
//Configure scroller height
var scrollheight="105px";
var message=new Array()
//Configure messages. Extend array as needed:
var openingtag="";
message[0]="<table border='0' cellpadding='2' cellspacing='0' width='100%'><tr><td class='mainx'>Exude girl power and turn on your girly-girl charm with Rosey Pink, a fun, fresh line of cosmetics catering to pre-teen and teenage girls.</td></tr></table>";
message[1]="<table border='0' cellpadding='2' cellspacing='0' width='100%'><tr><td class='pageheading'>Special Offer</td></tr><tr><td class='mainx'><b>Get FREE Shipping!</b></td></tr><tr><td class='mainx'>- On any order over $25</td></tr><tr><td class='mainx'>- On any order shipped to Florida</td></tr><tr><td class='mainx'>Discount applied during checkout</td></tr></table>";
message[2]="<table border='0' cellpadding='2' cellspacing='0' width='100%'><tr><td class='mainx'>Portable, trendy and affordable products in classic and up-to-the-minute shades enable the Rosey Pink girl to create a unique and extraordinary look for every special moment in a girl’s life.</td></tr></table>";
message[3]="<table border='0' cellpadding='2' cellspacing='0' width='100%'><tr><td class='mainx'>Rosey Pink Cosmetics have been featured in these magazines:</td></tr><tr><td class='mainx'>BOP, Cosmo Girl, Justine, Seventeen, Teen Vogue, Teen People, Twist and many more!</td></tr><tr><td class='mainx'>See them all on our <a href='http://www.roseypink.com/press.php'>Press page</a>.</td></tr></table>";
//message[4]="<table border='0' cellpadding='2' cellspacing='0' width='100%'><tr><td class='mainx'>Look for Rosey Pink Cosmetics at the 2005 Nickelodeon Kids' Choice Awards!</td></tr></table>";
var closingtag="";
//This variable specifies the initial negative offset of each msg
//You may wish to increase it if your scroller is to the right of page horizontally
var hoffset=-110;

var marqueewidth="100%"
var marqueeheight="100%"
var marqueespeed=1
var pauseit=1
marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1) //slow speed down by 1 for NS
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var mouseclick=marqueespeed
var iedom=document.all||document.getElementById
var actualheight=''
var cross_marquee, ns_marquee

function updatemsg(){
        crossobj.style.left="-2000px";
        crossobj.style.fontStyle="italic";
        crossobj.innerHTML=message[inc];
        crossobj.style.left=crossobj.offsetWidth*(-1)+hoffset+"px";
        start=setInterval("animatein()",50);
        inc=(inc<message.length-1)? inc+1 : 0;
}

function animatein(){
        if (parseInt(crossobj.style.left)<0) {
                crossobj.style.left=parseInt(crossobj.style.left)+20+"px";
        } else {
                crossobj.style.left=0+"px";
                crossobj.style.fontStyle="normal";
        clearInterval(start);
        }
}

function updatemsgns4(){
        document.sslide.document.sslide2.document.write(openingtag+message[inc]+closingtag);
        document.sslide.document.sslide2.document.close();
        inc=(inc<message.length-1)? inc+1 : 0;
}

function initialize(){
        if (ie5ns6){
                crossobj=document.getElementById ? document.getElementById("flyin") : document.all.flyin;
                setInterval("updatemsg()",xdelay+1000);
        } else if (ns4) {
                document.sslide.document.sslide2.document.write(openingtag+message[0]+closingtag);
                document.sslide.document.sslide2.document.close();
                setInterval("updatemsgns4()",xdelay);
        }
}

function populate(){
if (iedom){
cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
cross_marquee.innerHTML=marqueecontent
actualheight=cross_marquee.offsetHeight
}
else if (document.layers){
ns_marquee=document.ns_marquee.document.ns_marquee2
ns_marquee.top=parseInt(marqueeheight)+8
ns_marquee.document.write(marqueecontent)
ns_marquee.document.close()
actualheight=ns_marquee.document.height
}
lefttime=setInterval("scrollmarquee()",20)
initialize();
}

//-->