function checkForShockwave()
{
navigator.plugins.refresh();
if ( navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin ) 
	parent.location.reload();
else
	setTimeout( "checkForShockwave()", 1000 );
}
var ShockMode = 0
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && 
  navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
	ShockMode = 1;
}
if (!ShockMode && navigator.appName && navigator.appName.indexOf("Netscape") != - 1 && navigator.appVersion.indexOf("4.") != - 1
&& navigator.javaEnabled() && netscape.softupdate.Trigger.UpdateEnabled() && document.cookie.indexOf("StartedShockwaveInstall") == -1) {
	var jarPath = new String("");
	if (navigator.platform.indexOf("Win32") >= 0 )
		jarPath = "http://download.macromedia.com/pub/shockwave/jars/english/silentflash32.jar"
	else if (navigator.platform.indexOf("Win16") >=0 )
		jarPath = "http://download.macromedia.com/pub/shockwave/jars/english/silentflash16.jar"
	else if (navigator.platform.indexOf("MacPPC") >=0 )
		jarPath = "http://download.macromedia.com/pub/shockwave/jars/english/silentflashppc.jar"
	if (jarPath.length) {
		netscape.softupdate.Trigger.StartSoftwareUpdate (jarPath, netscape.softupdate.Trigger.FORCE_MODE);
		document.cookie='StartedShockwaveInstall;path=/;'
		setTimeout("checkForShockwave()", 1000);
	}
}

//prevent right click 
//function right(e) {
//if (navigator.appName == 'Netscape' && 
//(e.which == 3 || e.which == 2))
//return false;
//else if (navigator.appName == 'Microsoft Internet Explorer' && 
//(event.button == 2 || event.button == 3)) {
//alert("RussianBeautyNika.com - © 2006-All Rights Reserved");
//return false;
//}
//return true;
//}
//document.onmousedown=right;
//if (document.layers) window.captureEvents(Event.MOUSEDOWN);
//window.onmousedown=right;


function openPopUp2(pageName) {
	var height = 0;
	var height600 = 400;
var height800 = 500;
var height1024 = 655;
	var width = 0;
	var width600 = 516;
var width800 = 516;
var width1024 = 500;
	var scroll = "";
	var scrollno = "no";
	var scrollyes = "yes";
if (screen.width == 640)
{
height = height600;
width = width600;
scroll = scrollyes;
}
else if (screen.width == 800)
{
height = height800;
width = width800;
scroll = scrollyes;
}
else if (screen.width == 1024)
{
height = height1024;
width = width1024;
scroll = scrollno;
}
else
 {
 height= height1024;
 width = width1024;
 scroll = scrollno;
 }

	var newWindow = window.open(pageName,'detail','scrollbars='+scroll+',resizable=no,height='+height+',width='+width+',left=0,top=0');
	if (newWindow.opener == null) {
		newWindow.opener = window;
}
	else {
		browserVer = parseInt(navigator.appVersion);
		if(browserVer >3) {newWindow.focus();}
	}
}


function openPopUp3(pageName,name,scroll,w,h) {
	var newWindow = window.open(pageName,name,'scrollbars='+scroll+',resizable=no,height='+h+',width='+w+',left=20,top=20');
	if (newWindow.opener == null) {
		newWindow.opener = window;
}
	else {
		browserVer = parseInt(navigator.appVersion);
		if(browserVer >3) {newWindow.focus();}
	}
}


