//User for right banner configuration  :  Modified by Artis Anantachoke

function move(x, y) {
	if (document.all) {
		object1.style.pixelLeft += x;
		object1.style.pixelTop  += y;}
	else
	if (document.layers) {
		document.object1.left += x;
		document.object1.top  += y;
	}};

function position() {
	document.object1.left += 590;
	document.object1.top  += 0;
	document.object1.visibility = "show"
};

function makeStatic() {
if (document.all) {
	if(document.body.scrollTop+5<limitBottomBanner){
		object1.style.pixelTop=document.body.scrollTop+5
	}
}
else {eval('document.object1.top=eval(window.pageYOffset+20)');}
setTimeout("makeStatic()",0);}



//Random image
var ic = 3; // Number of alternative images 
var xoxo = new Array(ic); 
var url = new Array(ic); 
// Array to hold filenames 
xoxo[0] = "http://qqshow.sanook.com/img/friends202x425.gif"; 
xoxo[1] = "http://qqshow.sanook.com/img/loyalty202x425.gif"; 
xoxo[2] = "http://qqshow.sanook.com/img/flash202x425.gif"; 
url[0] = "http://qqshow.sanook.com/win/friends/"; 
url[1] = "http://qqshow.sanook.com/vip/"; 
url[2] = "http://qqshow.sanook.com/flash/"; 
function pickRandom(range) 
{ 
	if (Math.random) return Math.round(Math.random() * (range-1)); 
	else { 
		var now = new Date(); return (now.getTime() / 1000) % range; 
	} 
} 
// Write out an IMG tag, using a randomly-chosen image name. 
var choice = pickRandom(ic); 