Cannabis
Search
Redefined
SAFE / SIMPLE / SECURE
learn more
Cannabis Search Redefined
function isBot() {
return $('#ContentPlaceHolder1_hf_IsBot').val() == 'true' ? true : false;
}
//////////function setCompanyLayoutHeight() {
////////// var winH = $(window).height();
////////// var winW = $(window).width();
////////// if (winH < 300) {
////////// winH = 500;
////////// }
////////// var sbh = $('.navbar-wrapper').height() - 3;
////////// var nsh = 0;
////////// if ($('.nav-scroller').css('display') != 'none') {
////////// nsh = $('.nav-scroller').height() + sbh + 1 + 'px';
////////// }
////////// else {
////////// nsh = $('.nav-scroller-2').height() + sbh + 1 + 'px'
////////// }
//////////}
//////////var newsInit = false;
//////////var usa_map_init = false;
//////////var canada_map_init = false;
//////////var australia_map_init = false;
//////////function a3slideChanged(eindex) {
////////// //console.log('Slide Changed:=' + eindex);
////////// switch (eindex) {
////////// case HOME_IDX: {
////////// // home buttons
////////// break;
////////// }
////////// case COMMENTS_IDX: {
////////// // comments
////////// break;
////////// }
////////// case NEWS_IDX: {
////////// // news
////////// break;
////////// }
////////// case USA_IDX: {
////////// if (usa_map_init === false) {
////////// usa_map_init = true;
////////// //simplemaps_usmap.create();
////////// simplemaps_usmap.load();
////////// }
////////// // usa
////////// break;
////////// }
////////// case AUSTRALIA_IDX: {
////////// // australia
////////// break;
////////// }
////////// case CANADA_IDX: {
////////// // canada
////////// break;
////////// }
////////// }
//////////}
var mystates = [
{ "state": "AK", "description": "Alaska" },
{ "state": "AR", "description": "Arkansas" },
{ "state": "AZ", "description": "Arizona" },
{ "state": "CA", "description": "California" },
{ "state": "CO", "description": "Colorodo" },
{ "state": "CT", "description": "Connecticut" },
{ "state": "DC", "description": "Dist. Of Columbia" },
{ "state": "DE", "description": "Delaware" },
{ "state": "FL", "description": "Florida" },
{ "state": "HI", "description": "Hawaii" },
{ "state": "IA", "description": "Iowa" },
{ "state": "IL", "description": "Illinois" },
{ "state": "LA", "description": "Louisiana" },
{ "state": "MA", "description": "Massachusets" },
{ "state": "MD", "description": "Maryland" },
{ "state": "ME", "description": "Maine" },
{ "state": "MI", "description": "Michigan" },
{ "state": "MN", "description": "Minnesota" },
{ "state": "MO", "description": "Missouri" },
{ "state": "MT", "description": "Montana" },
{ "state": "NC", "description": "North Carolina" },
{ "state": "ND", "description": "North Dakota" },
{ "state": "NH", "description": "New Hampshire" },
{ "state": "NJ", "description": "New Jersey" },
{ "state": "NM", "description": "New Mexico" },
{ "state": "NV", "description": "Nevada" },
{ "state": "NY", "description": "New York" },
{ "state": "OH", "description": "Ohio" },
{ "state": "OK", "description": "Oklahoma" },
{ "state": "OR", "description": "Oregon" },
{ "state": "PA", "description": "Pennsylvania" },
{ "state": "RI", "description": "Rhode Island" },
{ "state": "TX", "description": "Texas" },
{ "state": "UT", "description": "Utah" },
{ "state": "VT", "description": "Vermont" },
{ "state": "WA", "description": "Washington" },
{ "state": "WV", "description": "West Virginia" }]
var tagMap = {};
var i = null;
for (i = 0; mystates.length > i; i += 1) {
tagMap[mystates[i].state] = mystates[i];
}
var hasTag = function (tagName) {
if (tagMap[tagName]) {
return true;
}
else {
return false;
}
};
var getTag = function (tagName) {
if (tagMap[tagName]) {
var i = null;
for (i = 0; mystates.length > i; i += 1) {
if (mystates[i].state == tagName) {
return mystates[i];
break;
}
}
}
};