//javascript

//sucess waring error ''

function popup(l,w,h) {

	var scrollWidth = document.body.scrollWidth;
	var scrollHeight = document.body.scrollHeight;
	var clientHeight = document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight;
	var scrollTop = document.body.scrollTop ? document.body.scrollTop : document.documentElement.scrollTop;
	if(clientHeight > scrollHeight){scrollHeight = clientHeight;}
	if(w == undefined){w = 560;}
	if(h == undefined){h = 240;}

	var o = $('#append');
	o.attr('class','show');
	document.getElementById('append').style.cssText = "width:100%!important;width:130%";
	o.css('position', 'absolute');
	o.css('left', '0px');
    o.css('top', '0px');
	o.css('zIndex', 998);
	//o.css('width',100%);
	o.css('height', scrollHeight + 'px');
	o.css('backgroundColor', '#000');
	o.css('filter', 'progid:DXImageTransform.Microsoft.Alpha(opacity=20,finishOpacity=100,style=0)');
	o.css('opacity', 0.2);


	o = $('#pop');
	o.attr('class', 'show');
	o.css('position', 'absolute');
	o.css('padding', 0);
	o.css('display', '');
    if(l == 'loading'){
	o.css('right', '4px');
	o.css('top', '8px');
    } else {
	o.css('left', (scrollWidth-w)/2 + 'px');
	o.css('top', ((clientHeight - h) / 2 + scrollTop) + 'px');
	o.css('width', w + 'px');
	o.css('height', h + 'px');
    }
	o.css('zIndex', 999);
	o.css('overflow', 'hidden');
}

function popdown() {
	$('#append').attr('class', 'hide');
	$('#pop').attr('class', 'hide');
}
$(function(){
    $("#mobilepay").hide();
})
function mobilepay(){
    $("#mobilepay").show()
}
