


function serviceToggleVis(obj)
{
    var targetId = 'content-' + obj.id.split('-')[1]
    var target = document.getElementById(targetId);

    var imgUrl = (obj.childNodes[0].getAttribute('src'));
    if(imgUrl.search('http://assets.csmauto.net/images/plus.gif') >= 0 ) 
    {
        obj.childNodes[0].src='http://assets.csmauto.net/images/minus.gif';
    }
    else
    {
        obj.childNodes[0].src='http://assets.csmauto.net/images/plus.gif';

    }
    
    target.style.opacity=0; 
    target.style.visibility='visible'; 

    if(target.style.display == 'block')
    {
        new Effect.Highlight(target,{startcolor: 'transparent',queue:'end' });
        new Effect.Fade(target,{from: 1, to: 0,queue:'end' });
    }
    else
    {
        new Effect.Fade(target,{from: 0, to: 1,queue:'end' });
        new Effect.Highlight(target,{startcolor: 'transparent', queue:'end' });
        target.style.display='block'; 
    }
    return false;
}

function pdfwin(url)
{
var pdfw = window.open(url,'pdfw','width=760,height=480,toolbars=yes,scrollbars=no,resizable=yes');
pdfw.focus()

}

function flashwin(url)
{
var flashw = window.open(url,'flashw','width=760,height=554,toolbars=no,scrollbars=no,resizable=no');
flashw.focus()

}
