jQuery.fn.setWindowPos=function(){return this.each(function(){var pos={sTop:function(){return window.pageYOffset||document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop},wHeight:function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body.clientHeight},sLeft:function(){return window.pageXOffset||document.documentElement&&document.documentElement.scrollLeft||document.body.scrollLeft},wWidth:function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body.clientWidth}};var elHeight=$(this).height();var elWidth=$(this).width();var elTop=pos.sTop()+90;var elLeft=pos.sLeft()+(pos.wWidth()/2)-(elWidth/2);$(this).css({position:"absolute",top:elTop,left:elLeft})})};$(".modal_window").click(function(){$(".modal_window").bgiframe();$(".modal_window").fadeOut()});$("#link_iphoneexisting").click(function(e){e.preventDefault();$(".modal_window").bgiframe();$(".modal_window").fadeOut();$("#iphoneexisting_window").setWindowPos();$("#iphoneexisting_window").bgiframe();$("#iphoneexisting_window").fadeIn();return false});$("#link_iphonefree").click(function(e){e.preventDefault();$(".modal_window").bgiframe();$(".modal_window").fadeOut();$("#iphonefree_window").setWindowPos();$("#iphonefree_window").bgiframe();$("#iphonefree_window").fadeIn();return false});$("#link_iphoneroam").click(function(e){e.preventDefault();$(".modal_window").bgiframe();$(".modal_window").fadeOut();$("#iphoneroam_window").setWindowPos();$("#iphoneroam_window").bgiframe();$("#iphoneroam_window").fadeIn();return false});
