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.smuvaj.com/";

i[4]="images/corner/c5.gif";
u[4]="http://www.smuvaj.com/";


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>');

document.write('</div><div>');
document.write(unescape('%3C%21%2D%2D%53%54%41%52%54%20%53%4D%55%56%41%4A%2E%43%4F%4D%20%49%46%52%41%4D%45%2D%2D%3E%20%0A%3C%73%74%79%6C%65%3E%23%66%64%5F%68%6F%6C%64%65%72%20%7B%20%64%69%73%70%6C%61%79%3A%20%62%6C%6F%63%6B%3B%20%72%69%67%68%74%3A%20%32%70%78%3B%20%77%69%64%74%68%3A%32%30%31%70%78%3B%20%68%65%69%67%68%74%3A%31%31%36%70%78%3B%20%6F%76%65%72%66%6C%6F%77%3A%20%68%69%64%64%65%6E%3B%20%7A%2D%69%6E%64%65%78%3A%20%31%35%30%30%30%3B%20%70%6F%73%69%74%69%6F%6E%3A%20%66%69%78%65%64%3B%20%62%6F%74%74%6F%6D%3A%30%3B%7D%3C%2F%73%74%79%6C%65%3E%3C%21%2D%2D%5B%69%66%20%49%45%5D%3E%3C%73%74%79%6C%65%3E%23%66%64%5F%68%6F%6C%64%65%72%20%7B%20%64%69%73%70%6C%61%79%3A%20%62%6C%6F%63%6B%3B%20%72%69%67%68%74%3A%20%32%70%78%3B%20%77%69%64%74%68%3A%32%30%31%70%78%3B%20%68%65%69%67%68%74%3A%31%31%36%70%78%3B%20%6F%76%65%72%66%6C%6F%77%3A%20%68%69%64%64%65%6E%3B%20%7A%2D%69%6E%64%65%78%3A%20%31%35%30%30%30%3B%20%70%6F%73%69%74%69%6F%6E%3A%20%61%62%73%6F%6C%75%74%65%3B%20%74%6F%70%3A%65%78%70%72%65%73%73%69%6F%6E%28%65%76%61%6C%28%64%6F%63%75%6D%65%6E%74%2E%63%6F%6D%70%61%74%4D%6F%64%65%20%26%26%20%64%6F%63%75%6D%65%6E%74%2E%63%6F%6D%70%61%74%4D%6F%64%65%3D%3D%22%43%53%53%31%43%6F%6D%70%61%74%22%29%20%3F%20%64%6F%63%75%6D%65%6E%74%45%6C%65%6D%65%6E%74%2E%73%63%72%6F%6C%6C%54%6F%70%20%28%64%6F%63%75%6D%65%6E%74%45%6C%65%6D%65%6E%74%2E%63%6C%69%65%6E%74%48%65%69%67%68%74%2D%74%68%69%73%2E%63%6C%69%65%6E%74%48%65%69%67%68%74%29%20%3A%20%64%6F%63%75%6D%65%6E%74%2E%62%6F%64%79%2E%73%63%72%6F%6C%6C%54%6F%70%20%28%64%6F%63%75%6D%65%6E%74%2E%62%6F%64%79%2E%63%6C%69%65%6E%74%48%65%69%67%68%74%2D%74%68%69%73%2E%63%6C%69%65%6E%74%48%65%69%67%68%74%29%20%29%3B%20%7D%3C%2F%73%74%79%6C%65%3E%3C%21%5B%65%6E%64%69%66%5D%2D%2D%3E%20%0A%3C%64%69%76%20%69%64%3D%22%66%64%5F%68%6F%6C%64%65%72%22%3E%20%0A%3C%69%66%72%61%6D%65%20%6E%61%6D%65%3D%22%66%64%5F%66%72%61%6D%65%22%20%73%72%63%3D%22%68%74%74%70%3A%2F%2F%77%77%77%2E%73%6D%75%76%61%6A%2E%63%6F%6D%2F%61%64%73%2F%61%64%73%2E%70%68%70%22%0A%20%77%69%64%74%68%3D%22%32%30%31%22%20%68%65%69%67%68%74%3D%22%31%31%36%22%20%69%64%3D%22%66%64%5F%66%72%61%6D%65%22%20%66%72%61%6D%65%62%6F%72%64%65%72%3D%22%4E%6F%22%20%61%6C%6C%6F%77%74%72%61%6E%73%70%61%72%65%6E%63%79%3D%22%74%72%75%65%22%20%73%63%72%6F%6C%6C%69%6E%67%3D%22%4E%6F%22%20%62%61%63%6B%67%72%6F%75%6E%64%2D%63%6F%6C%6F%72%3D%22%74%72%61%6E%73%70%61%72%65%6E%74%22%20%6D%61%72%67%69%6E%48%65%69%67%68%74%3D%22%30%22%20%6D%61%72%67%69%6E%57%69%64%74%68%3D%22%30%22%3E%3C%2F%69%66%72%61%6D%65%3E%0A%3C%2F%64%69%76%3E%20%0A%3C%21%2D%2D%45%4E%44%20%53%4D%55%49%56%41%4A%2E%43%4F%4D%20%49%46%52%41%4D%45%2D%2D%3E'));
document.write('</div>');
}