thisSeason=6; ep=0; ssn=0;
epee=parseFloat(_pn.substring(2));

document.writeln('<style>form{ padding:0; margin:0; }</style>');

//JUST ADD NEW EPISODES TO THE BOTTOM OF THIS LIST
episodes=[
"My First Day",
"My Mentor",
"My Best Friend's Mistake",
"My Old Lady",
"My Two Dads",
"My Bad",
"My Super Ego",
"My 15 Minutes",
"My Day Off",
"My Nickname",
"My Own Personal Jesus",
"My Blind Date",
"My Balancing Act",
"My Drug Buddy",
"My Bed Banter and Beyond",
"My Heavy Meddle",
"My Student",
"My Tuscaloosa Heart",
"My Old Man",
"My Way Or The Highway",
"My Sacrificial Clam",
"My Occurrence",
"My Hero",
"My Last Day",
//SECOND SEASON
"My Overkill",
"My Nightingale",
"My Case Study",
"My Big Mouth",
"My New Coat",
"My Big Brother",
"My First Step",
"My Fruit Cups",
"My Lucky Day",
"My Monster",
"My Sex Buddy",
"My New Old Friend",
"My Philosophy",
"My Brother, My Keeper",
"His Story",
"My Karma",
"My Own Private Practice Guy",
"My T.C.W.",
"My Kingdom",
"My Interpretation",
"My Drama Queen",
"My Dream Job",
//THIRD SEASON
"My Own American Girl",
"My Journey",
"My White Whale",
"My Lucky Night",
"My Brother, Where Art Thou",
"My Advice To You",
"My Fifteen Seconds",
"My Friend the Doctor",
"My Dirty Secret",
"My Rule of Thumb",
"My Clean Break",
"My Catalyst",
"My Porcelain God",
"My Screwup",
"My Tormented Mentor",
"My Butterfly",
"My Moment of Un-Truth",
"His Story II",
"My Choosiest Choice of All",
"My Fault",
"My Self Examination",
"My Best Friend's Wedding",
//FOURTH SEASON
"My Old Friend's New Friend",
"My Office",
"My New Game",
"My First Kill",
"Her Story",
"My Cake",
"My Common Enemy",
"My Last Chance",
"My Malpractical Decision",
"My Female Trouble",
"My Unicorn",
"My Best Moment",
"My Ocardial Infarction",
"My Lucky Charm",
"My Hypocritical Oath",
"My Quarantine",
"My Life In Four Cameras",
"My Roommates",
"My Best Laid Plans",
"My Boss' Free Haircut",
"My Lips Are Sealed",
"My Big Move",
"My Faith in Humanity",
"My Drive-By",
"My Changing Ways",
//FIFTH SEASON
"My Intern's Eyes",
"My Rite of Passage",
"My Day at the Races",
"My Jiggly Ball",
"My New God",
"My Missed Perception",
"My Way Home",
"My Big Bird",
"My Half-Acre",
"Her Story II",
"My Buddy's Booty",
"My Cabbage",
"My Five Stages",
"My Own Personal Hell",
"My Extra Mile",
"My Bright Idea",
"My Chopped Liver",
"My New Suit",
"His Story III",
"My Lunch",
"My Fallen Idol",
"My D&eacute;j&agrave; Vu My D&eacute;j&agrave; Vu",
"My Urologist",
"My Transition",
//SIXTH SEASON
"My Mirror Image",
"My Best Friend's Baby's Baby...",
"My Coffee",
"My House",
"My Friend with Money",
"My Musical",
"His Story IV",
"My Road To Nowhere",
"My Perspective",
"My Therapeutic Month",
"My Night To Remember",
"My Fishbowl",
"My Scrubs",
"My No Good Reason"
];

seasons=[-1,1,25,47,69,94,118,episodes.length+1];
for (s=0; s<seasons.length; s++){ if (epee>=seasons[s] && epee<seasons[s+1]){ ssn=parseFloat(s); break; }}

function writeSeason(season){
if (season=='0' || season==null){
document.writeln('<option>Select a season</option>');
} else {
document.writeln('<option value="0">Select an episode</option>');
start=seasons[parseFloat(season)]-1; end=seasons[parseFloat(season)+1]-1;
for (s=start; s<end; s++){
document.writeln('<option value="'+addZero(s+1)+'">#'+((s-start)+1)+': "'+episodes[s]+'"</option>');
}}}

function writeSeasonNav(season){
if (season == '1'){
document.write('<a href="ep01.html"><img src="images/1_over.gif" width="23" height="36" alt="1" border="0"></a>');
} else {
document.write('<a href="ep01.html" onmouseover="roll(\'one\')" onmouseout="unroll(\'one\')"><img src="images/1.gif" width="23" height="36" alt="1" border="0" name="one"></a>');
}
if (season == '2'){
document.write('<a href="ep25.html"><img src="images/2_over.gif" width="29" height="36" alt="2" border="0"></a>');
} else {
document.write('<a href="ep25.html" onmouseover="roll(\'two\')" onmouseout="unroll(\'two\')"><img src="images/2.gif" width="29" height="36" alt="2" border="0" name="two"></a>');
}
if (season == '3'){
document.write('<a href="ep47.html"><img src="images/3_over.gif" width="27" height="36" alt="3" border="0"></a>');
} else {
document.write('<a href="ep47.html" onmouseover="roll(\'three\')" onmouseout="unroll(\'three\')"><img src="images/3.gif" width="27" height="36" alt="3" border="0" name="three"></a>');
}
if (season == '4'){
document.write('<a href="ep69.html"><img src="images/4_over.gif" width="27" height="36" alt="4" border="0"></a>');
} else {
document.write('<a href="ep69.html" onmouseover="roll(\'four\')" onmouseout="unroll(\'four\')"><img src="images/4.gif" width="27" height="36" alt="4" border="0" name="four"></a>');
}
if (season == '5'){
document.write('<a href="ep94.html"><img src="images/5_over.gif" width="27" height="36" alt="5" border="0"></a>');
} else {
document.write('<a href="ep94.html" onmouseover="roll(\'five\')" onmouseout="unroll(\'five\')"><img src="images/5.gif" width="27" height="36" alt="5" border="0" name="five"></a>');
}
if (season == '6'){
document.write('<a href="ep118.html"><img src="images/6_over.gif" width="27" height="36" alt="6" border="0"></a>');
} else {
document.write('<a href="ep118.html" onmouseover="roll(\'six\')" onmouseout="unroll(\'six\')"><img src="images/6.gif" width="27" height="36" alt="6" border="0" name="six"></a>');
}
}

function goEpisode(){ ep=document.guide.eps[document.guide.eps.selectedIndex].value; if (ep != '0'){ location.href='ep'+ep+'.html'; }}

function setDropdown(){
setit=0; for (i=0; i<document.guide.eps.length; i++){ if (ep==document.guide.eps[i].value) setit=i; }
document.guide.eps.selectedIndex=setit;
}

function writeBackNext(season){
ep=epee; bp=""; np="";
pp=parseFloat(ep); tpp=pp-1; tpp2=pp+1;
bp=addZero(tpp); np=addZero(tpp2);

if (ep != '01'){
document.write('<a href="ep'+bp+'.html" onmouseover="roll(\'back\')" onmouseout="unroll(\'back\')"><img src="images/episode/nav_back.gif" width="47" height="17" alt="" border="0" name="back"></a>');
} else {
document.write('<img src="images/episode/nav_back_dead.gif" width="47" height="17" alt="" border="0" name="back">');
}
if ((season == thisSeason) && (parseFloat(np)>parseFloat(document.forms["guide"].eps[document.forms["guide"].eps.length-1].value))){
document.write('<img src="images/episode/nav_next_dead.gif" width="48" height="17" alt="" border="0" name="next">');
} else {
document.write('<a href="ep'+np+'.html" onmouseover="roll(\'next\')" onmouseout="unroll(\'next\')"><img src="images/episode/nav_next.gif" width="48" height="17" alt="" border="0" name="next"></a>');
}
setDropdown();
}
