window.onresize = resize;
//for hiding corner graphic if width is small so that user doesn't have problems clicking links
function getBrowserWidth(){
	if (window.innerWidth){return window.innerWidth;} 
	else if (document.documentElement && document.documentElement.clientWidth != 0){return document.documentElement.clientWidth;} 
	else if (document.body){return document.body.clientWidth;} 
	return 0;
}
// Resize Event (hide/show)
function resize() {
	var browserWidth = getBrowserWidth();
	var obj = document.getElementById('corner');
	if (obj) {
	    if (browserWidth < 820){obj.style.display = "none";}
		else {obj.style.display = "block";}
	}
}
// Show Corner Ad
function show_corner() {
var i=new Array();
var u=new Array();

i[0]="images/corner/c1.gif";
u[0]="http://www.pinkmreza.com/";

i[1]="images/corner/c2.gif";
u[1]="http://www.pinkmreza.com/ulaz-042.php";

i[2]="images/corner/c3.gif";
u[2]="http://www.pinkmreza.com/ulaz-sms.php";

i[3]="images/corner/c4.gif";
u[3]="http://www.pinkmreza.com/hot-line-srbija.html";

i[4]="images/corner/c5.gif";
u[4]="http://www.pinkmreza.com/sms-chat-srbija.html";


s = Math.floor(Math.random() * i.length);

document.write('<span>');
document.write('<img src="http://www.pinkmreza.com/'+i[s]+'" width="100" height="100" border="0" usemap="#corner"/>');
document.write('<map name="corner"><area shape="poly" coords="0,0,100,100,100,0" href="'+u[s]+'"></map>');
document.write('</span>');
}