function check_if_in_view_screen(){if($(window.parent.document).find("#iframe_kf").is(":visible")||$(window.parent.document).find("#kf-iframe").is(":visible")){var f=$window.height(),n=$window.scrollTop(),t=n+f,r=$(window.parent.document).find("#iframe_kf")||$(window.parent.document).find("#kf-iframe"),i=r.length>0?r.offset().top:0,u=$(window.parent.document).find("#iframe_kf_respond")||$(window.parent.document).find("#kf-iframe_respond"),e=u.length>0?u.offset().top:0;$.each($screen_animation,function(){var r=$(".screen_element"),f=r.outerHeight(),u=r.offset().top,e=u+i,o=u+f;o>=n&&e<=t&&setTimeout(function(){$(".handle").addClass("handle_0");$(".resize").addClass("resize_0")},500)});$.each($screen_animation_boom,function(){var r=$(".screen_element_boom"),f=r.outerHeight(),u=r.offset().top+100,e=u+i,o=u+f;o>=n&&e<=t&&($("#aorus_grab").css({animation:"aorus_grab linear 4s"}),$("#aorus_grab_move").css({animation:"aorus_grab_move ease-in-out 5s infinite"}))});$.each($screen_animation_boom_wing,function(){var r=$(".screen_element_boom_wing"),f=r.outerHeight(),u=r.offset().top+700,e=u+i,o=u+f;o>=n&&e<=t&&($("#aorus_wing").css({animation:"aorus_wing linear 3s"}),$("#aorus_wing_black").css({animation:"aorus_wing_black linear 3.5s"}),$("#aorus_wing_left").css({animation:"aorus_wing_left ease-in 6s"}),$("#aorus_wing_left1").css({animation:"aorus_wing_left1 ease-in 6s"}),$("#aorus_wing_light").css({animation:"aorus_wing_light ease-in-out 3.5s infinite","animation-delay":"3s"}))});$.each($screen_animation_boom_back,function(){var r=$(".screen_element_boom_back"),f=r.outerHeight(),u=r.offset().top+700,e=u+i,o=u+f;o>=n&&e<=t&&($("#aorus_back_left").css({animation:"aorus_back_left ease-in-out 6s infinite"}),$("#aorus_back_light").css({animation:"aorus_back_light ease-in-out 6s infinite"}))});$.each($screen_animation_after,function(){var n=$(".screen_element_after"),u=n.outerHeight(),r=n.offset().top,f=r+i,e=r+u;f<=t?($("#page1").slideUp("slow"),$("#page2").slideDown("slow")):($("#page2").slideUp("slow"),$("#page1").slideDown("slow"))})}else $.each($screen_animation,function(){var n=$(".screen_element");setTimeout(function(){$(".handle").addClass("handle_0");$(".resize").addClass("resize_0")},500)})}var $screen_animation=$(".screen_element"),$screen_animation_boom=$(".screen_element_boom"),$screen_animation_boom_wing=$(".screen_element_boom_wing"),$screen_animation_boom_back=$(".screen_element_boom_back"),$screen_animation_after=$(".screen_element_after"),$window=$(window.parent);$window.on("scroll resize",check_if_in_view_screen);$window.trigger("scroll")