var newWind;
var lOpened=false;

// open_gmap([cTitle],nWidth,nHeight,cDestName,cDestCoord,[cCenterMapCoord],[cHomeCoord],cZoom,[cStyle],[cDragging])

function gmap_sydney_weather(nWidth,nHeight,cWinTitle){
  var output;
  var cWinWidth;
  var cWinHeight;
  var nWidth;
  var nHeight;
  var cWinTitle;
  var cDestCoord;

  lOpened=true;
  scroll_flag=false;
  cWinHeight=nHeight+30;
  cWinWidth=nWidth+30;

  //transform numbers to string
  cWinWidth=cWinWidth+'';
  cWinHeight=cWinHeight+'';

  newWind=window.open("","winnam","height="+cWinHeight+",width="+cWinWidth+",scrollbars=no,resizable=yes,top=8px,left=8px");


  // Default values - END

  //starting the HTML code
  output="<html><head>\r\n";
  output+="<title>"+cWinTitle+"</title>\r\n";

  //style sheet
  output+="</head>\r\n";

  output+="<body>\r\n";

  output+="<iframe name='wblite' frameborder='0' width='400' height='400' scrolling='no' src='http://www.weatherbonk.com/servlet/WeatherLite?version=2&query=Sydney&width=400&height=400&display=C&iconMode=BIG&showWB=off&mapType=G_MAP_TYPE&allowOverlap=no&showMapTypeSelector=small&showMapZoomSelector=small&showWBSearchBar=on&mapBrand=Google'></iframe>\r\n";

  output+="</body></html>";
  newWind.document.write(output);
  newWind.document.close();
  newWind.focus();
  newWind.document.location.reload();

}


