﻿function vwgAjax(s262,strData){s262 =s262.split("?")[0];var strResponseType ="document";if (navigator && navigator.userAgent){if (new RegExp("MSIE ([^;]*)|Trident.*; rv:([0-9.]+)").test(navigator.userAgent)){strResponseType ="msxml-document";}}var objXHR =$.ajax({url:s262,async:true,type:"POST",data:strData,dataType:"text"});objXHR.setRequestHeader("Content-type","application/x-www-form-urlencoded");objXHR.done(function (strDocument){window.setTimeout(function (){window.document.open("text/html","replace");window.document.write(strDocument);window.document.close();},1);});};function Preload_SendClientParamsToServer(strPageName,objFuncArguments,intPageInstance){var arrData =["vwginit=1"];arrData.push("vwginstance=" +intPageInstance);arrData.push("DOR=" +Preload_DeviceOrientation());arrData.push("SAH=" +screen.availHeight);arrData.push("SAW=" +screen.availWidth);arrData.push("SCH=" +screen.height);arrData.push("SCW=" +screen.width);arrData.push("SCD=" +screen.colorDepth);if (typeof window.devicePixelRatio !='undefined'){arrData.push("SDPR=" +window.devicePixelRatio);}arrData.push("BRH=" +window.document.body.clientHeight);arrData.push("BRW=" +window.document.body.clientWidth);var Preload_GetDeferredForModernizer =function (strflagsSetID,strPropertyName){var objDefer =new $.Deferred();objDefer.done(function (result){arrData.push(strPropertyName +result);});ModernizrHelper.getFlagsCombo(strflagsSetID,objDefer);return objDefer;};$.when(Preload_GetDeferredForModernizer('CSS3',"CSS3="),Preload_GetDeferredForModernizer('HTML5',"H5="),Preload_GetDeferredForModernizer('MISC',"MSC=")).done(function (){var strData =arrData.join('&');vwgAjax(strPageName,strData);});};function Preload_DeviceOrientation(){if ($(window).width()> $(window).height()){return "1";}return "0";}
