// already have: script language=javascript // Global Javascript stuff /////// ////////////////////////////////////////////////////////////////////////////////// window.defaultStatus="Take The Twenty - Beat the Bet"; ////////////////////////////////////////////////////////////////////////////////// /////// //The global variable vCurrentActiveLayer holds the index of the highlighted //layer, or zero if none are highlighted var vCurrentActiveLayer = 0; var vjWindowHeight ; var vjWindowWidth; //Another global variable to determine browser type. This is needed when showing //and hiding layers if(navigator.appName.indexOf("Netscape") == -1) { vCurrentBrowserType="Explorer" } else { vCurrentBrowserType="Netscape" } function changeImages() { document[changeImages.arguments[0]].src = eval(changeImages.arguments[1] + ".src"); } function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } } /////// Global Rollovers: imgMainNav_1_ON = newImage("Images/NavImages/imgTopNav_1_x.jpg"); imgMainNav_1_OFF = newImage("Images/NavImages/imgTopNav_1_u.jpg"); imgMainNav_2_ON = newImage("Images/NavImages/imgTopNav_2_x.jpg"); imgMainNav_2_OFF = newImage("Images/NavImages/imgTopNav_2_u.jpg"); imgSubNav_1_1_ON = newImage("Images/NavImages/imgSubNav_1_1_x.jpg"); imgSubNav_1_1_OFF = newImage("Images/NavImages/imgSubNav_1_1_u.jpg"); imgSubNav_1_2_ON = newImage("Images/NavImages/imgSubNav_1_2_x.jpg"); imgSubNav_1_2_OFF = newImage("Images/NavImages/imgSubNav_1_2_u.jpg"); imgSubNav_1_3_ON = newImage("Images/NavImages/imgSubNav_1_3_x.jpg"); imgSubNav_1_3_OFF = newImage("Images/NavImages/imgSubNav_1_3_u.jpg"); imgSubNav_2_1_ON = newImage("Images/NavImages/imgSubNav_2_1_x.jpg"); imgSubNav_2_1_OFF = newImage("Images/NavImages/imgSubNav_2_1_u.jpg"); imgSubNav_2_2_ON = newImage("Images/NavImages/imgSubNav_2_2_x.jpg"); imgSubNav_2_2_OFF = newImage("Images/NavImages/imgSubNav_2_2_u.jpg"); imgQuizLOGO_ON = newImage("Images/btnTake20_x.gif"); imgQuizLOGO_OFF = newImage("Images/btnTake20_u.gif"); imgLandShirt_ON = newImage("Images/imgLandShirt_x.gif"); imgLandShirt_OFF = newImage("Images/imgLandShirt_u.gif"); imgArrow_UP_ON = newImage("Images/Arrow_UP_x.jpg"); imgArrow_UP_OFF = newImage("Images/Arrow_UP_u.jpg"); imgArrow_DOWN_ON = newImage("Images/Arrow_DOWN_x.jpg"); imgArrow_DOWN_OFF = newImage("Images/Arrow_DOWN_u.jpg"); // Utility Functions: function isValidEmailAddress(str) { // check if gEmail has _@_._ format var i = str.indexOf('@'); var j = str.lastIndexOf('.'); // alert(i + " " + j) if (j > i && ((j != -1) && (i != -1))) { return true; } else { return false; } } function myGetLeftMarginSpacerWidth() { if(document.all) /// IExplorer { winW = document.body.offsetWidth; winH = document.body.offsetHeight; } else if(document.layers) /// Netscape { winW = window.innerWidth; winH = window.innerHeight; } else if(document.getElementById) /// Mozilla { winW = window.innerWidth; winH = window.innerHeight; } if(winW < 800) { //window.resizeTo(800,600); retval= 4 } else { retval= Math.round(((winW-800)/2)) } //curNav = "layerSubNav1"; //document.getElementById(curNav).style.visibility="visible" vjWindowHeight = winH; vjWindowWidth = winW; return retval; } function isValidEmailAddress(str) { // check if gEmail has _@_._ format var i = str.indexOf('@'); var j = str.lastIndexOf('.'); // alert(i + " " + j) if (j > i && ((j != -1) && (i != -1))) { return true; } else { return false; } } function IsNumeric(sText) { var ValidChars = "0123456789."; var IsNumber=true; var Char; for (i = 0; i < sText.length && IsNumber == true; i++) { Char = sText.charAt(i); if (ValidChars.indexOf(Char) == -1) { IsNumber = false; } } return IsNumber; } function openAndCenterWindow(urlToOpenInNewWindow,w,h) { var vjNeedToOpenNewWindow=1; //default: open new window // Does the window exist, or has it previously been opened? if(window.vjPopupWindow) { // Having once been opened, is it now closed? if(vjPopupWindow.closed) { vjNeedToOpenNewWindow=1 // closed, so open again } else { vjNeedToOpenNewWindow=0 // still open so set focus instead of open again } } else { vjNeedToOpenNewWindow=1 // never opened, so open new } if(vjNeedToOpenNewWindow == 0) { vjPopupWindow.focus() } else { var myScreenWidth = screen.width; var myScreenHeight= screen.height; var puWindowWidth = w; var puWindowHeight = h; var puLeft = (myScreenWidth-puWindowWidth)/2; var puTop = (myScreenHeight-puWindowHeight)/2; vjPopupWindow = window.open(urlToOpenInNewWindow,"myPopUpWindow", "width=" + puWindowWidth + ",height=" + puWindowHeight + " screenX=" + puLeft + ",left=" + puLeft + ",screenY=" + puTop + ",top=" + puTop + ",scrollbars=No,resizable=Yes") } } function openAndCenterWindow_WithToolbars(urlToOpenInNewWindow,w,h) { var vjNeedToOpenNewWindow=1; //default: open new window // Does the window exist, or has it previously been opened? if(window.vjPopupWindow) { // Having once been opened, is it now closed? if(vjPopupWindow.closed) { vjNeedToOpenNewWindow=1 // closed, so open again } else { vjNeedToOpenNewWindow=0 // still open so set focus instead of open again } } else { vjNeedToOpenNewWindow=1 // never opened, so open new } if(vjNeedToOpenNewWindow == 0) { vjPopupWindow.focus() } else { var myScreenWidth = screen.width; var myScreenHeight= screen.height; var puWindowWidth = (6*myScreenWidth)/8; var puWindowHeight = (8*myScreenHeight)/10; var puLeft = myScreenWidth/8; var puTop = myScreenHeight/10; vjPopupWindow = window.open(urlToOpenInNewWindow,"myPopUpWindow", "width=" + puWindowWidth + ",height=" + puWindowHeight + " screenX=" + puLeft + ",left=" + puLeft + ",screenY=" + puTop + ",top=" + puTop + ",scrollbars=No,menubar=Yes,resizable=Yes") } } function openAndCenterWindow_Portfolio(urlToOpenInNewWindow,w,h) { var vjNeedToOpenNewWindow=1; //default: open new window // Does the window exist, or has it previously been opened? if(window.vjPopupWindow) { // Having once been opened, is it now closed? if(vjPopupWindow.closed) { vjNeedToOpenNewWindow=1 // closed, so open again } else { vjNeedToOpenNewWindow=0 // still open so set focus instead of open again } } else { vjNeedToOpenNewWindow=1 // never opened, so open new } if(vjNeedToOpenNewWindow == 0) { vjPopupWindow.focus() } else { var myScreenWidth = screen.width; var myScreenHeight= screen.height; var puWindowWidth = (1*myScreenWidth)/4; var puWindowHeight = (1*myScreenHeight)/4; var puLeft = myScreenWidth/4; var puTop = myScreenHeight/4; vjPopupWindow = window.open(urlToOpenInNewWindow,"myPopUpWindow", "width=" + puWindowWidth + ",height=" + puWindowHeight + " screenX=" + puLeft + ",left=" + puLeft + ",screenY=" + puTop + ",top=" + puTop + ",scrollbars=No,menubar=Yes,resizable=Yes") } } /////////////////////////////////////////////////////////////////////// ///////////////////// Nav Utilities //////////////////////// /////////////////////////////////////////////////////////////////////// function toggleMainNav(vjNavIndex,vjOnOrOff) { if(vjOnOrOff == 1) { turnAllSubNavOff(); changeImages("imgMainNav_" + vjNavIndex,"imgMainNav_" + vjNavIndex + "_ON"); if( vjNavIndex==1 || vjNavIndex==2) { toggleSubNav(vjNavIndex); } } } /////////////////////////////////////////////////////////////////////// ///////////////////// Sub Nav Utilities //////////////////////// /////////////////////////////////////////////////////////////////////// //turns on the selected NAV and SubNav function turnOnSubNav(navIndex) { curNav = "layerSubNav" + navIndex; if(document.getElementById) document.getElementById(curNav).style.visibility="visible" else if(document.layers) document.layers[curNav].visibility="show" else if(document.all) document.all(curNav).style.visibility="visible" } //turns off the selected NAV and SubNav function turnOffSubNav(navIndex) { curNav = "layerSubNav" + navIndex; if(document.getElementById) document.getElementById(curNav).style.visibility='hidden' else if(document.layers) document.layers[curNav].visibility='hide' else if(document.all) document.all(curNav).style.visibility='hidden' } //switches highlighted layer. T function toggleSubNav(navIndex) { x=vCurrentActiveLayer; if(x > 0) { turnOffSubNav(x); } turnOnSubNav(navIndex); vCurrentActiveLayer = navIndex; } function turnAllSubNavOff() { x=vCurrentActiveLayer; if(x > 0) { turnOffSubNav(x); } vCurrentActiveLayer = 0; changeImages('imgMainNav_1','imgMainNav_1_OFF'); if(vjPrimaryNavLevel > 0) { changeImages("imgMainNav_" + vjPrimaryNavLevel,"imgMainNav_" + vjPrimaryNavLevel + "_ON"); } } //////////////////////////// ///// Scrolling Scripts: /////////////////////////////////////////////// var sheight=0; var sspeed=0; var restart=1; var wholemessage="
I’m a college student in Minnesota, and I lost my shirt quite a few times when I used to gamble.
My gambling problem didn’t start because I was a bad gambler. I’ve been playing poker since eighth grade, so I knew what I was doing.
I won lots of money from guys in the dorms, but the stakes were pretty low. On a good night, I’d win maybe $30 or $40. On a bad night, I’d drop about $20, tops.
" //wholemessage=wholemessage + "My problem really began when I started going to casinos with my friends. We’d hit the buffet, go play blackjack and video poker for a couple of hours (or until we ran out of money), then come home. But one night, I snuck out of the dorm and drove back to the casino by myself. I stayed there all night, but at least I won back what I lost earlier.
" //wholemessage=wholemessage + "Before I knew it, I was going to a couple of different casinos several times a week. I started skipping classes… overslept a few lectures. I rarely hung out with the guys anymore. And my girlfriend dumped me. Before the end of my freshman year, I managed to lose all of my savings plus the money my parents sent me for the summer. I had no money left to pay for rent, food or anything else. So I sold my guitar, CDs and other stuff. Thinking I was always just one big win away from fixing everything, I took cash advances on my “emergencies only” credit card until I maxed it out.
" //wholemessage=wholemessage + "Now don’t get me wrong, I had some big wins, too. I had some $1000+ nights, and one time I was up almost four grand. It’s just that I didn’t know when to stop when things weren’t going my way. I found out the hard way that gambling isn’t a matter of skill. When you win, it’s dumb luck. And when you lose, well, that’s just the casino’s built-in house advantage. I also realized that I couldn’t control my gambling by willpower alone. That’s when I lucked out and found help by calling