// JavaScript Document

fimoiInit();

                //Prepare some variables
                var mode = "home";
				                var currentUrl = "http://www.howotgetpregnantguide.com/";
                if(currentUrl.substring(currentUrl.length-1,currentUrl.length) == '/')
                    currentUrl = currentUrl.substring(0,currentUrl.length-1);
                var homeUrl = "http://www.howotgetpregnantguide.com";

                //Check if in the right page
                var isRightPage = false;
                if(mode == "home"){
                    if(currentUrl.toLowerCase() == homeUrl.toLowerCase())
                        isRightPage = true;
                }else{
                    if(mode == "specific"){
                        var urls = "http://www.howotgetpregnantguide.com,http://www.howotgetpregnantguide.com".split(',');
                        for(var i=0;i<urls.length;i++)
                        {
                          if(currentUrl.toLowerCase() == urls[i].toLowerCase())
                          {
                            isRightPage = true;
                            break;
                          }
                        }
                    }else{
                        if(mode == "all"){
                            isRightPage = true;
                        }
                    }
                }

                //If in the right page then check if in appropriated period
                if(isRightPage){
                    var lifetime = 0;
                    //If in the right time/period
                    var isRightTime = false;
                    if(lifetime > 0){
                        var cook = readCookie('htgpgoptin');
                        if(cook == null){
                            isRightTime = true;
                            createCookie('htgpgoptin','http://www.howotgetpregnantguide.com',lifetime);
                        }
                    }else //Always mode
                    {
                        isRightTime = true;
                    }

                    if(isRightTime)
					{
                        popOverDelay("480","840","true","4");
					}
                }
