// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults


var myTWin = window.myTWin;

function OpenMyWin(link,winName)
{
    var retValue=true;
    if (myTWin!=null && !myTWin.closed)
    {
        myTWin.focus();
        myTWin.location.href=link.href;
    }
    else
    {
        myTWin=window.open(link.href, winName, 'location=yes,directories=yes,scrollbars=yes,resizable=yes,width=1000,height=700,top=0,left=0,menubar=yes,toolbar=yes,navigate=yes,status=yes');
        if (myTWin==null || typeof(myTWin)=="undefined")
            retValue=false;
        else
        {
            link.target=winName;
            myTWin.focus();
        }
    }
    return retValue;
}



var isMSIE = /*@cc_on!@*/false;
	
if (isMSIE)
	document.write("<link rel='stylesheet' href='/stylesheets/ie.css' type='text/css' media='screen,projection' />");
else
{}



document.observe ('dom:loaded',function() {

  new Carousel('flash', $$('#flash-inner .slide'), null, { effect: 'fade', auto: true, duration:1, frequency: 10 });

} )
