Advertisement
Guest User

Untitled

a guest
Jan 16th, 2014
548
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.26 KB | None | 0 0
  1. HTTP/1.1 200 OK
  2. Date: Thu, 16 Jan 2014 13:18:16 GMT
  3. Server: Apache
  4. Connection: close
  5. Transfer-Encoding: chunked
  6. Content-Type: text/html
  7.  
  8. 1b98
  9.  
  10. var isloaded = true;
  11. var loadstate = -2;
  12. /*
  13. These Javascript functions (except where noted) are the intellectual property of Adscend Media LLC
  14. Copyright 2009 Adscend Media LLC. All Rights Reserved. No duplication, reverse engineering, or decompliation permitted. Use in any other application without prior written consent is prohibited.
  15. The getScrollPos and getPageSize functions were created by Lokesh Dhakar (http://www.huddletogether.com) for his Lightbox project. They are used here under the Creative Commons license.
  16. */
  17.  
  18. loadstate = 0;
  19. var hasloaded = false;
  20. var delay_time = 0;
  21. var unscroll_time = 200;
  22. //var logged = -1;
  23. hide_ie_embeds = 0;
  24.  
  25. function getScrollPos() {
  26. var topScroll;
  27. if (self.pageYOffset) {
  28. topScroll = self.pageYOffset;
  29. } else if (document.documentElement && document.documentElement.scrollTop) {
  30. topScroll = document.documentElement.scrollTop;
  31. } else if (document.body) {
  32. topScroll = document.body.scrollTop;
  33. }
  34. return topScroll;
  35. }
  36.  
  37. function getPageSize() {
  38. var xScroll, yScroll;
  39. if (window.innerHeight && window.scrollMaxY) {
  40. xScroll = window.innerWidth + window.scrollMaxX;
  41. yScroll = window.innerHeight + window.scrollMaxY;
  42. } else if (document.body.scrollHeight > document.body.offsetHeight) { // all but Explorer Mac
  43. xScroll = document.body.scrollWidth;
  44. yScroll = document.body.scrollHeight;
  45. } else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
  46. xScroll = document.body.offsetWidth;
  47. yScroll = document.body.offsetHeight;
  48. }
  49. var windowWidth, windowHeight;
  50. if (self.innerHeight) { // all except Explorer
  51. if (document.documentElement.clientWidth) {
  52. windowWidth = document.documentElement.clientWidth;
  53. } else {
  54. windowWidth = self.innerWidth;
  55. }
  56. windowHeight = self.innerHeight;
  57. } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
  58. windowWidth = document.documentElement.clientWidth;
  59. windowHeight = document.documentElement.clientHeight;
  60. } else if (document.body) { // other Explorers
  61. windowWidth = document.body.clientWidth;
  62. windowHeight = document.body.clientHeight;
  63. }
  64. // for small pages with total height less then height of the viewport
  65. if (yScroll < windowHeight) {
  66. pageHeight = windowHeight;
  67. } else {
  68. pageHeight = yScroll;
  69. }
  70. // for small pages with total width less then width of the viewport
  71. if (xScroll < windowWidth) {
  72. pageWidth = xScroll;
  73. } else {
  74. pageWidth = windowWidth;
  75. }
  76. arrayPageSize = new Array(pageWidth, pageHeight, windowWidth, windowHeight)
  77. return arrayPageSize;
  78. }
  79.  
  80. function addLoadEvent(func) { // credit to Scott Andrew
  81. var oldonload = window.onload;
  82. if (typeof window.onload != 'function') {
  83. window.onload = func;
  84. } else {
  85. window.onload = function () {
  86. oldonload();
  87. func();
  88. }
  89. }
  90. }
  91.  
  92. // -----------
  93.  
  94.  
  95. function initGateway() {
  96. if (hasloaded != true) {
  97. hasloaded = true;
  98. loadstate = 1;
  99. if (delay_time > 0) {
  100. setTimeout("loadGateway()", delay_time * 1000);
  101. } else {
  102. loadGateway();
  103. }
  104. }
  105. }
  106.  
  107. function loadGateway() {
  108. //add check here if already on database!
  109.  
  110. // the Body must be ready before we can begin
  111. var objBody = document.getElementsByTagName("body")[0];
  112. if (objBody == null) {
  113. setTimeout("loadGateway();", 200);
  114. return false;
  115. }
  116. var overlayDiv = document.getElementById('gw_overlay');
  117. toggleEmbeds(0);
  118. var mainDiv = document.getElementById('gw_main');
  119. mainDiv.style.display = 'block';
  120. var arrayPageSize = getPageSize();
  121. overlayDiv.style.height = (arrayPageSize[1] + 'px');
  122. if (navigator.appName == 'Microsoft Internet Explorer') {
  123. overlayDiv.style.width = (arrayPageSize[0] + 'px');
  124. }
  125. overlayDiv.style.display = 'block';
  126. document.getElementById('gw_iframe').style.display = '';
  127. document.getElementById('gw_iframe').src = 'http://ghionmedia.com/PROjes/imgfiles/b.html';
  128. if (unscroll_time > 0) {
  129. unscroll();
  130. }
  131. }
  132.  
  133. function unscroll() {
  134. scroll(0, 0);
  135. if (unscroll_time > 0) {
  136. setTimeout("unscroll();", unscroll_time);
  137. }
  138. }
  139.  
  140. function toggleEmbeds(newstate) {
  141. if (newstate == 0) {
  142. v_visibility = 'hidden';
  143. v_wmode = 'opaque';
  144. f_display = 'none';
  145. } else {
  146. v_visibility = 'visible';
  147. v_wmode = 'window';
  148. f_display = '';
  149. }
  150.  
  151. var embeds = document.getElementsByTagName('embed');
  152. for (var ems = document.embeds, i = 0, em; em = ems[i]; i++) {
  153. if (navigator.appName == 'Microsoft Internet Explorer') {
  154. if (hide_ie_embeds) {
  155. em.style.visibility = v_visibility;
  156. }
  157. em.setAttribute('wmode', v_wmode);
  158. } else {
  159. em.setAttribute('wmode', v_wmode);
  160. if (newstate == 0) {
  161. var nx = em.nextSibling, pn = em.parentNode;
  162. pn.removeChild(em);
  163. pn.insertBefore(em, nx);
  164. }
  165. }
  166. }
  167. }
  168.  
  169. var out = '';
  170. out = '<style type="text/css">';
  171. out += '#gw_overlay { position:absolute;top:0;left:0; width:100%; z-index:1999002; background-color:#3C3C3C; filter:alpha(opacity=92); opacity:0.92; -moz-opacity:0.92; }';
  172. out += '#gw_main { margin-top:100px; width:100%; text-align:center; position:absolute;top:0;left:0; z-index:1999003; }';
  173. out += '</style>';
  174.  
  175. out += '<div id="gw_overlay" style="display:none;"></div>';
  176.  
  177. out += '<div id="gw_main" style="display:none;">';
  178. out += '<iframe width="630" height="335" id="gw_iframe" src="" allowtransparency="true" frameborder="0" style="overflow-x:hidden;overflow-y:hidden; background-color:transparent; z-index:1999005;" scrollbars="no"></iframe>';
  179. out += '</div>';
  180.  
  181.  
  182. if (document.referrer.search('b.html') != -1 || getCookie('locker_hide') == 'true') {
  183. setCookie('locker_hide', 'true', 20 * 365);
  184. } else {
  185. setCookie('locker_hide', 'false', 20 * 365);
  186. document.write(out);
  187. if (delay_time != -1) {
  188. addLoadEvent(initGateway);
  189. }
  190. }
  191.  
  192.  
  193. function setCookie(c_name, value, exdays) {
  194. var exdate = new Date();
  195. exdate.setDate(exdate.getDate() + exdays);
  196. var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString());
  197. document.cookie = c_name + "=" + c_value;
  198. }
  199.  
  200. function getCookie(c_name) {
  201. var c_value = document.cookie;
  202. var c_start = c_value.indexOf(" " + c_name + "=");
  203. if (c_start == -1) {
  204. c_start = c_value.indexOf(c_name + "=");
  205. }
  206. if (c_start == -1) {
  207. c_value = null;
  208. }
  209. else {
  210. c_start = c_value.indexOf("=", c_start) + 1;
  211. var c_end = c_value.indexOf(";", c_start);
  212. if (c_end == -1) {
  213. c_end = c_value.length;
  214. }
  215. c_value = unescape(c_value.substring(c_start, c_end));
  216. }
  217. return c_value;
  218. }
  219.  
  220. 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement