var slideshow_width="100px";var slideshow_height="75px";var pause=4000;var ie4=document.all;var dom=document.getElementById;var curpos=10;var degree=10;var curcanvas="canvas0";var curimageindex=0;var nextimageindex=1;var currentItemID="";var IFrameObj;function bookmarkItem(){if(document.frmLogin.loggedIn==undefined){alert("Sorry, please sign in to add this item to your favourites.\n\nIf you have not become a member yet,\njoin the rest of the community for FREE now.");return false;}if(!document.createElement){return true;}var IFrameDoc;var URL="http://sg.offerstation.com/bookmark.php?bm="+currentItemID;if(!IFrameObj&&document.createElement){try{var tempIFrame=document.createElement("iframe");tempIFrame.setAttribute("id","RSIFrame");tempIFrame.style.border="0px";tempIFrame.style.width="0px";tempIFrame.style.height="0px";tempIFrame.style.borderStyle="none";tempIFrame.style.position="absolute";tempIFrame.style.left="0px";tempIFrame.style.top="0px";IFrameObj=document.body.appendChild(tempIFrame);if(document.frames){IFrameObj=document.frames.RSIFrame;}}catch(exception){iframeHTML='<iframe id="RSIFrame" style="';iframeHTML+="border:0px;";iframeHTML+="width:0px;";iframeHTML+="height:0px;";iframeHTML+="position:absolute;";iframeHTML+="border-style:none;";iframeHTML+="left:0px;";iframeHTML+="top:0px;";iframeHTML+='"></iframe>';document.body.innerHTML+=iframeHTML;IFrameObj=new Object();IFrameObj.document=new Object();IFrameObj.document.location=new Object();IFrameObj.document.location.iframe=document.getElementById("RSIFrame");IFrameObj.document.location.replace=function(location){this.iframe.src=location;};}}if(navigator.userAgent.indexOf("Gecko")!=-1&&!IFrameObj.contentDocument){setTimeout("bookmarkItem()",10);return false;}if(IFrameObj.contentDocument){IFrameDoc=IFrameObj.contentDocument;}else{if(IFrameObj.contentWindow){IFrameDoc=IFrameObj.contentWindow.document;}else{if(IFrameObj.document){IFrameDoc=IFrameObj.document;}else{return true;}}}IFrameDoc.location.replace(URL);alert("Your item has been added to your favourites.\n\nTo view or remove your favourites,\nclick on the Favourites tab above.","OfferStation.com");return false;}function viewDetails(){var URL="http://sg.offerstation.com"+currentItemID;top.document.location=URL;}function removeBookmark(){if(!document.createElement){return true;}if(!confirm("Are you sure you wish to remove your favourite?\nThis action cannot be undone.")){return false;}var IFrameDoc;var URL="http://sg.offerstation.com/removebookmark.php?bm="+currentItemID;if(!IFrameObj&&document.createElement){try{var tempIFrame=document.createElement("iframe");tempIFrame.setAttribute("id","RSIFrame");tempIFrame.style.border="0px";tempIFrame.style.width="0px";tempIFrame.style.height="0px";tempIFrame.style.borderStyle="none";tempIFrame.style.position="absolute";tempIFrame.style.left="0px";tempIFrame.style.top="0px";IFrameObj=document.body.appendChild(tempIFrame);if(document.frames){IFrameObj=document.frames.RSIFrame;}}catch(exception){iframeHTML='<iframe id="RSIFrame" style="';iframeHTML+="border:0px;";iframeHTML+="width:0px;";iframeHTML+="height:0px;";iframeHTML+="position:absolute;";iframeHTML+="border-style:none;";iframeHTML+="left:0px;";iframeHTML+="top:0px;";iframeHTML+='"></iframe>';document.body.innerHTML+=iframeHTML;IFrameObj=new Object();IFrameObj.document=new Object();IFrameObj.document.location=new Object();IFrameObj.document.location.iframe=document.getElementById("RSIFrame");IFrameObj.document.location.replace=function(location){this.iframe.src=location;};}}if(navigator.userAgent.indexOf("Gecko")!=-1&&!IFrameObj.contentDocument){setTimeout("bookmarkItem()",10);return false;}if(IFrameObj.contentDocument){IFrameDoc=IFrameObj.contentDocument;}else{if(IFrameObj.contentWindow){IFrameDoc=IFrameObj.contentWindow.document;}else{if(IFrameObj.document){IFrameDoc=IFrameObj.document;}else{return true;}}}IFrameDoc.location.replace(URL);alert("Your favourite has been removed.\n\nClick OK to refresh your Favourites page.","asd");return false;}