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: "../vitamin/send_load_v3.swf" }; swfobject.embedSWF( "../vitamin/send_load_v3.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.birivitamin.com/"; var __adslLogin = "ADSLGiris"; var __adslUserManagement = "ADSLKullaniciYonetim"; var __register = "Kayit"; var __forgotPassword = "Sifre"; var __school = "Okul"; var __other = "Diger"; var __trial = "Deneme"; function adslLoginFlash(operation, customerNumber, adslUsername, adslPassword, captchaId, captchaResponse, callBackFunc) { var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __adslLogin, "al_op@#!al_c_num@#!al_a_usn@#!al_a_pwd@#!al_cc@#!al_cid@#!al_cr", operation + "@#!" + customerNumber + "@#!" + adslUsername + "@#!" + adslPassword + "@#!" + 'true' + "@#!" + 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); } // old version without license agreement //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", // operation + "@#!" + username + "@#!" + birthDate + "@#!" + addOnId + "@#!" + isStudent, callBackFunc); //} // new version with license agreement 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); } //OTHER RELATED FUNCTIONS START 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); } //SSO RELATED FUNCTIONS END // TRIAL USER RELATED FUNCTIONS START function checkTrialData(operation, adslnumber, code, captchId, captchaResponse, agreementVersion, callBackFunc){ var fl = getMovie("flashcontent"); fl.sendData(__serverAddressAtServis + __trial, "t_op@#!t_an@#!t_tc@#!t_cid@#!t_cr@#!t_av", operation + "@#!" + adslnumber + "@#!" + code + "@#!" + captchId + "@#!" + captchaResponse + "@#!" + agreementVersion, 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