//EN İyilier İçin function jsToas(){ try{ document.getElementById("goal").playFnc(); }catch(ex){} } function getHOF(type, stype, anasayfa) { var div; if (!anasayfa) { var table = document.getElementById("buttonsTable"); var buttons = table.getElementsByTagName("img"); for (i = 0; i < buttons.length; i++) { if (buttons[i].src.lastIndexOf("2") > -1) { buttons[i].src = buttons[i].src.replace("2", ""); } } var imgsrc = document.getElementById("hofbutton" + type + "" + stype).src; var newimgsrccc = imgsrc.substring(0, imgsrc.lastIndexOf(".")) + "2.gif"; document.getElementById("hofbutton" + type + "" + stype).src = newimgsrccc; div=divhof; }else { div=eval("divhof"+type); } function handleSuccessHOF(o) { if (o.responseText !== undefined) { div.innerHTML = o.responseText; } } function handleFailureHOF(o) { if (o.responseText !== undefined) { div.innerHTML = ""; } } var url = "/iddaaAff/iddaa-en-iyiler?type=" + type; if (stype) url += "&stype=" + stype; if (anasayfa && anasayfa == 'y') url += "&anasayfa=y"; var request = YAHOO.util.Connect.asyncRequest('POST', url, { timeout :25000, success :handleSuccessHOF, failure :handleFailureHOF }, "dumpar=dumpar"); } //----------------------------------------------------------------------------------------------------- //Not defterim İçin function deleteCoupon2(couponid) { document.deleteCoupon.coupon_id.value = couponid; document.deleteCoupon.submit(); } function showCouponDetails(couponid) { var url = 'kupon-kaydet?action=showCoupon&coupon_id=' + couponid; Lightview.show( { href :url, rel :'ajax', options : { topclose :true, autosize :true, keyboard :false, overlayClose :false, width :780, height :400 } }); } function playCoupon2(couponstring,misli,sistem) { if (parent.document.playCoupon) { parent.document.playCoupon.sonuc.value = couponstring; parent.document.playCoupon.sistem.value = sistem; parent.document.playCoupon.misli.value = misli; parent.document.playCoupon.submit(); return false; } else { document.playCoupon.sonuc.value = couponstring; parent.document.playCoupon.sistem.value = sistem; parent.document.playCoupon.misli.value = misli; document.playCoupon.submit(); return false; } } //-------------------------------------------------------------------------------------------------Kuopn Kaydet İçin var handleSuccessSaveCoupon = function(o) { if (o.responseText !== undefined) { document.getElementById('saveCouponDiv').innerHTML = o.responseText; document.getElementById('saveCouponDiv').setAttribute("class","fntBold coRed"); } } var handleFailureSaveCoupon = function(o) { if (o.responseText !== undefined) { document.getElementById('saveCouponDiv').innerHTML = ""; } } var callbackSaveCoupon = { timeout :25000, success :handleSuccessSaveCoupon, failure :handleFailureSaveCoupon }; function SaveCoupon(sonuc, misli, sistem, kazanc, kolon) { var kuponname = document.getElementById("coupon_name").value; if (kuponname.length >= 20) kuponname = kuponname.substring(0, 20); var surl = "kupon-kaydet?"; var query = "action=saveCoupon&sonuc=" + encodeURIComponent(sonuc) + "&misli=" + misli + "&sistem=" + sistem + "&kazanc=" + kazanc + "&name=" + encodeURIComponent(kuponname) + "&kolon=" + kolon; var request = YAHOO.util.Connect.asyncRequest('POST', surl, callbackSaveCoupon, query); return false; } //------------------------------------------------------------------------------------------------------ //Bahis Yap Sayafalrındaki Formu Degistirmek için (Lige Gore Tarihe Gore sıralama olayları için ) function changeOptions (eventType,leages,dates){ var sortType=document.getElementById("sortType").value; var optionsSelect=document.getElementById("options"); optionsSelect.options; for(i=optionsSelect.options.length;i>=0;i--){ optionsSelect.remove(0); } var tumuoption = document.createElement('option'); tumuoption.text = ' Tümü '; tumuoption.value = '-1'; try { document.getElementById("options").add(tumuoption, document.getElementById("options").options[0]); // standards compliant; doesn't work in IE } catch (ex) { document.getElementById("options").add(tumuoption, 0); // IE only } //changeOptions('{UAL=UEFA Avrupa Ligi, SE1=İsveç Birinci Ligi}','[Thu Sep 17 00:00:00 EEST 2009]') var optionsArray=new Array(); if (sortType =='matchDate'){ leages=dates.replace("{","").replace("}",""); optionsArray=leages.split(","); var datesArray=new Array(); for (i=0;i-1){ setTimeout("jsToas()",5500); } } } var handleFailureCanliSonuclarMaclistesi = function(o) { if (o.responseText !== undefined) { document.getElementById("contentCell").innerHTML = ""; } } var callbackCanliSonuclarMaclistesi = { timeout :25000, success :handleSuccessCanliSonuclarMaclistesi, failure :handleFailureCanliSonuclarMaclistesi }; function getCanliSonuclar(eventType, countriesFlag) { var url = "canli-sonuc-liste?eventType=" + eventType; var allLeages = document.getElementsByName("leages"); var tempLig = ""; if (allLeages.length > 0) { for (i = 0; i < allLeages.length; i++) { if (allLeages[i].checked) tempLig += allLeages[i].value + ","; } } leage = tempLig; var lig = leage; var st = status; var sty = sortType; url += "&leage=" + lig + "&status=" + st + "&sortType=" + sty; try{ if(countriesFlag){ getCanliSonuclarUlkeler(eventType); } }catch(ed){} var request = YAHOO.util.Connect.asyncRequest('POST', url, callbackCanliSonuclarMaclistesi, null); if(!countriesFlag){ setTimeout("resfreshIframe();",500); } } function resfreshIframe(){ setTimeout("window.parent.frames['frame1'].location.reload(true);",1000); } function getCanliSonuclarbySortType(eventType, sortty) { var url = "canli-sonuc-liste?eventType=" + eventType; var lig = leage; var st = status; sortType = sortty; url += "&leage=" + lig + "&status=" + st + "&sortType=" + sortty; var request = YAHOO.util.Connect.asyncRequest('POST', url, callbackCanliSonuclarMaclistesi, null); setTimeout("resfreshIframe();",500); } function getCanliSonuclarbyStatus(eventType, st) { var url = "canli-sonuc-liste?eventType=" + eventType; var lig = leage; status = st; var sortty = sortType; url += "&leage=" + lig + "&status=" + st + "&sortType=" + sortty; var request = YAHOO.util.Connect.asyncRequest('POST', url, callbackCanliSonuclarMaclistesi, null); setTimeout("resfreshIframe();",500); } var handleSuccessLiveScoreCountries = function(o) { if (o.responseText !== undefined) { try{ document.getElementById('liveScoreCountries').innerHTML = o.responseText; }catch(exx){ } } } var handleFailureLiveScoreCountries = function(o) { if (o.responseText !== undefined) { document.getElementById('liveScoreCountries').innerHTML = ""; } } function getCanliSonuclarUlkeler(eventType) { posted = "eventType=" + eventType; var request = YAHOO.util.Connect.asyncRequest('POST', "canli-sonuclar-ulkeler", { timeout :25000, success :handleSuccessLiveScoreCountries, failure :handleFailureLiveScoreCountries }, posted); } //---------------------------------------------------------------------------------------------------------------------- function changeOzelEtkinlik(eventType) { var eventCode = document.getElementById("eventCode").value; var url = "iddaaAff/iddaa-liste?eventType=" + eventType + "&eventCode=" + eventCode; document.getElementById("maclistesi").src = url; } //Kupona maç ekler function addMatchToCoupon(el,eventType, mackodu, macadi, oran, MBS, tercih, gametype,parentdanmi) { if (parentdanmi) { addRowToTable(eventType,'genis', el, mackodu, macadi, oran, gametype, MBS, tercih, 0) } else{ parent.addRowToTable(eventType,'genis', el, mackodu, macadi, oran, gametype, MBS, tercih, 0) } } //Kupona ozel etkinlik maçları ekler. function addSpecialGames(el,eventType, mackodu, macadi, oran, gameType, MBS, tercih, eventCode, eventdesc) { parent.addRowToTable(eventType,'genis', el, mackodu, macadi, oran, gameType, MBS, tercih, 0, eventCode, eventdesc) } function addMatchToCouponAllBets(el,eventType, mackodu, macadi, oran, MBS, tercih, gametype) { parent.insertDigerBahis(eventType,el, mackodu, macadi, oran, MBS, tercih, gametype); } //Ana sayfa icin Kuponu arkadasına gonderır. function sendCouponToFriend(refreshBackGroundonClose) { if (errorCheck()) { var sistem = sistemiHazirla(); var sonuc = kuponuOnayaHazirla(); var misli = document.myForm.multiplier.value; var oran = document.getElementById("totalOdds").value; var atc = oran; var kolon = document.getElementById("kolonCount").value; var url = 'kupon-gonder?source=1&action=sendCouponToFriend&sonuc=' + encodeURIComponent(sonuc) + "&misli=" + misli + "&sistem=" + sistem + "&oran=" + atc + "&kolon=" + kolon; if (refreshBackGroundonClose) { url += "&refreshBackGroundonClose=true"; } Lightview.show( { href :url, rel :'iframe', options : { topclose :true, autosize :true, keyboard :false, overlayClose :false, width :759, height :260 } }); } } function showMatchComments(matchid){ var url="iddaaAff/mac-yorum?matchid="+matchid; window.parent.Lightview.show( { href :url, rel :'iframe', options : { topclose :true, autosize :true, keyboard :false, overlayClose :false, width :890, height :490 } }); } function sendSavedCouponToFriend(coupon_id) { var url = "kupon-gonder?action=sendCouponToFriend&"; url += "scoupon_id=" + coupon_id; Lightview.show( { href :url, rel :'iframe', options : { topclose :true, autosize :true, keyboard :false, overlayClose :false, width :759, height :260 } }); } function showMatchDetails(matchid) { //window.parent.Lightview.show({href:'', rel:'iframe', options:{topclose:true, width:739, height:397}}); var url = "iddaaAff/iddaa-liste?matchid="+matchid; window.parent.Lightview.show( { href :url, rel :'iframe', options:{ topclose:true, width:739, height:397} }); } /** * Recolors the selected matches * @param genismi * @param gameType */ function ReColorSelectedMatches(genismi) { var myColor = '#aadf68'; var framexz = document.getElementById("maclistesi"); if (!framexz) framexz = window.parent.document.getElementById("maclistesi"); if (!framexz) return; var maclistesi; maclistesi = getMaclistesi(); if (maclistesi != null && maclistesi.length) { for (ki = 0; ki < maclistesi.length; ki++) { var match = maclistesi[ki]; var guessss = match.guess; var idddd; var oyuntipi = match.gameType; if (oyuntipi.indexOf('SE')>-1 || oyuntipi.indexOf('UV')>-1) { guessss = guessss.substr(0, guessss.indexOf("::")); idddd = "" + getMatchIdFromMATCHID(match.matchid) + "_" + match.eventCode + "_" + match.gameType + "_" + guessss; } else { idddd = "" +getMatchIdFromMATCHID (match.matchid) + "_" + match.gameType + "_" + guessss; } var tercihtd; var doc = null; if(framexz.contentDocument) // Firefox, Opera doc = framexz.contentDocument; else if(framexz.contentWindow) // Internet Explorer doc = framexz.contentWindow.document; else if(framexz.document) // Others? doc = framexz.document; tercihtd = doc.getElementById(idddd); if (tercihtd) { tercihtd.setAttribute("bgColor", myColor); } if (!tercihtd || tercihtd==null) { //Butun row un backgroundunu boyuyoz. var trx=doc.getElementById("tr_row"+getMatchIdFromMATCHID(match.matchid)); var tr_table =doc.getElementById("tr_table"+getMatchIdFromMATCHID(match.matchid)); var myframeName=framexz.src; var currentEventType=1; var currentgameType=""; if (myframeName.indexOf("eventType")>-1){ currentEventType=myframeName.substring(myframeName.indexOf("eventType")+10,myframeName.indexOf("eventType")+11); } if (myframeName.indexOf("gameType")>-1){ var newsrc=myframeName.substring(myframeName.indexOf("gameType")+9,myframeName.length); currentgameType=newsrc.substring(0,newsrc.indexOf("&")); } if (trx) { var cells =trx.cells; var starttd=0; var endtd=cells.length; if (currentEventType==1 && currentgameType=='SF'){ starttd=6; endtd=cells.length-1; }else if (currentEventType==1 && currentgameType==''){ starttd=6; endtd=cells.length-1; }else if (currentEventType==1 && currentgameType=='GS'){ starttd=6; endtd=cells.length-1; }else if (currentEventType==2 && currentgameType=='SF'){ starttd=10; }else if (currentEventType==2 && currentgameType==''){ starttd=6; } for (var kl=starttd;kl 0) { document.myForm.submit(); return true; } return false; } //-------------------------------------------------end of kupon gonder skriptler function showLoginMessage(message) { alert(message); } function showLiveBrodcastMessage(el,channel){ //el.title="Bu maç -"+channel+"- kanalında canlı olarak gösterilecektir!"; //el.alt="Bu maç -"+channel+"- kanalında canlı olarak gösterilecektir!"; el.title=channel.toUpperCase(); el.alt=channel.toUpperCase(); } function clearAll(type){ var lgs=80; for(i=0; i-1){ if(!isLogined()){ if(window.opener){ window.parent.location = window.parent.location; }else{ window.location.reload(); } } window.open(o.argument.toString(),'Istatistikler','height=700,width=1000,status=yes,toolbar=no,menubar=no,resizable=yes,location=no,left=25,top=20'); return true; }else if(o.responseText.indexOf("FALSE")>-1){ alert("Lütfen üye girişi yapınız."); } } } function handleFailureStats(o){ if(o.responseText !== undefined){ window.open(o.argument.toString(),'Istatistikler','height=700,width=1000,status=yes,toolbar=no,menubar=no,resizable=yes,location=no,left=25,top=20'); return true; } } function checkStats(wurl){ var urlstr = "iddaa-istatistikler"; var request = YAHOO.util.Connect.asyncRequest('POST', urlstr, {timeout: 25000,success:handleCheckStats,failure:handleFailureStats,argument:[wurl]},"control=true"); } function getMatchStatistics(matchid,leage){ var wurl = "iddaa-istatistikler?m="+matchid; if (leage&& leage>0){ wurl+="&l=1"; } checkStats(wurl); } //Affiliate İçin Yapildi. function changeHazirKuponTab(id){ for (var i=1;i<=11; i++){ if (id!=i){ try{ document.getElementById("mainTab"+i).style.visibility='hidden'; document.getElementById("mainTab"+i).style.display="none"; }catch(ex){ continue; } }else{ try{ document.getElementById("mainTab"+id).style.visibility="visible"; document.getElementById("mainTab"+id).style.display="block"; }catch(es){ continue; } } } var alink=document.getElementById("mainTab"+id).getElementsByTagName("a")[0]; getHazirKupon(alink); if (id%2==1){ if (document.getElementById("mainTab"+(id+1))){ document.getElementById("mainTab"+(id+1)).style.visibility="visible"; document.getElementById("mainTab"+(id+1)).style.display="block"; var aalink=document.getElementById("mainTab"+(id+1)).getElementsByTagName("a")[0]; getHazirKupon(aalink); } }else { if (document.getElementById("mainTab"+(id-1))){ document.getElementById("mainTab"+(id-1)).style.visibility="visible"; document.getElementById("mainTab"+(id-1)).style.display="block"; var aalink=document.getElementById("mainTab"+(id-1)).getElementsByTagName("a")[0]; getHazirKupon(aalink); } } } function getHazirKupon(el){ var urlx=el.getAttribute("href"); var divx=el.parentNode.parentNode.parentNode; if (divx){ var allHrefs=divx.getElementsByTagName("a"); for (k=0;k