document.write("<div id='badge'></div>");
this_doc = document.getElementById("badge");
var badge_link = "http://nudecreative.com.au/NudeBadge/sitebynude_k.png";

this_doc.style.width = "31px";
this_doc.style.height = "136px";

this_doc.style.position = "fixed";
this_doc.style.bottom = "7px";
this_doc.style.right = "7px";
this_doc.style.cursor = "pointer";

/*var page_pos = getPageSizeWithScroll();
var x = page_pos[0] - 31 + 7;
var y = page_pos[1] - 136 + 7;
this_doc.style.left = x+"px";
this_doc.style.top = y+"px";*/

if(window.ActiveXObject) {
	badge_link = "http://nudecreative.com.au/NudeBadge/sitebynude_k_h.png";
	this_doc.style.width = "136px";
	this_doc.style.height = "31px";
	this_doc.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ badge_link + "',sizingMethod='scale')";
} else {
	this_doc.style.background = "transparent url('"+ badge_link + "') no-repeat";
}
document.getElementById("badge").onclick = function() {
	//window.location.href="http://www.nudecreative.com.au/";    
	window.open("http://www.nudecreative.com.au/") 
}	

/*document.body.onresize = function (){
	var page_pos = getPageSizeWithScroll();
	var x = page_pos[0] - 31+7;
	var y = page_pos[1] - 136+7;
	this_doc.style.left = x+"px";
	this_doc.style.top = y+"px";
}
*/
function getPageSizeWithScroll(){
	if (window.innerHeight && window.scrollMaxY) {// Firefox
		yWithScroll = window.innerHeight + window.scrollMaxY;
		xWithScroll = window.innerWidth + window.scrollMaxX;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		yWithScroll = document.body.scrollHeight;
		xWithScroll = document.body.scrollWidth;
	} else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
		yWithScroll = document.body.offsetHeight;
		xWithScroll = document.body.offsetWidth;
  	}
	arrayPageSizeWithScroll = new Array(xWithScroll,yWithScroll);
	//alert( 'The height is ' + yWithScroll + ' and the width is ' + xWithScroll );
	return arrayPageSizeWithScroll;
}