function openPrintPopup(url,title){
	window.open (url, title, config='height=600, width=700, toolbar=no, menubar=yes, scrollbars=yes, resizable=yes, location=no, directories=no, status=no');
}
// Major version of Flash required
var requiredMajorVersion = 8;
// Minor version of Flash required
var requiredMinorVersion = 8;
// Minor version of Flash required
var requiredRevision = 8;

var swflogoWidth = 200;
var swflogoHeight = 105;



jQuery(document).ready(function(){
	jQuery(window).resize(animatetoFullScreen);
	animatetoFullScreen();
});
function animatetoFullScreen(){
	var speed = 1000;
	var staticsElementHeight = (
						jQuery('#header_wrap').height() + 
						jQuery('#page_subheader').height() + 
						jQuery('#footer_wrap').height() + 
						jQuery('#footer_menu').height() +
						jQuery('#copyright').height() + 1
						);
	if (ie())/*Bad update to have good final rendering*/
		staticsElementHeight += 50;
	else
		staticsElementHeight += 15;

	if (jQuery('#content2').length > 0){
	 
		staticsElementHeight = staticsElementHeight + jQuery('#content1').height() + 33;
		
		var heightUpdate = jQuery(window).height() - staticsElementHeight;
		jQuery('#content2').css({
			height: heightUpdate
		//	display: 'inline'
		}, speed, "linear");
	}else{
		var heightUpdate = jQuery(window).height() - staticsElementHeight;
		jQuery('#content1').css({
			height: heightUpdate
		//	display: 'inline'
		}, speed, "linear");
	}	
}
function ie(){
	var strChUserAgent = navigator.userAgent;
	var intSplitStart = strChUserAgent.indexOf("(",0);
	var intSplitEnd = strChUserAgent.indexOf(")",0);
	var strChStart = strChUserAgent.substring(0,intSplitStart);
	var strChMid = strChUserAgent.substring(intSplitStart, intSplitEnd);
	var strChEnd = strChUserAgent.substring(strChEnd); 
	
	if(strChMid.indexOf("MSIE") != -1)
		return true;
	else
		return false;
}
function getElementsPageHeight(){
	var elementsPageHeight = (
						jQuery('#header_wrap').height() + 
						jQuery('#page_wrap').height() + 
						jQuery('#footer_menu').height() + 
						jQuery('#copyright').height()
						);
	return elementsPageHeight;
}
jQuery(document).ready(function(){							
	if (jQuery('#contact_form_area a').length > 0){
		jQuery('#contact_form_area a').hover(function() {
			jQuery('#contact_form_area img').attr('src','fileadmin/templates/consultas/img/contact_hover.png').animate({
			width: '73px', /* Set width back to default */
			height: '73px' /* Set height back to default */
		}, 200);
		},function(){
			jQuery('#contact_form_area img').attr('src','fileadmin/templates/consultas/img/contact.png').animate({

			width: '69px', /* Set width back to default */
			height: '69px' /* Set height back to default */
		}, 400);
		});
	}
});

jQuery.fn.fadeToggle = function(speed, easing, callback) {
   return this.animate({opacity: 'toggle'}, speed, easing, callback);
};

