//
// AUTO-GENERATED FILE - DO NOT EDIT!!!
//  9:11:07, Tue Oct 20, 2009 (GMT)
//
function c1(cell,idx){var c=document.getElementById("lcnc"+idx);cell.style.color="#0000FF";cell.style.textDecoration="underline";cell.style.backgroundColor="#FEFFEF";if(c!=null){c.style.backgroundColor="#FEFFEF";}c=document.getElementById("lcfv"+idx);if(c!=null){c.style.backgroundColor="#FEFFEF";}}function c2(cell,idx){var c=document.getElementById("lcnc"+idx);cell.style.color="#000000";cell.style.textDecoration="none";cell.style.backgroundColor="#EDEEDE";if(c!=null){c.style.backgroundColor="#EDEEDE";}c=document.getElementById("lcfv"+idx);if(c!=null){c.style.backgroundColor="#EDEEDE";}}function c3(cell,idx){var c=document.getElementById("lccc"+idx);c.style.color="#0000FF";c.style.textDecoration="underline";c.style.backgroundColor="#FEFFEF";cell.style.backgroundColor="#FEFFEF";c=document.getElementById("lcfv"+idx);c.style.backgroundColor="#FEFFEF";}function c4(cell, idx){var c=document.getElementById("lccc"+idx);c.style.color="#000000";c.style.textDecoration="none";c.style.backgroundColor="#EDEEDE";cell.style.backgroundColor="#EDEEDE";c=document.getElementById("lcfv"+idx);c.style.backgroundColor="#EDEEDE";}function c5(cell, idx){cell.style.backgroundColor="#FEFFEF";var c=document.getElementById("lccc"+idx);c.style.color="#0000FF";c.style.textDecoration="underline";c.style.backgroundColor="#FEFFEF";c=document.getElementById("lcnc"+idx);c.style.backgroundColor="#FEFFEF";}function c6(cell, idx){cell.style.backgroundColor="#EDEEDE";var c=document.getElementById("lccc"+idx);c.style.color="#000000";c.style.textDecoration="none";c.style.backgroundColor="#EDEEDE";c=document.getElementById("lcnc"+idx);c.style.backgroundColor="#EDEEDE";}function toggleHDTV(obj){obj.blur();if(isOptionsVisible()){return;}if(obj.checked){bHDTVOnlyFilter=true;countGridAction("HDTV", "On");}else{bHDTVOnlyFilter=false;countGridAction("HDTV", "Off");}showLoadingScreen();setTimeout("drawListings()", 1);}function doProviderChange(objSelect){if(objSelect.value=="0"){document.location="setup/localizeus.aspx?referrerid=0&returnurl=&regMode=0";objSelect.blur();return;}var iSID=parseInt(objSelect.value,10);if(iSID>0){paramServiceID=iSID;forceOptionsCreate=true;if((availChannels!=null)&&(selectChannels!=null)){availChannels.options.length=0;selectChannels.options.length=0;}objSelect.blur();reloadGrid();}}function doGenreChange(objSelect){if(objSelect.value!=6){var optsDiv=document.getElementById("GridOptsDiv");if(optsDiv!=null){if(optsDiv.style.display=="block"){doGridOpts();}}}switch(objSelect.value){case "0" : bUseKeywordFilter=false;optionFavChannels=false;optionGenreFilter=0;iLastGenreValue=0;countGridAction("FilterChange", "All Channels");break;case "1" : bUseKeywordFilter=false;var selList=objSelectedChannelsCombo;if(selList!=null){if(selList.length>0){optionFavChannels=true;optionGenreFilter=0;iLastGenreValue=1;countGridAction("FilterChange", "Favorite Channels");}else{objSelect.value=6;iLastGenreValue=0;doOptionsTab(1);objSelect.blur();return;}}break;case "2" : optionGenreFilter=2;bUseKeywordFilter=false;optionFavChannels=false;iLastGenreValue=2;objSelect.blur();countGridAction("FilterChange", "Movie Filter");break;case "3" : optionGenreFilter=3;bUseKeywordFilter=false;optionFavChannels=false;iLastGenreValue=3;objSelect.blur();countGridAction("FilterChange", "Sports Filter");break;case "4" : optionGenreFilter=4;bUseKeywordFilter=false;optionFavChannels=false;iLastGenreValue=4;objSelect.blur();countGridAction("FilterChange", "Family Filter");break;case "5" : optionGenreFilter=5;bUseKeywordFilter=false;optionFavChannels=false;iLastGenreValue=5;objSelect.blur();countGridAction("FilterChange", "PPV Filter");break;case "6" : optionGenreFilter=6;bUseKeywordFilter=false;optionFavChannels=false;iLastGenreValue=6;objSelect.blur();countGridAction("FilterChange", "News Filter");break;case "7":return;default: objSelect.value=iLastGenreValue;objSelect.blur();return;}if(bhasGridData){showLoadingScreen();setTimeout("drawListings()", 1);}else{reloadGrid();}}function doTimeSelectChange(select){if(select!=null){var strTime=select[select.selectedIndex].value;var hrmin=strTime.split(":");if(hrmin.length >=2){paramGridHour=hrmin[0];paramGridMinute=hrmin[1];}else{paramGridHour="-1";}countGridAction("TimeSelect", select[select.selectedIndex].text);}var theDiv=document.getElementById("TimeSelectDiv");if(theDiv!=null){theDiv.style.visibility="hidden";theDiv.style.display="none";}select.blur();if(optionDontUseGoButton){reloadGrid();}}function doArrowClick(nDirection, nMode){var timeDelta=iGridSpanMinutes*60*1000*nDirection;var strAction="ArrowClick";var strValue="";if(nMode==1){timeDelta=24*60*60*1000*nDirection;strAction="DblArrowClick";if(nDirection>0){strValue='Next Day';}else{strValue='Previous Day';}}else{strValue=(parseInt(timeDelta,10)/60000);}dtGridLocalStartTime.setTime(dtGridLocalStartTime.getTime()+timeDelta);paramGridYear=dtGridLocalStartTime.getFullYear();paramGridMonth=dtGridLocalStartTime.getMonth()+1;paramGridDay=dtGridLocalStartTime.getDate();paramGridHour=dtGridLocalStartTime.getHours();paramGridMinute=dtGridLocalStartTime.getMinutes();countGridAction(strAction, strValue);if(iSingleSourceID>0){loadSingleChannel();}else{reloadGrid();}}function doDateDropSelect(objDateSelect){var str=objDateSelect.value;var dds=str.split(",");paramGridYear=dds[0];paramGridMonth=dds[1];paramGridDay=dds[2];objDateSelect.blur();var strValue='';var iDays=objDateSelect.selectedIndex;switch(iDays){case 0: strValue="Yesterday";break;case 1: strValue="Today";break;case 2: strValue="Tomorrow";break;default: strValue=(iDays-1)+" days ahead";}countGridAction("DateSelect", strValue);if(optionDontUseGoButton){if(iSingleSourceID>0){loadSingleChannel();}else{reloadGrid();}}}function doOptionsTab(nTab){var optsDiv=document.getElementById("GridOptsDiv");var othrDiv=document.getElementById("FavChansDiv");if(nTab==1){othrDiv=document.getElementById("GridOptsDiv");optsDiv=document.getElementById("FavChansDiv");}var theGrid=document.getElementById("gridDiv");var theTBar=document.getElementById("timebarDiv");var grdtabs=document.getElementById("gridtabdiv");var legend=document.getElementById("gridLegendDiv");if((optsDiv !=null)&&(theGrid !=null)){if(optsDiv.style.display !="none"){if(iSingleSourceID<=0){disableTabs(false,true);}else{disableTabs(true,false);disableNavigation(false);}optsDiv.style.display="none";if(othrDiv !=null){othrDiv.style.display="none";}switch(iCurrentTab){case 7: if(divSearchResults!=null){divSearchResults.style.display="block"};disableNavigation(true);break;default: theGrid.style.display="block";legend.style.display="block";if(theTBar!=null){theTBar.style.display="block";}}countGridAction("Preferences", "Hide");}else{getFlyoverInfo(0);disableTabs(true,true);if(othrDiv !=null){othrDiv.style.display="none";}theGrid.style.display="none";if(divSearchResults!=null){divSearchResults.style.display="none"};legend.style.display="none";if(theTBar !=null){theTBar.style.display="none";}optsDiv.style.display="block";countGridAction("Preferences", "Show");}}}function doGridOpts(){var optsDiv=document.getElementById("GridOptsDiv");var theGrid=document.getElementById("gridDiv");var theTBar=document.getElementById("timebarDiv");var grdtabs=document.getElementById("gridtabdiv");var legend=document.getElementById("gridLegendDiv");if((optsDiv!=null)&&(theGrid!=null)){if(optsDiv.style.visibility=="visible"){disableTabs(false,true);optsDiv.style.display="none";optsDiv.style.visibility="hidden";if(theTBar!=null){theTBar.style.visibility="visible";theTBar.style.display="block";}theGrid.style.visibility="visible";theGrid.style.display="block";legend.style.visibility="visible";legend.style.display="block";countGridAction("Preferences", "Hide");}else{getFlyoverInfo(0);disableTabs(true,true);theGrid.style.visibility="hidden";theGrid.style.display="none";legend.style.visibility="hidden";legend.style.display="none";if(theTBar!=null){theTBar.style.visibility="hidden";theTBar.style.display="none";}optsDiv.style.visibility="visible";optsDiv.style.display="block";countGridAction("Preferences", "Show");}}}function doFixedHeightClick(){setOptionsChanged();var subOption=document.getElementById("selGridHeightPx");if(subOption!=null){subOption.disabled=false;}subOption=document.getElementById("selTimebarRepeat");if(subOption!=null){subOption.disabled=true;}subOption=document.getElementById("timeBarRepeatText");if(subOption!=null){subOption.style.color="#999999";}}function doScrollingGridClick(){setOptionsChanged();var subOption=document.getElementById("selTimebarRepeat");if(subOption!=null){subOption.disabled=false;}subOption=document.getElementById("timeBarRepeatText");if(subOption!=null){subOption.style.color="#000000";}subOption=document.getElementById("selGridHeightPx");if(subOption!=null){subOption.disabled=true;}}function doGoClick(btnGO){if(!isOptionsVisible()){if(optionGenreFilter==7){tabClick(null, 0);}else{if(iSingleSourceID>0){loadSingleChannel();}else{reloadGrid();}}}}function toggleGoButton(val){var btnGO=document.getElementById("btnGoButton");if(btnGO!=null){if(!val){btnGO.style.display="block";}else{btnGO.style.display="none";}}}
