  
  function scroll_magazine()
  {
  
   document.getElementById('past_issues').innerHTML =  document.getElementById('past_issues2').innerHTML
    document.getElementById('past_issues').scrollLeft = document.getElementById('past_issues').scrollWidth
  

  }

var cur_slide          	= 0;
var ms_slide          	= 0;
var alm_slide           = 0;
var ttt_tabon           = 0;

nav_ideas 		  		= new Image();
nav_ideas.src 	 		= "http://www.hallmarkmagazine.com/images/nav_ideas.gif";

nav_ideas_over 	  		= new Image();
nav_ideas_over.src 		= "http://www.hallmarkmagazine.com/images/nav_ideas_over.gif";

nav_projects       		= new Image();
nav_projects.src       = "http://www.hallmarkmagazine.com/images/nav_projects.gif";

nav_projects_over 		= new Image();
nav_projects_over.src   = "http://www.hallmarkmagazine.com/images/nav_projects_over.gif";
  
nav_food      	    	= new Image();
nav_food.src           = "http://www.hallmarkmagazine.com/images/nav_food.gif";

nav_food_over           = new Image();
nav_food_over.src       = "http://www.hallmarkmagazine.com/images/nav_food_over.gif";

nav_entertain     		= new Image();
nav_entertain.src       = "http://www.hallmarkmagazine.com/images/nav_entertain.gif";

nav_entertain_over  	= new Image();
nav_entertain_over.src  = "http://www.hallmarkmagazine.com/images/nav_entertain_over.gif";

nav_connect       		= new Image();
nav_connect.src         = "http://www.hallmarkmagazine.com/images/nav_connect.gif";

nav_connect_over  		= new Image();
nav_connect_over.src    = "http://www.hallmarkmagazine.com/images/nav_connect_over.gif";


nav_magazine       		= new Image();
nav_magazine.src        = "http://www.hallmarkmagazine.com/images/nav_magazine.gif";

nav_magazine_over  		= new Image();
nav_magazine_over.src   = "http://www.hallmarkmagazine.com/images/nav_magazine_over.gif";

nav_hallmark             = new Image();
nav_hallmark.src        = "http://www.hallmarkmagazine.com/images/nav_hallmark.gif";

nav_hallmark_over  		= new Image();
nav_hallmark_over.src   = "http://www.hallmarkmagazine.com/images/nav_hallmark_over.gif";

nav_ecard           	= new Image();
nav_ecard.src           = "http://www.hallmarkmagazine.com/images/nav_sendecard.gif";

nav_ecard_over  		= new Image();
nav_ecard_over.src      = "http://www.hallmarkmagazine.com/images/nav_sendecard_over.gif";

nav_locator             = new Image();
nav_locator.src         = "http://www.hallmarkmagazine.com/images/nav_storelocator.gif";

nav_locator_over  		= new Image();
nav_locator_over.src    = "http://www.hallmarkmagazine.com/images/nav_storelocator_over.gif";

nav_holiday 		    = new Image();
nav_holiday.src         = "http://www.hallmarkmagazine.com/images/nav_holiday.gif";

nav_holiday_over  		= new Image();
nav_holiday_over.src    = "http://www.hallmarkmagazine.com/images/nav_holiday_over.gif";



function swapImage(thisImage,newImage) {
	if (document.images) {
		document[thisImage].src = eval(newImage + ".src")
	}
	
}

function changePic(imgSrc){
    document.getElementById('pic1').src=imgSrc;
  }
  
function popUp(url_name) {
   window.open(url_name,'','toolbar=no,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=540,height=620');
  }
   
function swap_div(todisplay,iterations,color)
  {
  
  
     for (x=0; x <=iterations; x++)
	 {    
	     if (todisplay==x){
		 document.getElementById('slide_div_'+x).style.display="block";
		 document.getElementById('toptab_'+x).style.backgroundColor=color;
		 document.getElementById('tablink_'+x).style.color=color;
		 document.getElementById('toptab_'+x).style.borderLeft="1px dotted #000";
		 document.getElementById('toptab_'+x).style.borderRight="1px dotted #000";
		 document.getElementById('toptab_'+x).style.borderTop="1px dotted #000";
		 document.getElementById('top_tabs_right_'+x).style.borderRight="1px solid #C6C6C6";
		 document.getElementById('top_tabs_right_'+x).style.backgroundColor="E3E3E3";
		 document.getElementById('top_tabs_left_'+x).style.borderLeft="1px solid #C6C6C6";
		 document.getElementById('top_tabs_left_'+x).style.backgroundColor="E3E3E3";
		 document.getElementById('tabs_right_'+x).style.borderRight="1px solid #C6C6C6";
		 document.getElementById('tabs_right_'+x).style.backgroundColor="E3E3E3";
		 document.getElementById('tabs_left_'+x).style.borderLeft="1px solid #C6C6C6";
		 document.getElementById('tabs_left_'+x).style.backgroundColor="E3E3E3";
		 }
		 else
		 {
	      document.getElementById('slide_div_'+x).style.display="none";
		  document.getElementById('toptab_'+x).style.backgroundColor='';
		  document.getElementById('tablink_'+x).style.color='#000';
		  document.getElementById('toptab_'+x).style.border="";
		  document.getElementById('top_tabs_right_'+x).style.borderRight="";
		  document.getElementById('top_tabs_right_'+x).style.backgroundColor="";
		  document.getElementById('top_tabs_left_'+x).style.borderLeft="";
		  document.getElementById('top_tabs_left_'+x).style.backgroundColor="";
		  document.getElementById('tabs_right_'+x).style.borderRight="";
		  document.getElementById('tabs_right_'+x).style.backgroundColor="";
		  document.getElementById('tabs_left_'+x).style.borderLeft="";
		  document.getElementById('tabs_left_'+x).style.backgroundColor="";
		  }
		}	 
  }
  
  
 function arrow_left()
 {
    if (document.getElementById('article_show').scrollLeft>0) {
  	document.getElementById('article_show').scrollLeft = document.getElementById('article_show').scrollLeft - 401
	}
	else
	document.getElementById('article_show').scrollLeft = document.getElementById('article_show').scrollWidth
}
  
function arrow_right()
{
   if(document.getElementById('article_show').scrollWidth-document.getElementById('article_show').scrollLeft == 401)
	{document.getElementById('article_show').scrollLeft=0} 
	else
	document.getElementById('article_show').scrollLeft = document.getElementById('article_show').scrollLeft + 401
}


function hide_input()
{

search =  document.search_form.search.value


if (search == "Search")
{
document.search_form.search.value = "" 
}


}


 function swap_div(todisplay,iterations,color)
  {
  
  
     for (x=0; x <=iterations; x++)
	 {    
	     if (todisplay==x){
		 document.getElementById('slide_div_'+x).style.display="block";
		 document.getElementById('toptab_'+x).style.backgroundColor=color;
		 document.getElementById('tablink_'+x).style.color=color;
		 document.getElementById('toptab_'+x).style.borderLeft="1px dotted #000";
		 document.getElementById('toptab_'+x).style.borderRight="1px dotted #000";
		 document.getElementById('toptab_'+x).style.borderTop="1px dotted #000";
		 document.getElementById('top_tabs_right_'+x).style.borderRight="1px solid #C6C6C6";
		 document.getElementById('top_tabs_right_'+x).style.backgroundColor="E3E3E3";
		 document.getElementById('top_tabs_left_'+x).style.borderLeft="1px solid #C6C6C6";
		 document.getElementById('top_tabs_left_'+x).style.backgroundColor="E3E3E3";
		 document.getElementById('tabs_right_'+x).style.borderRight="1px solid #C6C6C6";
		 document.getElementById('tabs_right_'+x).style.backgroundColor="E3E3E3";
		 document.getElementById('tabs_left_'+x).style.borderLeft="1px solid #C6C6C6";
		 document.getElementById('tabs_left_'+x).style.backgroundColor="E3E3E3";
		 }
		 else
		 {
	      document.getElementById('slide_div_'+x).style.display="none";
		  document.getElementById('toptab_'+x).style.backgroundColor='';
		  document.getElementById('tablink_'+x).style.color='#000';
		  document.getElementById('toptab_'+x).style.border="";
		  document.getElementById('top_tabs_right_'+x).style.borderRight="";
		  document.getElementById('top_tabs_right_'+x).style.backgroundColor="";
		  document.getElementById('top_tabs_left_'+x).style.borderLeft="";
		  document.getElementById('top_tabs_left_'+x).style.backgroundColor="";
		  document.getElementById('tabs_right_'+x).style.borderRight="";
		  document.getElementById('tabs_right_'+x).style.backgroundColor="";
		  document.getElementById('tabs_left_'+x).style.borderLeft="";
		  document.getElementById('tabs_left_'+x).style.backgroundColor="";
		  }
		  
		 
		}	
		 
		 
		 
  }
  

  var x_timer  
  
  function arrow_left(articleBox_id)
  {
    if (document.getElementById('article_show_'+articleBox_id).scrollLeft>0) {
  	document.getElementById('article_show_'+articleBox_id).scrollLeft = document.getElementById('article_show_'+articleBox_id).scrollLeft - 402
	}
	else
	document.getElementById('article_show_'+articleBox_id).scrollLeft = document.getElementById('article_show_'+articleBox_id).scrollWidth
  }
  
  function arrow_right(articleBox_id)
  {
   if(document.getElementById('article_show_'+articleBox_id).scrollWidth-document.getElementById('article_show_'+articleBox_id).scrollLeft == 402)
	{document.getElementById('article_show_'+articleBox_id).scrollLeft=0} 
	else
	document.getElementById('article_show_'+articleBox_id).scrollLeft = document.getElementById('article_show_'+articleBox_id).scrollLeft + 402
  }
  

   function arrow_left_2(articleBox_id)
  {
    if (document.getElementById('article_show_'+articleBox_id).scrollLeft>0) {
  	document.getElementById('article_show_'+articleBox_id).scrollLeft = document.getElementById('article_show_'+articleBox_id).scrollLeft - 402
	}
	else
	document.getElementById('article_show_'+articleBox_id).scrollLeft = document.getElementById('article_show_'+articleBox_id).scrollWidth
  }
  
  function arrow_right_2(articleBox_id)
  {
   if(document.getElementById('article_show_'+articleBox_id).scrollWidth-document.getElementById('article_show_'+articleBox_id).scrollLeft == 402)
	{document.getElementById('article_show_'+articleBox_id).scrollLeft=0} 
	else
	document.getElementById('article_show_'+articleBox_id).scrollLeft = document.getElementById('article_show_'+articleBox_id).scrollLeft + 402
  }
   	
  function pause_scroll()
  {
    clearTimeout(x_timer);
  }
  
  function scroll_click(to_position)
  {
  	document.getElementById('featured_container').scrollLeft = to_position
  }	  
  
  function auto_scroll()
  {
   x_timer =  setTimeout(main_scroll,5000);
   }
  
  function main_scroll()
  {
//     alert( document.getElementById('featured_container').scrollWidth)
   if (document.getElementById('featured_container').scrollLeft==0) {
	 document.getElementById('featured_container').scrollLeft = document.getElementById('featured_container').scrollLeft + 749
     }
	 
	 else if (document.getElementById('featured_container').scrollLeft>0 && document.getElementById('featured_container').scrollLeft < (document.getElementById('featured_container').scrollWidth-749)) {
	 document.getElementById('featured_container').scrollLeft = document.getElementById('featured_container').scrollLeft + 749
     }
	 else{
	 document.getElementById('featured_container').scrollLeft = 0
	 }
	
    x_timer =   setTimeout(main_scroll,5000);
 }
  
  
  function display_tab(tab_to_show)
  {
   document.getElementById('tab_top2_'+tab_to_show).style.display="none"
   document.getElementById('tab_top_'+tab_to_show).style.display="block"
  }
  
 function hide_tab(tab_to_show)
  {
   document.getElementById('tab_top2_'+tab_to_show).style.display="block"
   document.getElementById('tab_top_'+tab_to_show).style.display="none"
  }
  
  function auto_scroll_2()
  {
   x_timer =  setTimeout(main_scroll_2,5000);
   }
  
  function main_scroll_2()
  {
   //alert( document.getElementById('featured_container').scrollWidth)
 	  if (document.getElementById('featured_container').scrollLeft==0) {
	 document.getElementById('featured_container').scrollLeft = document.getElementById('featured_container').scrollLeft + 747
     }
	 else if (document.getElementById('featured_container').scrollLeft>0 && document.getElementById('featured_container').scrollLeft < (document.getElementById('featured_container').scrollWidth-747)) {
	 document.getElementById('featured_container').scrollLeft = document.getElementById('featured_container').scrollLeft + 747
     }
	 else{
	 document.getElementById('featured_container').scrollLeft = 0
	 }

    x_timer =   setTimeout(main_scroll_2,5000);
 }
  
  function display_tab2(tab_to_show)
  {
   document.getElementById('thumb_'+tab_to_show).style.display="block"
   document.getElementById('thumbover_'+tab_to_show).style.display="none"
  }
  
    
  function hide_tab2(tab_to_show)
  {
   document.getElementById('thumb_'+tab_to_show).style.display="none"
   document.getElementById('thumbover_'+tab_to_show).style.display="block"
  }
  
  
  function dt_image(num_to_show, color_to)
  {
     
		for (j=0;j<=5;j=j+1) 
		{
    	  if(document.getElementById('img_'+j)){
		     document.getElementById('img_'+j).style.display="none"
			 document.getElementById('link_'+j).style.color="#000"
		   }
		}

		document.getElementById('img_'+num_to_show).style.display="block"
		document.getElementById('link_'+num_to_show).style.color=color_to
  
  }
  
  
  function today_scroll_click(to_position)
  {
  	document.getElementById('todays_tips').scrollLeft = to_position
  }	  
  
    
  function display_tab_today(tab_to_show)
  {
   document.getElementById('todaytab2_'+tab_to_show).style.display="none"
   document.getElementById('todaytab_'+tab_to_show).style.display="block"
  }
  
 function hide_tab_today(tab_to_show)
  {
    document.getElementById('todaytab2_'+tab_to_show).style.display="block"
    document.getElementById('todaytab_'+tab_to_show).style.display="none"
  }
  
  
	function sendThis2(the_url,title,element_div){
		
		document.getElementById('send_to_friend').style.top= (document.getElementById(element_div).offsetTop-200)+'px'
		document.getElementById('send_to_friend').style.display="block";
		document.getElementById('url').value = the_url;
		document.getElementById('title').value = title;
	}
	
	function sendThis4(the_url,title,topid){
		document.getElementById('send_to_friend').style.top=document.getElementById(topid).offsetTop+11
		document.getElementById('send_to_friend').style.display="block";
		document.getElementById('url').value = the_url;
		document.getElementById('title').value = title;
	}


function close_send(){
	document.getElementById('send_to_friend').style.display="none";
}


  function display_list(to_display)
  {
  
 		for (x=0; x <=4; x++)
		{
		 
		 if(document.getElementById('ls_'+x))
		 { 
		 	document.getElementById('ls_'+x).style.display="none"
		  }
		
		}
		document.getElementById(to_display).style.display="block"
		
  
  }
  
  
  function display_ms(to_display,to_max)
  {
  
 		for (x=0; x <=to_max; x++)
		{
		 
		 if(document.getElementById('ms_'+x))
		 { 
		 	document.getElementById('ms_'+x).style.display="none"
		  }
		  
		   if(document.getElementById('mst_'+x))
		 { 
		 	document.getElementById('mst_'+x).style.display="none"
		  }
		
		}
		document.getElementById('ms_'+to_display).style.display="block"
		document.getElementById('mst_'+to_display).style.display="block"
		
  
  }
  
  
  
  function display_ms(to_display,to_max)
  {
  
 		for (x=0; x <=to_max; x++)
		{
		 
		 if(document.getElementById('ms_'+x))
		 { 
		 	document.getElementById('ms_'+x).style.display="none"
		  }
		  
		   if(document.getElementById('mst_'+x))
		 { 
		 	document.getElementById('mst_'+x).style.display="none"
		  }
		
		}
		document.getElementById('ms_'+to_display).style.display="block"
		document.getElementById('mst_'+to_display).style.display="block"
		
  
  }
  
  
  
 function display_ls(to_display,to_max)
  {     cur_slide = to_display
  
 		for (x=0; x <=to_max; x++)
		{
		 
		  if(document.getElementById('rs_'+x))
		  { 
		 	document.getElementById('rs_'+x).style.display="none"
		  }
		  
		  if(document.getElementById('rst_'+x))
		  { 
		 	document.getElementById('rst_'+x).style.display="none"
		  }
		  
		   if(document.getElementById('rstext_'+x))
		  { 
		 	document.getElementById('rstext_'+x).style.display="none"
		  }
		
		}
		
		if (to_display<0)
		{
		     cur_slide  = to_max
			 to_display = to_max
		} 
		
		if (to_display>to_max)
		{
		     cur_slide  = 0
			 to_display = 0
		} 
		
		
		document.getElementById('rs_'+to_display).style.display="block"
		document.getElementById('rst_'+to_display).style.display="block"
		document.getElementById('rstext_'+to_display).style.display="block"
  }
  
  
 function scroll_ms_left()
 {
    if (document.getElementById('slide_show_mini').scrollLeft>0) {
  	document.getElementById('slide_show_mini').scrollLeft = document.getElementById('slide_show_mini').scrollLeft -70
	}
	else
	document.getElementById('slide_show_mini').scrollLeft = document.getElementById('slide_show_mini').scrollWidth
}
  
function scroll_ms_right(to_max)
{
   if(document.getElementById('slide_show_mini').scrollWidth-document.getElementById('slide_show_mini').scrollLeft == 340 && (to_max==cur_slide))
	{document.getElementById('slide_show_mini').scrollLeft=0} 
	else
	document.getElementById('slide_show_mini').scrollLeft = document.getElementById('slide_show_mini').scrollLeft + 70
}

 
  function scroll_ms2_left()
 {
    if (document.getElementById('slide_show_large2').scrollLeft>0) {
  	document.getElementById('slide_show_large2').scrollLeft = document.getElementById('slide_show_large2').scrollLeft -70
	}
	else
	document.getElementById('slide_show_large2').scrollLeft = document.getElementById('slide_show_large2').scrollWidth
}
  
function scroll_ms2_right(to_max)
{ 
   if(document.getElementById('slide_show_large2').scrollWidth-document.getElementById('slide_show_large2').scrollLeft == 342 && (to_max==cur_slide))
	{document.getElementById('slide_show_large2').scrollLeft=0} 
	else
	document.getElementById('slide_show_large2').scrollLeft = document.getElementById('slide_show_large2').scrollLeft + 70
}

 

  function display_ms(to_display,to_max)
  { ms_slide = to_display
  
 		for (x=0; x <=to_max; x++)
		{
		 
		 if(document.getElementById('ms_'+x))
		 { 
		 	document.getElementById('ms_'+x).style.display="none"
		  }
		  
		   if(document.getElementById('mst_'+x))
		 { 
		 	document.getElementById('mst_'+x).style.display="none"
		  }
		
		}
		
		if (to_display<0)
		{
		     ms_slide  = to_max
			 to_display = to_max
		} 
		
		if (to_display>to_max)
		{
		     ms_slide  = 0
			 to_display = 0
		} 
		
		
		
		
		document.getElementById('ms_'+to_display).style.display="block"
		document.getElementById('mst_'+to_display).style.display="block"
		
  
  
  
  
  } 
  
  
  
  
  

 function arrow_left_3(width,element)
 {
 
     if(document.getElementById(''+element+'').scrollLeft-width == 0)
	{  
	      document.getElementById('magazine_left_arrow').style.display='none'
	}
	
    if (document.getElementById(''+element+'').scrollLeft>0) {
  	document.getElementById(''+element+'').scrollLeft = document.getElementById(''+element+'').scrollLeft - width
	document.getElementById('magazine_right_arrow').style.display='block'
	}
	//else
	//document.getElementById(''+element+'').scrollLeft = document.getElementById(''+element+'').scrollWidth
}
  
function arrow_right_3(width,element,viewport_size)
{   //alert(document.getElementById(''+element+'').scrollWidth-document.getElementById(''+element+'').scrollLeft-width )
    
	if(document.getElementById(''+element+'').scrollWidth-document.getElementById(''+element+'').scrollLeft-width == viewport_size)
	{  document.getElementById('magazine_right_arrow').style.display='none'}
	

   if(document.getElementById(''+element+'').scrollWidth-document.getElementById(''+element+'').scrollLeft == viewport_size)
	{
	//document.getElementById(''+element+'').scrollLeft=0
	} 
	else
	document.getElementById(''+element+'').scrollLeft = document.getElementById(''+element+'').scrollLeft + width
    document.getElementById('magazine_left_arrow').style.display='block'
}



function issue_detail(element_to_display,position,max_divs)
{
  if (position == 1)
  {to_left = document.getElementById(element_to_display).offsetWidth + 300}
  
  if (position == 2)
  {to_left = document.getElementById(element_to_display).offsetWidth + 460}
  
   if (position == 3)
  {to_left = document.getElementById(element_to_display).offsetWidth + 640}
  
   if (position == 4)
  {to_left = document.getElementById(element_to_display).offsetWidth + 800}
  
 
 	for (x=0; x <=max_divs; x++)
		{
		 
		 if(document.getElementById('div_issue_'+x))
		 { 
		 	document.getElementById('div_issue_'+x).style.display="none"
		  }
		  
		}
  
   document.getElementById(element_to_display).style.left=to_left
   document.getElementById(element_to_display).style.display='block'
 //alert()

  
}


function issue_detail_1(image_id, element_to_display,max_divs)
{

//alert(document.getElementById(image_id).offsetLeft)
//var table_left = document.getElementById('past_issues_table').offsetLeft 
 	for (x=0; x <=max_divs; x++)
		{
		 
		 if(document.getElementById('div_issue_'+x))
		 { 
		 	document.getElementById('div_issue_'+x).style.display="none"
		  }
		
		}


var theleft = document.getElementById(image_id).offsetLeft - document.getElementById('past_issues').scrollLeft + document.getElementById('past_issues').offsetLeft-105;

//alert(table_left)

document.getElementById(element_to_display).style.display='block'// document.getElementById(the_img).offsetLeft;
document.getElementById(element_to_display).style.left = theleft + 'px' ; // document.getElementById(the_img).offsetLeft;
document.getElementById(element_to_display).style.marginTop='-410px'; //document.getElementById(the_img).offsetTop;//19

 //  document.getElementById(element_to_display).style.left=to_left
 // document.getElementById(element_to_display).style.display='block'
 //alert()
  
}


function kill_element(element_to_display)
{
  document.getElementById(element_to_display).style.display='none'
}

function kill_all_elements(max_divs)
{
 	for (x=0; x <=max_divs; x++)
		{
		 
		 if(document.getElementById('div_issue_'+x))
		 { 
		 	document.getElementById('div_issue_'+x).style.display="none"
		  }
		
		}

}

    
 function display_almanac(to_display,to_max)
  {     alm_slide = to_display
  
 		for (x=0; x <=to_max; x++)
		{
		 
		  if(document.getElementById('almimg_'+x))
		  { 
		 	document.getElementById('almimg_'+x).style.display="none"
		  }
		  
		  if(document.getElementById('almtext_'+x))
		  { 
		 	document.getElementById('almtext_'+x).style.display="none"
		  }
		  
	      if(document.getElementById('at_'+x))
		  { 
		 	document.getElementById('at_'+x).style.display="none"
		  }
		
	    }
		
		if (to_display<0)
		{
		     alm_slide  = to_max
			 to_display = to_max
		} 
		
		if (to_display>to_max)
		{
		     alm_slide  = 0
			 to_display = 0
		} 
		
		
		document.getElementById('almimg_'+to_display).style.display="block"
		document.getElementById('almtext_'+to_display).style.display="block"
		document.getElementById('at_'+to_display).style.display="block"
  }
  
  
 function scroll_almanac_left()
 {
    if (document.getElementById('almanac_thumbs').scrollLeft>0) {
  	document.getElementById('almanac_thumbs').scrollLeft = document.getElementById('almanac_thumbs').scrollLeft-110
	}
	else
	document.getElementById('almanac_thumbs').scrollLeft = document.getElementById('almanac_thumbs').scrollWidth
}
  
function scroll_almanac_right()
{
   if(document.getElementById('almanac_thumbs').scrollWidth-document.getElementById('almanac_thumbs').scrollLeft == 298)
	{document.getElementById('almanac_thumbs').scrollLeft=0} 
	else
	document.getElementById('almanac_thumbs').scrollLeft = document.getElementById('almanac_thumbs').scrollLeft + 110
}
  
  
  function dispay_tttTab(group_to_show,tab_to_show)
  {
   document.getElementById('todaytab2_'+group_to_show+'_'+tab_to_show).style.display="none"
   document.getElementById('todaytab_'+group_to_show+'_'+tab_to_show).style.display="block"
  }
  
 function hide_tttTab(group_to_show,tab_to_show)
  {
    if(ttt_tabon!=tab_to_show)
	{
  	  document.getElementById('todaytab2_'+group_to_show+'_'+tab_to_show).style.display="block"
      document.getElementById('todaytab_'+group_to_show+'_'+tab_to_show).style.display="none"
	 }
  }
  
   function select_tttTab(group_to_show,tab_to_show,tab_color)
  {
  
    for (j=0;j<=5;j=j+1) 
		{
    	  if(document.getElementById('tttText_'+group_to_show+'_'+j)){
		     document.getElementById('tttText_'+group_to_show+'_'+j).style.display="none"
		   }
		   
		   if( document.getElementById('todaytab_'+group_to_show+'_'+j)){
		     document.getElementById('todaytab_'+group_to_show+'_'+j).style.display="none"
			 document.getElementById('todaytab2_'+group_to_show+'_'+j).style.display="block"
			 document.getElementById('btt_'+group_to_show+'_'+j).className='blur_2'
			 document.getElementById('btt2_'+group_to_show+'_'+j).className="shadow_2"
			 document.getElementById('tablinksNew_'+group_to_show+'_'+j).style.color='#000'
		    }
		}

   ttt_tabon = tab_to_show
   document.getElementById('tttText_'+group_to_show+'_'+tab_to_show).style.display="block"
   document.getElementById('todaytab2_'+group_to_show+'_'+tab_to_show).style.display="none"
   document.getElementById('todaytab_'+group_to_show+'_'+tab_to_show).style.display="block"
   document.getElementById('btt_'+group_to_show+'_'+tab_to_show).className='blur'
   document.getElementById('btt2_'+group_to_show+'_'+tab_to_show).className='shadow'
   document.getElementById('tablinksNew_'+group_to_show+'_'+tab_to_show).style.color=tab_color
  }
  
  
   function display_tttLinks(slide,to_display,tab_color)
  {
     if(document.getElementById('ttImage_'+slide+'_1'))
	 {
	   document.getElementById('ttImage_'+slide+'_1').style.display='none'
	    document.getElementById('link_'+slide+'_1').style.color='#000'
	 }  
	 
	   if(document.getElementById('ttImage_'+slide+'_2'))
	 {
	   document.getElementById('ttImage_'+slide+'_2').style.display='none'
	    document.getElementById('link_'+slide+'_2').style.color='#000'
	 }  
	 
	   if(document.getElementById('ttImage_'+slide+'_3'))
	 {
	   document.getElementById('ttImage_'+slide+'_3').style.display='none'
	    document.getElementById('link_'+slide+'_3').style.color='#000'
	 }  
	 
	   if(document.getElementById('ttImage_'+slide+'_4'))
	 {
	   document.getElementById('ttImage_'+slide+'_4').style.display='none'
	    document.getElementById('link_'+slide+'_4').style.color='#000'
	 }  
	 
	  if(document.getElementById('ttImage_'+slide+'_5'))
	 {
	   document.getElementById('ttImage_'+slide+'_5').style.display='none'
	   document.getElementById('link_'+slide+'_5').style.color='#000'
	 }  

	  document.getElementById('ttImage_'+slide+'_'+to_display).style.display='block' 
	  document.getElementById('link_'+slide+'_'+to_display).style.color=tab_color
  }
