var isDHTML = 0;
var isID = 0;
var isAll = 0;
var isLayers = 0;

if (document.getElementById) {isID = 1; isDHTML = 1;}
else {
	if (document.all) {isAll = 1;}
	else {
		browserVersion = parseInt (navigator.appVersion);
	if ((navigator.appName.indexOf ('Netscape') != -1) && (browserVersion == 4)) {isLayers = 1; isDHTML = 1;}
}}


function findDOM(objectID,withStyle) {
	if (withStyle == 1) {
		if (isID) { return (document.getElementById (objectID).style) ; }
		else {
			if (isAll) { return (document.all[objectID].style); }
		else {
			if (isLayers) { return (document.layers[objectID]); }
			};}
}
else {
		if (isID) { return (document.getElementById (objectID)) ; }
		else {
			if (isAll) { return (document.all[objectID]); }
		else {
			if (isLayers) { return (document.layers[objectID]); }
			};}
}
}


function openWindowNoprob() {
  popupWin = window.open('noprob_popup.html','noprob_popup','width=250,height=250,left=250,top=10');
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

	var tall = 200;
	var wide = 200;
	var step = .40;
	var delay = 200;
	var nextStep = 0;
	var numObjects = 8;
	var Xpos = 80;
	var Ypos = 280;

function objectsFloat() {
for (var xx = 1 ; xx < (numObjects + 1) ; xx++ ) {
var objectID = 'object' +xx;
domStyle = findDOM(objectID,1)
domStyle.top = Ypos +Math.cos((20*Math.sin (nextStep/(30+xx)))+xx*70)*tall*(Math.sin (10+nextStep/10)+0.2)*Math.cos((nextStep+xx*55)/10);
domStyle.left = Xpos +Math.sin((20*Math.sin (nextStep/30))+xx*70)*wide*(Math.sin (10+nextStep/(10+xx))+0.2)*Math.cos((nextStep+xx*55)/10);
}
nextStep += step;
setTimeout('objectsFloat()', delay) ;
}

//   hide this script from those pesky non-javascript-enabled browsers
// function that displays status bar message
var showMsg = navigator.userAgent != "Mozilla/4.0 (compatible; MSIE 4.0; Mac_PowerPC)";
function dmim(msgStr) {
  document.returnValue = false;
  if (showMsg) {
    window.status = msgStr;
    document.returnValue = true;
  }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function newwindowC() {
	newWindow = open('https://safe.dbLiquid.net/clients_secure/cr_order.html','crorder','status=yes,scrollbars=yes,resizable=yes,width=680,height=580');
}

function newwindow() {
        newWindow = open('price_cc.html','prcfrm','status=yes,scrollbars=yes,resizable=yes,width=800,height=550,left=300,top=50,margin="0"');
}


function newwindowG() {
        newWindow = open('all_girls.html','spcl','status=yes,scrollbars=yes,resizable=yes,width=640,height=460,left=300,top=50,margin="0"');
}

function openWndw(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function openWindowNoprob() {
  popupWin = window.open('noprob_popup.html','noprob_popup','width=250,height=250,left=250,top=10');
}


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
