//////////////////////Disable right mouse click Script/////////////////////

var message="Function Disabled by Umeedain.com!";

function clickIE4(){
	if (event.button==2){
		alert(message);
		return false;
	}
}

function clickNS4(e){
	if (document.layers||document.getElementById&&!document.all){
		if (e.which==2||e.which==3){
			alert(message);
			return false;
		}
	}
}

if (document.layers){
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
	document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

/////////////////////end///////////////////////////////////////////

//////////////////////disable window status message///////////////////
document.onmouseover = function ( e ) {   
if ( !e ) e = window.event;   
var el = e.target ? e.target : e.srcElement;   
while ( el != null && el.tagName != "A" ) el = el.parentNode;   
if ( el == null ) return;   
if ( e.preventDefault ) e.preventDefault();   
else e.returnValue = true;};
///////////////////////////end///////////////////////////////

var gb_W; var gb_H; var gb_X; var gb_Y;
function returnArticleCoors(W,H) {
	if (screen.width == 640) {
		if ((screen.width - 140) < W) W = screen.width - 120;
		if ((screen.height - 240) < H) H = screen.height - 240;
	}
	else if (screen.width == 800){
		if ((screen.width - 170) < W) W = screen.width - 150;
		if ((screen.height - 240) < H) H = screen.height - 240;
	}
	else if (screen.width == 1024){
		if ((screen.width - 140)< W) W = screen.width - 240;
		if ((screen.height - 240) < H) H = screen.height - 240;
	}
	else if (screen.width == 1152){
		if ((screen.width - 260) < W) W = screen.width - 240;
		if ((screen.height - 240) < H) H = screen.height - 240;
	}
	else if (screen.width == 1280){
		if((screen.width - 260) < W) W = screen.width - 240;
		if ((screen.height - 240) < H) H = screen.height - 240;
	}
	else if (screen.width == 1400){
		if((screen.width - 280)< W) W = screen.width - 260;
		if ((screen.height - 250) < H) H = screen.height - 230;
	}
	else if (screen.width == 1600){
		if((screen.width - 280)< W) W = screen.width - 260;
		if ((screen.height - 250) < H) H = screen.height - 230;
	}
	else if (screen.width == 1920){
		if ((screen.width - 300) < W) W = screen.width - 280;
		if ((screen.height - 250) < H) H = screen.height - 230;
	}
	else if (screen.width > 1920) {
		if((screen.width - 320)< W) W = screen.width - 300;
		if ((screen.height - 260) < H) H = screen.height - 240;
	}
	else if (screen.width < 640) {
		if((screen.width - 140) < W) W = screen.width - 120;
		if((screen.height - 240)<H) H = screen.height - 220;
	}
	if (W < 350) W = 350;
	if (H < 280) H = 280;
	
	x = (screen.width - W)/2 ;
	y = (screen.height - H)/2 ;
	
	if (W < 620 ) gb_W = 620;
	else gb_W = W+20;
	//gb_W = 620;
	gb_H = H + 100;
	gb_X = x;
	gb_Y = y;
}  