if (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i)) {
var viewportmeta = document.querySelectorAll('meta[name="viewport"]')[0];
if (viewportmeta) {
viewportmeta.content = 'width=device-width, minimum-scale=1.0, maximum-scale=1.0';
document.body.addEventListener('gesturestart', function() {
viewportmeta.content = 'width=device-width, minimum-scale=0.25, maximum-scale=1.6';
}, false);
}
}


WebFontConfig = {
   google: { families: [ 'Philosopher:400italic,700,400','Amaranth:400,400italic,700' ] }
 };
 (function() {
   var wf = document.createElement('script');
   wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
     '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
   wf.type = 'text/javascript';
   wf.async = 'true';
   var s = document.getElementsByTagName('script')[0];
   s.parentNode.insertBefore(wf, s);
})();



$(document).ready(function(){

	$(".flexslider").flexslider(); 
	
	$(".colorbox").colorbox();
	$(".youtube").colorbox({
		iframe:true, 
		width:480, 
		height:320 }); 
			
	$("#playlist").playlist({
	    playerurl: "http://www.sinfonia.org.do/uploads/a/s/drplayer.swf" });

});


//Modernizr.load([
//  {
//   load: '//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js',
//   complete: function () {
//      if (!window.jQuery) {
//         Modernizr.load('http://www.sinfonia.org.do/uploads/a/j/libs/jquery-1.6.1.min.js');
//      }
//   }
//  },
//  { 
//  load: 'http://www.sinfonia.org.do/uploads/a/j/libs/jquery.flexslider-min.js',
//	  complete: function () {
//	  $(".flexslider").flexslider();  
//	  }
//  },
//  {
//  load: 'http://www.sinfonia.org.do/uploads/a/j/libs/jquery.colorbox-min.js',
//  	complete : function () {
//  	  	$(".colorbox").colorbox();
//  	  	$(".youtube").colorbox({
//  	  		iframe:true, 
//  	  		width:480, 
//  	  		height:320
//  	  	});
//  	}
//  },
//  {
//  load: 'http://www.sinfonia.org.do/uploads/a/j/libs/drplayer.js',
//  	complete : function () {
//  	  	$("#playlist").playlist({
//  	  	    playerurl: "http://www.sinfonia.org.do/uploads/a/s/drplayer.swf"
//  	  	});
//  	}
//  }
//
//  
//]);


