
var YTdeferred = jQuery.Deferred(); window.onYouTubeIframeAPIReady = function() { //resolve when youtube callback is called passing YT as a parameter YTdeferred.resolve(window.YT);
}; YTdeferred.done(function(YT) {
jQuery('.huge-it-iframe').each(function(){
var el_id = jQuery(this).attr('data-element-id'); var volume = HUGEIT_YT_IFRAMES['iframe'+el_id]['volume'];
window['onPlayerReady'+el_id] = function(event) { window['player_'+el_id]['setVolume'](volume); } });
jQuery('.huge-it-iframe').each(function(){
var id = jQuery(this).attr('id'); var el_id = jQuery(this).attr('data-element-id'); var controls = HUGEIT_YT_IFRAMES['iframe'+el_id]['controls']; var showinfo = HUGEIT_YT_IFRAMES['iframe'+el_id]['showinfo']; var url = HUGEIT_YT_IFRAMES['iframe'+el_id]['videoId']; controls||(controls = 0); showinfo||(showinfo = 0);
window['player_'+el_id] = new YT.Player(id, { height: '375', width: '1200', videoId: url, playerVars: { 'controls': controls, 'showinfo': showinfo, 'rel':0 }, events: { 'onError': window['onPlayerError'+el_id], 'onReady': window['onPlayerReady'+el_id], 'onStateChange': window['onPlayerStateChange'+el_id], 'loop':1 } }); }) });
jQuery(function(){
jQuery('.huge-it-iframe').each(function(){
var el_id = jQuery(this).attr('data-element-id'); var quality = HUGEIT_YT_IFRAMES['iframe'+el_id]['quality'];
window['onPlayerStateChange'+el_id] = function(event) {
if (event.data == YT.PlayerState.PLAYING) { HUGEIT_YT_IFRAMES['iframe'+el_id]['state']='played'; event.target.setPlaybackQuality(quality); } } });
}); function stopYoutubeVideo(currentVideo,nextVideo) {
if(currentVideo) { (HUGEIT_YT_IFRAMES['iframe'+currentVideo]['state'])?currentVideo&&(window['player_'+currentVideo]['pauseVideo']()):currentVideo&&(window['player_'+currentVideo]['stopVideo']()); } nextVideo&&HUGEIT_YT_IFRAMES['iframe'+nextVideo]['autoplay']&&(window['player_'+nextVideo]['playVideo']()); }
function stopVimeoVideo(currentVideo,nextVideo){
jQuery(currentVideo).vimeo('pause');
jQuery(nextVideo).vimeo('play');
}
/***
jQuery( window ).load(function() {
(function VimeoOptionsReady(){ //calling funtion once jQuery('.huge-it-iframe-vimeo').each(function(){ var el_id = jQuery(this).attr('data-element-id'); jQuery(this).vimeo('setColor',HUGEIT_VIMEOS['iframe'+el_id]['color']); jQuery(this).vimeo('setVolume',HUGEIT_VIMEOS['iframe'+el_id]['volume']); }) }());
if('off' == 'on') {
if(jQuery('.huge-it-iframe-vimeo.autoplay').length) {
(function AutoplayVimeo() { var setplayVideo = setInterval(hugeitframe, 100); function hugeitframe() { var vimeo1 = jQuery('.huge_it_slider_1 li').first().find('.autoplay') if(vimeo1.length) { vimeo1.vimeo('play'); clearInterval(setplayVideo); } } }()); }
if(jQuery('.huge-it-iframe.autoplay').length) {
(function AutoplayYoutube() { var setplayVideo = setInterval(hugeitframe, 100); function hugeitframe() { jQuery('.huge-it-iframe.autoplay').each(function(){
var el_id = jQuery(this).attr('data-element-id');
if(window['player_'+el_id]) { window['player_'+el_id]['playVideo'](); clearInterval(setplayVideo); } }); } }()); } } });
/*** initialize***/
jQuery(document).ready(function() {
jQuery('.thumb_wrapper').on('click', function(ev) { var myid = jQuery(this).data('rowid'); myid = parseInt(myid); eval('player_' + myid + '.playVideo()'); ev.preventDefault();
}); });
if(typeof sliderID_array =="undefined") { var sliderID_array=[]; }
var data_1 = []; var event_stack_1 = []; data_1["0"]=[];data_1["0"]["id"]="0";data_1["0"]["image_url"]="http://magnabeing.com/wp-content/uploads/2016/10/magnaomegafishoil.png";data_1["0"]["description"]="";data_1["0"]["alt"]="";data_1["1"]=[];data_1["1"]["id"]="1";data_1["1"]["image_url"]="http://magnabeing.com/wp-content/uploads/2016/10/badstuffoutgoodstuffinslide-1.png";data_1["1"]["description"]="";data_1["1"]["alt"]="";data_1["2"]=[];data_1["2"]["id"]="2";data_1["2"]["image_url"]="http://magnabeing.com/wp-content/uploads/2016/10/magnavitamind3slide-1.png";data_1["2"]["description"]="";data_1["2"]["alt"]="";data_1["3"]=[];data_1["3"]["id"]="3";data_1["3"]["image_url"]="http://magnabeing.com/wp-content/uploads/2016/10/magnaglowslide-1.png";data_1["3"]["description"]="";data_1["3"]["alt"]="";data_1["4"]=[];data_1["4"]["id"]="4";data_1["4"]["image_url"]="http://magnabeing.com/wp-content/uploads/2016/10/magnabonesslide-2.png";data_1["4"]["description"]="";data_1["4"]["alt"]=""; var huge_it_trans_in_progress_1 = false; var huge_it_transition_duration_1 = 1000; var huge_interval = {}; var id_array_index = sliderID_array.length;
sliderID_array[id_array_index] = // Stop autoplay. window.clearInterval(huge_interval['huge_it_playInterval_'+1]);
var huge_it_current_key_1 = ''; function huge_it_move_dots_1() { var image_left = jQuery(".huge_it_slideshow_dots_active_1").position().left; var image_right = jQuery(".huge_it_slideshow_dots_active_1").position().left + jQuery(".huge_it_slideshow_dots_active_1").outerWidth(true);
} function huge_it_testBrowser_cssTransitions_1() { return huge_it_testDom_1('Transition'); } function huge_it_testBrowser_cssTransforms3d_1() { return huge_it_testDom_1('Perspective'); } function huge_it_testDom_1(prop) { // Browser vendor CSS prefixes. var browserVendors = ['', '-webkit-', '-moz-', '-ms-', '-o-', '-khtml-']; // Browser vendor DOM prefixes. var domPrefixes = ['', 'Webkit', 'Moz', 'ms', 'O', 'Khtml']; var i = domPrefixes.length; while (i--) { if (typeof document.body.style[domPrefixes[i] + prop] !== 'undefined') { return true; } } return false; } function huge_it_cube_1(tz, ntx, nty, nrx, nry, wrx, wry, current_image_class, next_image_class, direction) {
/* If browser does not support 3d transforms/CSS transitions.*/ if (!huge_it_testBrowser_cssTransitions_1()) { jQuery(".huge_it_slideshow_dots_1").removeClass("huge_it_slideshow_dots_active_1").addClass("huge_it_slideshow_dots_deactive_1"); jQuery("#huge_it_dots_" + huge_it_current_key_1 + "_1").removeClass("huge_it_slideshow_dots_deactive_1").addClass("huge_it_slideshow_dots_active_1"); return huge_it_fallback_1(current_image_class, next_image_class, direction); } if (!huge_it_testBrowser_cssTransforms3d_1()) { return huge_it_fallback3d_1(current_image_class, next_image_class, direction); } jQuery(current_image_class).css({'z-index': 'none'}); jQuery(next_image_class).css({'z-index' : 2}); huge_it_trans_in_progress_1 = true; /* Set active thumbnail.*/ jQuery(".huge_it_slideshow_dots_1").removeClass("huge_it_slideshow_dots_active_1").addClass("huge_it_slideshow_dots_deactive_1"); jQuery("#huge_it_dots_" + huge_it_current_key_1 + "_1").removeClass("huge_it_slideshow_dots_deactive_1").addClass("huge_it_slideshow_dots_active_1"); jQuery(".huge_it_slide_bg_1").css('perspective', 1000); jQuery(current_image_class).css({ transform : 'translateZ(' + tz + 'px)', backfaceVisibility : 'hidden' });
jQuery(".huge_it_slideshow_image_wrap_1,.huge_it_slide_bg_1,.huge_it_slideshow_image_item_1,.huge_it_slideshow_image_second_item_1 ").css('overflow', 'visible');
jQuery(next_image_class).css({ opacity : 1, filter: 'Alpha(opacity=100)', backfaceVisibility : 'hidden', transform : 'translateY(' + nty + 'px) translateX(' + ntx + 'px) rotateY('+ nry +'deg) rotateX('+ nrx +'deg)' }); jQuery(".huge_it_slider_1").css({ transform: 'translateZ(-' + tz + 'px)', transformStyle: 'preserve-3d' }); /* Execution steps.*/ setTimeout(function () { jQuery(".huge_it_slider_1").css({ transition: 'all ' + huge_it_transition_duration_1 + 'ms ease-in-out', transform: 'translateZ(-' + tz + 'px) rotateX('+ wrx +'deg) rotateY('+ wry +'deg)' }); }, 20); /* After transition.*/ jQuery(".huge_it_slider_1").one('webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend', jQuery.proxy(huge_it_after_trans)); function huge_it_after_trans() { jQuery(".huge_it_slide_bg_1,.huge_it_slideshow_image_item_1,.huge_it_slideshow_image_second_item_1 ").css('overflow', 'hidden'); jQuery(".huge_it_slide_bg_1").removeAttr('style'); jQuery(current_image_class).removeAttr('style'); jQuery(next_image_class).removeAttr('style'); jQuery(".huge_it_slider_1").removeAttr('style'); // alert(current_image_class+' '+next_image_class); jQuery(current_image_class).css({'opacity' : 0, filter: 'Alpha(opacity=0)', 'z-index': 1}); jQuery(next_image_class).css({'opacity' : 1, filter: 'Alpha(opacity=100)', 'z-index' : 2}); // huge_it_change_watermark_container_1(); huge_it_trans_in_progress_1 = false; if (typeof event_stack_1 !== 'undefined' && event_stack_1.length > 0) { key = event_stack_1[0].split("-"); event_stack_1.shift(); huge_it_change_image_1(key[0], key[1], data_1, true,false); } } } function huge_it_cubeH_1(current_image_class, next_image_class, direction) { /* Set to half of image width.*/ var dimension = jQuery(current_image_class).width() / 2; if (direction == 'right') { huge_it_cube_1(dimension, dimension, 0, 0, 90, 0, -90, current_image_class, next_image_class, direction); } else if (direction == 'left') { huge_it_cube_1(dimension, -dimension, 0, 0, -90, 0, 90, current_image_class, next_image_class, direction); } } function huge_it_cubeV_1(current_image_class, next_image_class, direction) { /* Set to half of image height.*/ var dimension = jQuery(current_image_class).height() / 2; /* If next slide.*/ if (direction == 'right') { huge_it_cube_1(dimension, 0, -dimension, 90, 0, -90, 0, current_image_class, next_image_class, direction); } else if (direction == 'left') { huge_it_cube_1(dimension, 0, dimension, -90, 0, 90, 0, current_image_class, next_image_class, direction); } } /* For browsers that does not support transitions.*/ function huge_it_fallback_1(current_image_class, next_image_class, direction) { huge_it_fade_1(current_image_class, next_image_class, direction); } /* For browsers that support transitions, but not 3d transforms (only used if primary transition makes use of 3d-transforms).*/ function huge_it_fallback3d_1(current_image_class, next_image_class, direction) { huge_it_sliceV_1(current_image_class, next_image_class, direction); } function huge_it_none_1(current_image_class, next_image_class, direction) { jQuery(current_image_class).css({'opacity' : 0, 'z-index': 1}); jQuery(next_image_class).css({'opacity' : 1, 'z-index' : 2});
/* Set active thumbnail.*/ jQuery(".huge_it_slideshow_dots_1").removeClass("huge_it_slideshow_dots_active_1").addClass("huge_it_slideshow_dots_deactive_1"); jQuery("#huge_it_dots_" + huge_it_current_key_1 + "_1").removeClass("huge_it_slideshow_dots_deactive_1").addClass("huge_it_slideshow_dots_active_1"); } function huge_it_fade_1(current_image_class, next_image_class, direction) { if (huge_it_testBrowser_cssTransitions_1()) {
jQuery(next_image_class).css('transition', 'opacity ' + huge_it_transition_duration_1 + 'ms linear'); jQuery(current_image_class).css('transition', 'opacity ' + huge_it_transition_duration_1 + 'ms linear'); jQuery(current_image_class).css({'opacity' : 0, 'z-index': 1}); jQuery(next_image_class).css({'opacity' : 1, 'z-index' : 2}); } else {
jQuery(current_image_class).animate({'opacity' : 0, 'z-index' : 1}, huge_it_transition_duration_1); jQuery(next_image_class).animate({ 'opacity' : 1, 'z-index': 2 }, { duration: huge_it_transition_duration_1, complete: function () {return false;} }); // For IE. jQuery(current_image_class).fadeTo(huge_it_transition_duration_1, 0); jQuery(next_image_class).fadeTo(huge_it_transition_duration_1, 1); }
jQuery(".huge_it_slideshow_dots_1").removeClass("huge_it_slideshow_dots_active_1").addClass("huge_it_slideshow_dots_deactive_1"); jQuery("#huge_it_dots_" + huge_it_current_key_1 + "_1").removeClass("huge_it_slideshow_dots_deactive_1").addClass("huge_it_slideshow_dots_active_1"); } function huge_it_grid_1(cols, rows, ro, tx, ty, sc, op, current_image_class, next_image_class, direction) { /* If browser does not support CSS transitions.*/ if (!huge_it_testBrowser_cssTransitions_1()) { jQuery(".huge_it_slideshow_dots_1").removeClass("huge_it_slideshow_dots_active_1").addClass("huge_it_slideshow_dots_deactive_1"); jQuery("#huge_it_dots_" + huge_it_current_key_1 + "_1").removeClass("huge_it_slideshow_dots_deactive_1").addClass("huge_it_slideshow_dots_active_1"); return huge_it_fallback_1(current_image_class, next_image_class, direction);
} huge_it_trans_in_progress_1 = true; /* Set active thumbnail.*/ jQuery(".huge_it_slideshow_dots_1").removeClass("huge_it_slideshow_dots_active_1").addClass("huge_it_slideshow_dots_deactive_1"); jQuery("#huge_it_dots_" + huge_it_current_key_1 + "_1").removeClass("huge_it_slideshow_dots_deactive_1").addClass("huge_it_slideshow_dots_active_1"); /* The time (in ms) added to/subtracted from the delay total for each new gridlet.*/ var count = (huge_it_transition_duration_1) / (cols + rows); /* Gridlet creator (divisions of the image grid, positioned with background-images to replicate the look of an entire slide image when assembled)*/ function huge_it_gridlet(width, height, top, img_top, left, img_left, src, imgWidth, imgHeight, c, r) { var delay = (c + r) * count; /* Return a gridlet elem with styles for specific transition.*/ return jQuery('
').css({ width : width, height : height, top : top, left : left, backgroundImage : 'url("' + src + '")', backgroundColor: jQuery(".huge_it_slideshow_image_wrap_1").css("background-color"), /*backgroundColor: rgba(0, 0, 0, 0),*/ backgroundRepeat: 'no-repeat', backgroundPosition : img_left + 'px ' + img_top + 'px', backgroundSize : imgWidth + 'px ' + imgHeight + 'px', transition : 'all ' + huge_it_transition_duration_1 + 'ms ease-in-out ' + delay + 'ms', transform : 'none' }); } /* Get the current slide's image.*/ var cur_img = jQuery(current_image_class).find('img'); /* Create a grid to hold the gridlets.*/ var grid = jQuery(' ').addClass('huge_it_grid_1'); /* Prepend the grid to the next slide (i.e. so it's above the slide image).*/ jQuery(current_image_class).prepend(grid); /* vars to calculate positioning/size of gridlets*/ var cont = jQuery(".huge_it_slide_bg_1"); var imgWidth = cur_img.width(); var imgHeight = cur_img.height(); var contWidth = cont.width(), contHeight = cont.height(), imgSrc = cur_img.attr('src'),/*.replace('/thumb', ''),*/ colWidth = Math.floor(contWidth / cols), rowHeight = Math.floor(contHeight / rows), colRemainder = contWidth - (cols * colWidth), colAdd = Math.ceil(colRemainder / cols), rowRemainder = contHeight - (rows * rowHeight), rowAdd = Math.ceil(rowRemainder / rows), leftDist = 0, img_leftDist = (jQuery(".huge_it_slide_bg_1").width() - cur_img.width()) / 2; /* tx/ty args can be passed as 'auto'/'min-auto' (meaning use slide width/height or negative slide width/height).*/ tx = tx === 'auto' ? contWidth : tx; tx = tx === 'min-auto' ? - contWidth : tx; ty = ty === 'auto' ? contHeight : ty; ty = ty === 'min-auto' ? - contHeight : ty; /* Loop through cols*/ for (var i = 0; i < cols; i++) { var topDist = 0, img_topDst = (jQuery(".huge_it_slide_bg_1").height() - cur_img.height()) / 2, newColWidth = colWidth; /* If imgWidth (px) does not divide cleanly into the specified number of cols, adjust individual col widths to create correct total.*/ if (colRemainder > 0) { var add = colRemainder >= colAdd ? colAdd : colRemainder; newColWidth += add; colRemainder -= add; } /* Nested loop to create row gridlets for each col.*/ for (var j = 0; j < rows; j++) { var newRowHeight = rowHeight, newRowRemainder = rowRemainder; /* If contHeight (px) does not divide cleanly into the specified number of rows, adjust individual row heights to create correct total.*/ if (newRowRemainder > 0) { add = newRowRemainder >= rowAdd ? rowAdd : rowRemainder; newRowHeight += add; newRowRemainder -= add; } /* Create & append gridlet to grid.*/ grid.append(huge_it_gridlet(newColWidth, newRowHeight, topDist, img_topDst, leftDist, img_leftDist, imgSrc, imgWidth, imgHeight, i, j)); topDist += newRowHeight; img_topDst -= newRowHeight; } img_leftDist -= newColWidth; leftDist += newColWidth; } /* Set event listener on last gridlet to finish transitioning.*/ var last_gridlet = grid.children().last(); /* Show grid & hide the image it replaces.*/ grid.show(); cur_img.css('opacity', 0); /* Add identifying classes to corner gridlets (useful if applying border radius).*/ grid.children().first().addClass('rs-top-left'); grid.children().last().addClass('rs-bottom-right'); grid.children().eq(rows - 1).addClass('rs-bottom-left'); grid.children().eq(- rows).addClass('rs-top-right'); /* Execution steps.*/ setTimeout(function () { grid.children().css({ opacity: op, transform: 'rotate('+ ro +'deg) translateX('+ tx +'px) translateY('+ ty +'px) scale('+ sc +')' }); }, 1); jQuery(next_image_class).css('opacity', 1); /* After transition.*/ jQuery(last_gridlet).one('webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend', jQuery.proxy(huge_it_after_trans)); function huge_it_after_trans() { jQuery(current_image_class).css({'opacity' : 0, 'z-index': 1}); jQuery(next_image_class).css({'opacity' : 1, 'z-index' : 2}); cur_img.css('opacity', 1); grid.remove(); huge_it_trans_in_progress_1 = false; if (typeof event_stack_1 !== 'undefined' && event_stack_1.length > 0) { key = event_stack_1[0].split("-"); event_stack_1.shift(); huge_it_change_image_1(key[0], key[1], data_1, true,false); } } } function huge_it_sliceH_1(current_image_class, next_image_class, direction) { if (direction == 'right') { var translateX = 'min-auto'; } else if (direction == 'left') { var translateX = 'auto'; } huge_it_grid_1(1, 8, 0, translateX, 0, 1, 0, current_image_class, next_image_class, direction); } function huge_it_sliceV_1(current_image_class, next_image_class, direction) { if (direction == 'right') { var translateY = 'min-auto'; } else if (direction == 'left') { var translateY = 'auto'; } huge_it_grid_1(10, 1, 0, 0, translateY, 1, 0, current_image_class, next_image_class, direction); } function huge_it_slideV_1(current_image_class, next_image_class, direction) { if (direction == 'right') { var translateY = 'auto'; } else if (direction == 'left') { var translateY = 'min-auto'; } huge_it_grid_1(1, 1, 0, 0, translateY, 1, 1, current_image_class, next_image_class, direction); } function huge_it_slideH_1(current_image_class, next_image_class, direction) { if (direction == 'right') { var translateX = 'min-auto'; } else if (direction == 'left') { var translateX = 'auto'; } huge_it_grid_1(1, 1, 0, translateX, 0, 1, 1, current_image_class, next_image_class, direction); } function huge_it_scaleOut_1(current_image_class, next_image_class, direction) { huge_it_grid_1(1, 1, 0, 0, 0, 1.5, 0, current_image_class, next_image_class, direction); } function huge_it_scaleIn_1(current_image_class, next_image_class, direction) { huge_it_grid_1(1, 1, 0, 0, 0, 0.5, 0, current_image_class, next_image_class, direction); } function huge_it_blockScale_1(current_image_class, next_image_class, direction) { huge_it_grid_1(8, 6, 0, 0, 0, .6, 0, current_image_class, next_image_class, direction); } function huge_it_kaleidoscope_1(current_image_class, next_image_class, direction) { huge_it_grid_1(10, 8, 0, 0, 0, 1, 0, current_image_class, next_image_class, direction); } function huge_it_fan_1(current_image_class, next_image_class, direction) { if (direction == 'right') { var rotate = 45; var translateX = 100; } else if (direction == 'left') { var rotate = -45; var translateX = -100; } huge_it_grid_1(1, 10, rotate, translateX, 0, 1, 0, current_image_class, next_image_class, direction); } function huge_it_blindV_1(current_image_class, next_image_class, direction) { huge_it_grid_1(1, 8, 0, 0, 0, .7, 0, current_image_class, next_image_class); } function huge_it_blindH_1(current_image_class, next_image_class, direction) { huge_it_grid_1(10, 1, 0, 0, 0, .7, 0, current_image_class, next_image_class); } function huge_it_random_1(current_image_class, next_image_class, direction) { var anims = ['sliceH', 'sliceV', 'slideH', 'slideV', 'scaleOut', 'scaleIn', 'blockScale', 'kaleidoscope', 'fan', 'blindH', 'blindV']; /* Pick a random transition from the anims array.*/ this["huge_it_" + anims[Math.floor(Math.random() * anims.length)] + "_1"](current_image_class, next_image_class, direction); }function iterator_1() { return 1; }
function huge_it_change_image_1(current_key, key, data_1, from_effect, clicked) {
if (data_1[key]) {
if (!from_effect) { // Change image key. jQuery("#huge_it_current_image_key_1").val(key); current_key = jQuery(".huge_it_slideshow_dots_active_1").attr("data-image_key"); }
if (huge_it_trans_in_progress_1) { event_stack_1.push(current_key + '-' + key); return; }
var direction = 'right'; if (huge_it_current_key_1 > key) { direction = 'left'; } else if (huge_it_current_key_1 == key) { return false; }
// Set active thumbnail position.
huge_it_current_key_1 = key; jQuery("#huge_it_slideshow_image_1").attr('data-image_id', data_1[key]["id"]);
jQuery(".huge_it_slideshow_title_text_1").html(data_1[key]["alt"]); jQuery(".huge_it_slideshow_description_text_1").html(data_1[key]["description"]);
var current_image_class = "#image_id_1_" + data_1[current_key]["id"]; var next_image_class = "#image_id_1_" + data_1[key]["id"];
if (jQuery(current_image_class).find('.huge_it_video_frame_1').length > 0) { var streffect = 'random'; if (streffect == "cubeV" || streffect == "cubeH" || streffect == "none" || streffect == "fade") { huge_it_random_1(current_image_class, next_image_class, direction); } else { huge_it_fade_1(current_image_class, next_image_class, direction); } } else { huge_it_random_1(current_image_class, next_image_class, direction); }
jQuery('.huge_it_slideshow_title_text_1').removeClass('none'); if (jQuery('.huge_it_slideshow_title_text_1').html() == "") { jQuery('.huge_it_slideshow_title_text_1').addClass('none'); }
jQuery('.huge_it_slideshow_description_text_1').removeClass('none'); if (jQuery('.huge_it_slideshow_description_text_1').html() == "") { jQuery('.huge_it_slideshow_description_text_1').addClass('none'); }
jQuery(current_image_class).find('.huge_it_slideshow_title_text_1').addClass('none');
jQuery(current_image_class).find('.huge_it_slideshow_description_text_1').addClass('none');
huge_it_move_dots_1();
/***
} if ((jQuery('#player_1_' + key)).hasClass('huge-it-iframe-vimeo') && ('off' == 'on')) { jQuery('#player_1_' + key).vimeo('play'); } /*** ***/ window.clearInterval(huge_interval['huge_it_playInterval_' +1]); play_1(); }
} var staticthumbWidth; jQuery(window).load(function() { staticthumbWidth = jQuery('#huge_it_thumb_slider>li').width();
}); function huge_it_popup_resize_1() {
var staticsliderwidth =1200; var sliderwidth =1200; var bodyWidth = jQuery(window).width(); var parentWidth = jQuery(".huge_it_slideshow_image_wrap_1").parent().width();
if (sliderwidth > parentWidth) { sliderwidth = parentWidth; } if (sliderwidth > bodyWidth) { sliderwidth = bodyWidth; } var str=375/(staticsliderwidth); var str2 =100/1200; var sliderDynamicImageHeight = sliderwidth*str; var sliderDynamicThumbHeight = 0;
jQuery('.huge_it_slideshow_image_wrap_1').css({'max-height':sliderDynamicImageHeight+sliderDynamicThumbHeight}); jQuery('.huge_it_slideshow_image_wrap1_1').css({'max-height':sliderDynamicImageHeight}); jQuery('.huge_it_slideshow_thumbs_1 li').css({'max-height':sliderDynamicThumbHeight});
jQuery("#huge_it_loading_image_1").css({display: "none"}); jQuery(".huge_it_slideshow_image_wrap1_1").css({opacity: 1}); jQuery(".huge_it_slideshow_image_wrap_1").removeClass("nocolor");
if ("resize"=="crop"){ jQuery(".huge_it_slider_ul li img").each(function(){ if(jQuery(this).prop('naturalWidth')>jQuery(this).prop('naturalHeight')) jQuery(this).css({'width':'100%','height':'auto'/*,'top':'50%','left':'50%','transform':'translate( -50%, -50% )'*/}); else{ jQuery(this).css({'height':'100%','width':'auto'/*,'top':'50%','left':'50%','transform':'translate( -50%, -50% )'*/}); } }); } jQuery(".huge_it_slideshow_image_wrap_1").css({opacity:1}); }
jQuery(window).load(function () { jQuery(window).resize(function() { huge_it_popup_resize_1(); });
jQuery('#huge_it_slideshow_left_1').on('click',function(){ huge_it_change_image_1(parseInt(jQuery('#huge_it_current_image_key_1').val()), (parseInt(jQuery('#huge_it_current_image_key_1').val()) - iterator_1()) >= 0 ? (parseInt(jQuery('#huge_it_current_image_key_1').val()) - iterator_1()) % data_1.length : data_1.length - 1, data_1,false,true); return false; });
jQuery('#huge_it_slideshow_right_1').on('click',function(){ huge_it_change_image_1(parseInt(jQuery('#huge_it_current_image_key_1').val()), (parseInt(jQuery('#huge_it_current_image_key_1').val()) + iterator_1()) % data_1.length, data_1,false,true); return false; });
huge_it_popup_resize_1(); /* Disable right click.*/ jQuery('div[id^="huge_it_container"]').bind("contextmenu", function () { return false; });
/*HOVER SLIDESHOW*/ jQuery("#huge_it_slideshow_image_container_1, .huge_it_slideshow_image_container_1, .huge_it_slideshow_dots_container_1,#huge_it_slideshow_right_1,#huge_it_slideshow_left_1").hover(function(){ jQuery("#huge_it_slideshow_right_1").css({'display':'inline'}); jQuery("#huge_it_slideshow_left_1").css({'display':'inline'}); },function(){ jQuery("#huge_it_slideshow_right_1").css({'display':'none'}); jQuery("#huge_it_slideshow_left_1").css({'display':'none'}); });
if(pausehover=="on" && !/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){ jQuery("#huge_it_slideshow_image_container_1, .huge_it_slideshow_image_container_1").hover(function(){ window.clearInterval(huge_interval['huge_it_playInterval_'+1]); scrolling = false; },function(){ window.clearInterval(huge_interval['huge_it_playInterval_'+1]); scrolling = true; play_1(); }); } play_1(); }); function play_1(){ if(scrolling ){ huge_interval['huge_it_playInterval_'+1] = setInterval(function () { var iterator = 1; huge_it_change_image_1(parseInt(jQuery('#huge_it_current_image_key_1').val()), (parseInt(jQuery('#huge_it_current_image_key_1').val()) + iterator) % data_1.length, data_1,false,false); }, '4000'); } } jQuery(window).focus(function() { var i_1 = 0; jQuery(".huge_it_slider_1").children("div").each(function () { if (jQuery(this).css('opacity') == 1) { jQuery("#huge_it_current_image_key_1").val(i_1); } i_1++; }); }); jQuery(window).blur(function() { console.log(event_stack_1); window.clearInterval(huge_interval['huge_it_playInterval_'+1]); }); jQuery(window).focus(function() { play_1() });
[/text_block]

Join MAGNA Health Newsletter
GREAT Being | GREAT Health. Learn How to Crack the Codes to the Secrets to Great Health. Good Health Isn’g Good Health. Discover How to Elevate to Great Health.

Memberships
- Food as Medicine Training Program Monthly Membership
- Supplements as Medicine Training Program Monthly Membership
- Fat Loss Workout Systems Monthly
- Fat Loss Eating Protocols Monthly
- Muscle Building Programs Monthly: Focuses upon different ways of moving weights for maximum visible results in minimal time
- Great Health Protocols Monthly: When its time to step into the realm of great health for maximum health, productivity and performance. Diet protocols to make health great. Supplementation protocols to maximize health for different goals. Exercise protocols.
[/text_block]

Supplements
- Sunshine in a Bottle – Vitamin D3
- MAGNABONES – Strong bones formula 1
- OPTIMIZE9 – Blood sugar support vitamins.
- Food Based Vitamins – a Huge Superfoods Salad Plus Much More in a Pill.
- MAGNAGLOW – Hair vitamins – Skin vitamins – Nails vitamins packed into these powerful vitamins.
- MAGNAOMEGA3 – Pristine, high potency, high power Fish Oil Pills.
More coming soon…[/text_block]

Protocols
Protocols are of three types mostly: Eating Protocols, Supplementation Protocols, Exercise Protocols. Protocols are systems that one would simply look to execute for a specific purpose or turn into a habit
- Cleansing Protocols: Total Body, Liver, Brain, Gut
- Fat Loss / Weight Loss Protocols
- Muscle Building, Shaping and Toning Protocols
- Agility Protocols
- Superior Performance Protocols: Productivity, Athletics, Focus..
- Magna Health – Great Health Protocols (pushing better than good health)
[/text_block]

Articles for Great Health
[/text_block]

[/text_block]

MAGNA Being | Great Being | Great Health
[/text_block]

MAGNA Being – MAGNA Health:
Great Being – Great Health
Magna means “great”. Our directive, purpose, goal and cause with MAGNA Being brand is to focus on education and products that aim for GREAT health which define as the next step past good health.
So we in fact look to “push the envelope” past what the norm calls “good health” which is usually thought of as “getting by” or “not sick”. Sorry that’s just not good enough for us. Due to a variety and volume of experience and experimentation in matters for maximizing health we have discovered what it is like to have great health and feel not just good but powerful!
Many of our discoveries and secrets come from the world of pushing the limits in athletic performance, ability, body building and reversing numerous conditions, illnesses, diseases through accumulated knowledge, understanding through a principle we like to call “Physiological Logic”. Having access to all sorts of research materials, experts, MDs and case studies we’ve made many wonderful discoveries that have worked for us. So now we feel an obligation to help others.
Good health just isn’t good enough these days. There is so much more that we can do in life these days. Standards of health and performance even through very old age can be very high these days due to advancements of knowledge and understanding of how our bodies work and how our bodies work with nature.
So we look to push past the average and move into excellent health. We want to tap the secrets of those who have amazing health, strength, agility, functionality at any age and develop strategies from which to maximize our own.
As we continue to develop out MAGNA Being we look to provide you strategic optimizations for all things related to better to great health through our education, courses, supplements, foods and personal care products. So join our newsletter to be alerted as we add more great products to help you.
[/text_block]

MAGNA Being Physical Products
- Supplements
- Soaps
- Creams
- Foods
- Drink Powders
- Fitness Products
[/text_block]

Join MAGNA Health Newsletter
Join MAGNA Beings MAGNA Health Newsletter. Receive health tips, education and solutions to help you accelerate your health beyond good health, to GREAT Health!
[/text_block]

Health Systems, Strategies & Remedies Information Products
Health improvement methods, fixes, strategies and systems in educational course form are offered on this site to help those seeking for natural and logical based solutions get ideas on how to solve a variety of health problems or achieve health goals. These information courses are based on each author’s own discoveries, tests, research and victories. You may find this information quite helpful in your own quest to conquer challenges and achieve health goals.
These products will be based on solutions for to achieving: great health, overall fitness and physical ability, fat loss, optimized performance states, muscle building and more…
Although everyone has their own present health status, environment, body composition, body structure, blood type, genetics etc. one can learn from our methods and look to adopt ideas and strategies to themselves while looking to pair and monitor with professional guidance for safety and accuracy.
We will cover with amazing breakthrough discoveries using our prime directive, core health optimization philosophies :
- Joints
- Bones
- Back Pain
- Strength
- Muscle Development
- Power
- Agility
- Vision
- Brain Health. Brain Performance Optimization
- Overuse syndrome
- Diabetes
- Immune System Optimization
- Maximum & Sustained Energy
- Maximum Focus
[/text_block]

MAGNA Being Memberships
[/text_block]

“Supplements as Medicine”
Monthly Training Program Membership
Having knowledge and understanding of how supplements work can be very very powerful. Having knowledge of how supplements work in amazing ways can help one develop specific plans to more quickly and accurately achieve their health goals.
Personally I have experimented quite a bit over the past thirty years in supplements. I have learned a lot and have used supplements to fix many problems in myself while optimizing my health with such factors as:
- Immunity boosting for the thwarting and avoidance of colds and flus for many years
- Brain health and focus
- Energy, lots of energy
- Joint optimization and lubrication
- Hormone balancing.
- Libido
- Rich dark hair even at this age.
- Vision
- Blood pressure
- Balancing cholesterol levels
More importantly there has been rapidly compounding information availability over the past several years, supplement tests and supplement clinicals which is really great.
Now we want to push the concept of “supplement as medicine” in terms of a mindset to get organized and systematized for the optimal use of supplements. For clarification on the disclaimer side of things, no, we or you are not trying to diagnose prescribed supplements as competent health care professional. Accurate medicine practice is very individualized that’s why you need to see a competent Healthcare professional to work with individual basis. And work through comprehensive blood tests so you can get an accurate picture of what is needed in terms of supplementation in your blood profile.
Firstly as you know by now just very difficult obtain the nutrition we need optimize superior from foods. It sounds nice and idealistic, but it just is not realistic unless you have lot of money. Additionally, supplements can be concentrated forms of food, where as, you can get a lot more value out of a supplement vs. food in that so much of that food would be needed to be eaten in order to get the equivalent benefit of a simple supplement pill or two. Therefore supplements can be drastically more efficient and cost effective in providing us optimal nutrition.
Most good supplements are basically foods anyways. Most good supplements are herbs and food powders essentially. But these supplements can have powerful properties that can assist us and our health goals.
It is important to know what a supplement can do and what it cannot do. It’s important to get a ballpark picture of dosing for different, specific reasons, or health optimization goals. So therefore we have created this educational membership to teach you all about a particular supplement on a monthly basis. Knowledge is extremely valuable and MAGNA Being can help you in your pursuit of your health goals with new ideas and or more accuracy on use of particular supplements.
Knowledge and understanding is power. And knowing the various supplements and what they can do can add significant power and confidence to you. Plus creating new health habits with supplements can help you become more and more empowered as an individual.[/text_block]

“Food as Medicine”
Monthly Training Program Membership
Find out more on how to receive these powerful, potent reports how you can discover wisdom of millennia of societies that have discovered “secret breakthroughs” “secret remedies” for all sorts of different conditions using “food as medicine”.
- You have to wonder why my own dad grew up on a substance farm, living in what resembles a hut, with his arm for his pillow and charcoal to rub on his teeth for tooth paste had perfect teeth, white with zero tooth problems until he moved to the USA
- You have to wonder …
- If you drive a car and don’t change the oil in a car for a couple years what usually happens? Well you have to wonder, if you operate in a human body and you do not supply that body with nutrients it needs to run optimally – what happens?
- You have to wonder… if eating a lot of certain types of foods makes you feel tired, weak, like you are about to get sick with a “cold” vs. eating other types of foods that make you feel strong, energized, alert, sound and healthy- you have to wonder if there is any correlation to the actual foods you are eating… hummm geee
[/text_block]