/*CSS Browser Selector v0.4.0 (Nov 02, 2010) MOD 2011*/
function css_browser_selector(u){var ua=u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1},g='gecko',w='webkit',s='safari',o='opera',m='mobile',h=document.documentElement,b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3.6')?g+' ff3 ff3_6':is('firefox/3')?g+' ff3':is('firefox/4')?g+' ff4':is('firefox/5')?g+' ff5':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.$1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.$2:'')):is('konqueror')?'konqueror':is('blackberry')?m+' blackberry':is('android')?m+' android':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?m+' j2me':is('iphone')?m+' iphone':is('ipod')?m+' ipod':is('ipad')?m+' ipad':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win'+(is('windows nt 6.0')?' vista':''):is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; css_browser_selector(navigator.userAgent);
/****************/
/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}
/********ANTI IE6 BUG***********/
if (document.all && !window.opera && !window.XMLHttpRequest) {
	document.execCommand("BackgroundImageCache",false,true);
}
/*****jQUERY*****/
function equalHeight(group) {
	tallest = 0;
	group.each(function() {
		thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}
/*SKYPE*/
$(document).ready(function() {
		window.setTimeout(function() {
			$('.skype_pnh_container').html('');
			$('.skype_pnh_print_container').removeClass('skype_pnh_print_container');
		}, 800);
		
		//mrc: cambios de video vimeo en home		
		if($('#WhoIs').length){
                    
                        if($('#WhoIs').attr("rel") == '30453822')
                        {
                            //mexico
                            var VimeoWhoIs = '<iframe src="http://player.vimeo.com/video/30453986?title=0&amp;byline=0&amp;portrait=0&amp;autoplay=1" width="280" height="222" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
                        }
                        else if($('#WhoIs').attr("rel") == '30132213')
                        {
                            //brasil
                            var VimeoWhoIs = '<iframe src="http://player.vimeo.com/video/30132377?title=0&amp;byline=0&amp;portrait=0&amp;autoplay=1" width="280" height="222" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
                        }
                        else if($('#WhoIs').attr("rel") == '35571946')
                        {
                            //argentina
                            var VimeoWhoIs = '<iframe src="http://player.vimeo.com/video/35571946?title=0&amp;byline=0&amp;portrait=0&amp;autoplay=1" width="280" height="222" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
                        }
                        else
                        {
                            //usa
                            var VimeoWhoIs = '<iframe src="http://player.vimeo.com/video/28948545?title=0&amp;byline=0&amp;portrait=0&amp;autoplay=1" width="280" height="222" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
                        }      
			$('#WhoIsVideo').html(VimeoWhoIs);
			
			$('#WhoIs a').click(function(e){
				e.preventDefault();
				$('#WhoIs').html(VimeoWhoIs);
			});
		}
		
		//mrc slider vimeo
		$('.SlideContentWrapper a').click(function(e){
			var LinkHref = $(this).attr('href');                        
			if(LinkHref.search('vimeo') > 0){
				e.preventDefault();
				var VimeoSlide = '<iframe src="http://player.vimeo.com/video/28948545?title=0&amp;byline=0&amp;portrait=0" width="675" height="449" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
				var VideoHolder = $(this).closest('.SlideContentWrapper');
				$("#slides").html(VimeoSlide);				
			}
		});
                	  
					
	});

/****W3C HIDDEN STYLES****/
document.write('<style type="text/css">');
//document.write('HTML {overflow:-moz-scrollbars-vertical}');
document.write('TEXTAREA {resize: none}');
//document.write('.PngFix {behavior: url("css/iepngfix.htc");}');
document.write('</style>');
