if(window!=top){top.location.href = location.href;}
//Preload Some Images
function MM_preloadImages() {
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];}}
}
//Jump menu staff
function MM_jumpMenu(targ,selObj,restore){
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//POP UP Window
function displayWindow(theURL,winName,width,height,features) {
   var window_width = width;
   var window_height = height;
   var newfeatures= features;
   var window_top = (screen.height-window_height)/2;
   var window_left = (screen.width-window_width)/2;
   newWindow=window.open(''+ theURL + '',''+ winName + '','width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + ',features=' + newfeatures + '');
   newWindow.focus();
}

//***************** Screen Height Window*****************
function RPUWindow(theURL,winName,width,height,scrollbars,resizable){
var left = (screen.width-width)/2;
var top = (screen.height-height)/2;
var features='scrollbars='+scrollbars+',resizable='+resizable+',width='+width+',height='+height+',left='+left+',top='+top+'';
newWindow=window.open(theURL,winName,features);
newWindow.focus();
}

//Change Button Style JS
function change(styleID){
   var el=event.srcElement
   if (el.tagName=="INPUT")
   (el.tagName=="INPUT"&&el.type=="")
   event.srcElement.id=styleID;
}

//FORM BUTTON GET URL
function jumpto2(url){
window.location=url
}

//Show Hide Help
function showDetails(divID){     
   var strShow
   strShow = divID+"Show";
   var strHide
   strHide = divID+"Hide";
   document.all[divID].style.display = "block";
   document.all[strShow].style.display = "none";
   document.all[strHide].style.display = "block";
}
function hideDetails(divID){
   var strShow
   var strHide
   strShow = divID+"Show";
   strHide = divID+"Hide";
   document.all[divID].style.display = "none";
   document.all[strShow].style.display = "block";
   document.all[strHide].style.display = "none";
}
//Bookmark the site by clicking a button
function addbookmark(){
bookmarkurl="http://www.flowersplusgifts.com/"
bookmarktitle="Flower Gift delivery to Beijing Shanghai China with low best good price and good service"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
