/* _____________________________________ IE background flicker fix */
try {
 document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}

document.write('<style type="text/javascript">\n/*<![CDATA[*/');
if( typeof(adwiz) != undefined ) {
 if( !adwiz.exists('Top') ) {
  document.write('.mastswap{height:12px;padding:0 0 7px 0;clear:both;}');
  document.write('#mastHead{height:106px;overflow:hidden;}');
 } else {
  document.write('.mastswap{height:90px;padding:5px 0 7px 0;clear:both;}');
  document.write('#mastHead{height:190px;overflow:hidden;}');
 }
} else {
 document.write('.mastswap{height:90px;padding:5px 0 7px 0;clear:both;}');
 document.write('#mastHead{height:190px;overflow:hidden;}');
}
document.write('/*]]>*/\n</style>');

jQuery(document).ready(function($){
 /* mast ad swap */
 if( typeof(adwiz) != undefined ) {
  if (!adwiz.exists('Top')){
   $('#login-widget').show();
   $('#login-widget').addClass("partial-view");
  } else {
   $('#login-widget').show();
   $('#login-widget').addClass("widget-float");
  }
 }

 /* ------------------------------------------- Setup tabs */
 $("#tab-a").show();
 $("#tab-a > ul").tabs();

 $("#tab-b").show();
 $("#tab-b > ul").tabs();

 $("#tab-comments").show();
 $("#tab-comments > ul").tabs();

 $('#more-stories-face').html($('#more-stories').html());
 $('#related-stories-face').html($('#related-stories').html());

 /* ------------------------------------------------------- */
 /* Mast location injectorator */
 var pageID = $('#page-id').html();
 $('.taglines > h1').html(pageID);
}); /* END PAGE FUNCTION */
