//if (top == self){
//		top.location.href="/default.asp?c=" + escape(top.location.href); 
//	}

function removeText(field)
        {
        field.value = '';
        } 

function myCardPopup(cardID) {  // pop up window. Send in cardID

              agent = navigator.userAgent;
              windowName = "CardPopup";

              params  = "";
              params += "toolbar=0,";
              params += "location=0,";
              params += "directories=0,";
              params += "status=0,";
              params += "menubar=0,";
              params += "scrollbars=0,";
              params += "resizable=0,";
              params += "width=600,";
              params += "height=420";

              win = window.open("popup/card_popup.aspx?ID="+cardID, windowName , params);

}

function checkIndex(ddlIndex, ddlValue) //Used to check index of dropdowns. Header listitem should not trigger popup
{
    if (ddlIndex > 0)
    {
       myCardPopupName(ddlValue); 
    }
    else
    {
        
    }
}

function myCardPopupName(cardname) {  // pop up window. Send in cardname

              agent = navigator.userAgent;
              windowName = "CardPopup";

              params  = "";
              params += "toolbar=0,";
              params += "location=0,";
              params += "directories=0,";
              params += "status=0,";
              params += "menubar=0,";
              params += "scrollbars=0,";
              params += "resizable=0,";
              params += "width=600,";
              params += "height=420";

              win = window.open("popup/card_popup.aspx?cardname="+cardname, windowName , params);

}	
		
function makeWin2(url) {  // pop up window for <autocard> tag

              agent = navigator.userAgent;
              windowName = "Sitelet";

              params  = "";
              params += "toolbar=0,";
              params += "location=0,";
              params += "directories=0,";
              params += "status=0,";
              params += "menubar=0,";
              params += "scrollbars=0,";
              params += "resizable=0,";
              params += "width=220,";
              params += "height=310";

              win = window.open(url, windowName , params);

              if (agent.indexOf("Mozilla/2") != -1 &&
agent.indexOf("Win") == -1) {
                  win = window.open(url, windowName , params);
              }

              if (!win.opener) {
                  win.opener = window;
              }

}

/*****************************************
* Dissolving Image Rollover- By Roy Whittle (http://www.javascript-fx.com/)
* Featured on/available at http://www.dynamicdrive.com/
* This notice must stay intact for use
*****************************************/

//Generate transition CSS (transition=0 to 23)
document.write('<STYLE TYPE="text/css">.imgTrans{ filter:revealTrans(duration=0.4,transition=12) }</STYLE>');

//Uncomment the next line for fading rollovers instead of dissolving:
document.write('<STYLE TYPE="text/css">.imgTrans{ filter:blendTrans(duration=0.3) }</STYLE>');

var onImages=new Array();
function Rollover(imgName, imgSrc)
{
	onImages[imgName] = new Image();
	onImages[imgName].src = imgSrc;
}

function turnOn(imgName){ 
	if(document.images[imgName].filters != null)
		document.images[imgName].filters[0].apply();
	document.images[imgName].offSrc = document.images[imgName].src;
	document.images[imgName].src    = onImages[imgName].src;
	if(document.images[imgName].filters != null)
		document.images[imgName].filters[0].play();
}

function turnOff(imgName){ 
	if(document.images[imgName].filters != null)
		document.images[imgName].filters[0].stop();
	document.images[imgName].src = document.images[imgName].offSrc;
}

//Specify name of participating images, plus paths to their onMouseover replacements:
Rollover("but1", "App_Themes/Forest/Img/menu/1_on.gif");
Rollover("but2", "App_Themes/Forest/Img/menu/2_on.gif");
Rollover("but3", "App_Themes/Forest/Img/menu/3_on.gif");
Rollover("but4", "App_Themes/Forest/Img/menu/4_on.gif");
Rollover("but5", "App_Themes/Forest/Img/menu/5_on.gif");
Rollover("but6", "App_Themes/Forest/Img/menu/6_on.gif");
Rollover("but7", "App_Themes/Forest/Img/menu/7_on.gif");
Rollover("but8", "App_Themes/Forest/Img/menu/8_on.gif");
Rollover("but9", "App_Themes/Forest/Img/menu/9_on.gif");
Rollover("but10", "App_Themes/Forest/Img/menu/10_on.gif");

//** END MENU SCRIPTS **



