// CYCLE = display 14 / hide 14 / fade in 1 / fade out 1
// fade in 1 sec + display 14sec + fade out 1sec
//function elem_show_sugc(){
    //$(this).css('display','block');
    //$(this).fadeTo(1000,1.).fadeTo(14000,1.).fadeTo(1000,0.,elem_hide_sugc);
    //}
// hide 14ec = 30 - (14 + 1 + 1)
//function elem_hide_sugc(){
  //  $(this).css('display','none');
    //$(this).fadeTo(14000,0.,elem_show_sugc);
    //}
    
// CYCLE
//  /1111\0000000000000/
//  00000/1111\0000000000000/
//  0000000000/1111\0000000000000/
//  000000000000000/1111\0000000000000/
// fade in 1 sec + display 4sec + fade out 1sec
function elem_show(){
    $(this).css('display','block');
    $(this).fadeTo(1000,1.).fadeTo(4000,1.).fadeTo(1000,0.,elem_hide);
    }
// hide 24sec = 30 - (4 + 1 + 1)  12
function elem_hide(){
    $(this).css('display','none');
    //$(this).fadeTo(24000,0.,elem_show);
    $(this).fadeTo(4000,0.,elem_show); 
    }
function elem_start_webinarSDY(){
    $(this).css('display','none');
    $(this).fadeTo(14000,0.,elem_show);
    }
function elem_start_webinar(){
    $(this).css('display','none');
    //$(this).fadeTo(18000,0.,elem_show);
    $(this).fadeTo(5000,0.,elem_show);
    }

    

 $(document).ready(function(){
    // $('#anim .sugc').fadeTo(0,0,elem_show_sugc);
    //$('#anim .aero').fadeTo(0,0,elem_start_aero);
    $('#anim .webinarSDY').fadeTo(0,0,elem_show);
    $('#anim .webinar').fadeTo(0,0,elem_start_webinar);

    //TMP
    //$('#anim .NOANIM').fadeTo(0,1);
	
 });
 
 
 //Detect IE6-
version=0
if (navigator.appVersion.indexOf("MSIE")!=-1){
temp=navigator.appVersion.split("MSIE")
version=parseFloat(temp[1])
}

if ((version<7)&&(version>0)) //NON IE browser will return 0
//alert("You're using IE5.5+")
{
    try {
        document.execCommand("BackgroundImageCache", false, true);
    } catch(err) {}
}