$(document).ready(function(){ var isiDevice = false; var isiPad = navigator.userAgent.match(/iPad/i) != null; var isiPhone = navigator.userAgent.match(/iPhone/i) != null; var isiPod = navigator.userAgent.match(/iPod/i) != null; if(isiPad || isiPhone || isiPod) isiDevice = true; if(!isiDevice){ $(".colorbox").colorbox(); $(".cb-getstarted").colorbox({innerWidth:925, innerHeight:455}); $(".cb-iframe700").colorbox({innerWidth:700, height:"90%", iframe:true}); $(".cb-iframe").colorbox({width:"80%", height:"80%", iframe:true}); $(".lightwindow").colorbox({width:"80%", height:"80%", iframe:true}); $(".cb-inline").colorbox({width:"50%", inline:true, href:"#cb-inline"}); $(".cb-flash").colorbox({iframe:true, innerWidth:425, innerHeight:344}); $(".cb-ajax").colorbox(); $(".colorbox500").colorbox({innerWidth:500, innerHeight:410, maxHeight:"90%", iframe:true}); $(".colorbox700").colorbox({innerWidth:700, innerHeight:840, maxHeight:"90%", iframe:true}); $(".colorbox750").colorbox({innerWidth:755, innerHeight:505, maxHeight:"90%", iframe:true}); $(".cb-youtube").colorbox({iframe:true, innerWidth:746, innerHeight:413}); $(".cb-youtube2").colorbox({iframe:true, innerWidth:640, innerHeight:385}); } });