      
function setStyle(objId, style, value) {
	document.getElementById(objId).style[style] = value;
}


/*************************************************************************
  This code is from Dynamic Web Coding at www.dyn-web.com
  Copyright 2001-4 by Sharon Paine 
  See Terms of Use at www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/

function initScrollLayer() {
  // arguments: id of layer containing scrolling layers (clipped layer), id of layer to scroll, 
  // if horizontal scrolling, id of element containing scrolling content (table?)
  var wndo = new dw_scrollObj('wn', 'lyr1', 't1');
  
  // pass id's of any wndo's that scroll inside tables
  // i.e., if you have 3 (with id's wn1, wn2, wn3): dw_scrollObj.GeckoTableBugFix('wn1', 'wn2', 'wn3');
  dw_scrollObj.GeckoTableBugFix('wn'); 
}



function opacity(id, opacStart, opacEnd, millisec) {
	var speed = Math.round(millisec / 100);
    var timer = 0; 
	var started = true;


    //determine the direction for the blending, if start and end are the same nothing happens 
    if(opacStart > opacEnd) {
        for(i = opacStart; i >= opacEnd; i--) {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
            timer++; 
        } 
    } else if(opacStart < opacEnd) {
    	
        for(i = opacStart; i <= opacEnd; i++) 
            {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
            timer++; 
        } 
    } 
} 

//change the opacity for different browsers 
function changeOpac(opacity, id) {
    var object = document.getElementById(id).style; 
    object.opacity = (opacity / 101); 
    object.MozOpacity = (opacity / 101); 
    object.KhtmlOpacity = (opacity / 100); 
    object.filter = "alpha(opacity=" + opacity + ")"; 
}



function currentOpac(id, opacEnd, millisec) {
    //standard opacity is 100 
    var currentOpac = 100;
    
    
    //if the element has an opacity set, get it 
    if(document.getElementById(id).style.opacity < 100) {
        currentOpac = document.getElementById(id).style.opacity * 100; 
    }

    //call for the function that changes the opacity 
    opacity(id, currentOpac, opacEnd, millisec)
    
}


function showit() {
var elt2 = document.getElementById("lyr1");
elt2.style.opacity = "1";
elt2.style.filter='';
}

function hideit() {
var elt2 = document.getElementById("lyr1");
elt2.style.opacity = ".6";
elt2.style.filter='progid:DXImageTransform.Microsoft.BasicImage(opacity=.6) progid:DXImageTransform.Microsoft.BasicImage(grayScale=1)';
}

// screen size logic
// common screen sizes 
// width x height
//  800 x  600 (* minimum requirement)
//  896 x  600 (widescreen)
//  832 x  624
// 1024 x  768 (minimum requirement)
// 1076 x  768 (* break point)
// 1152 x  768 (widescreen)
// 1152 x  864 (win?)
// 1152 x  870 (17" studio display crt)
// 1280 x  960
// 1280 x  854 (widescreen, eg TiBook )
// 1280 x 1024 (17" studio display lcd)
// 1680 x 1050 (20" cinema display -- peter)
// 1920 x 1200 (23" cinema display -- warwick)
// 1440 x  900 MacBook Pro 15" -- this is our new minimum target

