function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_jumpMenuGo(selName,targ,restore){ //v3.0
  var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
}









//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="Function Disabled!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}











// Ticker startup
function startTicker()
{
	// Define run time values
	theCurrentStory     = -1;
	theCurrentLength    = 0;
	// Locate base objects
	if (document.getElementById) {	
		    theAnchorObject     = document.getElementById("tickerAnchor");
			runTheTicker();   	
		 }
	else {
            document.write("<style>.ticki{display:none;}.ticko{border:0px; padding:0px;}</style>");
            return true;
	}
}
// Ticker main run loop
function runTheTicker()
{
	var myTimeout;  
	// Go for the next story data block
	if(theCurrentLength == 0)
	{
		theCurrentStory++;
		theCurrentStory      = theCurrentStory % theItemCount;
		theStorySummary      = theSummaries[theCurrentStory].replace(/&quot;/g,'"');		
		theTargetLink        = theSiteLinks[theCurrentStory];
		theAnchorObject.href = theTargetLink;
		theTargetWindow		 = theLinkTargets[theCurrentStory];
		theAnchorObject.target = theTargetWindow;
		thePrefix 	     = "<span class=\"tickls\">" + theLeadString + "</span>";
	}
	// Stuff the current ticker text into the anchor
	theAnchorObject.innerHTML = thePrefix + 
	theStorySummary.substring(0,theCurrentLength) + whatWidget();
	// Modify the length for the substring and define the timer
	if(theCurrentLength != theStorySummary.length)
	{
		theCurrentLength++;
		myTimeout = theCharacterTimeout;
	}
	else
	{
		theCurrentLength = 0;
		myTimeout = theStoryTimeout;
	}
	// Call up the next cycle of the ticker
	setTimeout("runTheTicker()", myTimeout);
}
// Widget generator
function whatWidget()
{
	if(theCurrentLength == theStorySummary.length)
	{
		return theWidgetNone;
	}

	if((theCurrentLength % 2) == 1)
	{
		return theWidgetOne;
	}
	else
	{
		return theWidgetTwo;
	}
}











//theCharacterTimeout is the speed of the characters and theStoryTimeout is the pause time

	var theCharacterTimeout = 90;
	var theStoryTimeout     = 5000;
	var theWidgetOne        = "_";
	var theWidgetTwo        = "_";
	var theWidgetNone       = "";
	var theLeadString       = "";

	var theSummaries = new Array();
	var theSiteLinks = new Array();
	var theLinkTargets = new Array();

	var theItemCount = 3;





//theSummaries[0] ="SCEL offices and Claims Centers will be closed Monday, May 31, 2010, for Memorial Day.";
//theSiteLinks[0] = "/winners/NewsDisplayArticle.asp?ID=1357"
//theLinkTargets[0] = "_blank";

//theSummaries[0] ="Invitation for Proposals for a Demographic Study";
//theSiteLinks[0] = "/lottery/invitation.aspx"
//theLinkTargets[0] = "_blank";

//theSummaries[0] ="No ticket sales or validations held on Tuesday, June 8, due to election primaries.";
//theSiteLinks[0] = "/winners/NewsDisplayArticle.asp?ID=1375"
//theLinkTargets[0] = "_blank";

//theSummaries[0] ="The State Newspaper incorrectly reported the Midday drawings for Monday, 6/21/2010.";
//theSiteLinks[0] = "/games2/3winningnumbers_pick4.asp"
//theLinkTargets[0] = "_blank";

//theSummaries[0] ="SCEL offices and Claims Centers will be closed Monday, July 5, 2010 for Independence Day.";
//theSiteLinks[0] = "/winners/NewsDisplayArticle.asp?ID=1386"
//theLinkTargets[0] = "_blank";

theSummaries[0] ="SCEL Partners With WMBF-TV and WCSC/Live 5 to Air Nightly Drawings. ";
theSiteLinks[0] = "/games2/drawpartner.aspx"
theLinkTargets[0] = "_blank";

theSummaries[1] ="Players and Education Win Big: Click Here for the Latest Lottery News!";
theSiteLinks[1] = "/winners/news.asp"
theLinkTargets[1] = "_blank";

theSummaries[2] ="Get a Second Chance to Win: Click Here for Ticket Promotions!";
theSiteLinks[2] = "http://www.sceducationlottery.com/promotions/promotions.aspx"
theLinkTargets[2] = "_blank";






/*
function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });

    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });

    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

function mycarousel_itemVisibleInCallback(carousel, item, i, state, evt)
{
    // The index() method calculates the index from a
    // given index who is out of the actual item range.
    var idx = carousel.index(i, mycarousel_itemList.length);
    carousel.add(i, mycarousel_getItemHTML(mycarousel_itemList[idx - 1]));
};

function mycarousel_itemVisibleOutCallback(carousel, item, i, state, evt)
{
    carousel.remove(i);
};

jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        auto: 2,
		size: 4,
		scroll: 1,
        wrap: 'last',
        initCallback: mycarousel_initCallback
//        wrap: 'circular', 
//        itemVisibleInCallback: {onBeforeAnimation: mycarousel_itemVisibleInCallback},
//        itemVisibleOutCallback: {onAfterAnimation: mycarousel_itemVisibleOutCallback}
    });
});
*/




