if (window.v_answeryes) {answeryes=v_answeryes;}
if (window.v_answeryestext) {answeryestext=v_answeryestext;}
if (window.v_answeryeswait) {answeryeswait=v_answeryeswait;}
if (window.v_autostart) {autostart=v_autostart;}
if (window.v_waittime) {waittime=v_waittime;}
if (window.v_clicktoplaywait) {clicktoplaywait=v_clicktoplaywait;}
if (window.v_videobuffer) {videobuffer=v_videobuffer;}
if (window.v_alignvideo) {alignvideo=v_alignvideo;}
if (window.v_anchorlocation) {anchorlocation=v_anchorlocation;}
if (window.v_padx) {padx=v_padx;}
if (window.v_pady) {pady=v_pady;}
if (window.v_headline) {headline=v_headline;}
if (window.v_bwidth) {bwidth=v_bwidth;}
if (window.v_bheight) {bheight=v_bheight;}
if (window.v_mwidth) {mwidth=v_mwidth;}
if (window.v_mheight) {mheight=v_mheight;}
if (window.v_loopflv) {loopflv=v_loopflv;}
if (window.v_scaleflv) {scaleflv=v_scaleflv;}
if (window.v_scalecanvas) {scalecanvas=v_scalecanvas;}
if (window.v_videox) {videox=v_videox;}
if (window.v_videoy) {videoy=v_videoy;}
if (window.v_playalways) {playalways=v_playalways;}
if (window.v_showevery) {showevery=v_showevery;}
if (window.v_showcontrols) {showcontrols=v_showcontrols;}
if (window.v_loaderalpha) {loaderalpha=v_loaderalpha;}
if (window.v_bigplay) {bigplay=v_bigplay;}
if (window.v_bigplayx) {bigplayx=v_bigplayx;}
if (window.v_bigplayy) {bigplayy=v_bigplayy;}
if (window.v_videobg) {videobg=v_videobg;}
if (window.v_videobgx) {videobgx=v_videobgx;}
if (window.v_videobgy) {videobgy=v_videobgy;}
if (window.v_videofg) {videofg=v_videofg;}
if (window.v_videofgwait) {videofgwait=v_videofgwait;}
if (window.v_videofgx) {videofgx=v_videofgx;}
if (window.v_videofgy) {videofgy=v_videofgy;}
if (window.v_videomusic) {videomusic=v_videomusic;}
if (window.v_videomusicvolume) {videomusicvolume=v_videomusicvolume;}
if (window.v_theurltarget) {theurltarget=v_theurltarget;}
if (window.v_theurl) {theurl=v_theurl;}
if (window.v_theurltype) {theurltype=v_theurltype;}
if (window.v_clicktext) {clicktext=v_clicktext;}
if (window.v_clickgraphic) {clickgraphic=v_clickgraphic;}
if (window.v_flvbase) {flvbase=v_flvbase;}
if (window.v_theflv) {theflv=v_theflv;}
if (window.v_theflvvolume) {theflvvolume=v_theflvvolume;}
if (window.v_thenextflv) {thenextflv=v_thenextflv;}
if (window.v_autoforward) {autoforward=v_autoforward;}
if (window.v_autoforwardtype) {autoforwardtype=v_autoforwardtype;}
if (window.v_autorun) {autorun=v_autorun;}
if (window.v_autorundelay) {autorundelay=v_autorundelay;}
if (window.v_thecontainer) {thecontainer=v_thecontainer;}
if (window.v_thecontroller) {thecontroller=v_thecontroller;}
if (window.v_thecontrollerx) {thecontrollerx=v_thecontrollerx;}
if (window.v_thecontrollery) {thecontrollery=v_thecontrollery;}
if (window.v_thecontrolleralpha) {thecontrolleralpha=v_thecontrolleralpha;}
if (window.v_mcimage) {mcimage=v_mcimage;}
if (window.v_mcimage1) {mcimage1=v_mcimage1;}
if (window.v_freezeonend) {freezeonend=v_freezeonend;}
if (window.v_freezeonendwait) {freezeonendwait=v_freezeonendwait;}
if (window.v_chatbutton) {chatbutton=v_chatbutton;}
if (window.v_playbuttononend) {playbuttononend=v_playbuttononend;}
if (window.v_translate) {translate=v_translate;}
if (window.v_translateflv) {translateflv=v_translateflv;}
if (window.v_speedlimit) {speedlimit=v_speedlimit;}


document.write('<scr' + 'ipt src="http://noticias.aghsoft.com/js/swfobject_2_2.js" type="text/JavaScript"><\/scr' + 'ipt>');
document.write(' <div id="video_controller" style="width: 0px; height: 0px; position:absolute; z-index:100"> ');
document.write ('<img border="0" src="http://noticias.aghsoft.com/images/needed_js_dot.gif">');
document.write('</div>');

document.write(' <div id="video_bucket" style="position:absolute; z-index:100;"> ');
document.write('</div>');

document.write(' <div id="h1" style="position:absolute; z-index:100;"> ');
document.write('</div>');

document.write(' <div id="h2" style="position:absolute; z-index:100;"> ');
document.write('</div>');

document.write(' <div id="h3" style="position:absolute; z-index:100;"> ');
document.write('</div>');

document.write(' <div id="h4" style="position:absolute; z-index:100;"> ');
document.write('</div>');

document.write(' <div id="h5" style="position:absolute; z-index:100;"> ');
document.write('</div>');
currentimpressions='0';
 answeryes='';
answeryestext='';
answeryeswait='5';
clicktoplaywait='';
waittime='6000';
videobuffer='25';
alignvideo='bottomright';
cuepointaction='';
bigplay='bigplay1.swf';
bigplayx='200';
bigplayy='200';
bwidth='100';
bheight='100';
padx='0';
pady='0';
anchorlocation='bottomright';
headline='AGHSOFT MULTIMEDIA';
pad='0';
mwidth='280';
mheight='320';
loopflv='';
scaleflv='no';
scalecanvas='no';
videox='0';
videoy='0';
autostart='yes';
playalways='yes';
showevery='7';
showcontrols='no';
loaderalpha='30';
maximpressions='1000000';
authorizedon='any';
mcimage1='http://noticias.aghsoft.com/videos/esperando.swf';
mcimage='http://noticias.aghsoft.com/videos/esperando.swf';
videobg='';
videobgx='0';
videobgy='0';
videofg='';
videofgwait='';
videofgx='';
videofgy='';
videomusic='';
videomusicvolume='10';
theurltarget='_self';
theurl='showpopup()';
theurltype='j';
clicktext='';
clickgraphic='';
containerbase='http://noticias.aghsoft.com/';
flvbase='http://noticias.aghsoft.com/flv/cust/';
theflv='carnaval.flv';
theflvvolume='';
thenextflv='';
autoforward='';
autoforwardtype='l';
autorun='revertbase()';
autorundelay='1000';
thecontainer='eflash_dos.swf';
thecontrollerx='90';
thecontrollery=mheight-75;
thecontroller='controller_big1.swf';
thecontrolleralpha='100';
freezeonend='';
freezeonendwait='';
chatbutton='';
playbuttononend='';
versioncheck='';
speedlimit='500';
autodim='';
checkspeed='';
translate='';
translateflv='';
// Check to see if authorized on the website ********************************

if (document.domain!=authorizedon && authorizedon!="any")
{
theflv='';
}


// Cookie Functions  ********************************

function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}

// Show Controller function ********************************

function showcontroller()
{
// code to regulate display of video based on current impressions in log file and max impressions set above

if (parseInt( currentimpressions)<maximpressions) 
{
	document.getElementById("video_controller").style.display = 'block';
	document.getElementById("video_controller").style.width =bwidth+'px';
	document.getElementById("video_controller").style.height =bheight+'px';
	var flashvars = {};
	flashvars.theflv = theflv ;
	flashvars.flvbase = flvbase ;
	flashvars.videobuffer = videobuffer ;
	swfobject.embedSWF(mcimage, "video_controller", bwidth, bheight, "9.0.0","expressInstall.swf", flashvars, {wmode:"transparent",allowscriptaccess:"always",loop:"false"}, false);
	document.getElementById("video_controller").style.position = 'absolute';
	document.getElementById("video_controller").style.zIndex = '100';
	JSFX_FloatTopDiv('video_controller');
}
}

function showcontroller1()
{
// code to regulate display of video based on current impressions in log file and max impressions set above

if (parseInt( currentimpressions)<maximpressions) 
{
	document.getElementById("video_controller").style.display = 'block';
	document.getElementById("video_controller").style.width =bwidth+'px';
	document.getElementById("video_controller").style.height =bheight+'px';
	var flashvars = {};
	flashvars.theflv = theflv ;
	flashvars.flvbase = flvbase ;
	flashvars.videobuffer = videobuffer ;
	swfobject.embedSWF(mcimage1, "video_controller", bwidth, bheight, "9.0.0","expressInstall.swf", flashvars, {wmode:"transparent",allowscriptaccess:"always",loop:"false"}, false);
	document.getElementById("video_controller").style.position = 'absolute';
	document.getElementById("video_controller").style.zIndex = '100';
	JSFX_FloatTopDiv('video_controller');
}
}

// Process Cookie functions and autostart ********************************
 

if (alignvideo=="inplace")
{
	document.getElementById("video_bucket").style.position = 'relative';
	document.getElementById("video_bucket").style.display = 'block';

	if (autostart=="no")
	{
		clicktoplaywait='100';
		setTimeout("showvideo()",waittime);
		autostarted='no';	
	}
	else
	{
		if (playalways=="yes")
		{
				autostarted='yes';
				setTimeout("showvideo()",waittime);
		}
		else
		{
				if(isNaN(playalways)){playalways='1';} // if playalways is not a number then set it to 1
				var played = readCookie(theflv) // check to see if the video has played at least once

				if (played) 
				{
					var alreadyplayed = readCookie(theflv+'played');  // check to see how many times this has already played
					if (parseInt(alreadyplayed)==playalways)
						{
						clicktoplaywait='100';
						setTimeout("showvideo()",waittime);
						autostarted='no';	
						}
					else
						{
						createCookie(theflv+'played',parseInt(alreadyplayed)+1,showevery);  //this sets the amount of times this video has played plus 1
						autostarted='yes';
						setTimeout("showvideo()",waittime);						
						}
				}
					else
				{
					createCookie(theflv,'1',showevery); 
					createCookie(theflv+'played','1',showevery);  //this sets the amount of times this video has played to 1
					autostarted='yes';
					setTimeout("showvideo()",waittime);
				}
		}
	}

}
else
{
	if (autostart=="no")
	{
		setTimeout("showcontroller()",waittime);
		autostarted='no';	
	}
	else
	{
		if (playalways=="yes")
		{
				autostarted='yes';
				setTimeout("showvideo()",waittime);
		}
		else
		{
				if(isNaN(playalways)){playalways='1';} // if playalways is not a number then set it to 1
				var played = readCookie(theflv) // check to see if the video has played at least once

				if (played) 
				{
					var alreadyplayed = readCookie(theflv+'played');  // check to see how many times this has already played
					if (parseInt(alreadyplayed)==playalways)
						{
						setTimeout("showcontroller()",waittime);
						autostarted='no';	
						}
					else
						{
						createCookie(theflv+'played',parseInt(alreadyplayed)+1,showevery);  //this sets the amount of times this video has played plus 1
						autostarted='yes';
						setTimeout("showvideo()",waittime);						
						}
				}
					else
				{
					createCookie(theflv,'1',showevery); 
					createCookie(theflv+'played','1',showevery);  //this sets the amount of times this video has played to 1
					autostarted='yes';
					setTimeout("showvideo()",waittime);
				}
		}
	}
}


// Close video function ********************************

function hidevideo()
{
// If loop is on then just show the video again
if (loopflv=="yes")
{
showvideo();
}

else
{

// If not an inplace ad

if (alignvideo!="inplace")
	{
		pad=0;
		document.getElementById("video_bucket").style.width = '0px';
		document.getElementById("video_bucket").style.height = '0px';
		setTimeout("showcontroller1()",1000);	
	}


if (thenextflv!="")
	{
	theflv=thenextflv;
	thenextflv=""
	showvideo();
	}

if (autoforward!="")
	{
		if (autoforwardtype=="j")
		{
		runonend();
		}
		else
		{
		window.location=autoforward;
		}
	}
}
}

// Place Video to element

function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		do {
			curleft += obj.offsetLeft;
			curtop += obj.offsetTop;
		} while (obj = obj.offsetParent);
	}
	return [curleft,curtop];
}


function placevideo(id) 

{

window.stayTopLeft=function() {}

var obj=document.getElementById(id)
var coors = findPos(obj);


if (anchorlocation=="topleft")
{
document.getElementById("video_bucket").style.top = ((coors[1]+parseInt(pady))-parseInt(mheight)) + 'px';
document.getElementById("video_bucket").style.left = ((coors[0]+parseInt(padx))-parseInt(mwidth)) + 'px';
}

if (anchorlocation=="topright")
{
document.getElementById("video_bucket").style.top = ((coors[1]+parseInt(pady))-mheight) + 'px';
document.getElementById("video_bucket").style.left = (coors[0]+parseInt(padx)) + 'px';
}

if (anchorlocation=="bottomleft")
{
document.getElementById("video_bucket").style.top = (coors[1]+parseInt(pady)) + 'px';
document.getElementById("video_bucket").style.left = ((coors[0]+parseInt(padx))-parseInt(mwidth)) + 'px';
}

if (anchorlocation=="bottomright")
{
document.getElementById("video_bucket").style.top = (coors[1]+parseInt(pady)) + 'px';
document.getElementById("video_bucket").style.left = (coors[0]+parseInt(padx)) + 'px';
}

}

function placehighlighter(thehighlighter,obj,thex,they,removetime) 
{
document.getElementById(thehighlighter).style.display = 'block';
document.getElementById(thehighlighter).style.width ='75px';
document.getElementById(thehighlighter).style.height = '55px';

swfobject.embedSWF("http://code.javahd.com/container/highlighter.swf", thehighlighter, "75", "55", "9.0.0","expressInstall.swf", {}, {wmode:"transparent"}, false);
document.getElementById(thehighlighter).style.position = 'absolute';

//window.stayTopLeft=function() {} // removed temp on 5-11-08 to overcome scroll breaking due to highlighter actuvation
var coors = findPos(obj);
document.getElementById(thehighlighter).style.top = (coors[1] + they) + 'px';
document.getElementById(thehighlighter).style.left = (coors[0] + thex) + 'px';

setTimeout("removehighlighter('" + thehighlighter + "')",removetime);	
}

function removehighlighter(thehighlightertoremove) 
{
document.getElementById(thehighlightertoremove).style.width = '0px';
document.getElementById(thehighlightertoremove).style.height = '0px';
}


// Show video function
function showvideo()
{

// code to regulate display of video based on current impressions in log file and max impressions set above

if (parseInt( currentimpressions)<maximpressions) 
{

	thevideo= containerbase + thecontainer 
	document.getElementById("video_controller").style.width = '0px'; 
	document.getElementById("video_controller").style.height = '0px'; 
	document.getElementById("video_bucket").style.display = 'block';
	document.getElementById("video_bucket").style.padding = pad;
	document.getElementById("video_bucket").style.width = mwidth + 'px';
	document.getElementById("video_bucket").style.height = mheight + 'px';

	var flashvars = {};
	flashvars.answeryes = answeryes ;
	flashvars.answeryestext = answeryestext ;
	flashvars.answeryeswait = answeryeswait ;
	flashvars.speedlimit = speedlimit ;
	flashvars.alignvideo = alignvideo ;
	flashvars.clicktoplaywait = clicktoplaywait ;
	flashvars.autostarted = autostarted ;
	flashvars.flvbase = flvbase ;
	flashvars.theflv = theflv ;
	flashvars.thecontroller = thecontroller ;
	flashvars.thecontrollerx = thecontrollerx ;
	flashvars.thecontrollery = thecontrollery ;
	flashvars.thecontrolleralpha = thecontrolleralpha ;
	flashvars.theflvvolume = theflvvolume ;
	flashvars.thenextflv = thenextflv ;
	flashvars.showcontrols = showcontrols ;
	flashvars.loaderalpha = loaderalpha ;
	flashvars.bigplay = bigplay ;
	flashvars.bigplayx = bigplayx ;
	flashvars.bigplayy = bigplayy ;
	flashvars.videofg = videofg ;
	flashvars.videofgwait = videofgwait ;
	flashvars.mwidth = mwidth ;
	flashvars.mheight = mheight ;
	flashvars.loopflv = loopflv ;
	flashvars.scaleflv = scaleflv ;
	flashvars.scalecanvas = scalecanvas ;
	flashvars.videox = videox ;
	flashvars.videoy = videoy ;
	flashvars.videofgx = videofgx ;
	flashvars.videofgy = videofgy ;
	flashvars.videobg = videobg ;
	flashvars.videobgx = videobgx ;
	flashvars.videobgy = videobgy ;
	flashvars.videomusic = videomusic ;
	flashvars.videomusicvolume = videomusicvolume ;
	flashvars.clickTAG = theurl ;
	flashvars.theurltarget = theurltarget ;
	flashvars.theurltype = theurltype ;
	flashvars.headline = headline ;
	flashvars.clicktext = clicktext ;
	flashvars.clickgraphic = clickgraphic ;
	flashvars.videobuffer = videobuffer ;
	flashvars.freezeonend = freezeonend ;
	flashvars.freezeonendwait = freezeonendwait ;
	flashvars.chatbutton = chatbutton ;
	flashvars.playbuttononend = playbuttononend ;
	flashvars.checkspeed = checkspeed ;
	flashvars.autorun = autorun ;
	flashvars.autorundelay = autorundelay ;
	flashvars.translate = translate ;
	flashvars.translateflv = translateflv ;
	var params = {};
	params.scale = "exactFit" ;
	params.wmode = "transparent" ;
	params.allowscriptaccess = "always" ;
	params.loop = "false" ;
	var attributes = false;
	swfobject.embedSWF(thevideo, "video_bucket", mwidth, mheight, "9.0.0","expressInstall.swf", flashvars, params, attributes);
	
	if (alignvideo!="inplace")
	{
	document.getElementById("video_bucket").style.position = 'absolute';
	document.getElementById("video_bucket").style.zIndex = '100';
	}

// If not an inplace ad

	if (alignvideo!="inplace")
	{
		if (alignvideo=="absolute")
		{
			placevideo('anchor1');
		}
		else
		{
			JSFX_FloatTopDiv('video_bucket');	
		}
	}

}
}


function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}


// Floating script ****************************************

function JSFX_FloatTopDiv(thediv)
{

barheight=document.getElementById(thediv).offsetHeight

//Enter "frombottom" or "fromtop"

var verticalpos="fromtop"

// set playback to default bottom left

	startX = 0 + parseInt(padx);
	startY = (iecompattest().clientHeight - mheight) - parseInt(pady);
	controllerx = 0;
	controllery = (iecompattest().clientHeight - bheight);


// set playback left middle

	if (alignvideo=="leftmiddle")
	{
	startX = 0 + parseInt(padx);
	startY = ((iecompattest().clientHeight / 2)-(mheight / 2)) + parseInt(pady);
	controllerx = 0;
	controllery = (iecompattest().clientHeight - bheight);
	}

// set playback right middle

	if (alignvideo=="rightmiddle")
	{
	startX = (iecompattest().clientWidth-mwidth) - parseInt(padx);
	startY = ((iecompattest().clientHeight / 2)-(mheight / 2)) + parseInt(pady);
	controllerx = iecompattest().clientWidth-bwidth;
	controllery = (iecompattest().clientHeight - bheight);
	}

// set playback deadcenter

	if (alignvideo=="deadcenter")
	{
	startX = ((iecompattest().clientWidth / 2)-(mwidth / 2)) + parseInt(padx);
	startY = ((iecompattest().clientHeight / 2)-(mheight / 2)) + parseInt(pady);
	controllerx = 0;
	controllery = (iecompattest().clientHeight - bheight);
	}

// set playback bottom middle

	if (alignvideo=="bottommiddle")
	{
	startX = ((iecompattest().clientWidth / 2)-(mwidth / 2)) + parseInt(padx);
	startY = (iecompattest().clientHeight - mheight) - parseInt(pady);
	controllerx = 0;
	controllery = (iecompattest().clientHeight - bheight);
	}

// set playback bottom right

	if (alignvideo=="bottomright")
	{
	startX = (iecompattest().clientWidth-mwidth) - parseInt(padx);
	startY = (iecompattest().clientHeight - mheight) - parseInt(pady);
	controllerx = iecompattest().clientWidth-bwidth;
	controllery = (iecompattest().clientHeight - bheight);
	}

// set playback top left

	if (alignvideo=="topleft")
	{
	startX = 0 + parseInt(padx);
	startY = 0 + parseInt(pady);
	controllerx = 0;
	controllery = (iecompattest().clientHeight - bheight);
	}

// set playback top middle

	if (alignvideo=="topmiddle")
	{
	startX = ((iecompattest().clientWidth / 2)-(mwidth / 2)) + parseInt(padx);
	startY = 0 + parseInt(pady);
	controllerx = 0;
	controllery = (iecompattest().clientHeight - bheight);
	}

// set playback top right

	if (alignvideo=="topright")
	{
	startX = (iecompattest().clientWidth-mwidth) - parseInt(padx);
	startY = 0 + parseInt(pady);
	controllerx = 0;
	controllery = (iecompattest().clientHeight - bheight);
	}


// Position controller

	if (thediv=="video_controller") 
	{
	startX = controllerx;
	startY = controllery;
	}


function runscroller()
{
		var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
		var d = document;
		function ml(id)
		{
			var el=d.getElementById(id);
//			var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
			if(d.layers)el.style=el;
			el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
//			el.sP=function(x,y){this.style.left=x;this.style.top=y;};
			el.x = startX;
			if (verticalpos=="fromtop")
			el.y = startY;
			else{
			el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
			el.y -= startY;
			}
			return el;
		}
		window.stayTopLeft=function()
		{
			if (verticalpos=="fromtop"){
			var pY = ns ? pageYOffset : iecompattest().scrollTop;
//			var pY = ns ? pageYOffset : document.documentElement.scrollTop;
			ftlObj.y += (pY + startY - ftlObj.y)/1;
			}
			else{
			var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
			ftlObj.y += (pY - startY - ftlObj.y)/1;
			}
			ftlObj.sP(ftlObj.x, ftlObj.y);
			setTimeout("stayTopLeft()", 40);
		}
		ftlObj = ml(thediv);
		stayTopLeft();
}

function detectDoctype()
{
          var re=/\s+(X?HTML)\s+([\d\.]+)\s*([^\/]+)*\//gi;
          var res=false;
         /*********************************************
            Just check for internet explorer. 
          **********************************************/
          if(typeof document.namespaces != "undefined")
            res=document.all[0].nodeType==8 ? re.test(document.all[0].nodeValue) : false;
          else
            res=document.doctype != null ? re.test(document.doctype.publicId) : false;
          if(res){
            res=new Object();
            res['xhtml']=RegExp.$1;
            res['version']=RegExp.$2;
            res['importance']=RegExp.$3;
            return res;
          }else{
            return null;
          }
}

var myversionInfo=detectDoctype();

if (window.XMLHttpRequest)
	 {
		if (navigator.appName=="Microsoft Internet Explorer") 
		{
		//IE
			if ((myversionInfo == null) || (myversionInfo.xhtml .toLowerCase()  != "xhtml"))
			{
         			runscroller();
			}
			else
			{
			document.getElementById(thediv).style.position = 'fixed';
			document.getElementById(thediv).style.top = startY + 'px';
			document.getElementById(thediv).style.left = startX + 'px';
			}            
		}
		else

		{
		//mozilla, safari, opera 9…etc
		document.getElementById(thediv).style.position = 'fixed';
		document.getElementById(thediv).style.top = startY + 'px';
		document.getElementById(thediv).style.left = startX + 'px';
		}

	} else {
	// IE6, older browsers
	runscroller();
	}
}




