// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this notice.

// SETUPS:
// ===============================

// Set the horizontal and vertical position for the popup

PositionX = 100;
PositionY = 100;

// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)

defaultWidth  = 500;
defaultHeight = 500;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

var AutoClose = false;

// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function imagePop(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px; text-align:center; vertical-align:middle;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=120-(document.body.clientWidth-document.images[0].width);');
writeln('height=120-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["Videogame"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=ffffff scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="Videogame" src='+imageURL+' style="display:block">');
writeln('</body></html>');
close();		
}}


function flash(s,w,h,b){
	document.write('<object type="application/x-shockwave-flash" data="start.swf?path=header7.swf" width="'+w+'" height="'+h+'">\n');
	document.write('<param name="movie" value="start.swf?path=header7.swf" />\n');
	document.write('<param name="bgcolor" value="'+b+'" />\n');
	document.write('</object>\n');
}

function flash2(s,w,h,b){
	document.write('<object type="application/x-shockwave-flash" data="start.swf?path='+s+'" width="'+w+'" height="'+h+'">\n');
	document.write('<param name="movie" value="start.swf?path='+s+'" />\n');
	document.write('<param name="bgcolor" value="'+b+'" />\n');
	document.write('</object>\n');
}

    //<![CDATA[
function load(){
    if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());
		map.setCenter(new GLatLng(46.135637, 9.371294), 5);		
        // Creates a marker at the given point with the given number label
        function createMarker(point, number) {
          var marker = new GMarker(point, icon);
          GEvent.addListener(marker, "click", function() {
            marker.openInfoWindowHtml(number);
          });
          return marker;
        }

		var icon = new GIcon();
		icon.image = "http://www.tgasolutions.it/point.png";
		icon.shadow = "http://www.tgasolutions.it/point2.png";
		icon.iconSize = new GSize(10, 10);
		icon.shadowSize = new GSize(10, 10);
		icon.iconAnchor = new GPoint(5, 5);
		icon.infoWindowAnchor = new GPoint(0, 0);

		var point = new GLatLng(46.135637, 9.371294);
		map.addOverlay(createMarker(point, '<span class="addr"><strong>Officina Pentacar</strong><br>Via Al confine zona industriale<br>23823 Colico (LC)<br><br><a href="mailto:info@pentacaracing.it">info@pentacaracing.it</a></span>'));
	}
}




function open_popup(titolo_finestra, website, lunghezza, altezza){
	var windowprops='scrollbars=yes,status=no,resizable=no,location=no'
	var leftdist = 20;   
	var topdist = 20; 
	var popup_open = window.open(website,titolo_finestra,"width=" + lunghezza + ",height=" + altezza + ",left=" + leftdist + ",top=" + topdist +","+ windowprops);
}

