var float = 'center'; var deviceIphone = "iphone"; var deviceIpod = "ipod"; var deviceIpad = "ipad"; var uagent = navigator.userAgent.toLowerCase(); function DetectIpad() { if (uagent.search(deviceIpad) > -1 && DetectWebkit()) return true; else return false; } function DetectIphone() { if (uagent.search(deviceIphone) > -1) return true; else return false; } function DetectIpod() { if (uagent.search(deviceIpod) > -1) return true; else return false; } function DetectAllapple() { if (DetectIphone()) return true; else if (DetectIpod()) return true; else if (DetectIpad()) return true; else return false; } if (typeof jQuery != 'function') { document.write(''); } jQuery.cookie = function(name, value, options) { if (typeof value != 'undefined') { // name and value given, set cookie options = options || {}; if (value === null) { value = ''; options.expires = -1; } var expires = ''; if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) { var date; if (typeof options.expires == 'number') { date = new Date(); date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)); } else { date = options.expires; } expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE } // CAUTION: Needed to parenthesize options.path and options.domain // in the following expressions, otherwise they evaluate to undefined // in the packed version for some reason... var path = options.path ? '; path=' + (options.path) : ''; var domain = options.domain ? '; domain=' + (options.domain) : ''; var secure = options.secure ? '; secure' : ''; document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); } else { // only name given, get cookie var cookieValue = null; if (document.cookie && document.cookie != '') { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = jQuery.trim(cookies[i]); // Does this cookie string begin with the name we want? if (cookie.substring(0, name.length + 1) == (name + '=')) { cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); break; } } } return cookieValue; } }; tool_bar_ie6pngfix(); var tool_bar_height = 81; var tool_bar_hidden_height = 30; var tool_status = '1'; // 1 is open , 0 is close function tool_bar_ie6pngfix() { var isIE6=tool_bar_browser_check(); if (isIE6) { } } function tool_bar_browser_check() { var Sys = {}; var ua = navigator.userAgent.toLowerCase(); var s; (s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] : (s = ua.match(/firefox\/([\d.]+)/)) ? Sys.firefox = s[1] : (s = ua.match(/chrome\/([\d.]+)/)) ? Sys.chrome = s[1] : (s = ua.match(/opera.([\d.]+)/)) ? Sys.opera = s[1] : (s = ua.match(/version\/([\d.]+).*safari/)) ? Sys.safari = s[1] : 0; if (Sys.ie) { if (parseInt(Sys.ie) >= 7) { return false; } else { return true; } } else { return false; } } /**投放开始**/ tool_bar_start(); function tool_bar_start() { document.write(''); var isIE6=tool_bar_browser_check(); if (isIE6 || DetectAllapple()) { (function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&/6.0/.test(navigator.userAgent)){s=$.extend({top:'auto',left:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{});var prop=function(n){return n&&n.constructor==Number?n+'px':n;},html='