
$(document).ready(function(){


$(".current").hide()
$(".current").fadeTo("",0.7)
$(".current").fadeTo("fast",1.0)
$('.box').hover(function(){

$(this).fadeTo("fast",0.4)
$(this).fadeTo("slow",1.0)
},
function(){
$(this).fadeTo("",1.0)
})
})


$('.green').hover(function(){
$(this).fadeTo("fast",0.4)
$(this).fadeTo("slow",1.0)
},
function(){
$(this).fadeTo("",1.0)
})



$(document).ready(function(){
	
$('a.top').click(function(){
    $("#content").fadeTo("slow", 0.5);
	 $('html, body').animate({scrollTop: '200px'}, 300);
    
$("#content").fadeTo("slow", 1.0);

	 
	 
	 
     return false;
});
	
	

$(".iframe").fancybox({
'width'	: '75%',
'height'	: '75%',
'autoScale'	: false,
overlayShow:false,
'transitionIn'	: 'elastic',
'titlePosition'	: 'outside',
'titleShow'	: true,
'transitionOut'	: 'elastic',
'type'	: 'iframe'
})
$("a[rel=fancybox]").fancybox({'titlePosition'	: 'over','transitionIn'	: 'elastic',
'showNavArrows':true,
overlayShow:true,
'transitionOut'	: 'elastic','hideOnContentClick':true,
'titlePosition'	: 'inside'
})





$("a[rel=lightbox]").fancybox({
'onComplete' : function(){$("#fancybox-wrap").unbind('mousewheel.fb');},
'width'	: 730,
'height'	: 500,
'autoScale'	: false,
'autoDimensions' : false,
'showNavArrows':false,
overlayShow:false,
'transitionIn'	: 'elastic',
'titlePosition'	: 'outside',
'titleShow'	: true,
'transitionOut'	: 'elastic',
'type'	: 'iframe'
})
$("a[rel=showpopup]").fancybox({
'width'	: '80%',
'height'	: '55%',
'autoScale'	: false,
overlayShow:false,
'transitionIn'	: 'elastic',
'titlePosition'	: 'inside',
'titleShow'	: true,
'transitionOut'	: 'elastic',
'type'	: 'iframe'
})
})
jQuery(function(){




jQuery(".accordion2").accordion({ collapsible: true, header: "h3", active: false,  autoHeight: false });


jQuery('.accordion2').bind('accordionchange', function(event, ui) {
    if(!ui.newHeader.length) { return; }
  /* In here, ui.newHeader = the newly active header as a jQ object
              ui.newContent = the newly active content area */
  $.scrollTo( ui.newHeader,800,{queue:true}); // or ui.newContent, if you prefer
   


}); 

jQuery(".accordion").accordion({ collapsible: true, header: "h3", active: false,  autoHeight: false });

jQuery(".accordion1st").accordion({header: "h3", autoHeight: false, collapsible: true})

jQuery('#tabs1').tabs({
fx:{opacity: 'toggle'},
select: function(event,ui){
jQuery(this).css('height',jQuery(this).height())
jQuery(this).css('overflow','hidden')
},
show: function(event,ui){
jQuery(this).css('height','auto')
jQuery(this).css('overflow','visible')}
})
jQuery('#tabs2').tabs({
fx:{opacity: 'toggle'},
select: function(event,ui){
jQuery(this).css('height',jQuery(this).height())
jQuery(this).css('overflow','hidden')
},
show: function(event,ui){
jQuery(this).css('height','auto')
jQuery(this).css('overflow','visible')}
})
jQuery('#tabs3').tabs({
fx:{opacity: 'toggle'},
select: function(event,ui){
jQuery(this).css('height',jQuery(this).height())
jQuery(this).css('overflow','hidden')
},
show: function(event,ui){
jQuery(this).css('height','auto')
jQuery(this).css('overflow','visible')}
})
jQuery('#dialog').dialog({
autoOpen: false,
width: 600,
buttons:{
"Ok": function(){
jQuery(this).dialog("close")
},
"Cancel": function(){
jQuery(this).dialog("close")}}
})
jQuery('#dialog_link').click(function(){
jQuery('#dialog').dialog('open')
return false
})
jQuery('#slide').slider({
range: true,
values: [17,67]
})
jQuery("#progressbar").progressbar({
value: 20
})
jQuery('#dialog_link, ul#icons li').hover(
function(){jQuery(this).addClass('ui-state-hover');},
function(){jQuery(this).removeClass('ui-state-hover');}
)
})

$(function(){
$(".forminfo").dialog()
})

  $(document).ready(function() {
          $(".xinfo").delay(500).show(600, function () {
       
           
          });
          return false;
        }); 

$(document).ready(function() {
          $(".xinfo").delay(10000).hide(1500, function () {
       
  $(".xinfo").fadeOut('700');   
          
          });
          return false;
        }); 


