// <![CDATA[
window.addEvent('domready', function() {
   var win = null;
   var str = navigator.userAgent;
   
	// HERE IS WHAT YOU READ IN JS CODE
	if (str.search(/Safari/) > 0)
   {
      document.write('<link href="styles/safarifix.css" rel="stylesheet" type="text/css" />');
   }

   
   if ($('home')) {
      var so = new SWFObject('/flashplayer/mediaplayer.swf','player','420','294','8');
      so.addParam("allowfullscreen","true");
      so.addParam("wmode", "transparent");
      so.addVariable("file","/assets/HMR_60.flv");
      so.addVariable("image","/assets/clicktoplay.jpg");

      so.addVariable("backcolor","0x000000");
      so.addVariable("frontcolor","0xFFFCE3");
      so.addVariable("lightcolor","0x509C28");
      so.addVariable("screencolor","0x000000");

      so.write('hdrImg');
   }
   
   if ($$('.outerContent img').length > 0) {
      $$('.outerContent img').each(function(item,index){
         //(console) ? console.log() : null;
         if(parseInt($(item).getAttribute('width')) > 475) {
            $(item).setAttribute('style','width: 475px; height: auto;');
         }
      });
   }
});

// This script and many more are available free online at The JavaScript Source!! http://javascript.internet.com
function newWindow(mypage) {
   var w = 670;/*650*/
   var h = 595;/*440*/
   var winl = (screen.width-w)/2;
   var wint = (screen.height-h)/2;
   if (winl < 0) winl = 0;
   if (wint < 0) wint = 0;
   var settings = 'height= ' + h + ', ';
   settings += 'width=' + w  + ',';
   settings += 'top=' + wint + ',';
   settings += 'left=' + winl + ',';
   settings += 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0';
   win = window.open(mypage,'NAME',settings);
   win.window.focus();
}
// ]]>
