//Pop-it menu- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use


var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT
linkset[1]='<div style="background-color:black;color:white;"><b>Early Position</b></div>The first, second and third people to act after the big blind (in a 10 handed game).';
linkset[2]='<div style="background-color:black;color:white;"><b>Middle Position</b></div>The fourth, fifth and sixth people to act after the big blind (in a 10 handed game).';
linkset[3]='<div style="background-color:black;color:white;"><b>Late Position</b></div>The seventh and eighth people(usually the button and the person to their right) to act after the big blind (in a 10 handed game).';
linkset[4]='<div style="background-color:black;color:white;"><b>Small Blind</b></div>The person immediately to the left of the dealer "button" prior to the cards being dealt.';
linkset[5]='<div style="background-color:black;color:white;"><b>Big Blind</b></div>The player sitting in the second position, clockwise from the dealer, before any cards are dealt.';
linkset[6]='<div style="background-color:black;color:white;"><b>Total Earnings</b></div>Total amount won/lost.';
linkset[7]='<div style="background-color:black;color:white;"><b>Avg Earnings </b></div>Average earnings per session.';
linkset[8]='<div style="background-color:black;color:white;"><b>Earnings STD </b></div>Earnings Standard Deviation of sessions...fluctuation of sessions.';
linkset[9]='<div style="background-color:black;color:white;"><b>Win Rate (TABLE HOURS)</b></div>Total win rate per table hour of play. ie. If you play 3 tables at once online for 1 hour, it is counted as 3 hours.';
linkset[10]='<div style="background-color:black;color:white;"><b>Avg Win Rate </b></div>Average win rate per session.';
linkset[11]='<div style="background-color:black;color:white;"><b>Win Rate STD </b></div>Win Rate Standard Deviation of sessions...fluctuation of win rate.';
linkset[12]='<div style="background-color:black;color:white;"><b>Total Sessions </b></div>Total sessions played';
linkset[13]='<div style="background-color:black;color:white;"><b>Total Hours</b></div>Total hours played';
linkset[14]='<div style="background-color:black;color:white;"><b>Avg Hours / Session</b></div>Average hours played per session';
linkset[15]='<div style="background-color:black;color:white;"><b>Return On Investment</b></div>% you receive for each investment (buy in).<br>EX. Given a 10% ROI, you should expect to get back $1.10 for each $1 you invest.';
linkset[16]='<div style="background-color:black;color:white;"><b>Total Buy In</b></div>Total amount you have bought into your sessions.';
linkset[17]='<div style="background-color:black;color:white;"><b>Total Cash Out</b></div>Total amount you have cashed out of your sessions.';
linkset[18]='<div style="background-color:black;color:white;"><b>In The Money</b></div>% of times you placed in the money in tournaments';
linkset[19]='<div style="background-color:black;color:white;"><b>Return On Investment</b></div>% you receive for each investment(tournament buy in).<br>EX. Given a 30% ROI, you should expect to get back $1.30 for each $1 you invest.';
linkset[20]='<div style="background-color:black;color:white;"><b>AvgUnitROI / Unit STD</b></div>Unit = 1 buy in. <b>Average Unit Return On Investment</b> - If you play a $20+2, your Buy in is $22. $22/$22 = 1 unit Buy in. If you have Cash out of $100, that is a $100/22 = 4.55 unit Cash out. Average is used because each buy-in level has it\'s own unit.<br><b>Unit STD</b> - the standard deviation of the unit return.';
linkset[21]='<div style="background-color:black;color:white;"><b>Buy In (# of Tournaments)</b></div>Buy in amount for each tournament and Number of Tournaments played at that buy in.';
linkset[22]='<div style="background-color:black;color:white;"><b>Return</b></div>Total amount won or lost.';
linkset[23]='<div style="background-color:black;color:white;"><b>Average Finish</b></div>Your average placement in tournaments';
linkset[24]='<div style="background-color:black;color:white;"><b>Players (# of Tournaments)</b></div>Range of players for each tournament and Number of Tournaments played in this range of players.';
linkset[25]='<div style="background-color:black;color:white;"><b>Date / Start Time</b></div>Enter the date and start time of your session.';
linkset[26]='<div style="background-color:black;color:white;"><b>Location</b></div>Select the location of your session.  If you can\'t find your location in the list, click on <i>Add New Location</i>.';
linkset[27]='<div style="background-color:black;color:white;"><b>Game Type</b></div>Select the game you played during your session.  If you can\'t find your game in the list, click on <i>Add New Game Type</i>. If you played in a ring game, select the Ring button. If you played in a tournament, select the Tournament button and then enter your placement in the tournament in the box provided and the type of tournament played.';
linkset[28]='<div style="background-color:black;color:white;"><b># of Players</b></div>Enter the number of players at your table during this session. If you played a tournament, enter the total number of tournament participants.';
linkset[29]='<div style="background-color:black;color:white;"><b>Structure</b></div>Select the betting structure of your session.  If you can\'t find your betting structure in the list, click on <i>Add New Structure</i>.';
linkset[30]='<div style="background-color:black;color:white;"><b>Limits</b></div>Select the limit played during your session.  If you can\'t find your limit in the list, click on <i>Add New Limit</i>.';
linkset[31]='<div style="background-color:black;color:white;"><b>Play Level</b></div>Select the level of play of your session.  If you can\'t find the level of play from your session in the list, click on <i>Add New Play Level</i>.';
linkset[32]='<div style="background-color:black;color:white;"><b>Time Spent</b></div>Enter the total hours and minutes you spent during this session.';
linkset[33]='<div style="background-color:black;color:white;"><b>Session Currency</b></div>Select the currency used during your session.';
linkset[34]='<div style="background-color:black;color:white;"><b>Custom Exchange Rate</b></div>Enter a custom exchange rate for your session. Amounts will be divided by this number to calculate the exchange rate.  Leave this field blank or with a zero (0) to ignore it.';
linkset[35]='<div style="background-color:black;color:white;"><b>Buy In</b></div>Enter your total buy in for this session.';
linkset[36]='<div style="background-color:black;color:white;"><b>Cash Out</b></div>Enter the amount you cashed out from this session.';
linkset[37]='<div style="background-color:black;color:white;"><b>Comments</b></div>Enter any comments for your session.';
linkset[38]='Poker Site';
linkset[39]='Your Hand: <br><b>AA</b> means any 2 aces <br><b>AJo</b> means any ace and jack that are NOT of the same suited<br><b>AJs</b> means any ace and jack of the same suit';
linkset[40]='Table Type:<br><b>Tight</b> - less than 50% of the players are seeing the flop.<br><b>Loose</b> - more than 50% of the players are seeing the flop.';
linkset[41]='<div style="background-color:black;color:white;"><b># of Tables</b></div>Select the number of tables you played during this session. If you combine your table stats, select the number of tables...otherwise, leave this option set to 1.';
linkset[42]='<div style="background-color:black;color:white;"><b>Tournament Type</b></div>Type of Tournament played and Number of Tournaments played in this Type.';
linkset[43]='<div style="background-color:black;color:white;"><b>Average Win Rate (ACTUAL)</b></div>Average win rate per ACTUAL hour of play. ie. If you play 3 tables at once online for 1 hour, it is counted as 1 hour.';
linkset[44]='<div style="background-color:black;color:white;"><b>Average Big Bets per Hour</b></div>Average number of big bets won/lost per hour. This stat only uses limit sessions.  ie. At a fixed limit 2/4 game, $4 is considered the Big Bet.';
linkset[45]='<div style="background-color:black;color:white;"><b>Current Streak</b></div>Your current win/loss streak, number of wins/losses and the money won/lost.';
linkset[46]='<div style="background-color:black;color:white;"><b>Session Template</b></div>Session Templates can be used to quickly enter standard sessions. Example: <i>PokerStars $5 SnG - 1st place</i>...this would be a Sit-n-Go session from PokerStars, specifically, a $5 buyin where I finished 1st.';

////No need to edit beyond here

var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
var ns6=document.getElementById&&!document.all
var ns4=document.layers

function showmenu(e,which){

if (!document.all&&!document.getElementById&&!document.layers)
return

clearhidemenu()

menuobj=ie4? document.all.popmenu : ns6? document.getElementById("popmenu") : ns4? document.popmenu : ""
menuobj.thestyle=(ie4||ns6)? menuobj.style : menuobj

if (ie4||ns6)
menuobj.innerHTML=which
else{
menuobj.document.write('<layer name=gui bgColor=#ffffff width=165 onmouseover="clearhidemenu()" onmouseout="hidemenu()">'+which+'</layer>')
menuobj.document.close()
}

menuobj.contentwidth=(ie4||ns6)? menuobj.offsetWidth : menuobj.document.gui.document.width
menuobj.contentheight=(ie4||ns6)? menuobj.offsetHeight : menuobj.document.gui.document.height
eventX=ie4? event.clientX : ns6? e.clientX : e.x
eventY=ie4? event.clientY : ns6? e.clientY : e.y

eventX+=-170;
//Find out how close the mouse is to the corner of the window
var rightedge=ie4? document.body.clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie4? document.body.clientHeight-eventY : window.innerHeight-eventY

//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.thestyle.left=ie4? document.body.scrollLeft+eventX-menuobj.contentwidth : ns6? window.pageXOffset+eventX-menuobj.contentwidth : eventX-menuobj.contentwidth
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.thestyle.left=ie4? document.body.scrollLeft+eventX : ns6? window.pageXOffset+eventX : eventX

//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.thestyle.top=ie4? document.body.scrollTop+eventY-menuobj.contentheight : ns6? window.pageYOffset+eventY-menuobj.contentheight : eventY-menuobj.contentheight
else
menuobj.thestyle.top=ie4? document.body.scrollTop+event.clientY : ns6? window.pageYOffset+eventY : eventY
menuobj.thestyle.visibility="visible"
return false
}

function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.thestyle.visibility=(ie4||ns6)? "hidden" : "hide"
}

function dynamichide(e){
if (ie4&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
if (ie4||ns6||ns4)
delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

function highlightmenu(e,state){
if (document.all)
source_el=event.srcElement
else if (document.getElementById)
source_el=e.target
if (source_el.className=="menuitems"){
source_el.id=(state=="on")? "mouseoverstyle" : ""
}
else{
while(source_el.id!="popmenu"){
source_el=document.getElementById? source_el.parentNode : source_el.parentElement
if (source_el.className=="menuitems"){
source_el.id=(state=="on")? "mouseoverstyle" : ""
}
}
}
}

if (ie4||ns6)
document.onclick=hidemenu
