/*------------------------------------------------------------------------------------------*/
var ru = new Object;
ru = {
	sokfitness: new Object
}
ru.sokfitness = {
	vv: new Object
}
ru.sokfitness.vv = {
		createSplash: new Object,
		cookiesResult: new Object,
		userBrowser: new Object,
		getBrowserName: new Object,
		operaVersion: new Object,
		whenPageLoad: new Object,
		ieBlock: new Object,
		calendarLIHover: new Object,
		calendarLIOut: new Object,
		childElement: new Object,
		tdHover: new Object,
		tdOut: new Object,
		addOrRemove: new Object,
		linkToPrint: new Object,
		newWindowWithDescription: new Object,
		createMessage: new Object,
		messageAboutCookies: new Object,
		flash: new Object,
		createSplash: new Object,
		textIfNotFlashPlayer: new Object,
		createSheduleFlash: new Object,
		create_MainMenu: new Object,
		virtualTourBanner: new Object,
		vbScriptForIE: new Object,
		createWirtualTourWindow: new Object,
		CreateFlash: new Object
}

/*------------------------------------------------------------------------------------------*/

/*	
	@author - Юнком
	@title - отображение фото в новом окне
	@description - создается новое окно, куда грузится фото
*/
function openWin(images, w, h, idValue) {
var myWin = 'photoWindow' + idValue;

  myWin= open("", myWin, "width="+w +",height="+h +",status=no,toolbar=no,menubar=no,directories=no,location=no,resizable=no");
  myWin.document.open();
  myWin.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">\n<html><head><meta http-equiv="content-type" content="text/html; charset=windows-1251">\n<title>Фотоальбом</title>\n<style type=\"text/css\">body{padding:0;margin:0;width:100%;height:100%}</style>\n</head>');
  myWin.document.write("<body>\n");
  myWin.document.write("<a href=\"javascript:window.close()\">\n<img src=\""+images+"\" width=\""+w+"\" height=\""+h+"\" border=\"0\" title=\"Закрыть окно\" alt=\"Закрыть окно\"></a>\n");
  myWin.document.write("</body></html>");
  myWin.document.close();  
}
ru.sokfitness.vv.vbScriptForIE = { 
	VBScriptForFlash: function (){
		document.writeln('<script language="VBScript" type="text/vbscript">');
		document.writeln('<!-- // Visual basic helper required to detect Flash Player ActiveX control version information');
		document.writeln('Function VBGetSwfVer(i)');
		document.writeln('on error resume next');
		document.writeln('Dim swControl, swVersion, functionReturnVal');
		document.writeln('swVersion = 0');
		document.writeln('functionReturnVal = false');
	  
		document.writeln('set swControl = CreateObject("ShockwaveFlash.ShockwaveFlash."+CStr(i))');
		document.writeln('if (IsObject(swControl)) then');
		document.writeln('		functionReturnVal = true');
		document.writeln('end if');
		document.writeln('VBGetSwfVer = functionReturnVal');
		document.writeln('End Function');
		document.writeln('// -->');
		document.writeln('</script>')
	},
	init: function(){
		this.VBScriptForFlash();
	}
}

ru.sokfitness.vv.vbScriptForIE.init();