function insertFlash() { var dv = document.createElement("div"); dv.setAttribute("id", "flashcontent"); document.body.appendChild(dv); var params = { menu: 'false', quality: 'autohigh', scale: "default", menu: 'false', wmode: 'transparent', bgcolor: "#FFFFFF", allowScriptAccess: 'always' }; var attributes = { id: "mymovie", name: "../swf/send_load.swf" }; swfobject.embedSWF( "../swf/send_load.swf", // swfUrl (String, required) specifies the URL of your SWF "flashcontent", // id (String, required) specifies the id of the HTML element (containing your alternative content) you would like to have replaced by your Flash content '1px', // width (String, required) specifies the width of your SWF '1px', // height (String, required) specifies the height of your SWF '8.0.0', // version (String, required) specifies the Flash player version your SWF is published for (format is: "major.minor.release") false, // expressInstallSwfurl (String, optional) specifies the URL of your express install SWF and activates Adobe express install [ http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6a253b75 ]. Please note that express install will only fire once (the first time that it is invoked), that it is only supported by Flash Player 6.0.65 or higher on Win or Mac platforms, and that it requires a minimal SWF size of 310x137px. //flashvars, // flashvars (Object, optional) specifies your flashvars with name:value pairs params, // params (Object, optional) specifies your nested object element params with name:value pairs attributes // attributes (Object, optional) specifies your object's attributes with name:value pairs ); } function getMovie(movieName) { if (navigator.appName.indexOf("Microsoft") != -1) { return window[movieName]; } else { return document[movieName]; } } insertFlash(); //--------------------------------------------- var __serverAddressAtServis = "https://servis.ttnetvitamin.com.tr/"; var __adslLogin = "ADSLGiris"; var __adslUserManagement = "ADSLKullaniciYonetim"; var __register = "Kayit"; var __gameRegister = "YarismaKayit"; var __forgotPassword = "Sifre"; var __school = "Okul"; var __card = "Kart"; var __other = "Diger"; var __promotion = "Promosyon"; var __trial = "Deneme"; // ADSL RELATED FUNCTIONS - START function adslLoginWithCaptchaFlash(operation, adslNumber, adslUsername, adslPassword, captchaId, captchaResponse, callBackFunc) { adslLoginFlash(operation, adslNumber, adslUsername, adslPassword, true, captchaId, captchaResponse, callBackFunc); } function adslLoginWithoutCaptchaFlash(operation, adslNumber, adslUsername, adslPassword, callBackFunc) { adslLoginFlash(operation, adslNumber, adslUsername, adslPassword, false, "", "", callBackFunc); } function adslLoginFlash(operation, adslNumber, adslUsername, adslPassword, captchaCheck, captchaId, captchaResponse, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __adslLogin, "al_op@#!al_a_num@#!al_a_usn@#!al_a_pwd@#!al_cc@#!al_cid@#!al_cr", operation + "@#!" + adslNumber + "@#!" + adslUsername + "@#!" + adslPassword + "@#!" + captchaCheck + "@#!" + captchaId + "@#!" + captchaResponse, callBackFunc); } function adslGetUsersFlash(operation, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __adslUserManagement, "aum_op", operation, callBackFunc); } function deleteUserFlash(operation, userId, addOnId, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __adslUserManagement, "aum_op@#!aum_uid@#!aum_aid", operation + "@#!" + userId + "@#!" + addOnId, callBackFunc); } // ADSL RELATED FUNCTIONS - END function alternativeCheckUsernameFlash(operation, username, birthDate, addOnId, isStudent, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __register, "r_op@#!r_un@#!r_bd@#!r_aid@#!r_s@#!r_av", operation + "@#!" + username + "@#!" + birthDate + "@#!" + addOnId + "@#!" + isStudent, callBackFunc); } //function alternativeCheckUsernameFlash(operation, username, birthDate, addOnId, isStudent, agreementVersion, callBackFunc) { // var fl = getMovie("flashcontent"); // fl.sendData(__serverAddressAtServis + __register, "r_op@#!r_un@#!r_bd@#!r_aid@#!r_s@#!r_av", // operation + "@#!" + username + "@#!" + birthDate + "@#!" + addOnId + "@#!" + isStudent + "@#!" + agreementVersion, callBackFunc); //} function alternativeRegisterFlash(operation, userid, schoolNumber, school, classroom, username, birthDate, city, town, address, email, phone, mobilephone, profession, password, secretquestion, secretanswer, addOnId, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __register, "r_op@#!r_uid@#!r_sn@#!r_sid@#!r_crid@#!r_un@#!r_bd@#!r_cid@#!r_tid@#!r_a@#!r_e@#!r_p@#!r_mp@#!r_pid@#!r_pw@#!r_sqid@#!r_sqa@#!r_aid", operation + "@#!" + userid + "@#!" + schoolNumber + "@#!" + school + "@#!" + classroom + "@#!" + username + "@#!" + birthDate + "@#!" + city + "@#!" + town + "@#!" + address + "@#!" + email + "@#!" + phone + "@#!" + mobilephone + "@#!" + profession + "@#!" + password + "@#!" + secretquestion + "@#!" + secretanswer + "@#!" + addOnId, callBackFunc); } function checkUsernameFPFlash(operation, username, captchaId, captchaResponse, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __forgotPassword, "fp_op@#!fp_un@#!fp_cid@#!fp_cr", operation + "@#!" + username + "@#!" + captchaId + "@#!" + captchaResponse, callBackFunc); } function checkSecretQuestionFlash(operation, userId, birthDate, secretQuestionId, secretAnswer, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __forgotPassword, "fp_op@#!fp_uid@#!fp_bd@#!fp_sqid@#!fp_sa", operation + "@#!" + userId + "@#!" + birthDate + "@#!" + secretQuestionId + "@#!" + secretAnswer, callBackFunc); } function changePasswordFlash(operation, userId, password, token, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __forgotPassword, "fp_op@#!fp_uid@#!fp_pw@#!fp_t", operation + "@#!" + userId + "@#!" + password + "@#!" + token, callBackFunc); } function selectSchoolFlash(operation, schoolId, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __school, "ss_op@#!ss_sid", operation + "@#!" + schoolId, callBackFunc); } function checkGameUserFlash(operation, username, birthdate, captchaId, captchaResponse, schoolNumber, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __gameRegister, "gr_op@#!gr_un@#!gr_bd@#!gr_caid@#!gr_cr@#!gr_gsn", operation + "@#!" + username + "@#!" + birthdate + "@#!" + captchaId + "@#!" + captchaResponse + "@#!" + schoolNumber, callBackFunc); } function registerGameUserFlash(operation, userid, username, birthDate, school, classroom, schoolNumber, password, secretquestion, secretanswer, email, phone, mobilephone, city, town, address, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __gameRegister, "gr_op@#!gr_uid@#!gr_un@#!gr_bd@#!gr_sid@#!gr_clid@#!gr_sn@#!gr_pw@#!gr_sqid@#!gr_sa@#!gr_e@#!gr_p@#!gr_mp@#!gr_ciid@#!gr_tid@#!gr_a", operation + "@#!" + userid + "@#!" + username + "@#!" + birthDate + "@#!" + school + "@#!" + classroom + "@#!" + schoolNumber + "@#!" + password + "@#!" + secretquestion + "@#!" + secretanswer + "@#!" + email + "@#!" + phone + "@#!" + mobilephone + "@#!" + city + "@#!" + town + "@#!" + address, callBackFunc); } // CARD RELATED FUNCTIONS START function validateCardWithCaptchaFlash(operation, code, pin, captchaId, captchaResponse, callBackFunc) { validateCardFlash(operation, code, pin, true, captchaId, captchaResponse, callBackFunc); } function validateCardWithoutCaptchaFlash(operation, code, pin, callBackFunc) { validateCardFlash(operation, code, pin, false, "", "", callBackFunc); } function validateCardFlash(operation, code, pin, captchaCheck, captchaId, captchaResponse, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __card, "c_op@#!c_c@#!c_p@#!c_cc@#!c_cid@#!c_cr", operation + "@#!" + code + "@#!" + pin + "@#!" + captchaCheck + "@#!" + captchaId + "@#!" + captchaResponse, callBackFunc); } function authenticateCardFlash(operation, code, pin, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __card, "c_op@#!c_c@#!c_p", operation + "@#!" + code + "@#!" + pin, callBackFunc); } // CARD RELATED FUNCTIONS END // OTHER RELATED FUNCTIONS START function getAuthenticatedUserFlash(operation, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __other, "o_op", operation, callBackFunc); } function getSecretQuestionsFlashGame(operation, callBackFunc) { getSecretQuestionsFlash(operation, callBackFunc); } function getSecretQuestionsFlashFP(operation, callBackFunc) { getSecretQuestionsFlash(operation, callBackFunc); } function getSecretQuestionsFlash(operation, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __other, "o_op", operation, callBackFunc); } function getProfessionsFlash(operation, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __other, "o_op", operation, callBackFunc); } function getBranchesFlash(operation, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __other, "o_op", operation, callBackFunc); } // OTHER JS FUNCTIONS END // SSO RELATED FUNCTIONS START function getSsoInfoFlash(operation, userId, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __register, "r_op@#!r_uid", operation + "@#!" + userId, callBackFunc); } function registerMebSsoFlash(operation, userId, phone, city, town, address, addOnId, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __register, "r_op@#!r_uid@#!r_p@#!r_cid@#!r_tid@#!r_a@#!r_aid", operation + "@#!" + userId + "@#!" + phone + "@#!" + city + "@#!" + town + "@#!" + address + "@#!" + addOnId, callBackFunc); } function registerIspSsoFlash(operation, userId, school, classroom, schoolNumber, city, town, address, email, phone, mobilePhone, profession, addOnId, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __register, "r_op@#!r_uid@#!r_sid@#!r_crid@#!r_sn@#!r_cid@#!r_tid@#!r_a@#!r_e@#!r_p@#!r_mp@#!r_pid@#!r_aid", operation + "@#!" + userId + "@#!" + school + "@#!" + classroom + "@#!" + schoolNumber + "@#!" + city + "@#!" + town + "@#!" + address + "@#!" + email + "@#!" + phone + "@#!" + mobilePhone + "@#!" + profession + "@#!" + addOnId, callBackFunc); } function getGameSsoInfoFlash(operation, userId, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __gameRegister, "gr_op@#!gr_uid", operation + "@#!" + userId, callBackFunc); } function registerGameMebSsoFlash(operation, userId, phone, city, town, address, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __gameRegister, "gr_op@#!gr_uid@#!gr_p@#!gr_ciid@#!gr_tid@#!gr_a", operation + "@#!" + userId + "@#!" + phone + "@#!" + city + "@#!" + town + "@#!" + address, callBackFunc); } function registerGameIspSsoFlash(operation, userId, school, classroom, schoolNumber, city, town, address, email, phone, mobilePhone, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __gameRegister, "gr_op@#!gr_uid@#!gr_sid@#!gr_clid@#!gr_sn@#!gr_ciid@#!gr_tid@#!gr_a@#!gr_e@#!gr_p@#!gr_mp", operation + "@#!" + userId + "@#!" + school + "@#!" + clasroom + "@#!" + schoolNumber + "@#!" + city + "@#!" + town + "@#!" + address + "@#!" + email + "@#!" + phone + "@#!" + mobilePhone, callBackFunc); } // SSO RELATED FUNCTIONS END //PROMOTION RELATED FUNCTIONS START function validatePromotionWithCaptchaFlash(operation, promotioncode, captchaId, captchaResponse, callBackFunc) { validatePromotionFlash(operation, promotioncode, true, captchaId, captchaResponse, callBackFunc); } //function validatePromotionWithoutCaptchaFlash(operation, promotioncode, callBackFunc) { // validatePromotionFlash(operation, promotioncode, false, "", "", callBackFunc); //} function validatePromotionFlash(operation, promotioncode, captchaCheck, captchaId, captchaResponse, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __promotion, "p_op@#!p_pc@#!p_cc@#!p_cid@#!p_cr", operation + "@#!" + promotioncode + "@#!" + captchaCheck + "@#!" + captchaId + "@#!" + captchaResponse, callBackFunc); } function authenticatePromotionFlash(operation, promotioncode, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __promotion, "p_op@#!p_pc", operation + "@#!" + promotioncode, callBackFunc); } // PROMOTION RELATED FUNTIONS END // TRIAL USER RELATED FUNCTIONS START function checkTrialData(operation, adslnumber, code, captchId, captchaResponse, callBackFunc){ var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __trial, "t_op@#!t_an@#!t_tc@#!t_cid@#!t_cr", operation + "@#!" + adslnumber + "@#!" + code + "@#!" + captchId + "@#!" + captchaResponse, callBackFunc); } function registerTrialUser(operation, adslnumber, code, classroom, phone, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __register, "r_op@#!r_an@#!r_tc@#!r_crid@#!r_p", operation + "@#!" + adslnumber + "@#!" + code + "@#!" + classroom + "@#!" + phone, callBackFunc); } // TRIAL USER RELATED FUNCTIONS END