function printPage()
{
   var options = "menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=630,height=460;"
   url = top.location.href;
   if (url.indexOf("#")>0) url = url.substring(0, url.indexOf("#"));
   if (url.indexOf("?")>0) url = url + "&print=yes";
   else url = url + "?print=yes";
   printWindow=window.open(url,"_blank",options);
}

function printPageEn()
{
   var options = "menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=630,height=460;"
   url = top.location.href;
   if (url.indexOf("#")>0) url = url.substring(0, url.indexOf("#"));
   if (url.indexOf("?")>0) url = url + "&print=yes&eng=yes";
   else url = url + "?print=yes&eng=yes";
   printWindow=window.open(url,"_blank",options);
}

function popup(url, width, height)
{
      var options = "toolbar=no,scrollbars=yes,resizable=yes,width="+width+",height="+height+";"
      popupWindow=window.open(url,"_blank",options);
}

function wjPopup(url, width, height)
{
      var options = "toolbar=no,scrollbars=yes,resizable=yes,width="+width+",height="+height+";"
      popupWindow=window.open(url,"_blank",options);
}


$(document).ready(function(){ 
	//alert($(".cycle_content").height());
	equalHeight($(".cycle_content"));
	$(".btnSubmit").hover(function(){
		$(this).addClass('btnSubmitHover');
	},function(){
		$(this).removeClass('btnSubmitHover');
	});

	$('.cycle').cycle({ 
		fx: 'fade', 
		speed: 500, 
    	timeout: 10000, 
   	 	pager: '#nav', 
    	pagerEvent: 'click'
	});
}); 

function equalHeight(group) {
   tallest = 0;
   group.each(function() {	
  
      thisHeight = jQuery(this).height();
      if(thisHeight > tallest) {
         tallest = thisHeight;
      }
   });
   	
	//$('.newsCycle').height(tallest);
   	group.height(tallest);
}
