﻿// JScript File


/* *************** MARQUEE FOR WHAT OUR USER SAYS *********************************
Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and TOS, visit http://www.dynamicdrive.com
Modified by jscheuer1 for continuous content. Credit MUST stay intact for use
*/

//Specify the marquee's width (in pixels)
var marqueewidth="100%"
//Specify the marquee's height
var marqueeheight="100px"
//Specify the marquee's marquee speed (larger is faster 1-10)
var marqueespeed=1
//Specify initial pause before scrolling in milliseconds
var initPause=500
//Specify start with Full(1)or Empty(0) Marquee
var full=1
//Pause marquee onMousever (0=no. 1=yes)?
var pauseit=1
//Specify Break characters for IE as the two iterations
//of the marquee, if text, will be too close together in IE
//var iebreak='<p></p>'
var iebreak=''

//Specify the marquee's content
//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):
var marqueecontent=''


////NO NEED TO EDIT BELOW THIS LINE//////////// 
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
var actualheight=''
var cross_marquee, cross_marquee2, ns_marquee

//function populate(marqueetext){marqueecontent=marqueetext 
function populatewus(){
if (iedom){
var lb=document.getElementById&&!document.all? '' : iebreak
cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
cross_marquee2=document.getElementById? document.getElementById("iemarquee2") : document.all.iemarquee2
cross_marquee.style.top=(full==1)? '8px' : parseInt(marqueeheight)+8+"px"
//cross_marquee2.innerHTML=cross_marquee.innerHTML=marqueecontent+lb
cross_marquee2.innerHTML=cross_marquee.innerHTML=cross_marquee.innerHTML+lb
actualheight=cross_marquee.offsetHeight
cross_marquee2.style.top=(parseInt(cross_marquee.style.top)+actualheight+8)+"px" //indicates following #1
}
//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
//}
setTimeout('lefttime=setInterval("scrollmarquee()",40)',initPause)
}

function scrollmarquee(){

if (iedom){
if (parseInt(cross_marquee.style.top)<(actualheight*(-1)+8))
cross_marquee.style.top=(parseInt(cross_marquee2.style.top)+actualheight+8)+"px"
if (parseInt(cross_marquee2.style.top)<(actualheight*(-1)+8))
cross_marquee2.style.top=(parseInt(cross_marquee.style.top)+actualheight+8)+"px"
cross_marquee2.style.top=parseInt(cross_marquee2.style.top)-copyspeed+"px"
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"
}

//else if (document.layers){
//if (ns_marquee.top>(actualheight*(-1)+8))
//ns_marquee.top-=copyspeed
//else
//ns_marquee.top=parseInt(marqueeheight)+8
//}
}

//if (iedom||document.layers){
//with (document){
//if (iedom){
//write('<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">')
//write('<div id="iemarquee" style="position:absolute;left:0px;top:0px;width:100%;">')
//write('</div><div id="iemarquee2" style="position:absolute;left:0px;top:0px;width:100%;z-index:100;background:white;">')
//write('</div></div>')

//}
//else if (document.layers){
//write('<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee">')
//write('<layer name="ns_marquee2" width='+marqueewidth+' height='+marqueeheight+' left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>')
//write('</ilayer>')
//}
//}
//}


                            /* ************************ MARQWEE FOR IN THE PRESS **************************
                            Cross browser Marquee
                            */

                            //Specify the marquee's width (in pixels)
                            var marqueewidth1="100%"
                            //Specify the marquee's height
                            var marqueeheight1="100px"
                            //Specify the marquee's marquee speed (larger is faster 1-10)
                            var marqueespeed1=1
                            //Specify initial pause before scrolling in milliseconds
                            var initPause1=500
                            //Specify start with full1(1)or Empty(0) Marquee
                            var full1=1
                            //Pause marquee onMousever (0=no. 1=yes)?
                            var pauseit1=1
                            //Specify Break characters for IE as the two iterations
                            //of the marquee, if text, will be too close together in IE
                            //var iebreak1='<p></p>'
                            var iebreak1=''

                            //Specify the marquee's content
                            //Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):
                            var marqueecontent1=''

                            ////NO NEED TO EDIT BELOW THIS LINE////////////
                            var copyspeed1=marqueespeed1
                            var pausespeed1=(pauseit1==0)? copyspeed1: 0
                            var iedom1=document.all||document.getElementById
                            var actualheight1=''
                            var cross_marquee1, cross_marquee121, ns_marquee1

                            function populateitp(){
                            if (iedom1){
                            var lb=document.getElementById&&!document.all? '' : iebreak1
                            cross_marquee1=document.getElementById? document.getElementById("iemarquee1") : document.all.iemarquee1
                            cross_marquee121=document.getElementById? document.getElementById("iemarquee3") : document.all.iemarquee3
                            cross_marquee1.style.top=(full1==1)? '8px' : parseInt(marqueeheight1)+8+"px"
                            cross_marquee121.innerHTML=cross_marquee1.innerHTML=cross_marquee1.innerHTML+lb
                            actualheight1=cross_marquee1.offsetHeight
                            cross_marquee121.style.top=(parseInt(cross_marquee1.style.top)+actualheight1+8)+"px" //indicates following #1
                            }
//                            else if (document.layers){
//                            ns_marquee1=document.ns_marquee1.document.ns_marquee122
//                            ns_marquee1.top=parseInt(marqueeheight1)+8
//                            ns_marquee1.document.write(marqueecontent1)
//                            ns_marquee1.document.close()
//                            actualheight1=ns_marquee1.document.height
//                            }
                            setTimeout('lefttime=setInterval("scrollmarquee1()",40)',initPause1)
                            }


                            function scrollmarquee1(){

                            if (iedom1){
                            if (parseInt(cross_marquee1.style.top)<(actualheight1*(-1)+8))
                            cross_marquee1.style.top=(parseInt(cross_marquee121.style.top)+actualheight1+8)+"px"
                            if (parseInt(cross_marquee121.style.top)<(actualheight1*(-1)+8))
                            cross_marquee121.style.top=(parseInt(cross_marquee1.style.top)+actualheight1+8)+"px"
                            cross_marquee121.style.top=parseInt(cross_marquee121.style.top)-copyspeed1+"px"
                            cross_marquee1.style.top=parseInt(cross_marquee1.style.top)-copyspeed1+"px"
                            }

//                            else if (document.layers){
//                            if (ns_marquee1.top>(actualheight1*(-1)+8))
//                            ns_marquee1.top-=copyspeed1
//                            else
//                            ns_marquee1.top=parseInt(marqueeheight1)+8
//                            }
                            }

//                            if (iedom1||document.layers){
//                            with (document){
//                            if (iedom1){
//                            write('<div style="position:relative;width:'+marqueewidth1+';height:'+marqueeheight1+';overflow:hidden" onMouseover="copyspeed1=pausespeed1" onMouseout="copyspeed1=marqueespeed1">')
//                            write('<div id="iemarquee1" style="position:absolute;left:0px;top:0px;width:100%;">')
//                            write('</div><div id="iemarquee3" style="position:absolute;left:0px;top:0px;width:100%;z-index:100;">')
//                            write('</div></div>')

//                            }
//                            else if (document.layers){
//                            write('<ilayer width='+marqueewidth1+' height='+marqueeheight1+' name="ns_marquee1">')
//                            write('<layer name="ns_marquee122" width='+marqueewidth1+' height='+marqueeheight1+' left=0 top=0 onMouseover="copyspeed1=pausespeed1" onMouseout="copyspeed1=marqueespeed1"></layer>')
//                            write('</ilayer>')
//                            }
//                            }
//                            }


/* ************************ MARQWEE FOR TICKER **************************
                            Cross browser Marquee                             */
//Specify the marquee's width (in pixels)
var Tmarqueewidth="795px"
//Specify the marquee's height
var Tmarqueeheight="15px"
//Specify the marquee's marquee speed (larger is faster 1-10)
var Tmarqueespeed=2
//configure background color:
//var Tmarqueebgcolor="#DEFDD9"
//Pause marquee onMousever (0=no. 1=yes)?
var Tpauseit=1

//Specify the marquee's content (don't delete <nobr> tag)
//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):
//var Tmarqueecontent='<nobr><a href="#" class="scrolltext">Season"s Greetings from ProjectsToday.com!!! --- Advertise on ProjectsToday.com and reach the Indian Project fraternity in a very cost effective manner!!</a></nobr>'


////NO NEED TO EDIT BELOW THIS LINE////////////
Tmarqueespeed=(document.all)? Tmarqueespeed : Math.max(1, Tmarqueespeed-1) //slow speed down by 1 for NS
var Tcopyspeed=Tmarqueespeed
var Tpausespeed=(Tpauseit==0)? Tcopyspeed: 0
var Tiedom=document.all||document.getElementById
//if (Tiedom)
//document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+Tmarqueecontent+'</span>')
var Tactualwidth=''
var Tcross_marquee, Tns_marquee

function populateticker(){
if (Tiedom){
Tcross_marquee=document.getElementById? document.getElementById("Tiemarquee") : document.all.Tiemarquee
Tcross_marquee.style.left=parseInt(Tmarqueewidth)+8+"px"
//Tcross_marquee.innerHTML=Tmarqueecontent
Tcross_marquee.innerHTML=document.getElementById("temp").innerHTML
Tactualwidth=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth
}
//else if (document.layers){
//ns_marquee=document.ns_marquee.document.ns_marquee2
//ns_marquee.left=parseInt(marqueewidth)+8
//ns_marquee.document.write(marqueecontent)
//ns_marquee.document.close()
//actualwidth=ns_marquee.document.width
//}
lefttime=setInterval("Tscrollmarquee()",20)
}
//window.onload=populate

function Tscrollmarquee(){
if (Tiedom){
if (parseInt(Tcross_marquee.style.left)>(Tactualwidth*(-1)+8))
Tcross_marquee.style.left=parseInt(Tcross_marquee.style.left)-Tcopyspeed+"px"
else
Tcross_marquee.style.left=parseInt(Tmarqueewidth)+8+"px"

}
//else if (document.layers){
//if (ns_marquee.left>(actualwidth*(-1)+8))
//ns_marquee.left-=copyspeed
//else
//ns_marquee.left=parseInt(marqueewidth)+8
//}
}

//if (Tiedom||document.layers){
//with (document){
////document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
//if (Tiedom){
//write('<div style="position:relative;width:'+Tmarqueewidth+';height:'+Tmarqueeheight+';overflow:hidden">')
//write('<div style="position:absolute;width:'+Tmarqueewidth+';height:'+Tmarqueeheight+';" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">')
//write('<div id="Tiemarquee" style="position:absolute;left:0px;top:0px"></div>')
//write('</div></div>')
//}
////else if (document.layers){
////write('<ilayer width='+Tmarqueewidth+' height='+Tmarqueeheight+' name="ns_marquee" bgColor='+Tmarqueebgcolor+'>')
////write('<layer name="ns_marquee2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>')
////write('</ilayer>')
////}
////document.write('</td></table>')
//}
//}