function intervalul() {
	//alert("intervalul");
	if(ok==1) {
		setTimeout("pocnesteJS()", 1000);
		ok=2;
	}
}

function pocnesteJS(){

/*
var viewportwidth;
 var viewportheight;
 if (typeof window.innerWidth != 'undefined')
 {
      viewportwidth = window.innerWidth,
      viewportheight = window.innerHeight
 }

 else if (typeof document.documentElement != 'undefined'
     && typeof document.documentElement.clientWidth !=
     'undefined' && document.documentElement.clientWidth != 0)
 {
       viewportwidth = document.documentElement.clientWidth,
       viewportheight = document.documentElement.clientHeight
 }


	var res1=(viewportwidth / 2)-253;
	var res2=(viewportheight / 2)-202;

	//alert(viewportwidth+' '+viewportheight);
	//document.getElementById('dragWin').style.left = ((viewportwidth / 2)-253)+'px;';
	//document.getElementById('dragWin').style.top = ((viewportheight / 2)-202)+'px;';
*/

	var res1=($(window).width() / 2)-253;
	var res2=($(window).height() / 2)-202;
	$(".dragWindow").css('position','absolute');
	$(".dragWindow").css('left',res1+'px');
	$(".dragWindow").css('top',res2+'px');
    //$(".dragWindow").draggable();
	//$("html").scrollTop(0);
//	$("document").scrollLeft(1);
	$(".dragWindow").show("slow");
}

function hide() {
	$(".dragWindow").hide("slow");
	return false;
}


$(document).ready(function(){
	if(document.getElementById('dragWindow'))
		$(".dragWindow").hide("fast");
});
