reloadTeamBlock = function(){
	if(!jQuery('#team-block').hasClass('eng')){
		jQuery('#team-block').animate({'opacity': 0}, 100).load('/index.php?id=33&rnd='+Math.random(), function(){
			jQuery(this).animate({'opacity': 1}, 100)
		});
	}else{
		jQuery('#team-block').animate({'opacity': 0}, 100).load('/index.php?id=114&rnd='+Math.random(), function(){
			jQuery(this).animate({'opacity': 1}, 100)
		});
	}
}
initialize = function(){
	Cufon.now();
    Cufon.replace('div.main-menu div.item-wrap2 > a', { fontFamily: 'Myriad Pro Cond' });
    Cufon.replace('h1', { fontFamily: 'Myriad Pro' });
    Cufon.replace('h2', { fontFamily: 'Myriad Pro' });
	cssMenuTimer = undefined;
	if (!jQuery.browser.msie){
		jQuery('div.main-menu div.item-wrap2 > a').hover(function(){
			Cufon.replace('div.main-menu div.item-wrap2 > a', { fontFamily: 'Myriad Pro Cond' });
		}, function(){
			setTimeout(function(){Cufon.replace('div.main-menu div.item-wrap2 > a', { fontFamily: 'Myriad Pro Cond' })}, 10);
		});
	}
	jQuery('div.main-menu div.item-wrap').hover(function(){
		cssMenuActive = this;
		jQuery('.main-menu').find('.submenu').css({'visibility': 'hidden'});
		jQuery(cssMenuActive).find('.submenu').show().css({'visibility': 'visible'});
		clearTimeout(cssMenuTimer);
	}, function(){
		cssMenuTimer = setTimeout(function(){ jQuery(cssMenuActive).find('.submenu').hide(100);}, 500)
	});
	
	jQuery('table.style-tbl tr').find('td:last').addClass('last');
	
	jQuery("input.clearme").focus(function(){
		if ( jQuery(this).attr("value") == jQuery(this).attr("title") ){
			jQuery(this).attr({"value": ""});
		}
	}).blur(function(){
		if ( jQuery(this).attr("value") == "" ){
			jQuery(this).attr({"value": jQuery(this).attr("title")}); 
		}
	}).each(function(){
		if ( jQuery(this).attr("value") == "" ){
			jQuery(this).attr({"value": jQuery(this).attr("title")}); 
		}
	});
	
	jQuery("textarea.clearme").focus(function(){
		if ( jQuery(this).html() == jQuery(this).attr("title") ){
			jQuery(this).html("");
		}
	}).each(function(){
		if ( jQuery(this).text() == "" ){
			jQuery(this).text(jQuery(this).attr("title"));
		}
	});
	jQuery('#askYourQuestion').submit(function(){
		jQuery(this).find("input.clearme").each(function(){
			if ( jQuery(this).attr("value") == jQuery(this).attr("title") ){
				jQuery(this).attr({"value": ""});
			}
		});
		jQuery(this).find("textarea.clearme").each(function(){
			if ( jQuery(this).text() == jQuery(this).attr("title") ){
				jQuery(this).text("");
			}
		});
		return true;
	});
	/* setInterval(reloadTeamBlock, 15000); */
}
jQuery.noConflict( );
jQuery(document).ready(initialize);

