// JavaScript Documentvar strSiteRoot = "http://www.miniclassic.ru/"; var strImgFolderPath = "images/models/";var strPhotoWinURL = "show_photo.html?";var objPhotoWinHndl = null;function IsStandardBrowser(){    var bMSIE = false;    var bMSIE4, bMSIE5, bMSIE55, bMSIE6;    var bNetscape = false, bNetscape_2 = false, bNetscape_3 = false,         bNetscape_4 = false;    var ua = window.navigator.userAgent;    var an = window.navigator.appName;    // Is it IE?    bMSIE = (ua.indexOf("MSIE")>=1);    if (bMSIE)    {       // IE4       bMSIE5 = (ua.indexOf("MSIE 4.0")>=1);            // IE5       bMSIE5 = (ua.indexOf("MSIE 5.0")>=1);             // IE5.5       bMSIE55 = (ua.indexOf("MSIE 5.5")>=1);             //IE6       bMSIE6 = (ua.indexOf("MSIE 6.0")>=1);       //document.write("Browser is the MS InternetExplorer");              // If the user agent is InternetExplorer-based browser returns FALSE.       return false; 	          }    else if (an == "Netscape")    {        bNetscape = true;        appVer = parseInt(navigator.appVersion);        if (appVer >= 4)            bNetscape_4 = true;        else if (appVer >= 3)            bNetscape_3 = true;        else            bNetscape_2 = true;	//document.write("Browser is the Netscape-based.");    }   	else if (an == "Opera")   	{   		// Opera like IE   		return false; 	   	}     else    {	// All other browsers.	//	document.write("Browser is some specific type: " + an);    }    // If user agent is Non-InternetExplorer-based browser returs TRUE.     return true;}function CurentDate(){	var nYearPatch = 0;		if (IsStandardBrowser())	{	   nYearPatch = 1900; // Use begining date if user browser is non-MSIEbased.	}		var strTodayIs = "Сегодня: "	var objCurrentDate = new Date();	document.write(strTodayIs + objCurrentDate.getDate() + "." + (objCurrentDate.getMonth()+1) + 				   "." + (objCurrentDate.getYear() + nYearPatch));}function GetLastChangesDate(){	document.write("24.02.2009");}function GetSiteVersion(){	document.write("Версия 1.1");}function OpenChapter(strChapterFileName){			document.location = strSiteRoot + strChapterFileName;}function OpenChapter2(strCaption, strChapterFileName){			var strURL = strSiteRoot + strChapterFileName;	document.write('<a href="' + strURL +'" target="_top">' + strCaption + '</a>');}function CreateOrder(strProdID, strProdTitle){	var strSubject = escape("Order for models");		var strLerretBegining = escape("Hello, please send to me the following models:");	var strLetterBody = strLerretBegining + "%0d%0a" + strProdID  + "%20-%20" + escape(strProdTitle);	document.location =  GetOwnerAddr() +  '?subject=' + strSubject + '&charset=windows-1251&body=' + strLetterBody;}function ShowFoto(picName){	var strResultURL = strSiteRoot + strPhotoWinURL + strImgFolderPath + picName;		var bPhotoWinClosed = true;		if(objPhotoWinHndl != null)	{		bPhotoWinClosed = objPhotoWinHndl.closed;	}		strResultURL = strResultURL + "?" + bPhotoWinClosed;				objPhotoWinHndl = window.open(strResultURL, 'popUpWin', 'toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbar=0, resizable=0, copyhistory=0, width=1, height=1');}function TranslateToEnglish(){	var strBeginURL = "http://www.online-translator.com/url/tran_url.asp?lang=en&url=";		var strEndURL= "&direction=re&template=General&cp1=CP1251&cp2=NO&autotranslate=on&transliterate=on&psubmit2.x=30&psubmit2.y=9";		var strLinkText = "Translate this page to English by Prompt";	var strResURL = strBeginURL + escape(document.location) + strEndURL;		document.write('<a href=' + strResURL + ' target="_top">' + strLinkText + '</a>');}// The code idea has been geted from http://rusdoc.kulichki.ru/public/Internet/zasita_adres_email.shtml// --------------------------------------------------------------------------------------function GetAddr(strName,  nServID) { 	var aServers = new  Array; 	aServers[0] = "miniclassic.ru"; 	aServers[1] = "gmail.com"; 			var strAction = "mailto:"		var strAddr =  strAction + strName  +  '@'  +  aServers[nServID]; 		return  strAddr; } function CreateWebMasterNotification() { 	window.location = GetAddr('vnikiforov',  1); } function GetOwnerAddr(){	return GetAddr('sales',  0)}function CreateOwnerNotification() { 	window.location = GetOwnerAddr(); } // --------------------------------------------------------------------------------------