﻿

/***********************************************
* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var delayb4scroll=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?

////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualheight=''

function scrollmarquee(){
if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"
else
cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
}

function initializemarquee()
{
if(document.getElementById("vmarquee") == null){return;}
if(document.getElementById("marqueecontainer") == null){return;}

cross_marquee=document.getElementById("vmarquee")
cross_marquee.style.top=0
marqueeheight=document.getElementById("marqueecontainer").offsetHeight
actualheight=cross_marquee.offsetHeight
//if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1)
//{ //if Opera or Netscape 7x, add scrollbars to scroll and exit
//cross_marquee.style.height=marqueeheight+"px"
//cross_marquee.style.overflow="scroll"
///return
///}
setTimeout('lefttime=setInterval("scrollmarquee()",40)', delayb4scroll)
}

if (window.addEventListener)
window.addEventListener("load", initializemarquee, false)
else if (window.attachEvent)
window.attachEvent("onload", initializemarquee)
else if (document.getElementById)
window.onload=initializemarquee

// JScript File
var pWindow = null;
function openNewWindowf(guid,month,day,year)
{

var width = 600;
var height = 300;

if(pWindow)
{
   pWindow.close();
   pWindow = null;
}

var left = (DOMWindowGetInnerWidth() /2) - (width / 2);
var top = (DOMWindowGetInnerHeight() /2) - (height / 2);
pWindow = window.open("_view_event.aspx?guid=" + guid + "&m=" + month + "&d=" + day + "&y=" + year,'',"toolbar=no,dependant=yes, fullscreen=no, location=no, directories=no, status=yes, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no, width="+width+", height="+height+", left=" + left + ", top=" + top +"");

if (!pWindow)
{

    alert('Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking in order to fully utilize this site.');

}
else
{
pWindow.focus();
}

}

function DOMWindowGetInnerWidth()
{
    if (document.all)           return document.body.clientWidth - 1;
    else if (document.getElementById)   return window.innerWidth - 5;
    else if (document.layers)           return window.innerWidth - 5;
    else                                return 800;
}

function DOMWindowGetInnerHeight()
{
    if (document.all)          return document.body.clientHeight - 1;
    else if (document.getElementById)  return window.innerHeight - 5;
    else if (document.layers)          return window.innerHeight - 5;
    else                                return 600;
}

function insertAppLink()
{
    if(document.getElementById('appDiv') != null)
    {
        document.getElementById('appDiv').innerHTML = "<a href = \"http://www.web-admin-online.com/app/LakeJovita/publish.htm\" target = \"_blank\">&nbsp;&nbsp;&nbsp;</a>";
    }
}




