function querymedia(){ var _mediatype=location.pathname.match(/miniwap(w*)//)[1]; _mediatype=_mediatype==''?0:_mediatype; return _mediatype;}