
   function Start(page) {
      OpenWin = this.open(page, "_blank",
'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=yes,width=700,height=460');
   } 


  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }

  var scrOfX = 0;
  var scrOfY = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    //Netscape compliant
    scrOfY = window.pageYOffset;
    scrOfX = window.pageXOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    //DOM compliant
    scrOfY = document.body.scrollTop;
    scrOfX = document.body.scrollLeft;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    //IE6 standards compliant mode
    scrOfY = document.documentElement.scrollTop;
    scrOfX = document.documentElement.scrollLeft;
  }
//  return [ scrOfX, scrOfY ];



function divact(page,ima) {

if (!page) {
	document.getElementById('vipic').innerHTML =  '';
	document.getElementById('vipic').style.width =  0;
	document.getElementById('vipic').style.height = 0;
	document.getElementById('vipic').style.top = 0;
	document.body.style.overflow = 'auto';
	}
else {
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }


  if( typeof( window.pageYOffset ) == 'number' ) {
    //Netscape compliant
    scrOfY = window.pageYOffset;
    scrOfX = window.pageXOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    //DOM compliant
    scrOfY = document.body.scrollTop;
    scrOfX = document.body.scrollLeft;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    //IE6 standards compliant mode
    scrOfY = document.documentElement.scrollTop;
    scrOfX = document.documentElement.scrollLeft;
  }
	var vi='';
	document.body.style.overflow = 'hidden';


		w = myWidth *1;
		h = scrOfY *1;
		hc = myHeight*1;

	document.getElementById('vipic').style.width =  w+'px';
	document.getElementById('vipic').style.height = hc+'px';
	document.getElementById('vipic').style.top = h+'px';

	vi += "<table height=100% width=100%><tr><td align=center title=\"Click to resume\"><table cellpadding=1 cellspacing=0 border=0><tr><td colspan=2><img src=\"";
	vi += page;
	vi += "\" border=0 id=startpicshow></td></tr>";
	vi += "<tr><td class=btr12 align=left>"+ima+"<br>&copy;kioni-villas.com";
	vi += "</td><td align=right class=bve11>Click to go back</td></tr></table></td></tr></table>";
	document.getElementById('vipic').innerHTML =  vi;
	document.getElementById('startpicshow').onload=function(){
		if (document.getElementById('startpicshow').width > w){document.body.style.overflow = 'auto';}
		if (document.getElementById('startpicshow').height > hc){document.body.style.overflow = 'auto';}
 		//document.getElementById('vipic').innerHTML += 'ola'+document.getElementById('startpicshow').height+'<br>';
		}
	}
   }



