function openSite() {

		var screen_height = screen.height;
		var screen_width = screen.width;

		var url = "";
		
		var buffer = (document.all || document.layers) ? 30 : 48;

		if (screen_height <= 600) {
			//alert("i'm small screen");
			//screen_width = 800;
			//screen_height = 600;
			var window_width =  screen.availWidth;
			var window_height = screen.availHeight;
			
			url = "home.html";
     	
     	} else {
     	//alert("i'm big");
      //var window_width =  1000;
      //var window_height = 720;
      var window_width =  screen.availWidth;
      var window_height = screen.availHeight;

      url = "home.html";

		}
		
		var winSite = "winSite";
		var features = "toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + window_width + ",height=" + window_height;

		window.open(url,winSite,features);

}

function resizeThis() {

	window.moveTo(0,0);
		if (document.all) {
			top.window.resizeTo(screen.availWidth,screen.availHeight);

	} else if (document.layers||document.getElementById) {

		if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){

		top.window.outerHeight = screen.availHeight;
		top.window.outerWidth = screen.availWidth;
	
	}
}

function openNewWindow(URLtoOpen)  {
	newWindow=window.open(URLtoOpen, 'thewin', 'height=270,width=320,toolbar=no,scrollbars=no,status=yes,directories=no');
	var left = (screen.availWidth/2 - 160);
	var top = (screen.availHeight/2 - 135);
	newWindow.moveTo(left, top);
	newWindow.focus();
}

function openNewsItem(URLtoOpen)  {
	newWindow=window.open(URLtoOpen, 'newswin', 'height=450,width=830,toolbar=no,scrollbars=yes,status=yes,directories=no,resizable=yes');
	var left = (screen.availWidth/2 - 400);
	var top = (screen.availHeight/2 - 225);
	newWindow.moveTo(left, top);
	newWindow.focus();
}

