var adLeftSrc = "/Files/AD/ad03.jpg"
var adLeftFlash = ""
var adLeftHref = "http://www.tide-eye.com/070901/jdjs-2.jpg"
var adLeftWidth = 100
var adLeftHeight = 300
var adRightSrc = "/Files/AD/ad002.jpg"
var adRightFlash = ""
var adRightHref = "http://www.tide-eye.com/news/notice/09562260.html"
var adRightWidth = 100
var adRightHeight = 300
var marginTop = 160
var marginLeft = 6
var navUserAgent = navigator.userAgent
function load(){
judge();
move();
}
function move() {
judge();
setTimeout('move();',40)
}
function judge(){
if (navUserAgent.indexOf('Firefox') >= 0 || navUserAgent.indexOf('Opera') >= 0) {
if (adLeftSrc != '') {document.getElementById('adLeftFloat').style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight) - adLeftHeight - marginTop + 'px';}
if (adRightSrc != '') {
document.getElementById('adRightFloat').style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight) - adRightHeight - marginTop + 'px';
document.getElementById('adRightFloat').style.left = ((document.body.clientWidth > document.documentElement.clientWidth)?document.body.clientWidth:document.documentElement.clientWidth) - adRightWidth - marginLeft + 'px';
}
}
else{
if (adLeftSrc != '') {document.getElementById('adLeftFloat').style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.documentElement.clientHeight == 0)?document.body.clientHeight:document.documentElement.clientHeight) - adLeftHeight - marginTop + 'px';}
if (adRightSrc != '') {
document.getElementById('adRightFloat').style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.documentElement.clientHeight == 0)?document.body.clientHeight:document.documentElement.clientHeight) - adRightHeight - marginTop + 'px';
document.getElementById('adRightFloat').style.left = ((document.documentElement.clientWidth == 0)?document.body.clientWidth:document.documentElement.clientWidth) - adRightWidth - marginLeft + 'px';
}
}
if (adLeftSrc != '') {document.getElementById('adLeftFloat').style.left = marginLeft + 'px';}
}
if (adLeftSrc != '') {
if (adLeftFlash == 'flash') {
document.write('<div id=\'adLeftFloat\' style=\'position: absolute;width:' + adLeftWidth + ';\'><a href=\'' + adLeftHref +'\'><embed src=\'' + adLeftSrc + '\' quality=\'high\'  width=\'' + adLeftWidth + '\' height=\'' + adLeftHeight + '\' type=\'application/x-shockwave-flash\'></embed></a><br><span onclick="Javascript:$(\'adLeftFloat\').style.display=\'none\';$(\'adRightFloat\').style.display=\'none\';" style="cursor:pointer;">¡Á¹Ø±Õ</span></div>');
}
else{
document.write('<div id=\'adLeftFloat\' style=\'position: absolute;width:' + adLeftWidth + ';\'><a href=\'' + adLeftHref +'\'><img src=\'' + adLeftSrc + '\'  width=\'' + adLeftWidth + '\' height=\'' + adLeftHeight + '\'  border=\'0\' \></a><br><span onclick="Javascript:$(\'adLeftFloat\').style.display=\'none\';$(\'adRightFloat\').style.display=\'none\';" style="cursor:pointer;">¡Á¹Ø±Õ</span></div>');
}
}
if (adRightSrc != '') {
if (adRightFlash == 'flash') {
document.write('<div id=\'adRightFloat\' style=\'position: absolute;width:' + adRightWidth + ';\'><a href=\'' + adRightHref +'\'><embed src=\'' + adRightSrc + '\' quality=\'high\'  width=\'' + adLeftWidth + '\' height=\'' + adRightHeight + '\' type=\'application/x-shockwave-flash\'></a></embed><br><span onclick="Javascript:$(\'adLeftFloat\').style.display=\'none\';$(\'adRightFloat\').style.display=\'none\';" style="cursor:pointer;">¡Á¹Ø±Õ</span></div>');
}
else{
document.write('<div id=\'adRightFloat\' style=\'position: absolute;width:' + adRightWidth + ';\'><a href=\'' + adRightHref +'\' target=_blank><img src=\'' + adRightSrc + '\'   width=\'' + adLeftWidth + '\' height=\'' + adRightHeight + '\'  border=\'0\'  \></a><br><span onclick="Javascript:$(\'adLeftFloat\').style.display=\'none\';$(\'adRightFloat\').style.display=\'none\';" style="cursor:pointer;">¡Á¹Ø±Õ</span></div>');
}
}
load();