/******************************************************
Copyright William Shi
http://www.successonlinemarketing.com

This is a popup file you need to upload to your web root folder
where your home page is.

The last statement is where you need to customize:
www.yoursite.com	use your web site 
popupfile.html		the html file you want to display in the popup window
200					the wideth of popup window
300					the height of popup window
yes				    always show scroll bars
center				show popup window at the center of the screen

When you want to try a different popup, just use a different popupfile.html, 
and change width and height, no need to re-run TE
******************************************************/

var exit = true;  //if you don't want popup, use this: var exit = false;

/****************************************************
     Author: Eric King
     Url: http://redrival.com/eak/index.shtml
     This script is free to use as long as this info is left in
     Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
****************************************************/
/*
 * Popup code generated by PopUpMaster Pro from 
 * http://popupmaster.com
 * Copyright (c)2003, Steve Shaw, takanomi.com
 */

var popWin=null;

function openPopup(mypage,myname,w,h,scroll,pos) {
	if(exit) {
		if(pos=="random")
			{LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
		if(pos=="center")
			{LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
		else if((pos!="center" && pos!="random") || pos==null)
			{LeftPosition=0;TopPosition=20;}
		settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
		
		popWin=window.open(mypage,myname,settings);		
		self.focus();
	}
}

// change the last line to fit your site
function popup()
{
	openPopup('http://www.freecarguru.com/cheapcarfinder.htm', '', 800, 800, 'yes', 'center');
}



