document.write("<style type='text/css'>.subs{ padding: 1px; border: 1px solid #b6b6b6; margin: .6em 0 .6em 0 !important;} .subs a{ color: #666666 !important; border: 0 !important; text-decoration: none !important;} .subs a:hover{ color: #ADADAD !important; border: 0 !important; text-decoration: none !important;} .subs_header{ font-size: .9em; font-weight: bold; position: relative;} .subs_header_text{ background: #E5E5E5 !important; padding: 1em 1em 1em 1em !important;} .subs_header_toggle{ display: block; position: absolute; top: 1em; right: 1em; font-weight: bold; cursor: pointer;} .subs_subheader{ padding: .7em .7em .5em .7em !important; border: 0 !important; margin: 0 !important; font-size: 1em !important; background: #E5E5E5 !important; font-weight: bold;} .subs_subcontent{ font-size: 0.95em; line-height: 1.2em !important; margin: .15em 0 .15em 0 !important; padding: .7em !important; background: white !important; border-top: 2px solid #E5E5E5 !important; border-bottom: 2px solid #E5E5E5 !important; overflow: hidden; height: auto;} .subs_subcontent p{ margin: .45em .15em .45em .15em !important; padding: 0 !important;} .subs_subcontent_left{ float: right !important; margin: 0 0 .5em .5em !important;} .subs img{ max-width: 150px !important; max-height: 150px !important; border: 0 !important; padding: 0 !important;} .subs img:hover, .subs_subcontent_left a:hover{ border: 0 !important;} .subs_subcontent_right{ } .subs_subcontent table{ width: auto !important;} .subs_subcontent td{ padding: .15em !important; vertical-align: top !important;} .subs_subcontent .td_left{ width: 10px !important; font-weight: bold !important;} .subs_footer{ padding: .3em !important; font-size: .9em !important; text-align: right !important; background: #E5E5E5 !important; color:#666666 !important;} .subs_footer a{ font-weight: bold; }</style>");
//color: #E5E5E5


function subs_toggle(start)
{
  var date = new Date();
  date.setTime(date.getTime()+(30*24*60*60*1000));
  var expires = "; expires="+date.toGMTString();

  var content = getNextSibling(start.parentNode);
  var header_text = getNextSibling(start);

  if(start.innerHTML == '+')
  {
    content.style.display = 'block';
    start.innerHTML = '-';
		header_text.style.display = 'none';
    document.cookie = "subs_widget=true"+expires+"; path=/";
  }
  else
  {
    content.style.display = 'none';
    start.innerHTML = '+';
		header_text.style.display = 'block';
    document.cookie = "subs_widget=false"+expires+"; path=/";
  }
}

function getNextSibling(n){	
  var x=n.nextSibling;
  while(x.nodeType!=1){
    x=x.nextSibling;
  }
  return x;
}

function readCookie(name) {
  var nameEQ = name + "=";
  var ca = document.cookie.split(';');
  for(var i=0;i < ca.length;i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0) {
      return c.substring(nameEQ.length,c.length);
    }
  }
  return null;
}

var subs_widget = readCookie('subs_widget');
if(subs_widget == 'false')
{
  document.write('<style type=\"text/css\"> .subs_content { display: none; } </style>'+'<a class="subs_header_toggle" onClick="subs_toggle(this)">+</a>');
}
else
{
  document.write('<style type=\"text/css\"> .subs_header_text { display: none; } </style>'+'<a class="subs_header_toggle" onClick="subs_toggle(this)">-</a>');
}