
//<!--
var tld=0;
var gld=0;
var fr_gld=0;
var ftld=0;
var vidld=0;
var phld=0;


function tload()
{
	if (document.images && !tld) {

		tvideosbuttonup = new Image();
		tvideosbuttonup.src = "/images/tbut_videos.jpg" ;
		tvideosbuttondown = new Image() ;
		tvideosbuttondown.src = "/images/tbut_videos-on.jpg" ;

		tfootagebuttonup = new Image();
		tfootagebuttonup.src = "/images/tbut_footage.jpg" ;
		tfootagebuttondown = new Image() ;
		tfootagebuttondown.src = "/images/tbut_footage-on.jpg" ;

		tphotosbuttonup = new Image();
		tphotosbuttonup.src = "/images/tbut_photos.jpg" ;
		tphotosbuttondown = new Image() ;
		tphotosbuttondown.src = "/images/tbut_photos-on.jpg" ;


		tdemobuttonup = new Image();
		tdemobuttonup.src = "/images/tbut_demo.jpg" ;
		tdemobuttondown = new Image() ;
		tdemobuttondown.src = "/images/tbut_demo-on.jpg" ;
/*
		tmusicbuttonup = new Image();
		tmusicbuttonup.src = "/images/tbut_music.jpg" ;
		tmusicbuttondown = new Image() ;
		tmusicbuttondown.src = "/images/tbut_music-on.jpg" ;
*/

		tld=1;
	}
}

function fr_mload()
{
if (document.images && !fr_gld) {

	homebuttonup = new Image();
	homebuttonup.src = "/images/common/mbut_home.gif" ;
	homebuttondown  = new Image() ;
	homebuttondown.src = "/images/common/mbut_home-on.gif" ;

	videosbuttonup = new Image();
	videosbuttonup.src = "/images/common/mbut_videos_fr.gif" ;
	videosbuttondown = new Image() ;
	videosbuttondown.src = "/images/common/mbut_videos_fr-on.gif" ;

	imagesbuttonup = new Image();
	imagesbuttonup.src = "/images/common/mbut_images.gif" ;
	imagesbuttondown = new Image() ;
	imagesbuttondown.src = "/images/common/mbut_images-on.gif" ;

	photobuttonup = new Image();
	photobuttonup.src = "/images/common/gbut_photos.gif" ;
	photobuttondown = new Image() ;
	photobuttondown.src = "/images/common/gbut_photos-on.gif" ;

	wineregionsbuttonup = new Image();
	wineregionsbuttonup.src = "/images/common/mbut_wine-regions_fr.gif" ;
	wineregionsbuttondown = new Image() ;
	wineregionsbuttondown.src = "/images/common/mbut_wine-regions_fr-on.gif" ;

	winetermsbuttonup = new Image();
	winetermsbuttonup.src = "/images/common/mbut_wine-terms_fr.gif" ;
	winetermsbuttondown = new Image() ;
	winetermsbuttondown.src = "/images/common/mbut_wine-terms_fr-on.gif" ;

/*
	cartbuttonup = new Image();
	cartbuttonup.src = "/images/common/cart1.gif" ;
	cartbuttondown = new Image() ;
	cartbuttondown.src = "/images/common/cart1-on.gif" ;
*/
	fr_gld=1;
	}
}

function mload()
{
if (document.images && !gld) {

	homebuttonup = new Image();
	homebuttonup.src = "/images/common/mbut_home.gif" ;
	homebuttondown  = new Image() ;
	homebuttondown.src = "/images/common/mbut_home-on.gif" ;

	videosbuttonup = new Image();
	videosbuttonup.src = "/images/common/mbut_videos.gif" ;
	videosbuttondown = new Image() ;
	videosbuttondown.src = "/images/common/mbut_videos-on.gif" ;

	imagesbuttonup = new Image();
	imagesbuttonup.src = "/images/common/mbut_images.gif" ;
	imagesbuttondown = new Image() ;
	imagesbuttondown.src = "/images/common/mbut_images-on.gif" ;

	photobuttonup = new Image();
	photobuttonup.src = "/images/common/gbut_photos.gif" ;
	photobuttondown = new Image() ;
	photobuttondown.src = "/images/common/gbut_photos-on.gif" ;

	wineregionsbuttonup = new Image();
	wineregionsbuttonup.src = "/images/common/mbut_wine-regions_en.gif" ;
	wineregionsbuttondown = new Image() ;
	wineregionsbuttondown.src = "/images/common/mbut_wine-regions_en-on.gif" ;

	winetermsbuttonup = new Image();
	winetermsbuttonup.src = "/images/common/mbut_wine-terms_en.gif" ;
	winetermsbuttondown = new Image() ;
	winetermsbuttondown.src = "/images/common/mbut_wine-terms_en-on.gif" ;

/*
	cartbuttonup = new Image();
	cartbuttonup.src = "/images/common/cart1.gif" ;
	cartbuttondown = new Image() ;
	cartbuttondown.src = "/images/common/cart1-on.gif" ;
*/
	gld=1;
	}
}






function vidload()
{
	if (document.images && !vidld) {

		categoriesbuttonup = new Image();
		categoriesbuttonup.src = "/images/common/cbut_categories.gif" ;
		categoriesbuttondown = new Image() ;
		categoriesbuttondown.src = "/images/common/cbut_categories-on.gif" ;

		featuredbuttonup = new Image();
		featuredbuttonup.src = "/images/common/cbut_featured.gif" ;
		featuredbuttondown = new Image() ;
		featuredbuttondown.src = "/images/common/cbut_featured-on.gif" ;

		hdvbuttonup = new Image();
		hdvbuttonup.src = "/images/common/cbut_hdv.gif" ;
		hdvbuttondown = new Image() ;
		hdvbuttondown.src = "/images/common/cbut_hdv-on.gif" ;

		mobilebuttonup = new Image();
		mobilebuttonup.src = "/images/common/cbut_mobile.gif" ;
		mobilebuttondown = new Image() ;
		mobilebuttondown.src = "/images/common/cbut_mobile-on.gif" ;

		foreignbuttonup = new Image();
		foreignbuttonup.src = "/images/common/cbut_foreign.gif" ;
		foreignbuttondown = new Image() ;
		foreignbuttondown.src = "/images/common/cbut_foreign-on.gif" ;

		freevidbuttonup = new Image();
		freevidbuttonup.src = "/images/common/cbut_freevid.gif" ;
		freevidbuttondown = new Image() ;
		freevidbuttondown.src = "/images/common/cbut_freevid-on.gif" ;

		newsbuttonup = new Image();
		newsbuttonup.src = "/images/common/cbut_news.gif" ;
		newsbuttondown = new Image() ;
		newsbuttondown.src = "/images/common/cbut_news-on.gif" ;

		vidld=1;
	}
}

function turnOn( buttonname )
{
	if (document.images) {
		document[ buttonname ].src = eval( buttonname + "down.src" );
		}
}
function turnOff ( buttonname )
{
	if (document.images) {
		document[ buttonname ].src = eval( buttonname + "up.src" );
	}
}



var extWindow;
function newWindow(url, w, h) {

	if (!url)
		url = "http://www.intermatique.com";

	if ( !w)
		w = "640";

	if (!h)
		h = "440";

//		param3 = "width=" + w + ",height=" + h + ",toolbar=1,scrollbars=1,resizable=1,status=1,menubar=1,directories=1,location=1,navigation=1";
		param3 = "width=" + w + ",height=" + h + "status=1, scrollbars=1";
		extWindow = window.open(url, "imtq_link", param3);
		w2 = new Number(w);
		h2 = new Number(h);
		extWindow.resizeTo(w2 + 5, h2 + 40);
		extWindow.focus();
}




var ftWindow;
function ftPlay(url, w, h) {

	if (!url)
		url = "http://www.intermatique.com";

	if ( !w)
		w = "700";

	if (!h)
		h = "500";

//		param3 = "width=" + w + ",height=" + h + ",toolbar=1,scrollbars=1,resizable=1,status=1,menubar=1,directories=1,location=1,navigation=1";
		param3 = "width=" + w + ",height=" + h + "status=1, scrollbars=1, resizable=1";
		ftWindow = window.open(url, "imtq_link", param3);
//		qtWindow.document.bgColor="#2c2c2c";
		w2 = new Number(w);
		h2 = new Number(h);
		ftWindow.resizeTo(w2 + 5, h2 + 40);
		ftWindow.focus();
}






var qtWindow;
function qtPlay(url, w, h) {

	if (!url)
		url = "http://www.intermatique.com";

	if ( !w)
		w = "640";

	if (!h)
		h = "440";

//		param3 = "width=" + w + ",height=" + h + ",toolbar=1,scrollbars=1,resizable=1,status=1,menubar=1,directories=1,location=1,navigation=1";
		param3 = "width=" + w + ",height=" + h + "status=1, scrollbars=1, resizable=1";
		qtWindow = window.open(url, "imtq_link", param3);
//		qtWindow.document.bgColor="#2c2c2c";
		w2 = new Number(w);
		h2 = new Number(h);
		qtWindow.resizeTo(w2 + 5, h2 + 40);
		qtWindow.focus();
}


var fcmailWindow;
function js_mail(name, domain, subject) {

    var domain = "interfrance.com";
    var send = "mailto: " + name + "@" + domain + "?subject=" + subject;
    fcmailWindow = window.open(send, "mail_win");
    fcmailWindow.focus();
}

var vdWindow;
function vdPlay(url, w, h) {

	if (!url)
		url = "http://www.interfrance.com";

	if ( !w)
		w = "960";

	if (!h)
		h = "740";

//      param3 = "width=" + w + ",height=" + h + ",toolbar=1,scrollbars=1,resizable=1,status=1,menubar=1,directories=1,location=1,navigation=1";

		param3 = "width=" + w + ",height=" + h + "status=1, scrollbars=1, resizable=1";
		vdWindow = window.open(url, "vid_link", param3);
//      qtWindow.document.bgColor="#2c2c2c";
		w2 = new Number(w);
		h2 = new Number(h);
		vdWindow.resizeTo(w2 + 5, h2 + 40);
		vdWindow.focus();
}



/*
function InsertSampleMovie()
{
document.write(<object classid="clsid: 02BF25D5..." ...>\n);
document.write(<param name="src" value="sample.mov" />\n);
document.write(</object>\n);
}
*/







/*
var qtWindow;
function qqPlay(url, w, h) {

	if (!url)
		url = "http://www.intermatique.com";

	if ( !w)
		w = "640";

	if (!h)
		h = "440";

QT_WriteObject('demo/viticulture.mov', '640', '440', '');

}
*/












// -->

