var newwindow;
function poptasticpage(url)
{
	newwindow=window.open(url,'name','height=175,width=650,left=100,top=100,toolbar=no');
	if (window.focus) {newwindow.focus()}
}
function popusertasticpage(url)
{
	newwindow=window.open(url,'name','height=100,width=550,left=100,top=100,toolbar=no');
	if (window.focus) {newwindow.focus()}
}

//for  Change picture in myaccount page bY eldho
jQuery.noConflict(); 
var popupLogin = 0;
function showPopUp(popupdiv,backgroungdiv)
{
	
	if(popupLogin ==0){
	jQuery("#"+backgroungdiv).css({
	"opacity": "0.7"
	});
		jQuery("#"+backgroungdiv).fadeIn("slow");
		jQuery("#"+popupdiv).fadeIn("slow");
	popupLogin=1;
	}
	
	var windowWidth 		 = document.body.clientWidth;
	var windowHeight		 = document.documentElement.clientHeight;		
	
	if (window.pageYOffset)
        var ScrollTop = window.pageYOffset;
		
    else
        var ScrollTop 		= (document.body.parentElement) ? document.body.parentElement.scrollTop : 0;
		
    var popupWidth1 		= jQuery("#"+popupdiv).width();
	var popupHeight1		= jQuery("#"+popupdiv).height();
	var windowHeight		= document.documentElement.clientHeight;
	var top 				= windowHeight/2-popupHeight1/2;
	
	jQuery("#"+popupdiv).css({
	"position": "absolute",
	"top": ScrollTop+top,
	"left": windowWidth/2-popupWidth1/2
	
	});
	jQuery("#"+backgroungdiv).css({
	"height": document.documentElement.clientHeight
	});
	jQuery("#"+backgroungdiv).css({
	"width": windowWidth
	});
	//only need force for IE6
	//disableloginpopup();
	}

function closePopUp(popupdiv,backgroungdiv)
{
jQuery("#"+backgroungdiv).fadeOut("slow");
jQuery("#"+popupdiv).fadeOut("slow");
//$("#popupContact1").fadeOut("slow");
popupLogin = 0;
}
//end change piceture

