<!--

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		index_1 = newImage("http://imghost1.indiamart.com/data2/TD/JQ/MY-457874/col-soap-250x250.jpg");
		index_2 = newImage("http://imghost1.indiamart.com/data2/TQ/GO/MY-457874/col-mazzoni-250x250.jpg");
		index_3 = newImage("http://2.imimg.com/data2/LI/GH/MY-/usn-500-250x250.jpg");
		index_4 = newImage("http://2.imimg.com/data2/SV/SX/MY-/godrej-250x250.jpg");
		index_5 = newImage("http://imghost1.indiamart.com/data2/DC/UY/MY-457874/col-vst6-250x250.jpg");
		index_6 = newImage("http://2.imimg.com/data2/IV/XO/MY-/dyna-stur-7-250x250.jpg");
		index_7 = newImage("http://2.imimg.com/data2/AB/RF/MY-/sas-4-250x250.jpg");
		index_8 = newImage("http://2.imimg.com/data2/AU/KL/MY-/stur14-250x250.jpg");
		index_9 = newImage("ts/zero.gif");
		preloadFlag = true;
	}
}
// -->


//for open vidio's
var win = null;

function NewWinIM(mypage,myname,compname)
{
	var embedcode = '<div align="center"><embed id="VideoPlayback" style="width:400px;height:326px" allowFullScreen="true" src="http://video.google.com/googleplayer.swf?docid=-'+mypage+'&hl=en&fs=true"  type="application/x-shockwave-flash"> </embed></div>';
	LeftPosition = (screen.width) ? (screen.width-400)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-326)/2 : 0;
	
	var settings = 'width=440';
	settings += ', height=366';
	settings += ', top='+TopPosition+', left='+LeftPosition;
	settings += ', directories=no';
	settings += ', location=no';
	settings += ', menubar=no';
	settings += ', resizable=no';
	settings += ', scrollbars=no';
	settings += ', status=no';
	settings += ', toolbar=no';
	
	win = window.open("",myname,settings);
	win.document.write('<HTML><HEAD><TITLE>'+compname+' Video</TITLE></HEAD><BODY BGCOLOR="#000000"><DIV style="color:white;font-size:11px;font-family:arial" align="center">Video by '+compname+'</DIV>'+embedcode+'</BODY></HTML>');
}
