function toggleLayer(whichLayer)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;
style2.display = style2.display? "":"block";
}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
style2.display = style2.display? "":"block";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
style2.display = style2.display? "":"block";
}
}


var fadeimages=new Array()
fadeimages[0]=["_common/templates/default/images/pic-0.jpg", "", ""]
fadeimages[1]=["_common/templates/default/images/pic-1.jpg", "", ""]
fadeimages[2]=["_common/templates/default/images/pic-2.jpg", "", ""]

var faded_pic_width = "548"
var faded_pic_height = "438"
var fadebgcolor="transparent"

function mga_body_onload()
{
/*
 vscroller_init('featured'); //init the vertical scroller
 //init the content vertical scrollbar
 myScrollbar1 = new MyScrollBar( 'myScrollbar1', 'myScrollBar1TD', 'content_div', 'scrollup', 'scrolldown' );
 */
}

function popups( addr )
{
   window.open( addr , '',
   "status=no,toolbar=no,menubar=no,personalbar=no,width=600,height=650,left=20,top=40" +
                  ",scrollbars=no,resizable=no");
}

function cssGetValue( str )
{
  return new Number (str.replace('px', ''));
}

var debug_window;
function debug_write( msg ) {
if ( !debug_window)
 debug_window = window.open('','',"status=no,toolbar=no,menubar=no" +
                                  ",personalbar=no,width=600,height=760,left=20,top=40" +
                                  ",scrollbars=yes,resizable=yes");
debug_window.document.write( msg + '</br>');
}


function popup( adr, w, h ) {
    var dlg = window.open( adr, "send_mail",
                  "toolbar=no,menubar=no,personalbar=no,width="+w+",height="+h+",left=40,top=120" +
                  "scrollbars=no,resizable=no");
}

