//This is JS equivalent of the vtvsettings that is resident on the server for mobile devices and other device.
//Add a line here for the 3-tuple values for the dataspace we want to support. The first value is the numeric value of the DS.
//The second value is the proxypass tag.

var AjaxConstsBase = 
 { 
    "VideoDS"       : {"title":"Videos", "val": 16777216,"proxy_pass": "/bsearch", "user_agent":"pcClient","req_header":"text/xml","req_type":"GET","preload_images_array":"VideopreloadImagesSrc"}
};

var const_base_url = '/'

var AjaxConsts = 
{
    "VideoMoreInfoDS":{"val": 16777216,"proxy_pass": "/mms_vmi/mi.py", "user_agent":"def-xml","req_header":"text/xml","req_type":"GET"},
    "ShareURL"      : "http://www.vtap.com/cgi-bin/clip.cgi?",
    "SharePageURL"  : const_base_url+"share.html", //"http://www.veveoinc.com/vTap/widget/share.html",
    "StatisticURL"  : "/cgi-bin/clip.cgi?",
    "Resolver"      : "/act?ua=newpc&gid=",
    "IResolver"     : "/prslv",
    "DataSpaceMap" : [{"val": 16777216, "search_handler": "VideoSearchResult", "render_handler": "video_renderer", "evt_handler":"video_evt_handler"}],
    "IPhoneCheckDS" : {"val": 16777216,"proxy_pass":"/iphonecheck","user_agent":"pc_iphone","req_header":"text/xml","req_type":"POST"},
    "IPhoneCheck"   : "/iphonecheck?ua=iphone",
    "PlayAudio"     : "/iphoneaudio",
    "GetPreview"    : "/iphonepreview?ua=iphone_preview",
    "VideoTime"     : "300",
    "MoreInfoURL"   : "",
    "Max_Rating"    : 5,
    "Max_UN_Length" : 14,
    "MailURL" : "mailto:?subject=Check out this video!&body=Here's the link: ",
     //msecs
     "QueryGapPollTimer" : "20",
     "DeadClip"     : "images/deadclip.png",
     "AudioClip"    : "images/speaker.png",
     "debug"        : 0,
     // In secs. 
     "PreviewRetry" : 5,
     "ClipCheck": [true, true, 5, false],
     "iphone_versions" : [{"ver":"1A543a"}, {"ver":"1C25"}],
    "useMemMI":1,
    "miParams":"&RC=0",
    "searchesURL": "/searches/browse.py",
    "mashupURL":"/mashup/get_mashup.cgi?output=pcmashup&gid=",
    "mashupDS" : {"val": 16777216,"proxy_pass":"/iphonecheck","user_agent":"pc_iphone","req_header":"text/xml","req_type":"GET"},
    "si" : const_base_url+"topic.html?da=pc&opt=search", //"/xhtmla/search.py?da=Iphone",
    "ti" : const_base_url+"topic.html?da=pc&opt=search&rftr=2", 
    "mi" : "/xhtmlpcd/mi.py?o=iphone", //"/xhtmla/mi.py?o=iphone",
    "TopicPageURL": const_base_url+"topic.html?da=pc&pg=t&gid=",
    "VideoPageURL": const_base_url+"topic.html?da=pc&pg=v&os=vp:mi:0~",
    "LoginPageURL": const_base_url+"topic.html?",
    "searchURL": const_base_url+"topic.html?da=pc&pg=s&W=",
    "send2mobileURL": "http://m.vtap.com/send2mobile?",
    //"SendSMSCgi": "http://www.vtap.com/widget/cgi-bin/send_sms.py?",
    "SendSMSCgi": /*const_base_url+*/ "/" + "vTap/widget/cgi-bin/send_sms.py?",
    "publicKeyVeveoinc": "6LezhwAAAAAAAKYrdX6GHO2pOqtS4thlvLyn_k1d",
    "publicKeyVtapSite": "6LfYcAAAAAAAAH4VxfjEdzhSA78Jfro4IgeRuTIo",
    "FeedURL"  : const_base_url+"share_ipod.html",
    "SearchPageURL": const_base_url+"topic.html?da=pc&pg=s&W=",
    "enableUgcCheck": false,
    "src1src": true,
    "myfeedEnable": '<a href="'+const_base_url+'index.html" class="topLink">My Feed</a>',
    "myfeedDisable": '<a href="javascript:void(0)" onmouseover="this.style.textDecoration=\'none\';this.parentNode.style.textDecoration=\'none\'" title="Please login to get My Feed" style="color: rgb(198, 197, 179); cursor: auto;" class="topLink">My Feed</a>',
    "max_shist": 10
};
AjaxConsts.prototype = AjaxConstsBase; //This is the base object defined in iphone.html


var __DEBUG__ = false;

