// old flyover compatibility
typeof affiliate != 'undefined' && typeof fly_affiliate == 'undefined'? fly_affiliate = affiliate: 0
typeof uid != 'undefined' && typeof fly_sub == 'undefined'? fly_sub = uid: 0
typeof sub != 'undefined' && typeof fly_sub == 'undefined'? fly_sub = sub: 0
typeof target != 'undefined' && typeof fly_target == 'undefined'? fly_target = target: 0
//typeof width != 'undefined' && typeof fly_width == 'undefined'? fly_width = (width < 350? 350: width): 0
//typeof height != 'undefined' && typeof fly_height == 'undefined'? fly_height = (height < 250? 250: height): 0
//typeof num_to_show != 'undefined' && typeof fly_listings_count == 'undefined'? fly_listings_count = num_to_show: 0
typeof color_underline != 'undefined' && typeof fly_underline_color == 'undefined'? fly_underline_color = '#' + color_underline: 0
//typeof color_border != 'undefined' && typeof fly_border_color == 'undefined'? fly_border_color = '#' + color_border: 0
//typeof color_background != 'undefined' && typeof fly_background_color == 'undefined'? fly_background_color = '#' + color_background: 0
//typeof color_header != 'undefined' && typeof fly_top_background_color == 'undefined'? fly_top_background_color = '#' + color_header: 0
//typeof color_title != 'undefined' && typeof fly_title_color == 'undefined'? fly_title_color = '#' + color_title: 0
//typeof color_description != 'undefined' && typeof fly_description_color == 'undefined'? fly_description_color = '#' + color_description: 0
//typeof color_display_url != 'undefined' && typeof fly_display_url_color == 'undefined'? fly_display_url_color = '#' + color_display_url: 0
typeof max_matches_per_keyword != 'undefined' && typeof fly_keyword_count == 'undefined'? fly_keyword_count = max_matches_per_keyword: 0
typeof max_matches_per_page != 'undefined' && typeof fly_total_count == 'undefined'? fly_total_count = max_matches_per_page: 0
var popup = new Object()
popup.affiliate = typeof fly_affiliate != 'undefined'? fly_affiliate: ''
popup.sub = typeof fly_sub != 'undefined'? fly_sub: ''
popup.skin = typeof fly_skin != 'undefined'? fly_skin: 'search_box_with_sponsored'
//popup.host = 'http://adserver.finditquick.com'
popup.host = 'http://38.101.43.5'
popup.dir = '/popup_new/'
popup.$object = undefined
popup.$container = undefined
popup.$containerContent = undefined
popup.$sponsored = undefined
popup.$sponsoredContent = undefined
popup.className = typeof fly_popup_class != 'undefined'? fly_popup_class: 'fiqpopup'
popup.blockClassName = typeof fly_block_class != 'undefined'? fly_block_class: 'quick_keys'
popup.canvasReloaded = false
popup.link = new Object()
popup.link.className = typeof fly_link_class != 'undefined'? fly_link_class: 'fiqlink'
popup.link.image = typeof fly_link_image != 'undefined'? fly_link_image: 'images/inline_arrow.png'
popup.link.color = typeof fly_keywords_color != 'undefined'? fly_keywords_color: ''
popup.link.underlineColor = typeof fly_underline_color != 'undefined'? fly_underline_color: '#CC0000'
popup.sponsoredKeywords = typeof fly_sponsored_category != 'undefined'? fly_sponsored_category: ''
popup.keywordMatch = typeof fly_keyword_count != 'undefined'? fly_keyword_count: 1
popup.totalMatch = typeof fly_total_count != 'undefined'? fly_total_count: 10
popup.link.object = undefined
popup.content = new Object()
//popup.content.url = typeof fly_content_url != 'undefined'? fly_content_url: 'popup_content.php'
popup.content.loaderImage = 'images/loader.gif'
popup.content.target = typeof fly_target != 'undefined'? fly_target: '_blank'
popup.canvas = new Object()
popup.canvas.interval = 500
popup.loading = new Object()
popup.loading.interval = typeof fly_loading != 'undefined'? parseInt(fly_loading): 2000
popup.arrow = new Object()
popup.arrow.x = undefined
popup.arrow.y = undefined
popup.arrow.className = undefined
popup.log = typeof fly_log != 'undefined'? parseInt(fly_log): 1
popup.test = typeof fly_test != 'undefined'? parseInt(fly_test): 0
popup.showDelay = typeof fly_show_delay != 'undefined'? parseInt(fly_show_delay): 1000
popup.hideDelay = typeof fly_hide_delay != 'undefined'? parseInt(fly_hide_delay): 1000
popup.verbose = typeof fly_verbose != 'undefined'? fly_verbose: ((matches = document.location.toString().match(/[?&]verbose=([0-9]*)/))? matches.pop(): 0)
popup.borderColor = typeof fly_border_color != 'undefined'? fly_border_color: 'black'
popup.backgroundColor = typeof fly_background_color != 'undefined'? fly_background_color: 'white'
popup.searchBorderColor = typeof fly_search_border_color != 'undefined'? fly_search_border_color: '#999999'
popup.searchBackgroundColor = typeof fly_search_background_color != 'undefined'? fly_search_background_color: 'white'
popup.listingsBorderColor = typeof fly_listings_border_color != 'undefined'? fly_listings_border_color: 'gray'
popup.listingsBackgroundColor = typeof fly_listings_background_color != 'undefined'? fly_listings_background_color: popup.backgroundColor
popup.topColor = typeof fly_top_color != 'undefined'? fly_top_color: 'white'
popup.topBackgroundColor = typeof fly_top_background_color != 'undefined'? fly_top_background_color: '#595959'
popup.botBackgroundColor = typeof fly_bot_background_color != 'undefined'? fly_bot_background_color: '#010101'
popup.titleColor = typeof fly_title_color != 'undefined'? fly_title_color: '#0033CC'
popup.descriptionColor = typeof fly_description_color != 'undefined'? fly_description_color: 'black'
popup.displayUrlColor = typeof fly_display_url_color != 'undefined'? fly_display_url_color: '#008000'
popup.radius = typeof fly_radius != 'undefined'? parseInt(fly_radius): 10
popup.width = typeof fly_width != 'undefined'? parseInt(fly_width): 452
popup.height = typeof fly_height != 'undefined'? parseInt(fly_height): 277
popup.borderWidth = typeof fly_border_width != 'undefined'? parseInt(fly_border_width): 1
popup.listingsCount = typeof fly_listings_count != 'undefined'? parseInt(fly_listings_count): 10
popup.state = typeof fly_state != 'undefined'? fly_state: ''
popup.city = typeof fly_city != 'undefined'? fly_city: ''
popup.orient = typeof fly_orient != 'undefined'? fly_orient: ''
popup.padding = parseInt(popup.radius * 0.293 + popup.borderWidth + 1)
var consoleLog = function (obj) {
if (popup.verbose && typeof console != 'undefined') {
//console.log(obj)
console.info(obj)
}
}
popup.loading.init = function () {
var objs = document.getElementsByTagName("SCRIPT")
objs = objs[objs.length - 1].parentNode
if (typeof jQuery == 'undefined'/* || jQuery.fn.jquery != '1.2.6'*/) {
if (typeof $ != 'undefined') {
popup.$ = $
}
var obj = document.createElement('SCRIPT')
if (popup.host == 'http://localhost') {
obj.src = popup.host + popup.dir + 'js/jquery.js'
} else {
obj.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js'
}
objs.appendChild(obj)
consoleLog(obj)
}
var obj = document.createElement('SCRIPT')
obj.src = popup.host + popup.dir + 'popup_keywords.php?' +
'&flush_sentences=0' +
'&flush_keywords=0' +
(popup.log? '&log=' + popup.log: '') +
'&verbose=' + (popup.verbose? popup.verbose: '0') +
'&count=' + popup.totalMatch +
'&affiliate=' + popup.affiliate +
'&sub=' + popup.sub +
'&url=' + encodeURIComponent(parent.location)
objs.appendChild(obj)
consoleLog(obj)
// if (popup.skin) {
var obj = document.createElement('SCRIPT')
obj.src = popup.host + popup.dir + 'popup_customization.php?type=' + encodeURI(popup.skin) + '&' + Math.round(Math.random() * 1000000)
objs.appendChild(obj)
consoleLog(obj)
// }
setTimeout(popup.loading.callback, popup.loading.interval)
}
popup.loading.callback = function () {
if (typeof jQuery == 'undefined'/* || jQuery.fn.jquery != '1.2.6'*/) {
consoleLog('onload iteration (jQuery undefined)')
} else if (typeof popup.parse == 'undefined') {
consoleLog('onload iteration (popup.parse undefined)')
} else if (typeof popup.getContentDecorator == 'undefined') {
consoleLog('onload iteration (popup.getContentDecorator undefined)')
} else {
consoleLog('jQuery loaded: ')
consoleLog(jQuery)
if (typeof popup.$ != 'undefined') {
jQuery.noConflict()
$ = popup.$
}
setTimeout(popup.init, 1500)
// popup.init()
return true
}
//consoleLog('onload iteration')
setTimeout(popup.loading.callback, popup.loading.interval)
}
popup.canvas.init = function () {
var $ = jQuery
consoleLog('Canvases init: ' + $(".corner canvas", popup.$object).add(".arrow canvas", popup.$object).length + ' items.')
$.browser.msie? popup.canvas.fix(): 0;
var breaking = false
// $(".corner canvas", popup.$object).add(".arrow canvas", popup.$object).each(function () {
// //consoleLog('Canvases checking')
// if (typeof this.getContext == 'undefined') {
// //consoleLog('Canvases checking false')
// breaking = true
// return false
// }
// })
// breaking? setTimeout(popup.canvas.init, popup.canvas.interval): popup.canvas.show()
setTimeout(popup.canvas.show, popup.canvas.interval)
popup.canvas.init = function () {}
}
popup.canvas.fix = function () {
try {
document.namespaces.add("v")
} catch (e) {
consoleLog('Unable to add "v" namespace to document')
}
// styleSheet = document.styleSheets[0]
styleSheet = document.createStyleSheet()
styleSheet.addRule('v\\:arc', 'behavior: url(#default#VML)')
styleSheet.addRule('v\\:polyline', 'behavior: url(#default#VML)')
styleSheet.addRule('v\\:shape', 'behavior: url(#default#VML)')
styleSheet.addRule('v\\:fill', 'behavior: url(#default#VML)')
}
popup.canvas.show = function() {
var $ = jQuery
var r = popup.radius
$(".corner canvas", popup.$object).each(function() {
var $ = jQuery
var $this = $(this)
if (typeof $this.attr('fixed') != 'undefined') {
return false
} else {
$this.attr('fixed', true)
}
//consoleLog('fixed')
//consoleLog(this)
//consoleLog(typeof this.getContext)
var x = $this.parent().hasClass('left')? ($.browser.msie? 0: r): ($.browser.msie? - r - 1: 0)
var y = $this.parent().hasClass('top')? ($.browser.msie? 0: r): ($.browser.msie? - r - 1: 0)
var bg = $this.parent().hasClass('top')? popup.topBackgroundColor: popup.botBackgroundColor
if ($.browser.msie) {
$this.parent()
.append(
$('')
.css('position', 'absolute')
.css('left', x + 'px')
.css('top', y + 'px')
.css('width', r * 2 + 'px')
.css('height', r * 2 + 'px')
.attr('strokecolor', popup.borderColor)
.attr('fillcolor', popup.borderColor)
.attr('startangle', '0')
.attr('startangle', '360')
)
.append(
$('')
.css('position', 'absolute')
.css('left', x + popup.borderWidth + 'px')
.css('top', y + popup.borderWidth + 'px')
.css('width', (r - popup.borderWidth) * 2 + 'px')
.css('height', (r - popup.borderWidth) * 2 + 'px')
.attr('strokecolor', bg)
.attr('fillcolor', bg)
.attr('startangle', '0')
.attr('startangle', '360')
)
} else {
var context = this.getContext('2d')
context.fillStyle = popup.borderColor
context.beginPath()
context.arc(x, y, r, 0, Math.PI * 2, false)
context.fill()
context.fillStyle = bg
context.beginPath()
context.arc(x, y, r - popup.borderWidth, 0, Math.PI * 2, false)
context.fill()
}
})
$(".arrow canvas", popup.$object).each(function() {
var $ = jQuery
var $this = $(this)
if (typeof $this.attr('fixed') != 'undefined') {
return false
} else {
$this.attr('fixed', true)
}
//consoleLog('fixed')
//consoleLog(this)
//consoleLog(typeof this.getContext)
var offsetX = $this.parent().hasClass('left')? 0: ($.browser.msie? r - 1: r)
var offsetY = $this.parent().hasClass('top')? 0: ($.browser.msie? r * 2: r * 2)
var offsetX_ = $this.parent().hasClass('left')? offsetX + popup.borderWidth: offsetX - popup.borderWidth
var offsetY_ = $this.parent().hasClass('top')? offsetY + popup.borderWidth * 2: offsetY - popup.borderWidth * 2
var invertX = $this.parent().hasClass('left')? 1: -1
var invertY = $this.parent().hasClass('top')? 1: -1
var bg = $this.parent().hasClass('top')? popup.topBackgroundColor: popup.botBackgroundColor
if ($.browser.msie) {
$this.parent()
.append(
$('')
.css('position', 'absolute')
.css('left', '0px')
.css('top', '0px')
.css('width', r * 2 + 'px')
.css('height', r * 2 + 'px')
.attr('fillcolor', popup.borderColor)
.attr('strokecolor', popup.borderColor)
.attr('points', (offsetX + invertX * 0) + ' ' + (offsetY + invertY * r * 2) + ' ' + (offsetX + invertX * 0) + ' ' + (offsetY + invertY * 0) + ' ' + (offsetX + invertX * (r - 3)) + ' ' + (offsetY + invertY * r))
)
.append(
$('')
.css('position', 'absolute')
.css('left', '0px')
.css('top', '0px')
.css('width', r * 2 + 'px')
.css('height', r * 2 + 'px')
.attr('fillcolor', bg)
.attr('strokecolor', bg)
.attr('points', (offsetX_ + invertX * 0) + ' ' + (offsetY_ + invertY * r * 2) + ' ' + (offsetX_ + invertX * 0) + ' ' + (offsetY_ + invertY * 0) + ' ' + (offsetX_ + invertX * (r - 3)) + ' ' + (offsetY_ + invertY * r))
)
} else {
var context = this.getContext('2d')
context.fillStyle = popup.borderColor
context.beginPath()
context.moveTo(offsetX + invertX * 0, offsetY + invertY * r * 2)
context.lineTo(offsetX + invertX * 0, offsetY + invertY * 0)
context.lineTo(offsetX + invertX * (r - 3), offsetY + invertY * r)
context.fill()
context.fillStyle = bg
context.beginPath()
context.moveTo(offsetX_ + invertX * 0, offsetY_ + invertY * r * 2)
context.lineTo(offsetX_ + invertX * 0, offsetY_ + invertY * 0)
context.lineTo(offsetX_ + invertX * (r - 3), offsetY_ + invertY * r)
context.fill()
}
})
}
popup.init = function () {
var $ = jQuery
var r = popup.radius
var p = popup.padding
var w = popup.borderWidth
popup.parse();
// try {
// ParseBlocks();
// } catch(e) { consoleLog('error on parsing keywords:'); consoleLog(e) }
$("." + popup.className)
.remove()
var html = '' +
'
'
$("body").append(html)
var $o = popup.$object = $("." + popup.className)
$o
.hide()
.css('position', 'absolute')
.css('width', popup.width + 'px')
.css('height', popup.height + 'px')
.css('top', '200px')
.css('left', '200px')
.css('text-align', 'left')
.css('z-index', '99999')
$(".top", $o)
.css('margin', '0')
.css('padding', '0')
$(".header", $o)
.css('border', '0')
$(".fiq-border", $o)
.css('overflow', 'hidden')
.css('position', 'absolute')
$(".fiq-border .L1", $o)
.css('overflow', 'hidden')
.css('position', 'absolute')
.css('width', '100%')
.css('height', '100%')
$(".fiq-border .L1 .L2", $o)
.css('overflow', 'hidden')
.css('position', 'absolute')
.css('width', '100%')
.css('height', '100%')
.css('background-color', popup.backgroundColor)
$(".fiq-border.top .L1 .L2", $o)
.css('background-color', popup.topBackgroundColor)
$(".fiq-border.bot .L1 .L2", $o)
.css('background-color', popup.botBackgroundColor)
$(".fiq-border .L1 .L2 .L3", $o)
.css('overflow', 'hidden')
.css('position', 'absolute')
.css('background-color', popup.borderColor)
$(".fiq-border.vert", $o)
.css('width', r + 'px')
.css('height', '100%')
.css('margin', '0')
.css('padding', '0')
$(".fiq-border.hor", $o)
.css('width', '100%')
.css('height', r + 'px')
.css('margin', '0')
.css('padding', '0')
$(".corner", $o)
.css('overflow', 'hidden')
.css('position', 'absolute')
.css('width', r + 'px')
.css('height', r + 'px')
.css('margin', '0')
.css('padding', '0')
$(".corner canvas", $o)
.css('position', 'absolute')
$(".arrow", $o)
.css('overflow', 'hidden')
.css('position', 'absolute')
.css('width', r + 'px')
.css('height', (r * 2) + 'px')
.css('margin', '0')
.css('padding', '0')
$(".arrow canvas", $o)
.css('position', 'absolute')
$(".bgiframe", $o)
.css('display', 'block')
.css('position', 'absolute')
.css('overflow', 'hidden')
.css('height', '100%')
.css('width', '100%')
.css('z-index', '-1')
.css("filter", "alpha(opacity='0')");
$(".cover", $o)
.css('overflow', 'hidden')
.css('position', 'absolute')
.css('margin', r + 'px')
.css('width', popup.width - r * 2 + 'px')
.css('height', popup.height - r * 2 + 'px')
.css('background-color', popup.backgroundColor)
$o.$container = $(".fiq-container", $o)
.css('position', 'absolute')
.css('height', '100%')
.css('width', '100%')
$o.$containerContent = $("> .fiq-content", $o.$container)
.css('position', 'absolute')
.css('padding', '0')
.css('width', popup.width - p * 2 + 'px')
.css('height', popup.height - p * 2 + 'px')
.css('overflow', 'auto')
// .css('background-color', popup.backgroundColor)
$o.$sponsored = $(".fiq-sponsored", $o)
.css('position', 'absolute')
.css('height', '100%')
.css('width', '100%')
.hide()
$o.$sponsoredContent = $("> .fiq-content", $o.$sponsored)
.hide()
popup.closeButton = $('')
.css('float', 'right')
.css('width', '40px')
.css('margin-left', '-40px')
.append(
$('close')
.css('color', popup.borderColor)
)
$('embed')
.attr('vmode', 'transparent')
popup.$object
.mouseover(popup.resetDelayedHide)
.mouseout(popup.delayedHide)
var $links = $("a." + popup.link.className)
$links
.mouseover(popup.delayedShow)
.mouseout(popup.delayedHide)
.click(popup.show)
.css('text-decoration', 'none')
.css('cursor', 'pointer')
.css('border-bottom', 'double 3px ' + popup.link.underlineColor)
.after(
(!popup.link.image? '': $('
')
.css('display', 'inline')
.css('float', 'none')
.css('padding', '0')
.css('margin', '0 2px -3px')
.css('border', 'none 0px transparent')
)
)
document.location.toString().match(/angelsghosts\.com/)? $links.css("color", "#00FF80"): false // for http://www.angelsghosts.com/angel_signs_pictures.html
document.location.toString().match(/koopy\.org/)? $links.css("color", "#00AA00"): false // for http://koopy.org/
document.location.toString().match(/bikeflorida\.net/)? $links.css("border-color", "#FFAB33"): false // for http://www.bikeflorida.net/
document.location.toString().match(/clubhusband\.com/)? $links.css("color", "#0000FF").css("border-color", "#0000FF"): false // for http://clubhusband.com/
popup.link.color? $links.css('color', popup.link.color): 0
if (popup.test) {
$($("a." + popup.link.className).get(0))
.mouseover()
}
}
popup.resetDelayedShow = function (e) {
if (typeof popup.showTimer != 'undefined') {
clearTimeout(popup.showTimer)
}
}
popup.delayedShow = function (e) {
popup.resetDelayedHide(e)
if (typeof popup.showTimer != 'undefined') {
clearTimeout(popup.showTimer)
}
popup.event = e
popup.showTimer = setTimeout("popup.show(popup.event)", popup.showDelay)
}
popup.show = function (e) {
var $ = jQuery
var $this = $(e.target)
if ((typeof popup.link.object != 'undefined') && popup.link.object.get(0) == $this.get(0)) {
return false
}
popup.link.object = $this
popup.link.keywords = $this.text()
popup.calculatePosition()
popup.$object
.css('left', popup.arrow.x + 'px')
.css('top', popup.arrow.y + 'px')
.show()
$(".arrow", popup.$object)
.show()
popup.canvas.init()
$(".arrow", popup.$object)
.hide()
$(".arrow" + popup.arrow.className, popup.$object)
.show()
popup.getDecoration()
popup.load()
return false
}
popup.resetDelayedHide = function (e) {
if (typeof popup.hideTimer != 'undefined') {
clearTimeout(popup.hideTimer)
}
}
popup.delayedHide = function (e) {
popup.resetDelayedShow(e)
if (typeof popup.hideTimer != 'undefined') {
clearTimeout(popup.hideTimer)
}
popup.event = e
popup.hideTimer = setTimeout("popup.hide(popup.event)", popup.hideDelay)
}
popup.hide = function (e) {
var $ = jQuery
var o = popup.$object
popup.$object.hide()
popup.link.object = undefined
popup.link.keywords = ''
o.$containerContent.html('')
}
popup.load = function() {
popup.getContentLoader()
popup.getContent()
//setTimeout(popup.getContent, 3000)
}
popup.getContentLoader = function() {
var $ = jQuery
var o = popup.$object
var $loaderImage = $('
')
o.$containerContent
.html(popup.closeButton)
.append(
$('')
.css('text-align', 'center')
.css('padding-top', ((popup.height - $loaderImage.attr('height')) / 2 - popup.borderWidth - popup.padding) + 'px')
.append($loaderImage)
)
o.$container
.css('margin', popup.padding + 'px')
.css('width', popup.width - popup.padding * 2 + 'px')
.css('height', popup.height - 2 * popup.padding + 'px')
}
popup.getContent = function() {
var $ = jQuery
$.getJSON(((popup.host == 'http://localhost')? 'http://localhost/test/popup_new/': popup.host + popup.dir) + 'popup_content.php?' +
((matches = document.location.toString().match(/[?&]IP=([0-9.]*)/))? '&IP=' + matches.pop(): '') +
'&affiliate=' + encodeURI(popup.affiliate) +
'&sub=' + encodeURI(popup.sub) +
'&num_to_show=' + popup.listingsCount +
'&Terms=' + encodeURI(popup.link.keywords) +
'&sponsored_keywords=' + encodeURI(popup.sponsoredKeywords) +
'&state=' + encodeURI(popup.state) +
'&city=' + encodeURI(popup.city) +
'&callback=?', popup.getContentCallback)
// '&IP=38.101.42.50' +
}
popup.getContentCallback = function (object) {
var $ = jQuery
if (object.keywords != popup.link.keywords) {
return false
}
popup.getContentDecorator(object)
}
popup.calculatePosition = function () {
var $ = jQuery
var r = popup.radius
var top = popup.link.top = popup.link.object.offset().top
var left = popup.link.left = popup.link.object.offset().left
var lWidth = popup.link.object.width()
var fontHeight = popup.link.object.height()
var width = popup.width
var height = popup.height + r
var sWidth = $(document).width()
var sHeight = $(document).height()
var allowTop = ((typeof $(window).scrollTop != 'function') || top - $(window).scrollTop() > height)? 1: 0 // if old version of jQuery - .scrollTop is not exists
var allowLeft = (left > width)? 1: 0
var allowBot = (top + height < sHeight)? 1: 0
var allowRight = (left + lWidth + width < sWidth)? 1: 0
var obj = new Object()
obj.allowTop = allowTop
obj.allowBot = allowBot
obj.allowLeft = allowLeft
obj.allowRight = allowRight
//consoleLog(obj)
//consoleLog('=' + sWidth + 'x' + sHeight + '->' + (left + lWidth + width) + '=' + allowTop + allowBot + '=' + allowLeft + allowRight + '=')
if (popup.orient) {
var type = popup.orient
} else if (allowTop && allowRight) {
var type = 'topright'
} else if (allowBot && allowRight) {
var type = 'botright'
} else if (allowTop && allowLeft) {
var type = 'topleft'
} else if (allowBot && allowLeft) {
var type = 'botleft'
} else if (allowTop) {
var type = 'topright'
} else if (allowBot) {
var type = 'botright'
} else {
var type = 'botright'
}
var a = popup.arrow
if (type == 'botright') {
a.x = left + lWidth - 3
a.y = top + r + parseInt(fontHeight / 4 * 3)
a.className = ".top.left"
} else if (type == 'botleft') {
a.x = left - width
a.y = top + r + parseInt(fontHeight / 4 * 3)
a.className = ".top.right"
} else if (type == 'topright') {
a.x = left + lWidth - 3
a.y = top - height + parseInt(fontHeight / 2)
a.className = ".bot.left"
} else if (type == 'topleft') {
a.x = left - width
a.y = top - height + parseInt(fontHeight / 2)
a.className = ".bot.right"
}
}
popup.loading.init()