// Customizable Settings
SS_MatchGraphic="http://www.sidestreet.com/images/graphics/match2.gif";
SS_zoomImg="http://www.sidestreet.com/images/graphics/zoom_01.gif";
SS_scrollingImg="http://www.sidestreet.com/images/graphics/scrollingTool_Home.gif";
SS_pixClearImg="http://www.sidestreet.com/images/graphics/pix_clear.gif";
SS_poweredByImg="http://www.sidestreet.com/images/graphics/poweredby.gif";
SS_photoBackImg="http://www.sidestreet.com/images/graphics/ybox-back.gif";
SS_photoNextImg="http://www.sidestreet.com/images/graphics/ybox-next.gif";
SS_imagePlaceHolderImg="http://www.sidestreet.com/images/graphics/ImagePlaceHolder.jpg";
SS_SideNoteWidth=420;
SS_SideNoteHeight=320;
SS_SideBarPad=20;
SS_ZoomText="ZOOM:";
SS_MoveText="MOVE:";


// Settings
YAHOO.namespace("example.container");
SS_initialX=-1;SS_initialY=-1;
SS_youAreHereChecked=false;
SS_sideNoteBehavior=1;
SS_SmallPanelOverrideFn=false;
SS_LargePanelOverrideFn=false;
SS_LargePanelX=0;
SS_LargePanelY=0;
SS_filterCat=-1;
SS_wasHighlighted=0;
SS_largePanelRendered=false;
SS_smallPanelRendered=false;

function SS_SetFilterIdentify(SS_cat)
{
   SetFilter(SS_cat);
   SS_initialbusid=SS_filterCat*-1;
}

function SS_SetFilter(SS_cat)
{
	SS_filterCat=9999;
	for (j=0;j<SS_numCategories;j++)
	{
	   if (SS_categoryName[j]!=SS_cat)
	      SS_categoryFilter[j]=0;
	   else
	      SS_filterCat=SS_categoryID[j];
	}

	for (j=0;j<SS_numHotspots;j++)
	{
  	   SS_busFilter[j]=0;
	}

	for (j=0;j<SS_numDirItems;j++)
	{
	   if (SS_dirCategory[j]!=SS_filterCat)
	      SS_dirFilter[j]=0;
	   else
	      SS_busFilter[SS_dirHotspotLink[j]]=1;
	} 
}

function SS_LoadPageFilter(type)
{
    SS_SetInitialDataMultipleCats();

	SS_filterCat=new Array(100);
	SS_filterCatCount=0;

	for (j=0;j<SS_numCategories;j++)
	{
	   found=false;
	   for (var i = 0; i < SS_LoadPageFilter.arguments.length; i++)
	      if (SS_LoadPageFilter.arguments[i]==SS_categoryName[j])
	         found=true;
	         
	   if (!found)
	      SS_categoryFilter[j]=0;
	   else
	      SS_filterCat[SS_filterCatCount++]=SS_categoryID[j];
	}

	for (j=0;j<SS_numHotspots;j++)
	{
  	   SS_busFilter[j]=0;
	}

	for (j=0;j<SS_numDirItems;j++)
	{
	   found=false;
	   for (i=0;i<SS_filterCatCount;i++)
	      if (SS_filterCat[i]==SS_dirCategory[j])
	         found=true;
	
	   if (!found)
	      SS_dirFilter[j]=0;
	   else
	      SS_busFilter[SS_dirHotspotLink[j]]=1;
	} 

   SS_writeSideNoteData();
   SS_SyncInfo();

   SS_zoomFactor=1.3;
   SS_zoomLevelsX[0]=SS_gmdWidth;
   SS_zoomLevelsY[0]=SS_gmdHeight;
   for (j=1;j<=7;j++)
   {
      SS_zoomLevelsX[j]=SS_zoomLevelsX[j-1]*SS_zoomFactor;
      SS_zoomLevelsY[j]=SS_zoomLevelsY[j-1]*SS_zoomFactor;
   }

   SS_LoadPage();


}

function SS_ToggleFilter(type)
{
	SS_filterCat=new Array(100);
	SS_filterCatCount=0;

	for (j=0;j<SS_numCategories;j++)
	   SS_categoryFilter[j]=1;
	for (j=0;j<SS_numHotspots;j++)
	{
  	   SS_busFilter[j]=1;
       SS_dirFilter[j]=1;
    }

	for (j=0;j<SS_numCategories;j++)
	{
	   found=false;
	   for (var i = 0; i < SS_ToggleFilter.arguments.length; i++)
	      if (SS_ToggleFilter.arguments[i]==SS_categoryName[j])
	         found=true;
	         
	   if (!found)
	      SS_categoryFilter[j]=0;
	   else
	      SS_filterCat[SS_filterCatCount++]=SS_categoryID[j];
	}

	for (j=0;j<SS_numHotspots;j++)
	{
  	   SS_busFilter[j]=0;
	}

	for (j=0;j<SS_numDirItems;j++)
	{
	   found=false;
	   for (i=0;i<SS_filterCatCount;i++)
	      if (SS_filterCat[i]==SS_dirCategory[j])
	         found=true;
	
	   if (!found)
	      SS_dirFilter[j]=0;
	   else
	      SS_busFilter[SS_dirHotspotLink[j]]=1;
	} 
	

   SS_currentCategory=-9999;

   SS_FillCategories();

   SS_ClearAllPOI();
   SS_resetPage();
   
   SS_forceRepositionGraphics();

}

function SS_LoadThisPage() 
{
   // Instantiate a Panel from markup
   SS_SetInitialDataMultipleCats();
   SS_writeSideNoteData();
   SS_SyncInfo();

   SS_zoomFactor=1.3;
   SS_zoomLevelsX[0]=SS_gmdWidth;
   SS_zoomLevelsY[0]=SS_gmdHeight;
   for (j=1;j<=7;j++)
   {
      SS_zoomLevelsX[j]=SS_zoomLevelsX[j-1]*SS_zoomFactor;
      SS_zoomLevelsY[j]=SS_zoomLevelsY[j-1]*SS_zoomFactor;
   }

   SS_LoadPage();
}

function SS_DrawNavigation(SS_navigationame)
{
   SShtml="<table><tr><td><div id=\"SS_ZOOM_TXT\"><font color='#0000FF'>"+SS_ZoomText+"</font></div></td><td><map name='SS_FPMap0'><area onclick='SS_zoomOut();return false;'  shape='rect' coords='9, 28, 31, 51'>";
   SShtml=SShtml+"<area onclick='SS_zoom(0);return false;' shape='rect' coords='35, 30, 49, 52'>";
   SShtml=SShtml+"<area onclick='SS_zoom(1);return false;' shape='rect' coords='51, 28, 65, 51'>";
   SShtml=SShtml+"<area onclick='SS_zoom(2);return false;' shape='rect' coords='70, 30, 83, 52'>";
   SShtml=SShtml+"<area onclick='SS_zoom(3);return false;' shape='rect' coords='86, 28, 102, 52'>";
   SShtml=SShtml+"<area onclick='SS_zoom(4);return false;' shape='rect' coords='103, 29, 120, 52'>";
   SShtml=SShtml+"<area onclick='SS_zoom(5);return false;' shape='rect' coords='123, 28, 135, 51'>";
   SShtml=SShtml+"<area onclick='SS_zoomIn();return false;' shape='rect' coords='140, 28, 163, 50'></map>";
   SShtml=SShtml+"<img id='SS_zoomlevel' style=\"cursor:pointer\" src='"+SS_zoomImg+"' usemap='#SS_FPMap0' border='0'></td>";
   SShtml=SShtml+"<td><div id=\"SS_MOVE_TXT\"><font color='#0000FF'>"+SS_MoveText+"</font></div></td><td valign='Center'><map name='SS_FPMap1'>";
   SShtml=SShtml+"<area onMouseOut='SS_timeroff();return false;' onMouseOver='SS_moveLeft();return false;' shape='rect' coords='1, 28, 27, 50'>";
   SShtml=SShtml+"<area onMouseOut='SS_timeroff();return false;' onMouseOver='SS_moveUp();return false;' shape='rect' coords='29, 3, 52, 28'>";
   SShtml=SShtml+"<area onMouseOut='SS_timeroff();return false;' onMouseOver='SS_moveRight();return false;' shape='rect' coords='51, 28, 78, 51'>";
   SShtml=SShtml+"<area onMouseOut='SS_timeroff();return false;' onMouseOver='SS_moveDown();return false;' shape='rect' coords='27, 52, 52, 79'></map>";
   SShtml=SShtml+"<img id='SS_scrolling' style=\"cursor:pointer\" src='"+SS_scrollingImg+"' usemap='#SS_FPMap1' border='0'></td></tr></table>";
   

   document.getElementById(SS_navigationame).innerHTML=SShtml;
}

function SS_DrawMap(SS_mapname,SS_small,SS_medium,SS_large)
{
   SS_sizeOfGMD=1;
   SS_html="";
   

   if (SS_small==0 && SS_medium==1 && SS_large==0)
   {
      SS_sizeOfGMD=2;
   }

   if (SS_small==0 && SS_medium==0 && SS_large==1)
   {
      SS_sizeOfGMD=3;
   }

   if (SS_small==1 && SS_medium==1 && SS_large==0)
   {
      SS_html=SS_html+"<a id=\"SS_small1\" href=\"resize\" onclick=\"SS_changeSize(1);return false;\">Small map</a>";
      SS_html=SS_html+"<div id=\"SS_small2\" style=\"color:#000000;display:none\">Small map</div>&nbsp;&nbsp;";
	  SS_html=SS_html+"<a id=\"SS_medium1\" href=\"resize\" onclick=\"SS_changeSize(2);return false;\">Large map</a>";
      SS_html=SS_html+"<div id=\"SS_medium2\" style=\"color:#000000;display:none\">Large map</div>&nbsp;&nbsp;";  
   }

   if (SS_small==1 && SS_medium==0 && SS_large==1)
   {
      SS_html=SS_html+"<a id=\"SS_small1\" href=\"resize\" onclick=\"SS_changeSize(1);return false;\">Small map</a>";
      SS_html=SS_html+"<div id=\"SS_small2\" style=\"color:#000000;display:none\">Small map</div>&nbsp;&nbsp;";
	  SS_html=SS_html+"<a id=\"SS_large1\" href=\"resize\" onclick=\"SS_changeSize(3);return false;\">Large map</a>";
      SS_html=SS_html+"<div id=\"SS_large2\" style=\"color:#000000;display:none\">Large map</div>&nbsp;&nbsp;";  
   }


   if (SS_small==0 && SS_medium==1 && SS_large==1)
   {
      SS_sizeOfGMD=2;
	  SS_html=SS_html+"<a id=\"SS_medium1\" href=\"resize\" onclick=\"SS_changeSize(2);return false;\">Small map</a>";
      SS_html=SS_html+"<div id=\"SS_medium2\" style=\"color:#000000;display:none\">Small map</div>&nbsp;&nbsp;";  
	  SS_html=SS_html+"<a id=\"SS_large1\" href=\"resize\" onclick=\"SS_changeSize(3);return false;\">Large map</a>";
      SS_html=SS_html+"<div id=\"SS_large2\" style=\"color:#000000;display:none\">Large map</div>&nbsp;&nbsp;";  
   }


   // allow for three different sizes
   if (SS_small==1 && SS_medium==1 && SS_large==1)
   {
      SS_html=SS_html+"<a id=\"SS_small1\" href=\"resize\" onclick=\"SS_changeSize(1);return false;\">Small</a>";
      SS_html=SS_html+"<div id=\"SS_small2\" style=\"color:#000000;display:none\">Small</div>&nbsp;&nbsp;";
	  SS_html=SS_html+"<a id=\"SS_medium1\" href=\"resize\" onclick=\"SS_changeSize(2);return false;\">Medium</a>";
      SS_html=SS_html+"<div id=\"SS_medium2\" style=\"color:#000000;display:none\">Medium</div>&nbsp;&nbsp;";  
	  SS_html=SS_html+"<a id=\"SS_large1\" href=\"resize\" onclick=\"SS_changeSize(3);return false;\">Large</a>";
      SS_html=SS_html+"<div id=\"SS_large2\" style=\"color:#000000;display:none\">Large</div>&nbsp;&nbsp;";  
   }

   SS_html=SS_html+SS_DrawMapNames();
   
   SS_html=SS_html+"<DIV ID='SS_spanid' width=350px height=400px style='border: 3px solid black;position:relative;overflow:hidden;width:350px;height;400px'>";
   SS_html=SS_html+"<IMG style='position:relative;display:none' id='SS_mall' border='0' src='"+SS_pixClearImg+"' width=20px height=20px>";
   SS_html=SS_html+"</DIV>";
   SS_html=SS_html+"<a target='_blank' href='http://www.sidestreet.com'><img border='0' src='"+SS_poweredByImg+"' width='150px' height='18px'></a>";
   
   document.getElementById(SS_mapname).innerHTML=SS_html;
}

function SS_DrawPopup(SS_overlibsname)
{
   SS_html=SS_DrawOverlibs();
  
   SS_html+="<iframe id='SS_selectblocker' style='position:absolute;display:none' frameBorder='0' scrolling='no' width="+(SS_SideNoteWidth+10)+"px src=''></iframe><div style='position:absolute;display:none;width:"+(SS_SideNoteWidth+10)+"px' id='SS_largepanel' width="+(SS_SideNoteWidth+10)+"px></div>";
//   SS_html=SS_html+"<div style='position:absolute;display:none;width:"+(SS_SideNoteWidth+10)+"px' width="+(SS_SideNoteWidth+10)+"px id='SS_largepanel'></div>";
   SS_html+="<div style='position:absolute;display:none;width:2px;height:2px' id='SS_smallpanel' width=2px></div>";
//jmz   SS_html+="<img id=\"SS_zoomArea\" border=\"2px\" style=\"border: 2px solid blue; border-color:blue; position:absolute;cursor:pointer;display:none;\" src=\"http://www.sidestreet.biz:9080/images/graphics/pix-clear.gif\" >";
   SS_html+="<img id=\"SS_zoomArea\" border=\"0px\" style=\"border: 2px solid #0c3; border-color:#0c3; position:absolute;cursor:pointer;display:none;\" src=\"" + SS_pixClearImg + "\" >";
   
   document.getElementById(SS_overlibsname).innerHTML=SS_html;
}


function SS_DrawDirectory(SS_directoryname,SS_size)
{
   // Directory
   SS_html="";   
   SS_html=SS_html+"<form name=\"SS_form1\" id=\"SS_form1\" method=\"POST\" action=\"--WEBBOT-SELF--\">";
   SS_html=SS_html+"<p class=SS_DirectoryText>Directory</p>";
   SS_html=SS_html+"<p><select size=\"1\" width=\""+SS_size+"\" STYLE=\"width:"+SS_size+"px\"  name=\"SS_Categories\" class=\"drop1\" onchange=\"SS_categoryClick(this.options[this.selectedIndex].value);\">";
   SS_html=SS_html+"</select></p><p><br>";
   SS_html=SS_html+"<select size=\"15\" width=\""+SS_size+"\" STYLE=\"width:"+SS_size+"px\" name=\"SS_BusinessList\" class=\"drop1\" onchange=\"SS_buscatClick(this.options[this.selectedIndex].value);\">";
   SS_html=SS_html+"</select></p>";
   SS_html=SS_html+"</form>";
   
   document.getElementById(SS_directoryname).innerHTML=SS_html;
}

function SS_ShowSmallPanel(SS_item)
{
   
   if (document.getElementById("SS_H"+SS_item).style.display=="block")
   {
      SS_wasHighlighted=1;
   }
   else
   {
      SS_wasHighlighted=0;
      document.getElementById("SS_H"+SS_item).src=SS_MatchGraphic;
      document.getElementById("SS_H"+SS_item).style.display="block";
   }

   if (SS_SmallPanelOverrideFn) {
       var SS_c=SS_getImageCoords (document.getElementById("SS_H"+SS_item));
       SS_SmallPanelOverride(SS_name[SS_item],SS_hours[SS_item],SS_phone[SS_item],SS_moreInfo[SS_item],
       SS_c.x,SS_c.y,
       parseInt(document.getElementById("SS_H"+SS_item).style.width.replace('px','')),
       parseInt(document.getElementById("SS_H"+SS_item).style.height.replace('px','')));
   }
   else
   {
      
      if (!SS_smallPanelRendered)
      {
         SS_smallPanelRendered=true;
         SS_YUIsmallpanel = new YAHOO.widget.Panel("SS_panel2", { width:"200px",visible:false, constraintoviewport:true,close:false } );
      }

      document.getElementById("SS_smallpanel").style.display="block";

      SS_YUIsmallpanel.setHeader("<div class='tl'></div><span>"+SS_name[SS_item]+"</span><div class='tr'></div>");

      SS_bodyStr="<p align=\"left\">"
      if (SS_hours[SS_item]!="")
      SS_bodyStr+="<b>Info & Hours: </b>"+SS_hours[SS_item]+"<br>";
      if (SS_phone[SS_item]!="")
         SS_bodyStr+="<BR><b>Phone: </b>"+SS_phone[SS_item]+"<br>";
      if (SS_moreInfo[SS_item]==1)
         SS_bodyStr+="</p><i>Click for more info</i>"; 
      SS_bodyStr+="</p>";
      SS_YUIsmallpanel.setBody(SS_bodyStr);

	  SS_YUIsmallpanel.render(document.getElementById("SS_smallpanel"));


      SS_YUIsmallpanel.show();
      SS_ph = document.getElementById("SS_smallpanel").clientHeight;
      SS_pc = document.getElementById("SS_smallpanel").clientWidth;

	  SS_originalcoords = SS_getImageCoords(document.getElementById("SS_spanid"));
	  
	  var SS_c=SS_getImageCoords (document.getElementById("SS_H"+SS_item));
	  var SS_w = parseInt(document.getElementById("SS_H"+SS_item).style.width.replace('px',''));
      var SS_h = parseInt(document.getElementById("SS_H"+SS_item).style.height.replace('px',''));
	  if (SS_originalcoords.x+(SS_areaWidth/2)<SS_c.x)
         document.getElementById("SS_smallpanel").style.left=((SS_c.x-200-SS_SideBarPad)+"px");
      else
         document.getElementById("SS_smallpanel").style.left=((SS_c.x+SS_w+SS_SideBarPad)+"px");
      document.getElementById("SS_smallpanel").style.top=(SS_c.y)+"px";
   } 
   

}

function SS_HideSmallPanel(SS_item)
{
   if (SS_wasHighlighted==0)
   {
      document.getElementById("SS_H"+SS_item).style.display="none";
   }

   if (SS_SmallPanelOverrideFn)
   {
      SS_HideSmallPanelOverride();
      return;
   }

   SS_YUIsmallpanel.hide();
   document.getElementById("SS_smallpanel").style.display="none";
}

function SS_openWin(page)
{
	window.open(page, 'SideStreet');
}

function GetSideNoteHTML(id)
{
	SetPlugins(id);

    photoID=-1;
    generalInfoTab=-1;
	for (i=0;i<m_numPlugins;i++)
	{
       if (m_pluginName[i]=="PhotosTab")
       {
          photoID=i;
       }
       if (m_pluginName[i]=="GeneralInfoTab")
       {
          generalInfoTab=i;
       }
	}

	html="<div> <div id=\"demo\" class=\"yui-navset\" style=\"text-align:left;width:"+SS_SideNoteWidth+"\" width="+SS_SideNoteWidth+"><ul class=\"yui-nav\">";

	if (generalInfoTab>-1)
	   html+="<li class=\"selected\"><a href=\"#plugin0\"><em>General Info</em></a></li>";
	
	if (photoID>-1)
	{
	   if (generalInfoTab==-1)
	      html+="<li class=\"selected\"><a href=\"#plugin1\"><em>Photos</em></a></li>";
	   else
	      html+="<li><a href=\"#plugin1\"><em>Photos</em></a></li>";
	}
	
	index=2;
	for (i=0;i<m_numPlugins;i++)
	{
       if (i!=photoID && i!=generalInfoTab)
       {
          if (generalInfoTab==-1 && photoID==-1 && i==0)
             html+="<li class=\"selected\"><a href=\"#plugin"+(index)+"\"><em>"+m_pluginName[i]+"</em></a></li>";
		  else        
		  {
		     if (m_pluginName[i]=="YelpTab")  
                html+="<li><a href=\"#plugin"+(index)+"\"><em>Yelp</em></a></li>";
		     else if (m_pluginName[i]=="TripAdvisorTab")  
                html+="<li><a href=\"#plugin"+(index)+"\"><em>Trip Advisor</em></a></li>";
		     else if (m_pluginName[i]=="GoSeeOregonTab")  
                html+="<li><a href=\"#plugin"+(index)+"\"><em>Go See Oregon</em></a></li>";
		     else if (m_pluginName[i]=="GoSeePortlandTab")  
                html+="<li><a href=\"#plugin"+(index)+"\"><em>Go See Portland</em></a></li>";
		     else if (m_pluginName[i]=="TwitterTab")  
                html+="<li><a href=\"#plugin"+(index)+"\"><em>Twitter</em></a></li>";
		     else
                html+="<li><a href=\"#plugin"+(index)+"\"><em>"+m_pluginName[i]+"</em></a></li>";
          }
          index++;
       }
	}
	
    html+="</ul><div class=\"yui-content\" scrolling=no border=0 style=\"width: "+SS_SideNoteWidth+"px; height: "+SS_SideNoteHeight+"px; overflow: hidden\" width="+SS_SideNoteWidth+" height="+SS_SideNoteHeight+">";

	if (generalInfoTab>-1)
	{
       html+="<div id=\"plugin0\"><div style=\"width: "+(SS_SideNoteWidth-20)+"px; height: "+(SS_SideNoteHeight-20)+"px; overflow: auto\" width="+(SS_SideNoteWidth-20)+" height="+(SS_SideNoteHeight-20)+">";

	   // insert General Info
	   html+=DrawGeneral(id);
	
	   html+="</div></div>";
	}

    if (photoID>-1)
    {
       SetPictures(id);
       m_currentPhoto=0;
      
       html+="<div id=\"plugin1\"><div style=\"width: "+(SS_SideNoteWidth-20)+"px; height: "+(SS_SideNoteWidth-20)+"px; overflow: auto\" width="+(SS_SideNoteWidth-20)+" height="+(SS_SideNoteHeight-20)+">";
	   if (m_numPhotos>1)
	   {
	      html+="<center><img id=\"photoback\" src=\""+SS_photoBackImg+"\" onclick=\"back();\" style=\"display:inline\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ";
	      html+="<img id=\"photonext\" src=\""+SS_photoNextImg+"\" onclick=\"next();\" style=\"display:inline\"></center>";
	   }
	   if (m_numPhotos>0)
	   {
	      html+="<center><img id=\"photobox_img\" src=\""+m_images[m_currentPhoto]+"\"></center>";
	      html+="<center><b id='description'>"+m_descriptions[m_currentPhoto]+"</b></center>";
	   }
	   else
	   {
	      html+="<center><img id=\"photobox_img\" src=\""+SS_imagePlaceHolderImg+"\" style=\"display:block\"></center>";
	   }
	   html+="</div></div>";
	}

    index=2;
	for (i=0;i<m_numPlugins;i++)
	{
       if (i!=photoID && i!=generalInfoTab)
       {
          if (m_extraData1[i]!="")
          {
             html+="<div id=\"plugin"+index+"\">";
	   	     html+="<iframe id=\"iframe"+index+"\" name=\"iframe"+index+"\" style=\"width:"+(SS_SideNoteWidth-20)+"px;height:"+(SS_SideNoteHeight-20)+"px\" width="+(SS_SideNoteWidth-20)+" height="+(SS_SideNoteHeight-20)+"  frameborder=0 src='"+m_extraData1[i]+"'></iframe>";
	   	     html+="</div>";
	   	  }
	   	  else
	   	  {
             html+="<div id=\"plugin"+index+"\"><div style=\"width: "+(SS_SideNoteWidth-20)+"px; height: "+(SS_SideNoteHeight-20)+"px; overflow: auto\" width="+(SS_SideNoteWidth-20)+" height="+(SS_SideNoteHeight-20)+">";
	         html+=m_extraData2[i];
		     html+="</div></div>";
	   	  }
          index++;
       }
	}

	
	html+="</div></div></div>";

	return html;
}

function SS_ctxClick(SS_item)
{
   AddSideNoteStr(SS_name[SS_item],SS_gmdid[SS_item]);

   if (SS_wasHighlighted==0)
   {
      SS_ClearAll();
      SS_ClearDirectory();
   }

   document.getElementById("SS_smallpanel").style.display="none";
   SS_originalcoords = SS_getImageCoords(document.getElementById("SS_spanid"));
   if (SS_LargePanelOverrideFn)
   {
      if (SS_LargePanelX==0)
      {
         SS_LargePanelOverride(SS_name[SS_item],SS_gmdid[SS_item],SS_item,SS_originalcoords.x+175,SS_originalcoords.y+50);
      }
      else
      {
         SS_LargePanelOverride(SS_name[SS_item],SS_gmdid[SS_item],SS_item,SS_LargePanelX,SS_LargePanelY);
      }
      return;
   }

   SS_x=0;
   SS_y=0;
   if (SS_LargePanelX==0)   
   {
     SS_x=SS_originalcoords.x+175;
     SS_y=SS_originalcoords.y+50;
   }
   else
   {
     SS_x=SS_LargePanelX;
     SS_y=SS_LargePanelY;
   }

   if (!SS_largePanelRendered)
   {
      SS_largePanelRendered=true;

      SS_panel1 = new YAHOO.widget.Panel("SS_panel1", { visible:false, constraintoviewport:false,draggable:true } );

      document.getElementById("SS_largepanel").style.display="block";
      document.getElementById("SS_largepanel").style.left=(SS_x+"px");
      document.getElementById("SS_largepanel").style.top=(SS_y+"px");
   }
   document.getElementById("SS_largepanel").style.display="block";

   SS_panel1.setHeader("<div class='tl'></div><span>"+SS_name[SS_item]+"</span><div class='tr'></div>");
   id = new Date().getTime();

// BRI-IDEA

	SS_panel1.setBody(GetSideNoteHTML(SS_item));
    YAHOO.example.init = function() 
    {
       var tabView = new YAHOO.widget.TabView('demo');
    };
    YAHOO.example.init();

// END

   SS_panel1.render(document.getElementById("SS_largepanel"));
   SS_panel1.show(); 
}

function SS_CloseLargePanel()
{
   document.getElementById("SS_largepanel").style.display="none";
   //document.getElementById("SS_selectblocker").style.display="none";
}

function SS_buildPanels(SS_gmdid_item,SS_item,SS_name_item,SS_hour_item,SS_phone_item,SS_moreInfo_item)
{
	SS_gmdid[SS_item]=SS_gmdid_item;
	SS_hours[SS_item]=SS_hour_item;
	SS_name[SS_item]=SS_name_item;
	SS_phone[SS_item]=SS_phone_item;
	SS_moreInfo[SS_item]=SS_moreInfo_item;
}




			var m_pluginIndex=new Array(100);
			var m_pluginName=new Array(100);
			var m_extraData1=new Array(100);
			var m_extraData2=new Array(100);
			var m_images=new Array(100);
		    var m_descriptions=new Array(100);
		    var m_numPhotos=0;
		    var m_currentPhoto=0;

			function ShowPhoto()
			{
			    if (m_numPhotos==0)
			    {
  		           document.getElementById("photobox_img").src=SS_imagePlaceHolderImg;
  		        }
  		        else if (m_numPhotos==1)
  		        {
  		           document.getElementById("photobox_img").src=m_images[0];
			       if (m_descriptions[0]!=null)
                      document.getElementById('description').innerHTML=m_descriptions[0];
  		        }
			    else
			    {
			       document.getElementById("photonext").style.display="inline";
			       document.getElementById("photoback").style.display="inline";
			       document.getElementById("photobox_img").src=m_images[m_currentPhoto];
			       if (m_descriptions[m_currentPhoto]!=null)
                      document.getElementById('description').innerHTML=m_descriptions[m_currentPhoto];
			    }
			    document.getElementById("photobox_img").style.display="block";
			}
			
			function next()
			{
			   m_currentPhoto=m_currentPhoto+1;
			   if (m_currentPhoto==m_numPhotos)
			      m_currentPhoto=0;
			      
			    ShowPhoto();
			}
			
			function back()
			{
			   m_currentPhoto=m_currentPhoto-1;
			   if (m_currentPhoto==-1)
			      m_currentPhoto=m_numPhotos-1;
			    ShowPhoto();
			}
			
		

	