(function($){$.fn.slideBox=function(params){var content=$(this).html();var defaults={width:"100%",height:"200px",position:"bottom"}
if(params)$.extend(defaults,params);var divPanel=$("<div class='slide-panel'>");var divContent=$("<div class='content_slidebox'>");var height=document.documentElement.clientHeight;$(divContent).html(content);$(divPanel).addClass(defaults.position);$(divPanel).css("width",defaults.width);$(divPanel).css("left",(100-parseInt(defaults.width))/2+"%");if(defaults.position=="top")
$(divPanel).append($(divContent));height=height-40;heightIE=height+100;$(divPanel).append("<div class='slide-button' style='position:fixed;left:100px;top:"+height+"px;margin-bottom:0px;*margin-bottom:-39px;' onclick='dd()'>Post Buy Offer</div>");$(divPanel).append("<div style='display: none' id='close-button' class='slide-button'>Close</div>");$(divPanel).append("<div class='slide-button' style='position:fixed;float:right;right:100px;*right:0px;margin-right:0px;*margin-right:30px;top:"+height+"px;' onclick='dd1()'>Post Sell Offer</div>");$(divPanel).append("<div class='slide-button' style='width:100%;position:fixed;left:0px;top:"+(height+30)+"px;height:2px;margin-left:0px;margin-top:0px;*margin-top:-1px;' >&nbsp;</div>");if(defaults.position=="bottom")
$(divPanel).append($(divContent));$(this).replaceWith($(divPanel));$(".slide-button").click(function(){if($(this).attr("id")=="close-button")
$(divContent).animate({height:"0px"},1000);else
$(divContent).animate({height:defaults.height},1000);$(".slide-button").toggle();});};})(jQuery);function dd()
{var sell=document.getElementById("sell");var buy=document.getElementById("buy");buy.style.display="block";sell.style.display="none";}
function dd1()
{var sell=document.getElementById("sell");var buy=document.getElementById("buy");sell.style.display="block";buy.style.display="none";}
function checkEmail(inputvalue)
{var pattern=/^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/;if(pattern.test(inputvalue)){alert("true");}else{alert("false");}}
$(document).ready(function(){$("#testZone").slideBox({width:"100%",height:"295px",position:"bottom"});});
