// Added by Don 04/01/2009

function HideStatus() {
	window.status='CruDoctrine';
	return false;
}

function ShowStatus() {
	window.status='';
	return false;
}

// Created by iWeb 2.0.4 local-build-20090310

function MM_CheckFlashVersion(reqVerStr,msg){
  with(navigator){
    var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
    if (!isIE || !isWin){  
      var flashVer = -1;
      if (plugins && plugins.length > 0){
        var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
        desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
        if (desc == "") flashVer = -1;
        else{
          var descArr = desc.split(" ");
          var tempArrMajor = descArr[2].split(".");
          var verMajor = tempArrMajor[0];
          var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
          var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
          flashVer =  parseFloat(verMajor + "." + verMinor);
        }
      }
      // WebTV has Flash Player 4 or lower -- too low for video
      else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

      var verArr = reqVerStr.split(",");
      var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
  
      if (flashVer < reqVer){
        if (confirm(msg))
          window.location = "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
      }
    }
  } 
}

setTransparentGifURL('images/transparent.gif');
function applyEffects()
	{
		var registry=IWCreateEffectRegistry();
		registry.registerEffects({stroke_1:new IWStrokeParts([{rect:new IWRect(-4,4,8,1040),url:'images/stroke.png'},{rect:new IWRect(-4,-4,8,8),url:'images/stroke_1.png'},{rect:new IWRect(4,-4,744,8),url:'images/stroke_2.png'},{rect:new IWRect(748,-4,8,8),url:'images/stroke_3.png'},{rect:new IWRect(748,4,8,1040),url:'images/stroke_4.png'},{rect:new IWRect(748,1044,8,8),url:'images/stroke_5.png'},{rect:new IWRect(4,1044,744,8),url:'images/stroke_6.png'},{rect:new IWRect(-4,1044,8,8),url:'images/stroke_7.png'}],new IWSize(752,1048)),stroke_2:new IWStrokeParts([{rect:new IWRect(-3,3,6,220),url:'images/stroke_8.png'},{rect:new IWRect(-3,-3,6,6),url:'images/stroke_9.png'},{rect:new IWRect(3,-3,339,6),url:'images/stroke_10.png'},{rect:new IWRect(342,-3,6,6),url:'images/stroke_11.png'},{rect:new IWRect(342,3,6,220),url:'images/stroke_12.png'},{rect:new IWRect(342,223,6,6),url:'images/stroke_13.png'},{rect:new IWRect(3,223,339,6),url:'images/stroke_14.png'},{rect:new IWRect(-3,223,6,6),url:'images/stroke_15.png'}],new IWSize(345,226)),stroke_3:new IWStrokeParts([{rect:new IWRect(-2,2,4,32),url:'images/stroke_16.png'},{rect:new IWRect(-2,-2,4,4),url:'images/stroke_17.png'},{rect:new IWRect(2,-2,179,4),url:'images/stroke_18.png'},{rect:new IWRect(181,-2,4,4),url:'images/stroke_19.png'},{rect:new IWRect(181,2,4,32),url:'images/stroke_20.png'},{rect:new IWRect(181,34,4,4),url:'images/stroke_21.png'},{rect:new IWRect(2,34,179,4),url:'images/stroke_22.png'},{rect:new IWRect(-2,34,4,4),url:'images/stroke_23.png'}],new IWSize(183,36)),stroke_5:new IWStrokeParts([{rect:new IWRect(-2,2,4,33),url:'images/stroke_32.png'},{rect:new IWRect(-2,-2,4,4),url:'images/stroke_33.png'},{rect:new IWRect(2,-2,178,4),url:'images/stroke_34.png'},{rect:new IWRect(180,-2,4,4),url:'images/stroke_35.png'},{rect:new IWRect(180,2,4,33),url:'images/stroke_36.png'},{rect:new IWRect(180,35,4,4),url:'images/stroke_37.png'},{rect:new IWRect(2,35,178,4),url:'images/stroke_38.png'},{rect:new IWRect(-2,35,4,4),url:'images/stroke_39.png'}],new IWSize(182,37)),stroke_0:new IWEmptyStroke(),stroke_4:new IWStrokeParts([{rect:new IWRect(-2,2,4,33),url:'images/stroke_24.png'},{rect:new IWRect(-2,-2,4,4),url:'images/stroke_25.png'},{rect:new IWRect(2,-2,178,4),url:'images/stroke_26.png'},{rect:new IWRect(180,-2,4,4),url:'images/stroke_27.png'},{rect:new IWRect(180,2,4,33),url:'images/stroke_28.png'},{rect:new IWRect(180,35,4,4),url:'images/stroke_29.png'},{rect:new IWRect(2,35,178,4),url:'images/stroke_30.png'},{rect:new IWRect(-2,35,4,4),url:'images/stroke_31.png'}],new IWSize(182,37))});
		registry.applyEffects();
	}

function hostedOnDM()
	{
		return false;
	}

function onPageLoad()
	{
		loadMozillaCSS('includes/style-Moz.css');
//		adjustLineHeightIfTooBig('id4');
//		adjustFontSizeIfTooBig('id4');
//		adjustLineHeightIfTooBig('id7');
//		adjustFontSizeIfTooBig('id7');
//		adjustLineHeightIfTooBig('id8');
//		adjustFontSizeIfTooBig('id8');
//		adjustLineHeightIfTooBig('id9');
//		adjustFontSizeIfTooBig('id9');
//		adjustLineHeightIfTooBig('id10');
//		adjustFontSizeIfTooBig('id10');
//		adjustLineHeightIfTooBig('id11');
//		adjustFontSizeIfTooBig('id11');
//		adjustLineHeightIfTooBig('id12');
//		adjustFontSizeIfTooBig('id12');
//		adjustLineHeightIfTooBig('id13');
//		adjustFontSizeIfTooBig('id13');
//		adjustLineHeightIfTooBig('id14');
//		adjustFontSizeIfTooBig('id14');
//		adjustLineHeightIfTooBig('id15');
//		adjustFontSizeIfTooBig('id15');
//		adjustLineHeightIfTooBig('id16');
//		adjustFontSizeIfTooBig('id16');
		fixupAllIEPNGBGs();
		fixAllIEPNGs('images/transparent.gif');
		fixupIECSS3Opacity('id1');
		fixupIECSS3Opacity('id2');
		fixupIECSS3Opacity('id3');
		fixupIECSS3Opacity('id5');
		fixupIECSS3Opacity('id6');
		applyEffects();
	}

