// JavaScript Document
DD_roundies.addRule('.button input', '3px', true);
DD_roundies.addRule('#main_content_section', '10px', true);
DD_roundies.addRule('#home_content', '10px', true);
//DD_roundies.addRule('.tooltip', '6px', true);
DD_roundies.addRule('#round_box', '10px', true);
DD_roundies.addRule('#content_box', '10px', true);
DD_roundies.addRule('#faq_link_box', '10px', true);
DD_roundies.addRule('#solution_link_box', '10px', true);
DD_roundies.addRule('.button', '10px', true);

$(document).ready(function(){
   $(function(){
      $('#footer_logos div')
         .hover(function(){
            var c = $(this).attr('class');
            $("span." + c).fadeIn() //animate({backgroundPosition:"(0 0)"}, {duration:200})
         },function(){
            var c = $(this).attr('class');
            $("span." + c).fadeOut()//animate({backgroundPosition:"(-300 0)"}, {duration:100}).end()

         })
   });


   //$('.hidden').hide();
   //$('.visible').show();
   //$("#nav_box_left h3").click(function(){
      //$(this).siblings('ul').hide();
      //$(this).next('ul:hidden').slideDown(300);
   //})
   //$(function(){
     // $('#nav_box_left ul li')
         //.click(function(){
            //var s = "#" + $(this).attr('class')
            //$("#middle_content_box div").slideUp().end()
            //$(s).slideDown();
            //return false;
         //})
   //});

$("#phone_contact_prefs").hide();
   $(function(){
       //run the code in the markup
      $("pre code").each(function() {
          eval($(this).text());
      });
   });
   $("#section_content div").stop().hide();
   $("#body_nav ul li").css({backgroundPosition:"-300px 0"});
   $(function(){
      $('#body_nav ul li a')
         .click(function(){
            var s = "#content_" + $(this).attr('class')
            $("#section_content div").end();
            $(s).slideDown();
            return false;
         })
   });
   $(function(){
      $('#body_nav ul li a')
         .blur(function(){
            $("#section_content div").stop().slideUp();
            return false;
         })
   });
   $(function(){
      $('#body_nav ul li a')
         .hover(function(){
            var c = $(this).attr('class');
            $("li." + c).animate({backgroundPosition:"(0 0)"}, {duration:200})
         },function(){
            var c = $(this).attr('class');
            $("li." + c).stop().animate({backgroundPosition:"(-300 0)"}, {duration:100}).end()

         })
   });

});

//function set_flash(swfFile, divName, swfWidth, swfHeight) {
//   document.write('<div id="' + divName + '">');
//      AC_FL_RunContent(
//         'codebase', 'https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
//         'width', swfWidth,
//         'height', swfHeight,
//         'src', swfFile,
//         'quality', 'high',
//         'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
//         'align', 'left',
//         'play', 'true',
//         'loop', 'true',
//         'scale', 'showall',
//         'wmode', 'transparent',
//         'devicefont', 'false',
//         'id', swfFile,
//         'bgcolor', '#ffffff',
//         'name', swfFile,
//         'menu', 'false',
//         'allowFullScreen', 'false',
//         'allowScriptAccess','sameDomain',
//         'movie', swfFile,
//         'salign', ''
//         ); //end AC code
//
////   document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="');
////   document.write(swfWidth);
////   document.write('" height="');
////   document.write(swfHeight);
////   document.write('" id="');
////   document.write(swfFile);
////   document.write('" align="left">\n');
////   document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
////   document.write('<param name="allowFullScreen" value="true" />\n');
////   document.write('<param name="movie" value="');
////   document.write(swfFile);   
////   document.write('.swf" />\n');
////   document.write('<param name="quality" value="high" />\n');
////   document.write('<param name="wmode" value="transparent" />\n');
////   document.write('<param name="bgcolor" value="#ffffff" />\n');
////   document.write('<embed src="');
////   document.write(swfFile);     
////   document.write('.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="');
////   document.write(swfWidth);
////   document.write('" height="');
////   document.write(swfHeight);   
////   document.write('" name="');
////   document.write(swfFile);        
////   document.write('" align="left" allowscriptaccess="sameDomain" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" /></embed>\n');  
////   document.write('</object>\n');
//   document.write('</div>\n');
//}
