$(document).ready(function() {
    $('.myslides').cycle({
		fx: 'fade',
    speed: 800,
		timeout: 5000  // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
	$('.myslides2').cycle({
		fx: 'fade',
    speed: 2000,
		timeout: 7000  // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
$('#contact').slideUp('fast', function() {
    // Animation complete.
  });
$('#cliccami').click(function() {
  $('#contact').slideToggle('fast', function() {
    // Animation complete.
  });
});
	
});
function Inint_AJAX() {
   try { 
   return new ActiveXObject("Msxml2.XMLHTTP");  
   } catch(e) {
   } //IE
   try {
   return new ActiveXObject("Microsoft.XMLHTTP"); 
   } catch(e) {
   } //IE
   try { 
   return new XMLHttpRequest();          
   } catch(e) {
   } //Native Javascript
   alert("XMLHttpRequest not supported");
   return null;
};
function banner_click(id_banner) {
     var req = Inint_AJAX();
     
     
     req.onreadystatechange = function () { 
          if (req.readyState==4) {
               
               if (req.status==200) {
                    
               } 
          }
     };
     req.open("GET", "banner_click.php?banner="+id_banner); //make connection
     req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=iso-8859-1"); // set Header
     req.send(null); //send value

}
function showDiv( id ) { 
document.getElementById('login').style.display = ''
document.getElementById('login').style.visibility = 'visible'
}
function showDiv2() { 
document.getElementById('contact').style.display = ''
document.getElementById('contact').style.visibility = 'visible'
}
function status_login() {
     var req = Inint_AJAX();
     
     
     req.onreadystatechange = function () { 
          if (req.readyState==4) {
               
               if (req.status==200) {
                   document.getElementById('status_login').innerHTML=req.responseText;  
               } 
          }
     };
     req.open("GET", "status_login.php"); //make connection
     req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=iso-8859-1"); // set Header
     req.send(null); //send value

}

var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-18369009-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
jQuery(document).ready(function(){
var a=jQuery("#header_text").html();
if(a!=""){
jQuery("#footer_text").show().html(a)
}
});
