﻿
//==================================================
// Variable for adjusting the WIYN Box Search Tool
//==================================================
var _wyinWhatAlignRight = false;//true if you want the WHAT autosuggest to be aligned with the right side of the text box.
var _wyinWhereAlignRight = false;//true if you want the WHERE autosuggest to be aligned with the right side of the text box.
var _wiynSuggestDivMaxCount = 25;//max suggestions in autosuggest box, this also contols the height of the autosuggest boxes
var _wiynDropContentHeight = 350;//What and Where Drop box height
var _wiynAutosuggestWidthFactor = 1.2 ;//Width of the autosuggest in ratio to the textbox width. 1 = same as textbox width, 1.3 = 1.3 times the width of the textbox
var _wiynWhatBoxText = "Business Name, Heading or Keywords"; //the text that will show in the empty What text box
var _wiynWhereBoxText = "Neighborhood"; //the text that will show in the empty Where text box
var _wiynTextEmptyColor = "#aa0000"; //RGB color for empty text box text
var _wiynWhatKeyWordDividerText = "POPULAR KEYWORD PHRASES";//text for the keyword section of the what autosuggest box
var _wiynWhatOtherDividerText = "OTHER BUSINESSES OR HEADINGS";//text for the OTHER section of the what autosuggest box

//==================================================

//==================================================
// Do not alter code below here
//==================================================
var wiynBox = null;

// =================================================
//File setting for specific Publisher ==============
//These must be set for the specific Publisher and book
var _wiynPubID = "2";
var _wiynBookID = "3";
var _wiynAccount = "ob";
var _wiynPrimeURL = "http://ob.whatsinyourneighborhood.com/";


function createWiynBox(){
   //alert("1");
   var jsURL = _wiynPrimeURL + "wiynBox/wbGlobal.js";
   var docHead = document.getElementsByTagName("head").item(0);
   
   var scriptObj = document.createElement("script");
   scriptObj.setAttribute("type", "text/javascript");
   scriptObj.setAttribute("charset", "utf-8");
   scriptObj.setAttribute("src", jsURL);
   scriptObj.setAttribute("id", "_wiynBoxGlobal");
   docHead.appendChild(scriptObj);
};