ALTER TABLE `sevence`.`book_color` ADD COLUMN `bg_title_unavailable` VARCHAR(7) NULL DEFAULT NULL  AFTER `text_unconfirm` , ADD COLUMN `bg_note_unavailable` VARCHAR(7) NULL DEFAULT NULL  AFTER `bg_title_unavailable` , ADD COLUMN `text_unavailable` VARCHAR(7) NULL DEFAULT NULL  AFTER `bg_note_unavailable` ;
#RC 01.24.14 Mantis 1492: ADD columns in book_color table for unavailable bookings

UPDATE `sevence`.`book_color` SET `book_css`='#book_grid .book_slot {      color: <?text?>; }  #book_grid .book_slot .book_slot_title {      background: <?bg_title?>;      border-bottom: 1px solid <?text?>; }  #book_grid .book_slot .book_slot_note {      background: <?bg_note?>; }  #book_grid .book_slot.checked_in {      color: <?text_checked_in?>; }  #book_grid .book_slot.checked_in .book_slot_title {      background: <?bg_title_checked_in?>;      border-bottom: 1px solid <?text_checked_in?>; }  #book_grid .book_slot.checked_in .book_slot_note {      background: <?bg_note_checked_in?>; }  #book_grid .book_slot.paid {      color: <?text_paid?>; }  #book_grid .book_slot.paid .book_slot_title {      background: <?bg_title_paid?>;      border-bottom: 1px solid <?text_paid?>; }  #book_grid .book_slot.paid .book_slot_note {      background: <?bg_note_paid?>; }  #book_grid .book_slot.missing {      color: <?text_missing?>; }  #book_grid .book_slot.missing .book_slot_title {      background: <?bg_title_missing?>;      border-bottom: 1px solid <?text_missing?>; }  #book_grid .book_slot.missing .book_slot_note {      background: <?bg_note_missing?>; }  #book_grid .book_slot.upcoming {      color: <?text_upcoming?>; }  #book_grid .book_slot.upcoming .book_slot_title {      background: <?bg_title_upcoming?>;      border-bottom: 1px solid <?text_upcoming?>; }  #book_grid .book_slot.upcoming .book_slot_note {      background: <?bg_note_upcoming?>; }    #book_grid .book_slot.unconfirm {      color: <?text_unconfirm?>; }  #book_grid .book_slot.unconfirm .book_slot_title {      background: <?bg_title_unconfirm?>;      border-bottom: 1px solid <?text_unconfirm?>; }  #book_grid .book_slot.unconfirm .book_slot_note {      background: <?bg_note_unconfirm?>; } #book_grid .book_slot.unavailable {      color: <?text_unavailable?>; }  #book_grid .book_slot.unavailable .book_slot_title {      background: <?bg_title_unavailable?>;      border-bottom: 1px solid <?text_unavailable?>; }  #book_grid .book_slot.unavailable .book_slot_note {      background: <?bg_note_unavailable?>; } \n' WHERE `org`='3';
#RC 01.24.14 Mantis 1492: UPDATE data in book_color table field 'book_css'

INSERT INTO `email_marketing` (`default_email`,`type`,`id`,`org`,`active`,`name`,`subject`,`headline`,`narrative`,`body`,`send_on`,`email_cycle`,`queued_on`,`hide`,`show_event`,`show_article`,`email_design`,`client_or_org`,`client_type`,`marketing_list`,`marketing_list_opt`,`org_type`,`org_restrict`,`editor`,`photo`,`photo_filename`,`offer`,`event`,`campaign_type`,`push_type`,`edit_date`,`edit_prof`,`permalink`,`show_reward`,`email_trigger`) VALUES (NULL,1,'promo',967,1,'You’ve Won!','You’ve Won!','You’ve Won {offer} from {short_name}','To {name}\r\nFrom {short_name}\r\nFor {offer_value} or {offer}\r\n{offer_link}\r\n{rate_business}','To {name}<br />\r\nFrom {short_name}<br />\r\nFor {offer_value} or {offer}<br />\r\n{offer_link}<br />\r\n{rate_business}',NULL,1,NULL,0,0,0,4,0,'0','0',0,'ALL','NONE',0,0,'',0,0,0,0,'2014-01-09 06:40:42',12337,'you-ve-won-from-spaboom-defaults',0,'RR');
INSERT INTO `offer_type` (`org`,`offer_base`,`name`,`email_id`,`lead_days`,`expire_days`,`last_offer_id`,`active`) VALUES (967,'promo','Promo','promo',0,60,10000,1);
#MM 01.09.14 Mantis 1499: insert email marketing for promo type

CREATE  TABLE `sevence`.`slot_machine_winner` (
  `slot_machine_winners` INT(11) NOT NULL AUTO_INCREMENT ,
  `org_client` INT(11) NULL ,
  `offer` INT(11) NULL ,
  `date_wins` DATETIME NULL ,
  PRIMARY KEY (`slot_machine_winners`) );
#RC 01.10.14 Mantis 1476: CREATE table slot_machine_winner

CREATE  TABLE `sevence`.`provider` (
  `provider` INT(11) NOT NULL AUTO_INCREMENT ,
  `provider_name` VARCHAR(45) NULL ,
  PRIMARY KEY (`provider`) );
#RC 01.10.14 Mantis 1476: CREATE table provider

CREATE  TABLE `sevence`.`org_provider_link` (
  `org_provider_link` INT(11) NOT NULL AUTO_INCREMENT ,
  `provider` INT(11) NULL ,
  `org` INT(11) NULL ,
  `link` TEXT NULL ,
  PRIMARY KEY (`org_provider_link`) ,
  INDEX `provider_idx` (`provider` ASC) ,
  CONSTRAINT `provider`
    FOREIGN KEY (`provider` )
    REFERENCES `sevence`.`provider` (`provider` )
    ON DELETE NO ACTION
    ON UPDATE CASCADE);
#RC 01.10.14 Mantis 1476: CREATE table org_provider_link

ALTER TABLE `sevence`.`provider` ADD COLUMN `provider_display` VARCHAR(45) NULL  AFTER `provider_name` ;
#RC 01.10.14 Mantis 1476: ALTER table provider

ALTER TABLE `sevence`.`offer` ADD COLUMN `sweepstake` TINYINT(1) NOT NULL DEFAULT '0'  AFTER `end` , ADD COLUMN `last_month_won` VARCHAR(45) NULL  AFTER `sweepstake` ;
#RC 01.10.14 Mantis 1476: ALTER table offer

INSERT INTO `template` (`template`,`type`,`name`,`content`,`no_sidebar_css`,`tab`,`hide`,`home_page`,`background_photo`,`background_photo_css`,`superadmin_only`) VALUES (117,3,'JSlot','/*\r\nHTML5 Reset\r\n--------------------------------------------- */\r\narticle,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em;margin:.67em 0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}mark{background:#ff0;color:#000}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}pre{white-space:pre-wrap}q{quotes:\"\\201C\" \"\\201D\" \"\\2018\" \"\\2019\"}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}button,input{line-height:normal}button,select{text-transform:none}button,html input[type=\"button\"],input[type=\"reset\"],input[type=\"submit\"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}input[type=\"checkbox\"],input[type=\"radio\"]{box-sizing:border-box;padding:0}input[type=\"search\"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=\"search\"]::-webkit-search-cancel-button,input[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}\r\n\r\n/* Box Sizing\r\n--------------------------------------------- */\r\n*, input[type=\"search\"] {\r\n	-webkit-box-sizing: border-box;\r\n	-moz-box-sizing:    border-box;\r\n	box-sizing:         border-box;\r\n}\r\n\r\n/* Float Clearing\r\n--------------------------------------------- */\r\n.archive-pagination:before,\r\n.clearfix:before,\r\n.entry:before,\r\n.entry-pagination:before,\r\n.footer-widgets:before,\r\n.nav-primary:before,\r\n.nav-secondary:before,\r\n.site-container:before,\r\n.site-footer:before,\r\n.site-header:before,\r\n.site-inner:before,\r\n.wrap:before {\r\n	content: \" \";\r\n	display: table;\r\n}\r\n\r\n.archive-pagination:after,\r\n.clearfix:after,\r\n.entry:after,\r\n.entry-pagination:after,\r\n.footer-widgets:after,\r\n.nav-primary:after,\r\n.nav-secondary:after,\r\n.site-container:after,\r\n.site-footer:after,\r\n.site-header:after,\r\n.site-inner:after,\r\n.wrap:after {\r\n	clear: both;\r\n	content: \" \";\r\n	display: table;\r\n}\r\n\r\n\r\n/* Typographical Elements\r\n--------------------------------------------- */\r\nbody, html {\r\n  height: 100%;\r\n}\r\n\r\nhtml {\r\n	font-size: 62.5%; /* 10px browser default */\r\n}\r\n\r\nbody {\r\n	background: #EEE;\r\n	color: #414142;\r\n	font-family: \'Helvetica Neue\', Helvetica, Arial, sans-serif;\r\n	font-size: 18px;\r\n	font-weight: 300;\r\n	line-height: normal;\r\n}\r\n\r\np {\r\n	line-height: 1.4;\r\n	margin: 0 0 1em;\r\n}\r\n\r\n\r\n/* Links\r\n--------------------------------------------- */\r\na,\r\nbutton,\r\ninput:focus,\r\ninput[type=\"button\"],\r\ninput[type=\"reset\"],\r\ninput[type=\"submit\"],\r\ntextarea:focus,\r\n.button {\r\n	-webkit-transition: all 0.1s ease-in-out;\r\n	-moz-transition:    all 0.1s ease-in-out;\r\n	-ms-transition:     all 0.1s ease-in-out;\r\n	-o-transition:      all 0.1s ease-in-out;\r\n	transition:         all 0.1s ease-in-out;\r\n}\r\n\r\na {\r\n	color: #cd2032;\r\n}\r\n\r\na:hover {\r\n	text-decoration: none;\r\n}\r\n\r\n.row.red a {\r\n	color: #FFF;\r\n}\r\n\r\n\r\n/* Headings\r\n--------------------------------------------- */\r\nh1, h2, h3, h4 {\r\n	font-weight: normal;\r\n	margin: 0 0 10px;\r\n}\r\n\r\nh1#page-title {\r\n	font-weight: bold;\r\n	margin-bottom: 0;\r\n	text-align: center;\r\n	text-transform: uppercase;\r\n}\r\n\r\n/* Forms\r\n--------------------------------------------- */\r\n::-webkit-input-placeholder {\r\n	color: #414142;\r\n}\r\n:-moz-placeholder { /* Mozilla Firefox 4 to 18 */\r\n	color: #414142;\r\n}\r\n::-moz-placeholder { /* Mozilla Firefox 19+ */\r\n	color: #414142;\r\n}\r\n:-ms-input-placeholder { /* Internet Explorer 10+ */\r\n	color: #414142;\r\n}\r\n\r\ninput[type=\"text\"], input[type=\"email\"], input[type=\"submit\"], textarea {\r\n    border: 1px solid #ABA8A8;\r\n    box-shadow: inset 0 0 2px #EEE;\r\n    color: #414142;\r\n    float: left;\r\n    font-size: 0.9em;\r\n    height: 42px;\r\n    margin: 0;\r\n    padding: .5em 1em;\r\n    width: 270px;\r\n}\r\n\r\ninput[type=\"submit\"], #control {\r\n	background: #cd2032;\r\n	border: 0;\r\n	color: #FFF;\r\n	float: right;\r\n	font-size: 1em;\r\n	width: 132px;\r\n}\r\n\r\ntextarea {\r\n	font-size: .8em;\r\n	height: 90px;\r\n	padding: 1em;\r\n	width: 100%;\r\n}\r\n\r\n/* Containers & Rows\r\n--------------------------------------------- */\r\n#wrapper {\r\n	height: 100%;\r\n	margin: 0 auto;\r\n	max-width: 600px;\r\n	width: 100%;\r\n}\r\n\r\n#container {\r\n	background: #FFF;\r\n	border-left: 4px solid #414142;\r\n	border-right: 4px solid #414142;\r\n	float: left;\r\n	font-size: 1em;\r\n	height: 100%;\r\n	min-height: 700px;\r\n	width: 100%;\r\n}\r\n\r\n.header img {\r\n	display: block;\r\n	margin: 0 auto;\r\n	max-width: 100%;\r\n}\r\n\r\n.game p {\r\n	margin: .5em 0 1em;\r\n	text-align: center;\r\n}\r\n\r\n.row {\r\n	border-bottom: 1px solid #a1a1a1;\r\n	float: left;\r\n	padding: 2em;\r\n	width: 100%;\r\n}\r\n\r\n.row.game {\r\n	border-bottom: 0;\r\n}\r\n\r\n.row.reviews {\r\n	padding-top: 0;\r\n}\r\n\r\n.inner {\r\n	margin: 0 auto;\r\n	max-width: 408px;\r\n	width: 100%;\r\n}\r\n\r\n.row.white {\r\n	color: #cd2032;\r\n}\r\n\r\n.row.gray {\r\n	background: #f1f1f1;\r\n}\r\n\r\n.row.dark-gray {\r\n	background: #aba8a8;\r\n}\r\n\r\n.row.dark-gray p {\r\n	margin-bottom: 0;\r\n}\r\n\r\n.row.white h1, .row.white h2 {\r\n	color: #414142;\r\n}\r\n\r\n.row.red {\r\n	background: #cd2032;\r\n	color: #FFF;\r\n}\r\n\r\n.box {\r\n    float: left;\r\n    margin-bottom: 2em;\r\n    width: 100%;\r\n}\r\n\r\n.one-third {\r\n	float: left;\r\n	margin-left: 2.564102564102564%;\r\n	width: 31.623931623931625%;\r\n}\r\n\r\n.first {\r\n	margin-left: 0;\r\n	padding-top: 0;\r\n}\r\n\r\n.stars {\r\n	float: left;\r\n	margin-bottom: 1em;\r\n	text-align: center;\r\n	width: 100%;\r\n}\r\n\r\n.social-media a, .footer a {\r\n	text-decoration: none;\r\n}\r\n\r\n.social-media img {\r\n	margin-right: .8em;\r\n}\r\n\r\n.social-media img:hover {\r\n	opacity: .7;\r\n}\r\n\r\n.footer {\r\n	font-size: .75em;\r\n	padding: 1em;\r\n}\r\n\r\n.footer p {\r\n	margin: 0;\r\n	padding: 0;\r\n}\r\n\r\n.footer span {\r\n	margin-right: 1em;\r\n}\r\n\r\n.footer a {\r\n	color: #414142;\r\n}\r\n\r\n.footer a:hover {\r\n	text-decoration: underline;\r\n}\r\n\r\n.one-third-container:after,\r\n#low-rating:after{\r\n	content: \".\";\r\n	display: block;\r\n	clear: both;\r\n	visibility: hidden;\r\n	line-height: 0;\r\n	height: 0;\r\n}\r\n \r\n.one-third-container,\r\n#low-rating{\r\n	display: inline-block;\r\n}\r\n \r\nhtml[xmlns] .one-third-container,\r\nhtml[xmlns] #low-rating{\r\n	display: block;\r\n}\r\n \r\n* html .one-third-container,\r\n* html #low-rating{ \r\n	height: 1%;\r\n}\r\n\r\n\r\n.one-third-container,\r\n#low-rating{\r\n    display: block;\r\n}\r\n\r\n/* Slot Machine\r\n--------------------------------------------- */\r\n.container {\r\n	float: left;\r\n	margin:0 auto;\r\n	position: relative;\r\n	text-align: center;\r\n	width:100%;\r\n}\r\n\r\n.slot-wrapper {\r\n	 display: block;\r\n	 margin: 0 auto;\r\n	 text-align: center;\r\n}\r\n\r\n.slot {\r\n	background:url({boomtime_path}/img/jslot_images/reel_normal.jpg) repeat-y 0 4px;\r\n    border: 3px solid #3a3a3c;\r\n    box-shadow: 0 0 6px #333 inset;\r\n    display: inline-block;\r\n    height: 154px;\r\n	-webkit-transition: background-image .8s ease-in-out;\r\n	-moz-transition: background-image .8s ease-in-out;\r\n	-ms-transition: background-image .8s ease-in-out;\r\n	-o-transition: background-image .8s ease-in-out;\r\n	transition: background-image .8s ease-in-out;\r\n    width: 132px;\r\n}\r\n\r\n.motion {\r\n	background-image:url({boomtime_path}/img/jslot_images/reel_blur.jpg);\r\n}\r\n\r\nbutton {\r\n    cursor: pointer;\r\n    display: block;\r\n    font-size: 16px;\r\n    height: 33px;\r\n    margin: 20px auto;\r\n    width: 138px;\r\n}\r\n\r\n#result {\r\n    font-weight: bold;\r\n    margin: 20px 0;\r\n}\r\n\r\n#jackpot {\r\n	background: rgba(0, 0, 0, .8);\r\n	color: #FFF;\r\n	display: none;\r\n	float: left;\r\n	margin: 0 auto;\r\n	position: absolute;\r\n	top: -17px;\r\n	width: 100%;\r\n}\r\n\r\n#jackpot .wrapper {\r\n	border: 5px solid #FFF;\r\n	margin: 1em;\r\n	padding: 1em;\r\n}\r\n\r\n#jackpot h1 {\r\n	color: #CD2032;\r\n}\r\n\r\n#jackpot p {\r\n	margin-bottom: 0;\r\n}\r\n\r\n#jackpot p + p {\r\n	margin-top: 0;\r\n}\r\n\r\n.clear {\r\n	clear: both;\r\n}\r\n\r\n\r\n/* Media Queries\r\n--------------------------------------------- */\r\n/* iPads (portrait and landscape) ----------- */\r\n@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {\r\n	#wrapper {\r\n		max-width: 100%;\r\n	}\r\n	\r\n	#container {\r\n		border: 0;\r\n		min-width: 100%;\r\n	}\r\n}\r\n\r\n@media screen and (max-width: 650px) {\r\n	#wrapper {\r\n		max-width: 100%;\r\n	}\r\n	\r\n	#container {\r\n		border: 0;\r\n		min-width: 100%;\r\n	}\r\n}\r\n\r\n@media screen and (max-width: 485px) {\r\n	h1#page-title {\r\n		font-size: 31px;\r\n	}\r\n	\r\n	.row {\r\n		padding: 2em 1em;\r\n	}\r\n	\r\n	.inner {\r\n		max-width: 341px;\r\n	}\r\n	\r\n	input[type=\"submit\"], #control {\r\n		width: 110px;\r\n	}\r\n	\r\n	input[type=\"email\"] {\r\n		width: 224px;\r\n	}\r\n	\r\n	.slot {\r\n		background-size: 104px 1730px;\r\n		height: 128px;\r\n		width: 110px;\r\n	}\r\n	\r\n	#jackpot {\r\n		top: -78px;\r\n	}\r\n	\r\n	#jackpot p {\r\n		line-height: normal;\r\n	}\r\n	\r\n	#jackpot p:last-child {\r\n	    line-height: 15px;\r\n	    margin-top: 5px;\r\n	}\r\n	\r\n	textarea {\r\n		font-size: .72em;\r\n		height: 130px;\r\n	}\r\n}\r\n\r\n@media screen and (max-width: 380px) {\r\n	.inner {\r\n		width: 282px;\r\n	}\r\n	\r\n	input[type=\"submit\"], #control {\r\n		width: 90px;\r\n	}\r\n	\r\n	input[type=\"email\"] {\r\n		width: 186px;\r\n	}\r\n	\r\n	.slot {\r\n		background-size: 84px 1400px;\r\n		height: 105px;\r\n		width: 90px;\r\n	}\r\n	\r\n	#jackpot {\r\n		font-size: .85em;\r\n	}\r\n\r\n@media screen and (max-width: 340px) {\r\n	p {\r\n		font-size: 16px;\r\n	}\r\n	\r\n	.one-third {\r\n		margin-left: 0;\r\n		width: 100%;\r\n	}\r\n	\r\n	.one-third p {\r\n		margin: 0;\r\n	}\r\n	\r\n	.stars img {\r\n		max-width: 40px;\r\n	}\r\n}',NULL,0,0,'home',0,'',0);
#RC 01.10.14 Mantis 1476: INSERT table template

ALTER TABLE `sevence`.`offer` ADD COLUMN `promo_id` INT(11) NULL  AFTER `end` ;
#RD 01.14.14 Mastis 1498: Added Promo_id and sweepstake in offer field.

ALTER TABLE `sevence`.`org_gift_design` ADD COLUMN `mobile` TINYINT(1) NULL DEFAULT '0'  AFTER `update` ;
#RD 01.16.14 Mantis 1498: Added flag field to indetify org gift design is created from api

insert into client_type (client_type, org, name) values ('7777', 409, 'BIM');
#BEM 01.20.14: client_type for client created thru the BIM application (already run on production)

ALTER TABLE `sevence`.`billing_tran` ADD INDEX (`invoice`);
#BEM 01.20.14: index for billing_tran.invoice (already run on production)

UPDATE `sevence`.`template` SET `content`='/*\nHTML5 Reset\n--------------------------------------------- */\narticle,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em;margin:.67em 0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}mark{background:#ff0;color:#000}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}pre{white-space:pre-wrap}q{quotes:\"\\201C\" \"\\201D\" \"\\2018\" \"\\2019\"}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}button,input{line-height:normal}button,select{text-transform:none}button,html input[type=\"button\"],input[type=\"reset\"],input[type=\"submit\"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}input[type=\"checkbox\"],input[type=\"radio\"]{box-sizing:border-box;padding:0}input[type=\"search\"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=\"search\"]::-webkit-search-cancel-button,input[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}\n\n/* Box Sizing\n--------------------------------------------- */\n*, input[type=\"search\"] {\n	-webkit-box-sizing: border-box;\n	-moz-box-sizing:    border-box;\n	box-sizing:         border-box;\n}\n\n/* Float Clearing\n--------------------------------------------- */\n.archive-pagination:before,\n.clearfix:before,\n.entry:before,\n.entry-pagination:before,\n.footer-widgets:before,\n.nav-primary:before,\n.nav-secondary:before,\n.site-container:before,\n.site-footer:before,\n.site-header:before,\n.site-inner:before,\n.wrap:before {\n	content: \" \";\n	display: table;\n}\n\n.archive-pagination:after,\n.clearfix:after,\n.entry:after,\n.entry-pagination:after,\n.footer-widgets:after,\n.nav-primary:after,\n.nav-secondary:after,\n.site-container:after,\n.site-footer:after,\n.site-header:after,\n.site-inner:after,\n.wrap:after {\n	clear: both;\n	content: \" \";\n	display: table;\n}\n\n\n/* Typographical Elements\n--------------------------------------------- */\nbody, html {\n  height: 100%;\n}\n\nhtml {\n	font-size: 62.5%; /* 10px browser default */\n}\n\nbody {\n	background: #EEE;\n	color: #414142;\n	font-family: \'Helvetica Neue\', Helvetica, Arial, sans-serif;\n	font-size: 18px;\n	font-weight: 300;\n	line-height: normal;\n}\n\np {\n	line-height: 1.4;\n	margin: 0 0 1em;\n}\n\n\n/* Links\n--------------------------------------------- */\na,\nbutton,\ninput:focus,\ninput[type=\"button\"],\ninput[type=\"reset\"],\ninput[type=\"submit\"],\ntextarea:focus,\n.button {\n	-webkit-transition: all 0.1s ease-in-out;\n	-moz-transition:    all 0.1s ease-in-out;\n	-ms-transition:     all 0.1s ease-in-out;\n	-o-transition:      all 0.1s ease-in-out;\n	transition:         all 0.1s ease-in-out;\n}\n\na {\n	color: #cd2032;\n}\n\na:hover {\n	text-decoration: none;\n}\n\n.row.red a {\n	color: #FFF;\n}\n\n\n/* Headings\n--------------------------------------------- */\nh1, h2, h3, h4 {\n	font-weight: normal;\n	margin: 0 0 10px;\n}\n\nh1#page-title {\n	font-weight: bold;\n	margin-bottom: 0;\n	text-align: center;\n	text-transform: uppercase;\n}\n\n/* Forms\n--------------------------------------------- */\n::-webkit-input-placeholder {\n	color: #414142;\n}\n:-moz-placeholder { /* Mozilla Firefox 4 to 18 */\n	color: #414142;\n}\n::-moz-placeholder { /* Mozilla Firefox 19+ */\n	color: #414142;\n}\n:-ms-input-placeholder { /* Internet Explorer 10+ */\n	color: #414142;\n}\n\ninput[type=\"text\"], input[type=\"email\"], input[type=\"submit\"], textarea {\n    border: 1px solid #ABA8A8;\n    box-shadow: inset 0 0 2px #EEE;\n    color: #414142;\n    float: left;\n    font-size: 0.9em;\n    height: 42px;\n    margin: 0;\n    padding: .5em 1em;\n    width: 270px;\n}\n\ninput[type=\"submit\"], #control {\n	background: #cd2032;\n	border: 0;\n	color: #FFF;\n	float: right;\n	font-size: 1em;\n	width: 132px;\n}\n\ntextarea {\n	font-size: .8em;\n	height: 90px;\n	padding: 1em;\n	width: 100%;\n}\n\n/* Containers & Rows\n--------------------------------------------- */\n#wrapper {\n	height: 100%;\n	margin: 0 auto;\n	max-width: 600px;\n	width: 100%;\n}\n\n#container {\n	background: #FFF;\n	border-left: 4px solid #414142;\n	border-right: 4px solid #414142;\n	float: left;\n	font-size: 1em;\n	height: 100%;\n	min-height: 700px;\n	width: 100%;\n}\n\n.header.row {\n	background: url({boomtime_path}/img/jslot_images/tinpot-image.jpg) no-repeat center center #FFF;\n	background-size: 100%;\n}\n\n.header img {\n	display: block;\n	margin: 0 auto;\n	max-width: 100%;\n}\n\n.game p {\n	margin: .5em 0 1em;\n	text-align: center;\n}\n\n.row {\n	border-bottom: 1px solid #a1a1a1;\n	float: left;\n	padding: 2em;\n	width: 100%;\n}\n\n.row.game {\n	border-bottom: 0;\n	padding-bottom: 0;\n}\n\n.row.reviews {\n}\n\n.inner {\n	margin: 0 auto;\n	max-width: 408px;\n	width: 100%;\n}\n\n.row.white {\n	color: #cd2032;\n}\n\n.row.gray {\n	background: #f1f1f1;\n}\n\n.row.dark-gray {\n	background: #aba8a8;\n}\n\n.row.dark-gray p {\n	margin-bottom: 0;\n}\n\n.row.white h1, .row.white h2 {\n	color: #414142;\n}\n\n.row.red {\n	background: #cd2032;\n	color: #FFF;\n}\n\n.box {\n    float: left;\n    margin-bottom: 2em;\n    width: 100%;\n}\n\n.one-third {\n	float: left;\n	margin-left: 2.564102564102564%;\n	width: 31.623931623931625%;\n}\n\n.first {\n	margin-left: 0;\n	padding-top: 0;\n}\n\n.stars {\n	float: left;\n	margin-bottom: 1em;\n	text-align: center;\n	width: 100%;\n}\n\n.social-media a, .footer a {\n	text-decoration: none;\n}\n\n.social-media img {\n	margin-right: .8em;\n}\n\n.social-media img:hover {\n	opacity: .7;\n}\n\n.footer {\n	font-size: .75em;\n	padding: 1em;\n}\n\n.footer p {\n	margin: 0;\n	padding: 0;\n}\n\n.footer span {\n	margin-right: 1em;\n}\n\n.footer a {\n	color: #414142;\n}\n\n.footer a:hover {\n	text-decoration: underline;\n}\n\n.one-third-container:after,\n#low-rating:after{\n	content: \".\";\n	display: block;\n	clear: both;\n	visibility: hidden;\n	line-height: 0;\n	height: 0;\n}\n \n.one-third-container,\n#low-rating{\n	display: inline-block;\n}\n \nhtml[xmlns] .one-third-container,\nhtml[xmlns] #low-rating{\n	display: block;\n}\n \n* html .one-third-container,\n* html #low-rating{ \n	height: 1%;\n}\n\n\n.one-third-container,\n#low-rating{\n    display: block;\n}\n/* Slot Machine\n--------------------------------------------- */\n.row.slotmachine {\n	background: url({boomtime_path}/img/jslot_images/tinpot-image.jpg) no-repeat center center #FFF;\n	background-size: 100%;\n	position: relative;\n}\n\n.container {\n	float: left;\n	margin:0 auto;\n	position: relative;\n	text-align: center;\n	width: 100%;\n}\n\n.slot-wrapper {\n	 display: block;\n	 margin: 0 auto;\n	 text-align: center;\n}\n\n.slot {\n	background:url({boomtime_path}/img/jslot_images/reel_normal_tinpot_v2.jpg) repeat-y 0 4px;\n    border: 3px solid #3a3a3c;\n    box-shadow: 0 0 6px #333 inset;\n    display: inline-block;\n    height: 154px;\n	-webkit-transition: background-image .8s ease-in-out;\n	-moz-transition: background-image .8s ease-in-out;\n	-ms-transition: background-image .8s ease-in-out;\n	-o-transition: background-image .8s ease-in-out;\n	transition: background-image .8s ease-in-out;\n    width: 132px;\n}\n\n.motion {\n	background-image:url({boomtime_path}/img/jslot_images/reel_blur_tinpot_v2.jpg);\n}\n\nbutton {\n    cursor: pointer;\n    display: block;\n    font-size: 16px;\n    height: 33px;\n    margin: 20px auto;\n    width: 138px;\n}\n\n#result {\n    font-weight: bold;\n    margin: 20px 0;\n}\n\n#jackpot {\n	background: rgba(255, 255, 255, .5);\n    color: #414142;\n    display: none;\n    float: left;\n    font-weight: 400;\n    margin: 0 auto;\n    min-height: 155px;\n    padding: 1em 2em 0;\n    position: absolute;\n    top: auto; left: 0;\n    text-align: center;\n    vertical-align: middle;\n    width: 100%;\n    z-index: 10;\n}\n}\n\n#jackpot .wrapper {\n	/*border: 5px solid #FFF;\n	margin: 1em;*/\n	padding: 1em;\n}\n\n#jackpot h1 {\n	color: #CD2032;\n}\n\n#jackpot p {\n	margin-bottom: 0;\n}\n\n#jackpot p + p {\n	margin-top: 0;\n}\n\n.clear {\n	clear: both;\n}\n\n\n/* Media Queries\n--------------------------------------------- */\n/* iPads (portrait and landscape) ----------- */\n@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {\n	#wrapper {\n		max-width: 100%;\n	}\n	\n	#container {\n		border: 0;\n		min-width: 100%;\n	}\n}\n\n@media screen and (max-width: 650px) {\n	#wrapper {\n		max-width: 100%;\n	}\n	\n	#container {\n		border: 0;\n		min-width: 100%;\n	}\n}\n\n@media screen and (max-width: 485px) {\n	h1#page-title {\n		font-size: 31px;\n	}\n	\n	.row {\n		padding: 2em 1em;\n	}\n	\n	.inner {\n		max-width: 341px;\n	}\n	\n	input[type=\"submit\"], #control {\n		width: 110px;\n	}\n	\n	input[type=\"email\"] {\n		width: 224px;\n	}\n	\n	.slot {\n		background-size: 104px 1730px;\n		height: 128px;\n		width: 110px;\n	}\n	\n	#jackpot {\n		top: -78px;\n	}\n	\n	#jackpot p {\n		line-height: normal;\n	}\n	\n	#jackpot p:last-child {\n	    line-height: 15px;\n	    margin-top: 5px;\n	}\n	\n	textarea {\n		font-size: .72em;\n		height: 130px;\n	}\n}\n\n@media screen and (max-width: 380px) {\n	.inner {\n		width: 282px;\n	}\n	\n	input[type=\"submit\"], #control {\n		width: 90px;\n	}\n	\n	input[type=\"email\"] {\n		width: 186px;\n	}\n	\n	.slot {\n		background-size: 84px 1400px;\n		height: 105px;\n		width: 90px;\n	}\n	\n	#jackpot {\n		font-size: .85em;\n	}\n\n@media screen and (max-width: 340px) {\n	p {\n		font-size: 16px;\n	}\n	\n	.one-third {\n		margin-left: 0;\n		width: 100%;\n	}\n	\n	.one-third p {\n		margin: 0;\n	}\n	\n	.stars img {\n		max-width: 40px;\n	}\n}\n' WHERE `template`='117';
#RC 01.23.14 Mantis 1476: UPDATE table template

--DROP TABLE org_auth_data;
CREATE TABLE IF NOT EXISTS `org_auth_data` (
  `org` int(11) NOT NULL,
  `affiliations` varchar(255) NOT NULL DEFAULT '',
  `amenities` varchar(255) NOT NULL DEFAULT '',
  `associations` varchar(255) NOT NULL DEFAULT '',
  `brands` varchar(255) NOT NULL DEFAULT '',
  `business_aka` varchar(100) NOT NULL DEFAULT '',
  `business_description` text,
  `business_short_description` varchar(120) NOT NULL DEFAULT '',
  `categories_bing` varchar(255) NOT NULL DEFAULT '[]',
  `categories_facebook` varchar(255) NOT NULL DEFAULT '[]',
  `categories_foursquare` varchar(255) NOT NULL DEFAULT '[]',
  `categories_google` varchar(255) NOT NULL DEFAULT '[]',
  `categories_superpages` varchar(255) NOT NULL DEFAULT '[]',
  `categories_twitter` varchar(255) NOT NULL DEFAULT '[]',
  `categories_yahoo` varchar(255) NOT NULL DEFAULT '[]',
  `categories_yelp` varchar(255) NOT NULL DEFAULT '[]',
  `categories_yp` varchar(255) NOT NULL DEFAULT '[]',
  `certifications` varchar(255) NOT NULL DEFAULT '',
  `cross_street` varchar(255) NOT NULL DEFAULT '',
  `facebook_url` varchar(50) NOT NULL DEFAULT '',
  `fax` varchar(11) NOT NULL DEFAULT '',
  `languages_spoken` varchar(100) NOT NULL DEFAULT '',
  `linkedin_url` varchar(50) NOT NULL DEFAULT '',
  `location_description` varchar(255) NOT NULL DEFAULT '',
  `mobile_business` tinyint(1) NOT NULL DEFAULT 0,
  `mobile_phone` varchar(11) NOT NULL DEFAULT '',
  `online_business` tinyint(1) NOT NULL DEFAULT 0,
  `owner_bio` text,
  `owner_first_name` varchar(50) NOT NULL DEFAULT '',
  `owner_last_name` varchar(50) NOT NULL DEFAULT '',
  `parking_street` tinyint(1) NOT NULL DEFAULT 0,
  `parking_garage_lot` tinyint(1) NOT NULL DEFAULT 0,
  `parking_valet` tinyint(1) NOT NULL DEFAULT 0,
  `payment_options_visa` tinyint(1) NOT NULL DEFAULT 0,
  `payment_options_mc` tinyint(1) NOT NULL DEFAULT 0,
  `payment_options_discover` tinyint(1) NOT NULL DEFAULT 0,
  `payment_options_amex` tinyint(1) NOT NULL DEFAULT 0,
  `payment_options_paypal` tinyint(1) NOT NULL DEFAULT 0,
  `pin_drop` tinyint(1) NOT NULL DEFAULT 0,
  `price_range` tinyint(4) NOT NULL DEFAULT 0,
  `products_services` varchar(255) NOT NULL DEFAULT '',
  `secondary_phone` varchar(11) NOT NULL DEFAULT '',
  `service_area` varchar(100) NOT NULL DEFAULT '',
  `specialties` varchar(255) NOT NULL DEFAULT '',
  `tagline` varchar(100) NOT NULL DEFAULT '',
  `toll_free` varchar(11) NOT NULL DEFAULT '',
  `twitter_url` varchar(50) NOT NULL DEFAULT '',
  `verified_bing` tinyint(1) NOT NULL DEFAULT 0,
  `verified_facebook` tinyint(1) NOT NULL DEFAULT 0,
  `verified_foursquare` tinyint(1) NOT NULL DEFAULT 0,
  `verified_google` tinyint(1) NOT NULL DEFAULT 0,
  `verified_superpages` tinyint(1) NOT NULL DEFAULT 0,
  `verified_twitter` tinyint(1) NOT NULL DEFAULT 0,
  `verified_yahoo` tinyint(1) NOT NULL DEFAULT 0,
  `verified_yelp` tinyint(1) NOT NULL DEFAULT 0,
  `verified_yp` tinyint(1) NOT NULL DEFAULT 0,
  `wheelchair_accessible` tinyint(1) NOT NULL DEFAULT 0,
  `wifi` tinyint(1) NOT NULL DEFAULT 0,
  `year_established` varchar(10) NOT NULL DEFAULT '',
  PRIMARY KEY (`org`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `org_auth_data`
  ADD CONSTRAINT `org_auth_data_ibfk_1` FOREIGN KEY (`org`) REFERENCES `org` (`org`);
#BEM 01.24.14: defaults for fields

#1.27.14 UPDATE END

#2.16.14 UPDATE BEGIN
ALTER TABLE `bim`.`business` ADD COLUMN `client` INT(11) NULL  AFTER `business` ;
#RD Mantis 0001399  10.22.2013 : Added field for text color

insert into bim.advisor values (0, 'fuse_to_bim_connect', 'HBG[.3jcR}', 1);

#KA 01.30.14: M1527: Changes to Photo for the App

UPDATE `sevence`.`template` SET `content`='/*\nHTML5 Reset\n--------------------------------------------- */\narticle,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em;margin:.67em 0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}mark{background:#ff0;color:#000}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}pre{white-space:pre-wrap}q{quotes:\"\\201C\" \"\\201D\" \"\\2018\" \"\\2019\"}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}button,input{line-height:normal}button,select{text-transform:none}button,html input[type=\"button\"],input[type=\"reset\"],input[type=\"submit\"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}input[type=\"checkbox\"],input[type=\"radio\"]{box-sizing:border-box;padding:0}input[type=\"search\"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=\"search\"]::-webkit-search-cancel-button,input[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}\n\n/* Box Sizing\n--------------------------------------------- */\n*, input[type=\"search\"] {\n	-webkit-box-sizing: border-box;\n	-moz-box-sizing:    border-box;\n	box-sizing:         border-box;\n}\n\n/* Float Clearing\n--------------------------------------------- */\n.archive-pagination:before,\n.clearfix:before,\n.entry:before,\n.entry-pagination:before,\n.footer-widgets:before,\n.nav-primary:before,\n.nav-secondary:before,\n.site-container:before,\n.site-footer:before,\n.site-header:before,\n.site-inner:before,\n.wrap:before {\n	content: \" \";\n	display: table;\n}\n\n.archive-pagination:after,\n.clearfix:after,\n.entry:after,\n.entry-pagination:after,\n.footer-widgets:after,\n.nav-primary:after,\n.nav-secondary:after,\n.site-container:after,\n.site-footer:after,\n.site-header:after,\n.site-inner:after,\n.wrap:after {\n	clear: both;\n	content: \" \";\n	display: table;\n}\n\n\n/* Typographical Elements\n--------------------------------------------- */\nbody, html {\n  height: 100%;\n}\n\nhtml {\n	font-size: 62.5%; /* 10px browser default */\n}\n\nbody {\n	background: #EEE;\n	color: #414142;\n	font-family: \'Helvetica Neue\', Helvetica, Arial, sans-serif;\n	font-size: 18px;\n	font-weight: 300;\n	line-height: normal;\n}\n\np {\n	line-height: 1.4;\n	margin: 0 0 1em;\n}\n\n\n/* Links\n--------------------------------------------- */\na,\nbutton,\ninput:focus,\ninput[type=\"button\"],\ninput[type=\"reset\"],\ninput[type=\"submit\"],\ntextarea:focus,\n.button {\n	-webkit-transition: all 0.1s ease-in-out;\n	-moz-transition:    all 0.1s ease-in-out;\n	-ms-transition:     all 0.1s ease-in-out;\n	-o-transition:      all 0.1s ease-in-out;\n	transition:         all 0.1s ease-in-out;\n}\n\na {\n	color: #cd2032;\n}\n\na:hover {\n	text-decoration: none;\n}\n\n.row.red a {\n	color: #FFF;\n}\n\n\n/* Headings\n--------------------------------------------- */\nh1, h2, h3, h4 {\n	font-weight: normal;\n	margin: 0 0 10px;\n}\n\nh1#page-title {\n	font-size: 30px;\n	font-weight: bold;\n	text-align: center;\n	text-transform: uppercase;\n}\n\n/* Forms\n--------------------------------------------- */\n::-webkit-input-placeholder {\n	color: #414142;\n}\n:-moz-placeholder { /* Mozilla Firefox 4 to 18 */\n	color: #414142;\n}\n::-moz-placeholder { /* Mozilla Firefox 19+ */\n	color: #414142;\n}\n:-ms-input-placeholder { /* Internet Explorer 10+ */\n	color: #414142;\n}\n\ninput[type=\"text\"], input[type=\"email\"], input[type=\"submit\"], textarea {\n    border: 1px solid #ABA8A8;\n    box-shadow: inset 0 0 2px #EEE;\n    color: #414142;\n    float: left;\n    font-size: 0.9em;\n    height: 42px;\n    margin: 0;\n    padding: .5em 1em;\n    width: 270px;\n}\n\ninput[type=\"submit\"], #control {\n	background: #CD2032;\n	border: 0;\n	color: #FFF;\n	float: right;\n	font-size: 1em;\n	width: 132px;\n}\n\ntextarea {\n	font-size: .8em;\n	height: 90px;\n	padding: 1em;\n	width: 100%;\n}\n\n/* Containers & Rows\n--------------------------------------------- */\n#wrapper {\n	height: 100%;\n	margin: 0 auto;\n	max-width: 600px;\n	width: 100%;\n}\n\n#container {\n	background: #D8D0C5;\n	border: 4px solid #414142;\n	border-top: 0;\n	float: left;\n	font-size: 1em;\n	width: 100%;\n}\n\n.header.row {\n	background: url({boomtime_path}/img/jslot_images/tinpot-image.jpg) no-repeat center center #FFF;\n	background-size: 100%;\n}\n\n.header img {\n	display: block;\n	margin: 0 auto;\n	max-width: 100%;\n}\n\n.game p {\n	font-size: .9em;\n	margin: .5em 0 1em;\n	text-align: center;\n}\n\n.game p:last-child {\n	margin-bottom: 0;\n}\n\n.row {\n	border-bottom: 1px solid #a1a1a1;\n	float: left;\n	padding: 2em;\n	width: 100%;\n}\n\n.row.game {\n	border-bottom: 0;\n}\n\n.row.copyright {\n	border: 0;\n	border-top: 1px solid #a1a1a1;\n	font-size: .7em;\n	padding: 1em;\n	text-align: center;\n}\n\n.row.copyright p {\n	margin-bottom: 0;\n}\n\n.inner {\n	margin: 0 auto;\n	max-width: 408px;\n	width: 100%;\n}\n\n.row.white {\n	color: #cd2032;\n}\n\n.row.gray {\n	background: #f1f1f1;\n}\n\n.row.dark-gray {\n	background: #aba8a8;\n}\n\n.row.dark-gray p {\n	margin-bottom: 0;\n}\n\n.row.white h1, .row.white h2 {\n	color: #414142;\n}\n\n.row.red {\n	background: #cd2032;\n	color: #FFF;\n}\n\n.box {\n    float: left;\n    margin: 1em 0;\n    width: 100%;\n}\n\n.one-third {\n	float: left;\n	margin-left: 2.564102564102564%;\n	width: 31.623931623931625%;\n}\n\n.first {\n	margin-left: 0;\n	padding-top: 0;\n}\n\n.stars {\n	float: left;\n	margin-bottom: 1em;\n	text-align: center;\n	width: 100%;\n}\n\n.social-media a, .footer a {\n	text-decoration: none;\n}\n\n.social-media img {\n	margin-right: .8em;\n}\n\n.social-media img:hover {\n	opacity: .7;\n}\n\n.footer {\n	font-size: .75em;\n	padding: 1em;\n}\n\n.footer p {\n	margin: 0;\n	padding: 0;\n}\n\n.footer span {\n	margin-right: 1em;\n}\n\n.footer a {\n	color: #414142;\n}\n\n.footer a:hover {\n	text-decoration: underline;\n}\n\n.one-third-container:after,\n#low-rating:after{\n	content: \".\";\n	display: block;\n	clear: both;\n	visibility: hidden;\n	line-height: 0;\n	height: 0;\n}\n \n.one-third-container,\n#low-rating{\n	display: inline-block;\n}\n \nhtml[xmlns] .one-third-container,\nhtml[xmlns] #low-rating{\n	display: block;\n}\n \n* html .one-third-container,\n* html #low-rating{ \n	height: 1%;\n}\n\n\n.one-third-container,\n#low-rating{\n    display: block;\n}\n/* Slot Machine\n--------------------------------------------- */\n.row.slotmachine {\n	background: url({boomtime_path}/img/jslot_images/tinpot-image.jpg) no-repeat center center #FFF;\n	background-size: 100%;\n	position: relative;\n}\n\n.container {\n	float: left;\n	margin:0 auto;\n	position: relative;\n	text-align: center;\n	width: 100%;\n}\n\n.slot-wrapper {\n	 display: block;\n	 margin: 0 auto;\n	 text-align: center;\n}\n\n.slot {\n	background:url({boomtime_path}/img/jslot_images/reel_normal_transparent_white.png) repeat-y 0 4px;\n    border: 3px solid #3a3a3c;\n    box-shadow: 0 0 6px #333 inset;\n    display: inline-block;\n    height: 154px;\n	-webkit-transition: background-image .8s ease-in-out;\n	-moz-transition: background-image .8s ease-in-out;\n	-ms-transition: background-image .8s ease-in-out;\n	-o-transition: background-image .8s ease-in-out;\n	transition: background-image .8s ease-in-out;\n    width: 132px;\n}\n\n.motion {\n	background-image:url({boomtime_path}/img/jslot_images/reel_blur_transparent_white.png) #D8D0C5;\n}\n\nbutton {\n    cursor: pointer;\n    display: block;\n    font-size: 16px;\n    height: 33px;\n    margin: 20px auto;\n    width: 138px;\n}\n\n#result {\n    font-weight: bold;\n    margin: 20px 0;\n}\n\n#jackpot {\n	background: rgba(255, 255, 255, .5);\n    color: #414142;\n    display: none;\n    float: left;\n    font-weight: 400;\n    margin: 0 auto;\n    max-width: 408px;\n    min-height: 155px;\n    padding: 1em 2em 0;\n    position: absolute;\n    top: auto; left: 0; right: 0;\n    text-align: center;\n    vertical-align: middle;\n    width: 100%;\n    z-index: 10;\n}\n}\n\n#jackpot .wrapper {\n	/*border: 5px solid #FFF;\n	margin: 1em;*/\n	padding: 1em;\n}\n\n#jackpot h1 {\n	color: #CD2032;\n}\n\n#jackpot p {\n	margin-bottom: 0;\n}\n\n#jackpot p + p {\n	margin-top: 0;\n}\n\n.clear {\n	clear: both;\n}\n\n\n/* Media Queries\n--------------------------------------------- */\n/* iPads (portrait and landscape) ----------- */\n@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {\n	#wrapper {\n		max-width: 100%;\n	}\n	\n	#container {\n		border: 0;\n		min-width: 100%;\n	}\n}\n\n@media screen and (max-width: 650px) {\n	#wrapper {\n		max-width: 100%;\n	}\n	\n	#container {\n		border: 0;\n		min-width: 100%;\n	}\n}\n\n@media screen and (max-width: 485px) {\n	h1#page-title {\n		font-size: 31px;\n	}\n	\n	.row {\n		padding: 2em 1em;\n	}\n	\n	.inner {\n		max-width: 341px;\n	}\n	\n	input[type=\"submit\"], #control {\n		width: 110px;\n	}\n	\n	input[type=\"email\"] {\n		width: 224px;\n	}\n	\n	.slot {\n		background-size: 104px 1730px;\n		height: 128px;\n		width: 110px;\n	}\n	\n	#jackpot {\n		top: 22px;\n	}\n	\n	#jackpot p {\n		line-height: normal;\n	}\n	\n	#jackpot p:last-child {\n	    line-height: 15px;\n	    margin-top: 5px;\n	}\n	\n	textarea {\n		font-size: .72em;\n		height: 130px;\n	}\n}\n\n@media screen and (max-width: 380px) {\n	.inner {\n		width: 282px;\n	}\n	\n	input[type=\"submit\"], #control {\n		width: 90px;\n	}\n	\n	input[type=\"email\"] {\n		width: 186px;\n	}\n	\n	.slot {\n		background-size: 84px 1400px;\n		height: 105px;\n		width: 90px;\n	}\n	\n	#jackpot {\n		font-size: .85em;\n		min-height: inherit;\n		padding-bottom: .5em;\n	}\n\n@media screen and (max-width: 340px) {\n	p {\n		font-size: 16px;\n	}\n	\n	.one-third {\n		margin-left: 0;\n		width: 100%;\n	}\n	\n	.one-third p {\n		margin: 0;\n	}\n	\n	.stars img {\n		max-width: 40px;\n	}\n}\n' WHERE `template`='117';
#RC 01.230.14 Mantis 1476: UPDATE table template

ALTER TABLE `sevence`.`photo` ADD COLUMN `mobile` TINYINT(1) NULL DEFAULT 0  AFTER `is_cover`
#KA 02.03.14 M1527: Add mobile column in photo table to identify photos coming from the mobile app

CREATE  TABLE `sevence`.`slot_machine` (
  `slot_machine` INT(11) NOT NULL AUTO_INCREMENT ,
  `org` INT(11) NOT NULL ,
  `machine_color` VARCHAR(45) NULL DEFAULT '#000000' ,
  PRIMARY KEY (`slot_machine`) );
#RD 02.01.14 Mantis 1517: Add slot machine color theme

ALTER TABLE  `bim`.`business` ADD `billing_signup` INT NULL DEFAULT NULL AFTER `org`,
  ADD INDEX  `org` (  `org` );
#BEM 01.28.14: add a field to record billing_signup

UPDATE billing_tran SET correlation_id = TRIM(LEADING '0' FROM  SUBSTR(invoice, LOCATE('SIGNUP', invoice)+6)) WHERE invoice LIKE '%SIGNUP%';
#BEM 01.30.14: record billing_signup in billing_tran.correlation_id (already run on production)

CREATE  TABLE `sevence`.`review_click` (
  `review_click` INT(11) NOT NULL AUTO_INCREMENT ,
  `org` INT(11) NULL ,
  `yearweek` VARCHAR(6) NULL ,
  `rating` INT(11) NULL ,
  `provider` INT(11) NULL ,
  PRIMARY KEY (`review_click`) );
#RC 01.31.14 Mantis 1521: CREATE table review_click

ALTER TABLE `org_auth_data` ADD `data_date` DATETIME NULL AFTER `org`;
UPDATE `org_auth_data` SET data_date = UTC_TIMESTAMP() WHERE data_date IS NULL;
#BEM 01.30.14: add the date the record was updated...

ALTER TABLE `org_auth_data` ADD `data_date` DATETIME NULL AFTER `org`;
UPDATE `org_auth_data` SET data_date = UTC_TIMESTAMP() WHERE data_date IS NULL;
#BEM 01.30.14: add the date the record was updated...

ALTER TABLE `sevence`.`slot_machine` CHANGE COLUMN `machine_color` `background_color` VARCHAR(45) NULL DEFAULT '#000000'  ;
#RD 02.03.14: change machine_color to background_color

ALTER TABLE `bim`.`advisor` CHANGE COLUMN `tx_key` `tx_key` VARCHAR(40) NOT NULL  ;
#KA 02.04.14: M1354: Advisors are professionals in the BoomTime brand

ALTER TABLE  `prof` ADD  `is_advisor` TINYINT( 1 ) NOT NULL DEFAULT  '0'
#BEM 02.05.14: allow prof to be flagged as an advisor (run on production)

CREATE TABLE IF NOT EXISTS `business_json` (
  `business` int(11) NOT NULL,
  `key` char(20) NOT NULL,
  `json` text,
  PRIMARY KEY (`business`,`key`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `business_json`
  ADD CONSTRAINT `business_json_ibfk_1` FOREIGN KEY (`business`) REFERENCES `business` (`business`);
#BEM 02.05.14: business_json table

CREATE  TABLE `sevence`.`gift_pos` (
  `gift` INT NOT NULL ,
  `status` VARCHAR(100) NULL ,
  PRIMARY KEY (`gift`) );
 ALTER TABLE `sevence`.`gift_api` CHANGE COLUMN `last_status` `last_status` VARCHAR(50) NULL DEFAULT NULL  ;
#KA 02.11.2014 M1495: ALOHA Changes to FUSE

ALTER TABLE `sevence`.`offer` DROP COLUMN `promo_id` ;
#KA 02.11.2014 M1518: Promo GC Design and API Promo - remove promo_id column from DB

ALTER TABLE  `org_auth_data`
  CHANGE  `fax`  `fax` VARCHAR( 30 ) NOT NULL DEFAULT  '',
  CHANGE  `mobile_phone`  `mobile_phone` VARCHAR( 30 ) NOT NULL DEFAULT  '',
  CHANGE  `secondary_phone`  `secondary_phone` VARCHAR( 30 ) NOT NULL DEFAULT  '',
  CHANGE  `toll_free`  `toll_free` VARCHAR( 30 ) NOT NULL DEFAULT  '',
  CHANGE  `price_range`  `price_range` VARCHAR( 4 ) NOT NULL DEFAULT  '';
#BEM 02.12.14: make phone number fields larger (run on production)

CREATE TABLE IF NOT EXISTS `org_service_option`
(
  `org_service_option` int(11) NOT NULL,
  `services` char(4) NOT NULL,
  `long_name` varchar(40) NOT NULL,
  `short_name` varchar(20) NOT NULL,
  `is_sold` tinyint(1) NOT NULL,
  PRIMARY KEY (`org_service_option`),
  KEY `services` (`services`)
);
INSERT INTO `org_service_option` (`org_service_option`, `services`, `long_name`, `short_name`, `is_sold`) VALUES
  (0, '0000', 'Directory', 'Directory', 0),
  (1, '1020', 'Linked', 'Linked', 0),
  (2, '1011', 'IGC Only', 'IGC Only', 1),
  (3, '1032', 'Integrated', 'Integrated', 0),
  (4, '2220', 'Website', 'Website', 0),
  (5, '1220', 'Website upgrading', '&uarr,Website', 0),
  (6, '2231', 'Dynamic (self)', 'Self', 0),
  (7, '1231', 'Dynamic (self) upgrading', '&uarr,Self', 0),
  (8, '2232', 'Dynamic (theme)', 'Theme', 0),
  (9, '1232', 'Dynamic (theme) upgrading', '&uarr,Theme', 0),
  (10, '2233', 'Dynamic (custom)', 'Custom', 0),
  (11, '1233', 'Dynamic (custom) upgrading', '&uarr,Custom', 0),
  (12, '1042', 'Integrated Plus', 'Integrated+', 1),
  (13, '2241', 'Dynamic (self) Plus', 'Self+', 0),
  (14, '1241', 'Dynamic (self) Plus upgrading', '&uarr,Self+', 0),
  (15, '2242', 'Dynamic (theme) Plus', 'Theme+', 1),
  (16, '1242', 'Dynamic (theme) Plus upgrading', '&uarr,Theme+', 1),
  (17, '2243', 'Dynamic (custom) Plus', 'Custom+', 1),
  (18, '1243', 'Dynamic (custom) Plus upgrading', '&uarr,Custom+', 1),
  (19, '1052', 'CMS Integrated', 'CMS', 1),
  (20, '2251', 'CMS Dynamic (self)', 'CMS (self)', 0),
  (21, '1251', 'CMS Dynamic (self) upgrading', 'CMS (&uarr,self)', 0),
  (22, '2252', 'CMS Dynamic (theme)', 'CMS (theme)', 1),
  (23, '1252', 'CMS Dynamic (theme) upgrading', 'CMS (&uarr,theme)', 1),
  (24, '2253', 'CMS Dynamic (custom)', 'CMS (custom)', 1),
  (25, '1253', 'CMS Dynamic (custom) upgrading', 'CMS (&uarr,custom)', 1),
  (7777, '7777', 'Business Identity Management', 'BIM', 1);
#BEM 02.13.14: make a table out of the array in development.inc.php for org_service_option to make it easier to run queries (run on production)

ALTER TABLE  `org_service_option` CHANGE  `long_name`  `service_name` VARCHAR( 40 ) NOT NULL ,
  CHANGE  `short_name`  `service_short_name` VARCHAR( 20 ) NOT NULL;
INSERT INTO `org_service_option` (`org_service_option`, `services`, `service_name`, `service_short_name`, `is_sold`) VALUES
  (1010, '1010', 'Directory (1010)', 'Directory (1010)', 0);
#BEM 02.13.14: change short_name to not conflict with org.short_name add "missing" directory service 1010 (run on production)

ALTER TABLE  `bim`.`business` ADD INDEX (  `state` ,  `city` ,  `category_labels` );
#BEM 02.17.14: create index to do business search by category (run on production)

#2.16.14 UPDATE END

#3.3.14 UPDATE BEGIN
CREATE  TABLE `sevence`.`business_network_partner` (
  `business_network_partner` INT NOT NULL AUTO_INCREMENT ,
  `org` INT(11) NULL ,
  `business_partner` VARCHAR(150) NULL ,
  PRIMARY KEY (`business_network_partner`) );
#RC 02.27.14 Mantis 1577: CREATE table business_network_partner
#3.3.14 UPDATE END

ALTER TABLE  `bim`.`business` ADD  `existence` DOUBLE( 17, 14 ) NULL DEFAULT NULL AFTER  `chain_id` ,
  ADD  `placerank` INT NULL DEFAULT NULL AFTER  `existence`;
#BEM 02.17.14: new data from factual (run on production)

#3.23.14 UPDATE BEGIN
ALTER TABLE `sevence`.`offer` CHANGE COLUMN `sweepstake` `sweepstake` TINYINT(4) NOT NULL DEFAULT '0'  ;
#KA 1564: Fuse Changes: Promos

ALTER TABLE `sevence`.`offer` CHANGE COLUMN `last_month_won` `last_won` DATETIME NULL DEFAULT NULL  ;
#RC 03.11.14 Mantis 0001565: ALTER table offer

ALTER TABLE `sevence`.`push_notifications` ADD COLUMN `article` INT(11) NULL DEFAULT 0  AFTER `status` , ADD COLUMN `event` INT(11) NULL DEFAULT 0  AFTER `article` ;
#03.12.2014 KA M1480: Create push notifications for orgs that have an app

INSERT INTO `provider` (`provider`,`provider_name`,`provider_display`) VALUES (1,'google','Google');
INSERT INTO `provider` (`provider`,`provider_name`,`provider_display`) VALUES (2,'bing','Bing');
INSERT INTO `provider` (`provider`,`provider_name`,`provider_display`) VALUES (3,'yahoo','Yahoo');
INSERT INTO `provider` (`provider`,`provider_name`,`provider_display`) VALUES (4,'yp','Yp');
INSERT INTO `provider` (`provider`,`provider_name`,`provider_display`) VALUES (5,'superpages','Superpages');
INSERT INTO `provider` (`provider`,`provider_name`,`provider_display`) VALUES (6,'yelp','Yelp');
INSERT INTO `provider` (`provider`,`provider_name`,`provider_display`) VALUES (7,'foursquare','Foursquare');
INSERT INTO `provider` (`provider`,`provider_name`,`provider_display`) VALUES (8,'facebook','Facebook');
INSERT INTO `provider` (`provider`,`provider_name`,`provider_display`) VALUES (9,'twitter','Twitter');
#MJM 02.26.2014 Mantis 1566: add 9 providers

ALTER TABLE `sevence`.`org_provider_link` ADD COLUMN `username` VARCHAR(45) NULL DEFAULT NULL  AFTER `link` , ADD COLUMN `password` VARCHAR(45) NULL DEFAULT NULL  AFTER `username` ;
#MJM 02.26.2014 Mantis 1566: add username and passowrd field for org_provider_link table

ALTER TABLE `sevence`.`org_provider_link` ADD COLUMN `email` VARCHAR(45) NULL DEFAULT NULL  AFTER `password` , ADD COLUMN `epass` VARCHAR(45) NULL DEFAULT NULL  AFTER `email` ;
#MM 03.18.2014 Mantis 1613 add email and epass for yahoo

ALTER TABLE `sevence`.`org_provider_link` ADD COLUMN `url` TEXT NULL DEFAULT NULL  AFTER `epass` ;
#MM 03.18.2014 Mantis 1614 add email and epass to each providers except for google+ and fb
#3.23.14 UPDATE END

#4.3.14 UPDATE BEGIN
UPDATE `sevence`.`template` SET `content`='/*\nHTML5 Reset\n--------------------------------------------- */\narticle,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em;margin:.67em 0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}mark{background:#ff0;color:#000}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}pre{white-space:pre-wrap}q{quotes:\"\\201C\" \"\\201D\" \"\\2018\" \"\\2019\"}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}button,input{line-height:normal}button,select{text-transform:none}button,html input[type=\"button\"],input[type=\"reset\"],input[type=\"submit\"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}input[type=\"checkbox\"],input[type=\"radio\"]{box-sizing:border-box;padding:0}input[type=\"search\"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=\"search\"]::-webkit-search-cancel-button,input[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}\n\n/* Box Sizing\n--------------------------------------------- */\n*, input[type=\"search\"] {\n	-webkit-box-sizing: border-box;\n	-moz-box-sizing:    border-box;\n	box-sizing:         border-box;\n}\n\n/* Float Clearing\n--------------------------------------------- */\n.archive-pagination:before,\n.clearfix:before,\n.entry:before,\n.entry-pagination:before,\n.footer-widgets:before,\n.nav-primary:before,\n.nav-secondary:before,\n.site-container:before,\n.site-footer:before,\n.site-header:before,\n.site-inner:before,\n.wrap:before {\n	content: \" \";\n	display: table;\n}\n\n.archive-pagination:after,\n.clearfix:after,\n.entry:after,\n.entry-pagination:after,\n.footer-widgets:after,\n.nav-primary:after,\n.nav-secondary:after,\n.site-container:after,\n.site-footer:after,\n.site-header:after,\n.site-inner:after,\n.wrap:after {\n	clear: both;\n	content: \" \";\n	display: table;\n}\n\n\n/* Typographical Elements\n--------------------------------------------- */\nbody, html {\n  height: 100%;\n}\n\nhtml {\n	font-size: 62.5%; /* 10px browser default */\n}\n\nbody {\n	background: #EEE;\n	color: #414142;\n	font-family: \'Helvetica Neue\', Helvetica, Arial, sans-serif;\n	font-size: 18px;\n	font-weight: 300;\n	line-height: normal;\n}\n\np {\n	line-height: 1.4;\n	margin: 0 0 1em;\n}\n\n\n/* Links\n--------------------------------------------- */\na,\nbutton,\ninput:focus,\ninput[type=\"button\"],\ninput[type=\"reset\"],\ninput[type=\"submit\"],\ntextarea:focus,\n.button {\n	-webkit-transition: all 0.1s ease-in-out;\n	-moz-transition:    all 0.1s ease-in-out;\n	-ms-transition:     all 0.1s ease-in-out;\n	-o-transition:      all 0.1s ease-in-out;\n	transition:         all 0.1s ease-in-out;\n}\n\na {\n	color: #cd2032;\n}\n\na:hover {\n	text-decoration: none;\n}\n\n.row.red a {\n	color: #FFF;\n}\n\n\n/* Headings\n--------------------------------------------- */\nh1, h2, h3, h4 {\n	font-weight: normal;\n	margin: 0 0 10px;\n}\n\nh1#page-title {\n	font-size: 30px;\n	font-weight: bold;\n	text-align: center;\n	text-transform: uppercase;\n}\n\n/* Forms\n--------------------------------------------- */\n::-webkit-input-placeholder {\n	color: #414142;\n}\n:-moz-placeholder { /* Mozilla Firefox 4 to 18 */\n	color: #414142;\n}\n::-moz-placeholder { /* Mozilla Firefox 19+ */\n	color: #414142;\n}\n:-ms-input-placeholder { /* Internet Explorer 10+ */\n	color: #414142;\n}\n\ninput[type=\"text\"], input[type=\"email\"], input[type=\"submit\"], textarea {\n    border: 1px solid #ABA8A8;\n    box-shadow: inset 0 0 2px #EEE;\n    color: #414142;\n    float: left;\n    font-size: 0.9em;\n    height: 42px;\n    margin: 0;\n    padding: .5em 1em;\n    width: 270px;\n}\n\ninput[type=\"submit\"], #control {\n	background: #CD2032;\n	border: 0;\n	color: #FFF;\n	float: right;\n	font-size: 1em;\n	width: 132px;\n}\n\ntextarea {\n	font-size: .8em;\n	height: 90px;\n	padding: 1em;\n	width: 100%;\n}\n\n/* Containers & Rows\n--------------------------------------------- */\n#wrapper {\n	height: 100%;\n	margin: 0 auto;\n	max-width: 600px;\n	width: 100%;\n}\n\n#container {\n	background: #D8D0C5;\n	border: 4px solid #414142;\n	border-top: 0;\n	float: left;\n	font-size: 1em;\n	width: 100%;\n}\n\n.header.row {\n	background: url({boomtime_path}/img/jslot_images/tinpot-image.jpg) no-repeat center center #FFF;\n	background-size: 100%;\n}\n\n.header img {\n	display: block;\n	margin: 0 auto;\n	max-width: 100%;\n}\n\n.game p {\n	font-size: .9em;\n	margin: .5em 0 1em;\n	text-align: center;\n}\n\n.game p:last-child {\n	margin-bottom: 0;\n}\n\n.row {\n	border-bottom: 1px solid #a1a1a1;\n	float: left;\n	padding: 2em;\n	width: 100%;\n}\n\n.row.game {\n	border-bottom: 0;\n}\n\n.row.copyright {\n	border: 0;\n	border-top: 1px solid #a1a1a1;\n	font-size: .7em;\n	padding: 1em;\n	text-align: center;\n}\n\n.row.copyright p {\n	margin-bottom: 0;\n}\n\n.inner {\n	margin: 0 auto;\n	max-width: 408px;\n	width: 100%;\n}\n\n.row.white {\n	color: #cd2032;\n}\n\n.row.gray {\n	background: #f1f1f1;\n}\n\n.row.dark-gray {\n	background: #aba8a8;\n}\n\n.row.dark-gray p {\n	margin-bottom: 0;\n}\n\n.row.white h1, .row.white h2 {\n	color: #414142;\n}\n\n.row.red {\n	background: #cd2032;\n	color: #FFF;\n}\n\n.box {\n    float: left;\n    margin: 1em 0;\n    width: 100%;\n}\n\n.one-third {\n	float: left;\n	margin-left: 2.564102564102564%;\n	width: 31.623931623931625%;\n}\n\n.first {\n	margin-left: 0;\n	padding-top: 0;\n}\n\n.stars {\n	float: left;\n	margin-bottom: 1em;\n	text-align: center;\n	width: 100%;\n}\n\n.social-media a, .footer a {\n	text-decoration: none;\n}\n\n.social-media img {\n	margin-right: .8em;\n}\n\n.social-media img:hover {\n	opacity: .7;\n}\n\n.footer {\n	font-size: .75em;\n	padding: 1em;\n}\n\n.footer p {\n	margin: 0;\n	padding: 0;\n}\n\n.footer span {\n	margin-right: 1em;\n}\n\n.footer a {\n	color: #414142;\n}\n\n.footer a:hover {\n	text-decoration: underline;\n}\n\n.one-third-container:after,\n#low-rating:after{\n	content: \".\";\n	display: block;\n	clear: both;\n	visibility: hidden;\n	line-height: 0;\n	height: 0;\n}\n \n.one-third-container,\n#low-rating{\n	display: inline-block;\n}\n \nhtml[xmlns] .one-third-container,\nhtml[xmlns] #low-rating{\n	display: block;\n}\n \n* html .one-third-container,\n* html #low-rating{ \n	height: 1%;\n}\n\n\n.one-third-container,\n#low-rating{\n    display: block;\n}\n/* Slot Machine\n--------------------------------------------- */\n.row.slotmachine {\n	background: url({boomtime_path}/img/jslot_images/tinpot-image.jpg) no-repeat center center #FFF;\n	background-size: 100%;\n	position: relative;\n}\n\n.container {\n	float: left;\n	margin:0 auto;\n	position: relative;\n	text-align: center;\n	width: 100%;\n}\n\n.slot-wrapper {\n	 display: block;\n	 margin: 0 auto;\n	 text-align: center;\n}\n\n.slot {\n	background:url({boomtime_path}/img/jslot_images/reel_normal_transparent_white.png) repeat-y 0 4px;\n    border: 3px solid #3a3a3c;\n    box-shadow: 0 0 6px #333 inset;\n    display: inline-block;\n    height: 154px;\n	-webkit-transition: background-image .8s ease-in-out;\n	-moz-transition: background-image .8s ease-in-out;\n	-ms-transition: background-image .8s ease-in-out;\n	-o-transition: background-image .8s ease-in-out;\n	transition: background-image .8s ease-in-out;\n    width: 132px;\n}\n\n.motion {\n	background-image:url({boomtime_path}/img/jslot_images/reel_blur_transparent_white.png) #D8D0C5;\n}\n\nbutton {\n    cursor: pointer;\n    display: block;\n    font-size: 16px;\n    height: 33px;\n    margin: 20px auto;\n    width: 138px;\n}\n\n#result {\n    font-weight: bold;\n    margin: 20px 0;\n}\n\n#jackpot {\n	background: rgba(255, 255, 255, .5);\n    color: #414142;\n    display: none;\n    float: left;\n    font-weight: 400;\n    margin: 0 auto;\n    max-width: 408px;\n    min-height: 155px;\n    padding: 1em 2em 0;\n    position: absolute;\n    top: auto; left: 0; right: 0;\n    text-align: center;\n    vertical-align: middle;\n    width: 100%;\n    z-index: 10;\n}\n}\n\n#jackpot .wrapper {\n	/*border: 5px solid #FFF;\n	margin: 1em;*/\n	padding: 1em;\n}\n\n#jackpot h1 {\n	color: #CD2032;\n}\n\n#jackpot p {\n	margin-bottom: 0;\n}\n\n#jackpot p + p {\n	margin-top: 0;\n}\n\n.clear {\n	clear: both;\n}\n\n\n/* Media Queries\n--------------------------------------------- */\n\n\n/* HD/Retina CSS */\n@media\nonly screen and (-webkit-min-device-pixel-ratio: 1.25),\nonly screen and ( min--moz-device-pixel-ratio: 1.25),\nonly screen and ( -o-min-device-pixel-ratio: 1.25/1),\nonly screen and ( min-device-pixel-ratio: 1.25),\nonly screen and ( min-resolution: 200dpi),\nonly screen and ( min-resolution: 1.25dppx){\n    #wrapper {\n        max-width: 100%;\n        width: 100%;\n    }\n    \n    #container{\n        border:none;\n    }\n}\n\n\n/* iPads (portrait and landscape) ----------- */\n@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {\n	#wrapper {\n		max-width: 100%;\n	}\n	\n	#container {\n		border: 0;\n		min-width: 100%;\n	}\n}\n\n@media screen and (max-width: 650px) {\n	#wrapper {\n		max-width: 100%;\n	}\n	\n	#container {\n		border: 0;\n		min-width: 100%;\n	}\n}\n\n@media screen and (max-width: 485px) {\n	h1#page-title {\n		font-size: 31px;\n	}\n	\n	.row {\n		padding: 2em 1em;\n	}\n	\n	.inner {\n		max-width: 341px;\n	}\n	\n	input[type=\"submit\"], #control {\n		width: 110px;\n	}\n	\n	input[type=\"email\"] {\n		width: 224px;\n	}\n	\n	.slot {\n		background-size: 104px 1730px;\n		height: 128px;\n		width: 110px;\n	}\n	\n	#jackpot {\n		top: 22px;\n	}\n	\n	#jackpot p {\n		line-height: normal;\n	}\n	\n	#jackpot p:last-child {\n	    line-height: 15px;\n	    margin-top: 5px;\n	}\n	\n	textarea {\n		font-size: .72em;\n		height: 130px;\n	}\n}\n\n@media screen and (max-width: 380px) {\n	.inner {\n		width: 282px;\n	}\n	\n	input[type=\"submit\"], #control {\n		width: 90px;\n	}\n	\n	input[type=\"email\"] {\n		width: 186px;\n	}\n	\n	.slot {\n		background-size: 84px 1400px;\n		height: 105px;\n		width: 90px;\n	}\n	\n	#jackpot {\n		font-size: .85em;\n		min-height: inherit;\n		padding-bottom: .5em;\n	}\n}\n@media screen and (max-width: 340px) {\n	p {\n		font-size: 16px;\n	}\n	\n	.one-third {\n		margin-left: 0;\n		width: 100%;\n	}\n	\n	.one-third p {\n		margin: 0;\n	}\n	\n	.stars img {\n		max-width: 40px;\n	}\n}\n' WHERE `template`='117';
#RC 04.04.14 Mantis 0001649: UPDATE table template
#4.3.14 UPDATE END

#4.14.14 UPDATE BEGIN
UPDATE `sevence`.`email_marketing` SET `narrative` ='To {name}\r\n From {short_name}\r\n {promo_prize}\r\n {rate_business}', `body`='To {name}<br />\r From {short_name}<br />\r {promo_prize} <br />\r {rate_business}' WHERE `id`='promo';
#RC 02.05.14 Mantis 1516: UPDATE table email_marketing

ALTER TABLE `bim`.`scrape_queue` ADD COLUMN `scraper_id` TINYINT(2) NULL  AFTER `priority` ;
#KA BIM 04.10.2014 M1633: have scrape_queue api call work for multiple scrapers (also run on bim_production)

ALTER TABLE org_auto DROP yinyang;
#WFB 4.20.2012ish 530: Roboboom

#4.14.14 UPDATE END

#5.15.14 UPDATE BEGIN
ALTER TABLE `sevence`.`org_provider_link` ADD COLUMN `claimed` TINYINT(1) NULL DEFAULT 0  AFTER `url` , ADD COLUMN `verified` TINYINT(1) NULL DEFAULT 0  AFTER `claimed` ;
#KA 03.26.2014 M1640: Update profile tab in fuse

CREATE  TABLE `sevence`.`business_org` (
  `business` INT(11) NOT NULL ,
  `org` INT(11) NULL ,
  PRIMARY KEY (`business`) ,
  INDEX `business_org_fk_1_idx` (`org` ASC) ,
  CONSTRAINT `business_org_fk_1`
    FOREIGN KEY (`org` )
    REFERENCES `sevence`.`org` (`org` )
    ON DELETE NO ACTION
    ON UPDATE NO ACTION);

CREATE  TABLE `sevence`.`todo_type` (
  `todo_type` VARCHAR(20) NOT NULL ,
  `name` VARCHAR(50) NULL ,
  `alert_after` INT(11) NULL ,
  `days` INT(11) NULL ,
  PRIMARY KEY (`todo_type`) );

CREATE  TABLE `sevence`.`todo` (
  `todo` INT(11) NOT NULL AUTO_INCREMENT ,
  `todo_type` VARCHAR(20) NULL ,
  `business_org` INT(11) NULL ,
  `advisor` INT(11) NULL ,
  `date` DATETIME NULL ,
  `method` TINYINT(4) NULL ,
  `notes` TEXT NULL ,
  `status_date` DATETIME NULL ,
  `status` TINYINT(4) NULL ,
  PRIMARY KEY (`todo`) ,
  INDEX `todo_type_idx` (`todo_type` ASC) ,
  INDEX `business_org_idx` (`business_org` ASC) ,
  INDEX `advisor_idx` (`advisor` ASC) ,
  CONSTRAINT `todo_type`
    FOREIGN KEY (`todo_type` )
    REFERENCES `sevence`.`todo_type` (`todo_type` )
    ON DELETE NO ACTION
    ON UPDATE NO ACTION,
  CONSTRAINT `business_org`
    FOREIGN KEY (`business_org` )
    REFERENCES `sevence`.`business_org` (`business` )
    ON DELETE NO ACTION
    ON UPDATE NO ACTION,
  CONSTRAINT `advisor`
    FOREIGN KEY (`advisor` )
    REFERENCES `sevence`.`prof` (`prof` )
    ON DELETE NO ACTION
    ON UPDATE NO ACTION);

ALTER TABLE `sevence`.`org` ADD COLUMN `identity_management` TINYINT(1) NULL DEFAULT 0  AFTER `auto_org` ;
#KA 04.21.2014 M1677: Spin N Win game needs to be available for non-BIM orgs

ALTER TABLE `sevence`.`business_network_partner` ADD COLUMN `business_org` INT(11) NULL  AFTER `business_partner` , ADD COLUMN `business_id` INT(11) NULL  AFTER `business_org` ;
#RC 04.21.14 Mantis 1622: ADD two columns in business_network_partner table

ALTER TABLE `sevence`.`org_client` ADD COLUMN `referred_org` INT(11) NOT NULL DEFAULT '0'  AFTER `org_client_2` ;
#RC 04.22.14 Mantis 1622: ADD 1 column in org_client table

ALTER TABLE `sevence`.`org_setting` ADD COLUMN `bim_advisor` INT(11) NULL  AFTER `google_plusone_article` ;
#MM 04.22.2014 Mantis 1678 : add bim_advisor for basic settings

UPDATE `sevence`.`template` SET `content`='/*\n HTML5 Reset\n --------------------------------------------- */\n article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em;margin:.67em 0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}mark{background:#ff0;color:#000}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}pre{white-space:pre-wrap}q{quotes:\"\\201C\" \"\\201D\" \"\\2018\" \"\\2019\"}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}button,input{line-height:normal}button,select{text-transform:none}button,html input[type=\"button\"],input[type=\"reset\"],input[type=\"submit\"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}input[type=\"checkbox\"],input[type=\"radio\"]{box-sizing:border-box;padding:0}input[type=\"search\"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=\"search\"]::-webkit-search-cancel-button,input[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}\n \n /* Box Sizing\n --------------------------------------------- */\n *, input[type=\"search\"] {\n 	-webkit-box-sizing: border-box;\n 	-moz-box-sizing:    border-box;\n 	box-sizing:         border-box;\n }\n \n /* Float Clearing\n --------------------------------------------- */\n .archive-pagination:before,\n .clearfix:before,\n .entry:before,\n .entry-pagination:before,\n .footer-widgets:before,\n .nav-primary:before,\n .nav-secondary:before,\n .site-container:before,\n .site-footer:before,\n .site-header:before,\n .site-inner:before,\n .wrap:before {\n 	content: \" \";\n 	display: table;\n }\n \n .archive-pagination:after,\n .clearfix:after,\n .entry:after,\n .entry-pagination:after,\n .footer-widgets:after,\n .nav-primary:after,\n .nav-secondary:after,\n .site-container:after,\n .site-footer:after,\n .site-header:after,\n .site-inner:after,\n .wrap:after {\n 	clear: both;\n 	content: \" \";\n 	display: table;\n }\n \n \n /* Typographical Elements\n --------------------------------------------- */\n body, html {\n   height: 100%;\n }\n \n html {\n 	font-size: 62.5%; /* 10px browser default */\n }\n \n body {\n 	background: #EEE;\n 	color: #414142;\n 	font-family: \'Helvetica Neue\', Helvetica, Arial, sans-serif;\n 	font-size: 18px;\n 	font-weight: 300;\n 	line-height: normal;\n }\n \n p {\n 	line-height: 1.4;\n 	margin: 0 0 1em;\n }\n \n \n /* Links\n --------------------------------------------- */\n a,\n button,\n input:focus,\n input[type=\"button\"],\n input[type=\"reset\"],\n input[type=\"submit\"],\n textarea:focus,\n .button {\n 	-webkit-transition: all 0.1s ease-in-out;\n 	-moz-transition:    all 0.1s ease-in-out;\n 	-ms-transition:     all 0.1s ease-in-out;\n 	-o-transition:      all 0.1s ease-in-out;\n 	transition:         all 0.1s ease-in-out;\n }\n \n a {\n 	color: #cd2032;\n }\n \n a:hover {\n 	text-decoration: none;\n }\n \n .row.red a {\n 	color: #FFF;\n }\n \n \n /* Headings\n --------------------------------------------- */\n h1, h2, h3, h4 {\n 	font-weight: normal;\n 	margin: 0 0 10px;\n }\n \n h1#page-title {\n 	font-size: 30px;\n 	font-weight: bold;\n 	text-align: center;\n }\n \n /* Forms\n --------------------------------------------- */\n ::-webkit-input-placeholder {\n 	color: #414142;\n }\n :-moz-placeholder { /* Mozilla Firefox 4 to 18 */\n 	color: #414142;\n }\n ::-moz-placeholder { /* Mozilla Firefox 19+ */\n 	color: #414142;\n }\n :-ms-input-placeholder { /* Internet Explorer 10+ */\n 	color: #414142;\n }\n \n input[type=\"text\"], input[type=\"email\"], input[type=\"submit\"], textarea {\n     border: 1px solid #ABA8A8;\n     box-shadow: inset 0 0 2px #EEE;\n     color: #414142;\n     float: left;\n     font-size: 0.9em;\n     height: 42px;\n     margin: 0;\n     padding: .5em 1em;\n     width: 270px;\n }\n \n input[type=\"submit\"], #control {\n 	background: #CD2032;\n 	border: 0;\n 	color: #FFF;\n 	float: right;\n 	font-size: 1em;\n 	width: 132px;\n }\n \n textarea {\n 	font-size: .8em;\n 	height: 90px;\n 	padding: 1em;\n 	width: 100%;\n }\n \n /* Containers & Rows\n --------------------------------------------- */\n #wrapper {\n 	height: 100%;\n 	margin: 0 auto;\n 	max-width: 600px;\n 	width: 100%;\n }\n \n #container {\n 	background: #D8D0C5;\n 	border: 4px solid #414142;\n 	border-top: 0;\n 	float: left;\n 	font-size: 1em;\n 	width: 100%;\n }\n \n .header.row {\n 	background: url({boomtime_path}/img/jslot_images/tinpot-image.jpg) no-repeat center center #FFF;\n 	background-size: 100%;\n 	border-bottom:0px;\n 	padding-bottom: 2em;\n         padding-top: 1.4em;\n }\n \n .header img {\n 	display: block;\n 	margin: 0 auto;\n 	max-width: 100%;\n }\n \n .game p {\n 	font-size: .9em;\n 	margin: .5em 0 1em;\n 	text-align: center;\n }\n \n .game p:last-child {\n 	margin-bottom: 0;\n }\n \n .row {\n 	border-bottom: 1px solid #a1a1a1;\n 	float: left;\n 	padding: 2em;\n 	width: 100%;\n }\n \n \n .row.copyright {\n 	border: 0;\n 	border-top: 1px solid #a1a1a1;\n 	font-size: .7em;\n 	padding: 1em;\n 	text-align: center;\n }\n \n .row.copyright p {\n 	margin-bottom: 0;\n }\n \n .inner {\n 	margin: 0 auto;\n 	max-width: 408px;\n 	width: 100%;\n }\n \n .row.white {\n 	color: #cd2032;\n }\n \n .row.gray {\n 	background: #f1f1f1;\n }\n \n .row.dark-gray {\n 	background: #aba8a8;\n }\n \n .row.dark-gray p {\n 	margin-bottom: 0;\n }\n \n .row.white h1, .row.white h2 {\n 	color: #414142;\n }\n \n .row.red {\n 	background: #cd2032;\n 	color: #FFF;\n }\n \n .box {\n     float: left;\n     margin: 1em 0;\n     width: 100%;\n }\n \n .one-third {\n 	float: left;\n 	margin-left: 2.564102564102564%;\n 	width: 31.623931623931625%;\n }\n \n .first {\n 	margin-left: 0;\n 	padding-top: 0;\n }\n \n .stars {\n 	float: left;\n 	margin-bottom: 1em;\n 	text-align: center;\n 	width: 100%;\n }\n \n .social-media a, .footer a {\n 	text-decoration: none;\n }\n \n .social-media img {\n 	margin-right: .8em;\n }\n \n .social-media img:hover {\n 	opacity: .7;\n }\n \n .footer {\n 	font-size: .75em;\n 	padding: 1em;\n }\n \n .footer p {\n 	margin: 0;\n 	padding: 0;\n }\n \n .footer span {\n 	margin-right: 1em;\n }\n \n .footer a {\n 	color: #414142;\n }\n \n .footer a:hover {\n 	text-decoration: underline;\n }\n \n .one-third-container:after,\n #low-rating:after{\n 	content: \".\";\n 	display: block;\n 	clear: both;\n 	visibility: hidden;\n 	line-height: 0;\n 	height: 0;\n }\n  \n .one-third-container,\n #low-rating{\n 	display: inline-block;\n }\n  \n html[xmlns] .one-third-container,\n html[xmlns] #low-rating{\n 	display: block;\n }\n  \n * html .one-third-container,\n * html #low-rating{ \n 	height: 1%;\n }\n \n \n .one-third-container,\n #low-rating{\n     display: block;\n }\n /* Slot Machine\n --------------------------------------------- */\n .row.slotmachine {\n 	background: url({boomtime_path}/img/jslot_images/tinpot-image.jpg) no-repeat center center #FFF;\n 	background-size: 100%;\n 	position: relative;\n }\n \n .container {\n 	float: left;\n 	margin:0 auto;\n 	position: relative;\n 	text-align: center;\n 	width: 100%;\n }\n \n .slot-wrapper {\n 	 display: block;\n 	 margin: 0 auto;\n 	 text-align: center;\n }\n \n .slot {\n 	background:url({boomtime_path}/img/jslot_images/reel_normal_transparent_white.png) repeat-y 0 4px;\n     border: 3px solid #3a3a3c;\n     box-shadow: 0 0 6px #333 inset;\n     display: inline-block;\n     height: 154px;\n 	-webkit-transition: background-image .8s ease-in-out;\n 	-moz-transition: background-image .8s ease-in-out;\n 	-ms-transition: background-image .8s ease-in-out;\n 	-o-transition: background-image .8s ease-in-out;\n 	transition: background-image .8s ease-in-out;\n     width: 132px;\n }\n \n .motion {\n 	background-image:url({boomtime_path}/img/jslot_images/reel_blur_transparent_white.png) #D8D0C5;\n }\n \n button {\n     cursor: pointer;\n     display: block;\n     font-size: 16px;\n     height: 33px;\n     margin: 20px auto;\n     width: 138px;\n }\n \n #result {\n     font-weight: bold;\n     margin: 20px 0;\n }\n \n #jackpot {\n 	background: rgba(255, 255, 255, .5);\n     color: #414142;\n     display: none;\n     float: left;\n     font-weight: 400;\n     margin: 0 auto;\n     max-width: 408px;\n     min-height: 155px;\n     padding: 1em 2em 0;\n     position: absolute;\n     top: auto; left: 0; right: 0;\n     text-align: center;\n     vertical-align: middle;\n     width: 100%;\n     z-index: 10;\n }\n }\n \n #jackpot .wrapper {\n 	/*border: 5px solid #FFF;\n 	margin: 1em;*/\n 	padding: 1em;\n }\n \n #jackpot h1 {\n 	color: #CD2032;\n }\n \n #jackpot p {\n 	margin-bottom: 0;\n }\n \n #jackpot p + p {\n 	margin-top: 0;\n }\n \n .clear {\n 	clear: both;\n }\n \n \n /* Media Queries\n --------------------------------------------- */\n \n \n /* HD/Retina CSS */\n @media\n only screen and (-webkit-min-device-pixel-ratio: 1.25),\n only screen and ( min--moz-device-pixel-ratio: 1.25),\n only screen and ( -o-min-device-pixel-ratio: 1.25/1),\n only screen and ( min-device-pixel-ratio: 1.25),\n only screen and ( min-resolution: 200dpi),\n only screen and ( min-resolution: 1.25dppx){\n     #wrapper {\n         max-width: 100%;\n         width: 100%;\n     }\n     \n     #container{\n         border:none;\n     }\n }\n \n \n /* iPads (portrait and landscape) ----------- */\n @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {\n 	#wrapper {\n 		max-width: 100%;\n 	}\n 	\n 	#container {\n 		border: 0;\n 		min-width: 100%;\n 	}\n }\n \n @media screen and (max-width: 650px) {\n 	#wrapper {\n 		max-width: 100%;\n 	}\n 	\n 	#container {\n 		border: 0;\n 		min-width: 100%;\n 	}\n }\n \n @media screen and (max-width: 485px) {\n 	h1#page-title {\n 		font-size: 31px;\n 	}\n 	\n 	.row {\n 		padding: 2em 1em;\n 	}\n 	\n 	.inner {\n 		max-width: 341px;\n 	}\n 	\n 	input[type=\"submit\"], #control {\n 		width: 110px;\n 	}\n 	\n 	input[type=\"email\"] {\n 		width: 224px;\n 	}\n 	\n 	.slot {\n 		background-size: 104px 1730px;\n 		height: 128px;\n 		width: 110px;\n 	}\n 	\n 	#jackpot {\n 		top: 22px;\n 	}\n 	\n 	#jackpot p {\n 		line-height: normal;\n 	}\n 	\n 	#jackpot p:last-child {\n 	    line-height: 15px;\n 	    margin-top: 5px;\n 	}\n 	\n 	textarea {\n 		font-size: .72em;\n 		height: 130px;\n 	}\n }\n \n @media screen and (max-width: 380px) {\n 	.inner {\n 		width: 282px;\n 	}\n 	\n 	input[type=\"submit\"], #control {\n 		width: 90px;\n 	}\n 	\n 	input[type=\"email\"] {\n 		width: 186px;\n 	}\n 	\n 	.slot {\n 		background-size: 84px 1400px;\n 		height: 105px;\n 		width: 90px;\n 	}\n 	\n 	#jackpot {\n 		font-size: .85em;\n 		min-height: inherit;\n 		padding-bottom: .5em;\n 	}\n }\n @media screen and (max-width: 340px) {\n 	p {\n 		font-size: 16px;\n 	}\n 	\n 	.one-third {\n 		margin-left: 0;\n 		width: 100%;\n 	}\n 	\n 	.one-third p {\n 		margin: 0;\n 	}\n 	\n 	.stars img {\n 		max-width: 40px;\n 	}\n }\n ' WHERE `template`='117';
#RC 05.12.14 Mantis 1715: UPDATE table template JSLOT

ALTER TABLE `sevence`.`todo` ADD COLUMN `business_status` TINYINT(1) NULL DEFAULT 0  AFTER `notes` ;
#RC 05.09.14 Mantis 1710: Add business_status to todos

ALTER TABLE `bim`.`business` ADD COLUMN `score` INT(5) NULL DEFAULT 0  AFTER `scraped` ;
#KA 05.08.14 M1701: Include scorecard score with business list (both in prospect selection and competitor selection)

#5.15.14 UPDATE END

#5.23.14 UPDATE BEGIN
INSERT INTO `todo_type` VALUES ('appt','appointment',NULL,0),('business_id','select business ID',NULL,0),('call','called to make appointment',NULL,0),('close_prospect','Close this prospect',NULL,0),('competitors','select competitors',NULL,0),('confirm','confirm proposed date and time',NULL,0),('content_update','update content',NULL,0),('email','sent email for appointment',NULL,0),('follow_up','follow up',NULL,5),('gmail_addresses','propose gmail addresses',NULL,0),('personal_network_1','Enter your personal network',NULL,0),('personal_network_5','Enter your personal network',NULL,0),('phone_appt','make a phone appointment',NULL,21),('photos','take photos',NULL,0),('physical_appt','make an in-person appointment',NULL,21),('prep','Prepare for presentation',NULL,0),('presentation','presentation',NULL,0),('prospect_expires','This prospect expires',NULL,21),('referral_network_1','Enter the referral network',NULL,0),('referral_network_5','Enter the referral network',NULL,0),('set_presentation','call to make an appointment',NULL,5),('yahoo','set up yahoo email',NULL,0);

ALTER TABLE `sevence`.`business_org` ADD COLUMN `org_referral` INT(11) NULL DEFAULT 0 AFTER `org`;
#MT 05.16.14 Mantis 1721: Add org_referral to business_org

CREATE  TABLE `sevence`.`business_yahoo` (
  `business_org` INT(11) NOT NULL ,
  `user_name` VARCHAR(30) NULL ,
  `password` VARCHAR(30) NULL ,
  PRIMARY KEY (`business_org`) ,
  CONSTRAINT `business_org_fk1`
    FOREIGN KEY (`business_org` )
    REFERENCES `sevence`.`business_org` (`business` )
    ON DELETE NO ACTION
    ON UPDATE NO ACTION);
#RC 05.19.14 Mantis 1740: CREATE table business_yahoo

ALTER TABLE `sevence`.`business_yahoo` ADD COLUMN `last_update_photos` DATETIME NULL  AFTER `password` , ADD COLUMN `last_update_content` DATETIME NULL  AFTER `last_update_photos` , RENAME TO  `sevence`.`business_info` ;
#RC 05.20.14 Mantis 1749: RENAME table business_yahoo TO business_info and ADD two fields(last_update_photos,last_update_content)

INSERT INTO `sevence`.`email_marketing` (`type`, `id`, `org`, `active`, `name`, `subject`, `headline`, `narrative`, `body`, `email_cycle`, `hide`, `show_event`, `show_article`, `email_design`, `client_or_org`, `client_type`, `marketing_list`, `marketing_list_opt`, `org_type`, `org_restrict`, `editor`, `photo`, `photo_filename`, `offer`, `event`, `campaign_type`, `push_type`, `edit_date`, `edit_prof`, `permalink`, `show_reward`) VALUES ('1', 'sm_grand_prize', '967', '1', 'sm grand prize', 'You''ve won: Grand Prize!', 'Congratulations!', 'Congratulations! You have won a $100 gift certificate at {org_name}. We will be in touch with you about how to collect your prize.', 'Congratulations you have won a $100 gift certificate at {org_name}. We will be in touch with you about how to collect your prize.', '1', '0', '0', '0', '36', '0', '0', '0', '0', 'ALL', 'NONE', '0', '0', '', '0', '0', '0', '0', '2014-05-01 01:50:38', '12337', 'slotmachine-grand-prize', '0');
#RC 05.01.14 Mantis 1684: INSERT new email_id


#5.24.14 UPDATE END

#5.30.13 UPDATE BEGIN
ALTER TABLE `bim`.`advisor` ADD COLUMN `inside_sales` TINYINT(4) NULL DEFAULT 0  AFTER `status` ;
#MM 05.26.14 Mantis 1764: Add column field 'inside_sales' to advisor table and set default value to 0

CREATE TABLE `sevence`.`appt_date` (
  `appt_date` INT NOT NULL AUTO_INCREMENT,
  `todo` INT NULL,
  `advisor_date_1` DATETIME NULL,
  `advisor_date_2` DATETIME NULL,
  `advisor_date_3` DATETIME NULL,
  `business_proposed_date` DATETIME NULL,
  PRIMARY KEY (`appt_date`),
  INDEX `todo_idx` (`todo` ASC),
  CONSTRAINT `todo`
    FOREIGN KEY (`todo`)
    REFERENCES `sevence`.`todo` (`todo`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION);
#MT 05.16.14 Mantis 1778: CREATE TABLE appt_date

ALTER TABLE `sevence`.`todo` ADD COLUMN `followup_type` VARCHAR(45) NULL  AFTER `status` ,
  ADD CONSTRAINT `followup_type`
  FOREIGN KEY (`followup_type` )
  REFERENCES `sevence`.`todo_type` (`todo_type` )
  ON DELETE NO ACTION
  ON UPDATE NO ACTION
, ADD INDEX `followup_type_idx` (`followup_type` ASC) ;
#RC 05.27.14 Mantis 1777: UPDATE todo ADD COLUMN followup_type

ALTER TABLE `sevence`.`business_org` CHANGE COLUMN `org_referral` `referring_org` INT(11) NULL DEFAULT '0'  ;
#RC 05.28.14 Mantis 1773: RENAME column org_referral to referring_org

UPDATE `sevence`.`template` SET `name`='JSlot', `content`='/*  HTML5 Reset  --------------------------------------------- */  article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em;margin:.67em 0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}mark{background:#ff0;color:#000}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}pre{white-space:pre-wrap}q{quotes:\"\\201C\" \"\\201D\" \"\\2018\" \"\\2019\"}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}button,input{line-height:normal}button,select{text-transform:none}button,html input[type=\"button\"],input[type=\"reset\"],input[type=\"submit\"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}input[type=\"checkbox\"],input[type=\"radio\"]{box-sizing:border-box;padding:0}input[type=\"search\"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=\"search\"]::-webkit-search-cancel-button,input[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}    /* Box Sizing  --------------------------------------------- */  *, input[type=\"search\"] {  	-webkit-box-sizing: border-box;  	-moz-box-sizing:    border-box;  	box-sizing:         border-box;  }    /* Float Clearing  --------------------------------------------- */  .archive-pagination:before,  .clearfix:before,  .entry:before,  .entry-pagination:before,  .footer-widgets:before,  .nav-primary:before,  .nav-secondary:before,  .site-container:before,  .site-footer:before,  .site-header:before,  .site-inner:before,  .wrap:before {  	content: \" \";  	display: table;  }    .archive-pagination:after,  .clearfix:after,  .entry:after,  .entry-pagination:after,  .footer-widgets:after,  .nav-primary:after,  .nav-secondary:after,  .site-container:after,  .site-footer:after,  .site-header:after,  .site-inner:after,  .wrap:after {  	clear: both;  	content: \" \";  	display: table;  }      /* Typographical Elements  --------------------------------------------- */  body, html {    height: 100%;  }    html {  	font-size: 62.5%; /* 10px browser default */  }    body {  	background: #EEE;  	color: #414142;  	font-family: \'Helvetica Neue\', Helvetica, Arial, sans-serif;  	font-size: 18px;  	font-weight: 300;  	line-height: normal;  }    p {  	line-height: 1.4;  	margin: 0 0 1em;  }      /* Links  --------------------------------------------- */  a,  button,  input:focus,  input[type=\"button\"],  input[type=\"reset\"],  input[type=\"submit\"],  textarea:focus,  .button {  	-webkit-transition: all 0.1s ease-in-out;  	-moz-transition:    all 0.1s ease-in-out;  	-ms-transition:     all 0.1s ease-in-out;  	-o-transition:      all 0.1s ease-in-out;  	transition:         all 0.1s ease-in-out;  }    a {  	color: #cd2032;  }    a:hover {  	text-decoration: none;  }    .row.red a {  	color: #FFF;  }      /* Headings  --------------------------------------------- */  h1, h2, h3, h4 {  	font-weight: normal;  	margin: 0 0 10px;  }    h1#page-title {  	font-size: 30px;  	font-weight: bold;  	text-align: center;  }    /* Forms  --------------------------------------------- */  ::-webkit-input-placeholder {  	color: #414142;  }  :-moz-placeholder { /* Mozilla Firefox 4 to 18 */  	color: #414142;  }  ::-moz-placeholder { /* Mozilla Firefox 19+ */  	color: #414142;  }  :-ms-input-placeholder { /* Internet Explorer 10+ */  	color: #414142;  }    input[type=\"text\"], input[type=\"email\"], input[type=\"submit\"], textarea {      border: 1px solid #ABA8A8;      box-shadow: inset 0 0 2px #EEE;      color: #414142;      float: left;      font-size: 0.9em;      height: 42px;      margin: 0;      padding: .5em 1em;      width: 270px;  }    input[type=\"submit\"], #control {  	background: #CD2032;  	border: 0;  	color: #FFF;  	float: right;  	font-size: 1em;  	width: 132px;  }    textarea {  	font-size: .8em;  	height: 90px;  	padding: 1em;  	width: 100%;  }    /* Containers & Rows  --------------------------------------------- */  #wrapper {  	height: 100%;  	margin: 0 auto;  	max-width: 600px;  	width: 100%;  }    #container {  	background: #D8D0C5;  	border: 4px solid #414142;  	border-top: 0;  	float: left;  	font-size: 1em;  	width: 100%;  }    .header.row {  	background: url({boomtime_path}/img/jslot_images/tinpot-image.jpg) no-repeat center center #FFF;  	background-size: 100%;  	border-bottom:0px;  	padding-bottom: 2em;          padding-top: 1.4em;  }    .header img {  	display: block;  	margin: 0 auto;  	max-width: 100%;  }    .game p {  	font-size: .9em;  	margin: .5em 0 1em;  	text-align: center;  }    .game p:last-child {  	margin-bottom: 0;  }    .row {  	float: left;  	padding: 2em;  	width: 100%;  }      .row.copyright {  	border: 0;  	border-top: 1px solid #a1a1a1;  	font-size: .7em;  	padding: 1em;  	text-align: center;  }    .row.copyright p {  	margin-bottom: 0;  }    .inner {  	margin: 0 auto;  	max-width: 408px;  	width: 100%;  }    .row.white {  	color: #cd2032;  }    .row.gray {  	background: #f1f1f1;  }    .row.dark-gray {  	background: #aba8a8;  }    .row.dark-gray p {  	margin-bottom: 0;  }    .row.white h1, .row.white h2 {  	color: #414142;  }    .row.red {  	background: #cd2032;  	color: #FFF;  }    .box {      float: left;      margin: 1em 0;      width: 100%;  }    .one-third {  	float: left;  	margin-left: 2.564102564102564%;  	width: 31.623931623931625%;  }    .first {  	margin-left: 0;  	padding-top: 0;  }    .stars {  	float: left;  	margin-bottom: 1em;  	text-align: center;  	width: 100%;  }    .social-media a, .footer a {  	text-decoration: none;  }    .social-media img {  	margin-right: .8em;  }    .social-media img:hover {  	opacity: .7;  }    .footer {  	font-size: .75em;  	padding: 1em;  }    .footer p {  	margin: 0;  	padding: 0;  }    .footer span {  	margin-right: 1em;  }    .footer a {  	color: #414142;  }    .footer a:hover {  	text-decoration: underline;  }    .one-third-container:after,  #low-rating:after{  	content: \".\";  	display: block;  	clear: both;  	visibility: hidden;  	line-height: 0;  	height: 0;  }     .one-third-container,  #low-rating{  	display: inline-block;  }     html[xmlns] .one-third-container,  html[xmlns] #low-rating{  	display: block;  }     * html .one-third-container,  * html #low-rating{   	height: 1%;  }      .one-third-container,  #low-rating{      display: block;  }  /* Slot Machine  --------------------------------------------- */  .row.slotmachine {  	background: url({boomtime_path}/img/jslot_images/tinpot-image.jpg) no-repeat center center #FFF;  	background-size: 100%;  	position: relative;  }    .container {  	float: left;  	margin:0 auto;  	position: relative;  	text-align: center;  	width: 100%;  }    .slot-wrapper {  	 display: block;  	 margin: 0 auto;  	 text-align: center;  }    .slot {  	background:url({boomtime_path}/img/jslot_images/reel_normal_transparent_white.png) repeat-y 0 4px;      border: 3px solid #3a3a3c;      box-shadow: 0 0 6px #333 inset;      display: inline-block;      height: 154px;  	-webkit-transition: background-image .8s ease-in-out;  	-moz-transition: background-image .8s ease-in-out;  	-ms-transition: background-image .8s ease-in-out;  	-o-transition: background-image .8s ease-in-out;  	transition: background-image .8s ease-in-out;      width: 132px;  }    .motion {  	background-image:url({boomtime_path}/img/jslot_images/reel_blur_transparent_white.png) #D8D0C5;  }    button {      cursor: pointer;      display: block;      font-size: 16px;      height: 33px;      margin: 20px auto;      width: 138px;  }    #result {      font-weight: bold;      margin: 20px 0;  }    #jackpot {  	background: rgba(255, 255, 255, .5);      color: #414142;      display: none;      float: left;      font-weight: 400;      margin: 0 auto;      max-width: 408px;      min-height: 155px;      padding: 1em 2em 0;      position: absolute;      top: auto; left: 0; right: 0;      text-align: center;      vertical-align: middle;      width: 100%;      z-index: 10;  }  }    #jackpot .wrapper {  	/*border: 5px solid #FFF;  	margin: 1em;*/  	padding: 1em;  }    #jackpot h1 {  	color: #CD2032;  }    #jackpot p {  	margin-bottom: 0;  }    #jackpot p + p {  	margin-top: 0;  }    .clear {  	clear: both;  }      /* Media Queries  --------------------------------------------- */      /* HD/Retina CSS */  @media  only screen and (-webkit-min-device-pixel-ratio: 1.25),  only screen and ( min--moz-device-pixel-ratio: 1.25),  only screen and ( -o-min-device-pixel-ratio: 1.25/1),  only screen and ( min-device-pixel-ratio: 1.25),  only screen and ( min-resolution: 200dpi),  only screen and ( min-resolution: 1.25dppx){      #wrapper {          max-width: 100%;          width: 100%;      }            #container{          border:none;      }  }      /* iPads (portrait and landscape) ----------- */  @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {  	#wrapper {  		max-width: 100%;  	}  	  	#container {  		border: 0;  		min-width: 100%;  	}  }    @media screen and (max-width: 650px) {  	#wrapper {  		max-width: 100%;  	}  	  	#container {  		border: 0;  		min-width: 100%;  	}  }    @media screen and (max-width: 485px) {  	h1#page-title {  		font-size: 31px;  	}  	  	.row {  		padding: 2em 1em;  	}  	  	.inner {  		max-width: 341px;  	}  	  	input[type=\"submit\"], #control {  		width: 110px;  	}  	  	input[type=\"email\"] {  		width: 224px;  	}  	  	.slot {  		background-size: 104px 1730px;  		height: 128px;  		width: 110px;  	}  	  	#jackpot {  		top: 22px;  	}  	  	#jackpot p {  		line-height: normal;  	}  	  	#jackpot p:last-child {  	    line-height: 15px;  	    margin-top: 5px;  	}  	  	textarea {  		font-size: .72em;  		height: 130px;  	}  }    @media screen and (max-width: 380px) {  	.inner {  		width: 282px;  	}  	  	input[type=\"submit\"], #control {  		width: 90px;  	}  	  	input[type=\"email\"] {  		width: 186px;  	}  	  	.slot {  		background-size: 84px 1400px;  		height: 105px;  		width: 90px;  	}  	  	#jackpot {  		font-size: .85em;  		min-height: inherit;  		padding-bottom: .5em;  	}  }  @media screen and (max-width: 340px) {  	p {  		font-size: 16px;  	}  	  	.one-third {  		margin-left: 0;  		width: 100%;  	}  	  	.one-third p {  		margin: 0;  	}  	  	.stars img {  		max-width: 40px;  	}  }  ' WHERE `template`='117';
#MM 05.29.14 Mantis 1760: Remove border bottom

ALTER TABLE `sevence`.`todo` ADD COLUMN `temp_data` TEXT NULL  AFTER `followup_type` ;
#RC 05.30.14 Mantis 1792: UPDATE todo ADD COLUMN temp_data
#5.30.14 UPDATE END

update `bim`.`business` set `score` = 0 where `score` is null;
ALTER TABLE `bim`.`business` CHANGE `score` `score` INT(5) NOT NULL DEFAULT '0';
#BEM 06.02.14 make business.score default to 0 with no nulls

alter table `bim`.`scrape_queue` drop index priority;
ALTER TABLE `bim`.`scrape_queue` ADD INDEX `scraper_id` (`scraper_id`,`priority`,`entered_date`);
#BEM 06.03.14 make business.score default to 0 with no nulls

#6.12.14 UPDATE BEGIN
ALTER TABLE `sevence`.`business_network_partner` DROP COLUMN `business_id` ;
ALTER TABLE `sevence`.`business_network_partner` CHANGE COLUMN `business_org` `business` INT(11) NULL DEFAULT NULL  ;
#RC 06.10.14 Mantis 1808: DELETE column business_in IN business_network_partner table
#6.12.14 UPDATE END

#7.15.14 UPDATE BEGIN
ALTER TABLE `sevence`.`org_client` ADD COLUMN `opt_in_attempts` INT(11) NOT NULL DEFAULT '0'  AFTER `referred_org` ;
#RC 06.05.14 Mantis 1796: UPDATE org_client ADD COLUMN opt_in_attempts

ALTER TABLE `sevence`.`todo` 
ADD COLUMN `timezone` VARCHAR(45) NULL DEFAULT NULL AFTER `notes`;
#MT 06.06.14 Mantis 0001798: TODO API: include timezone

ALTER TABLE `sevence`.`business_network_partner` DROP COLUMN `business_id` ;
ALTER TABLE `sevence`.`business_network_partner` CHANGE COLUMN `business_org` `business` INT(11) NULL DEFAULT NULL  ;
#RC 06.10.14 Mantis 1808: DELETE column business_in IN business_network_partner table
CREATE TABLE `stripe_gift_tran` (
  `stripe_gift_tran` int(11) NOT NULL,
  `org` int(11) NOT NULL,
  `stripe_charge_id` varchar(40) NOT NULL,
  `transaction_type` tinyint(11) NOT NULL,
  `transaction_amount` decimal(12,2) NOT NULL,
  `org_tran` int(11) NOT NULL,
  `entered_date` datetime NOT NULL,
  `commission` varchar(50) NOT NULL,
  `stripe_reported_commission_amount` int(11) DEFAULT NULL,
  `stripe_amount_refunded` int(11) DEFAULT NULL,
  PRIMARY KEY (`stripe_gift_tran`),
  KEY `org_tran` (`org_tran`),
  KEY `org` (`org`),
  KEY `entered_date` (`entered_date`),
  KEY `stripe_charge_id` (`stripe_charge_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
#JTW 06.27.14 Mantis 1814:  New table for stripe reporting across all orgs.  Populated by populate_stripe_gift_tran, and gathers Stripe information from batch_update_stripe_gift_tran

CREATE TABLE `sevence`.`training` (
  `training` VARCHAR(40) NOT NULL,
  `training_url` VARCHAR(20) NULL,
  PRIMARY KEY (`training`));
#MT 06.24.14 Mantis 1853: Training API: data structure and GET calls

ALTER TABLE `sevence`.`training` ADD COLUMN `training_content` TEXT NULL DEFAULT NULL  AFTER `training` ;
#RC 07.01.14 Mantis 1853: Training API: ALTER ADD column training_content for traning table

UPDATE `sevence`.`offer_type` SET `expire_days`='30', `last_offer_id`='70000' WHERE `org`='967' AND `offer_base`='promo';
#KA 07.01.14 M1878: Changes to promo offer_type

ALTER TABLE `sevence`.`service_option` ADD COLUMN zero_price_text VARCHAR(50) NOT NULL DEFAULT 'Complimentary';
#JTW 06.18.14 Mantis 1815: create a zero_price_text column.

ALTER TABLE `sevence`.`service` ADD COLUMN `no_prof` TINYINT(1) NULL DEFAULT '0'  AFTER `processing_time` ;
#RC 06.23.14 Mantis 1802: ADD column no_prof IN service table
#7.15.14 UPDATE END

#9.8.14 UPDATE BEGIN
ALTER TABLE `sevence`.`org_hour` ADD COLUMN `open_all_day` TINYINT(1) NULL DEFAULT 0  AFTER `saturday_close_ext` ;
ALTER TABLE `sevence`.`org_hour` ADD COLUMN `appointment_only` VARCHAR(255) NULL  AFTER `open_all_day` ;
#KA 05.16.2014 M1625: Restaurants keep funny hours (and so do other businesses)

ALTER TABLE `sevence`.`org` ADD COLUMN `security_pin` INT NULL  AFTER `identity_management` ;
#MM 07.16.14 M1914: Add pin code for org basics

CREATE TABLE `promo_card_print` (
  `promo_card_print` int(11) NOT NULL AUTO_INCREMENT,
  `prof` int(11) DEFAULT NULL,
  `quantity` varchar(45) DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `status` tinyint(4) DEFAULT NULL,
  PRIMARY KEY (`promo_card_print`),
  KEY `prof_idx` (`prof`),
  CONSTRAINT `prof_key` FOREIGN KEY (`prof`) REFERENCES `prof` (`prof`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
#MT 07.21.14 Mantis 1924: Promo Card printing

CREATE TABLE `undo_todo` (
  `todo_atom` int(11) NOT NULL,
  `post_data` text,
  `query_statement` text,
  PRIMARY KEY (`todo_atom`)
) ENGINE=InnoDB
#RC 07.23.14 Mantis 1929: CREATE undo_todo table

CREATE TABLE `business_additional_info` (
  `business_additional_info` int(11) NOT NULL AUTO_INCREMENT,
  `business` int(11) DEFAULT NULL,
  `first_name` varchar(45) DEFAULT NULL,
  `last_name` varchar(45) DEFAULT NULL,
  `gender` varchar(6) DEFAULT NULL,
  `birthday` varchar(30) DEFAULT NULL,
  `business_phone_no` varchar(30) DEFAULT NULL,
  `primary_contact` varchar(30) DEFAULT NULL,
  `alternate_contact` varchar(30) DEFAULT NULL,
  `contact_time_preferences` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`business_additional_info`),
  KEY `business_id_idx` (`business`),
  CONSTRAINT `business` FOREIGN KEY (`business`) REFERENCES `business_org` (`business`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
#MT 07.22.14 Mantis 1927: Expand the billing_signup API

CREATE  TABLE `bim_production`.`scrape_score` (
  `scrape_score` INT(11) NOT NULL AUTO_INCREMENT ,
  `business` INT(11) NULL ,
  `date` DATE NULL ,
  `score` INT(5) NULL ,
  PRIMARY KEY (`scrape_score`) ,
  INDEX `scrape_score_fk_1_idx` (`business` ASC) ,
  CONSTRAINT `scrape_score_fk_1`
    FOREIGN KEY (`business` )
    REFERENCES `bim`.`business` (`business` )
    ON DELETE NO ACTION
    ON UPDATE NO ACTION);
#KA 08.07.2014 M1921

ALTER TABLE `sevence`.`org_auth_data` 
ADD COLUMN `owner_cell_number` VARCHAR(15) NULL AFTER `owner_bio`,
ADD COLUMN `owner_dob` DATE NULL AFTER `owner_cell_number`,
ADD COLUMN `owner_gender` VARCHAR(10) NULL AFTER `owner_last_name`,
ADD COLUMN `primary_contact_name` VARCHAR(50) NULL AFTER `price_range`,
ADD COLUMN `primary_contact_number` VARCHAR(15) NULL AFTER `primary_contact_name`,
ADD COLUMN `alternate_contact_name` VARCHAR(50) NULL AFTER `primary_contact_number`,
ADD COLUMN `alternate_contact_number` VARCHAR(15) NULL AFTER `alternate_contact_name`,
ADD COLUMN `preferred_contact_time` VARCHAR(100) NULL AFTER `alternate_contact_number`;
#MT 08.07.14 Mantis 1957:  API: adding things to the business object

ALTER TABLE `sevence`.`org_auth_data` 
ADD COLUMN `neustar_category` VARCHAR(50) NULL AFTER `mobile_phone`;
#MT 08.07.14 Mantis 1959: API: add neustar category to business object GET/Put

CREATE TABLE `promo_card_setting` (
  `promo_card_setting` int(11) NOT NULL AUTO_INCREMENT,
  `card_style` varchar(50) DEFAULT NULL,
  `card_setting` varchar(50) DEFAULT NULL,
  `orientation` varchar(10) DEFAULT NULL,
  `font_size` int(11) DEFAULT NULL,
  `font_style` varchar(100) DEFAULT NULL,
  `font_color` varchar(20) DEFAULT NULL,
  `angle` int(11) DEFAULT NULL,
  `pos_x` int(11) DEFAULT NULL,
  `pos_y` int(11) DEFAULT NULL,
  `uppercase` TINYINT(1) NULL DEFAULT '0',
  `text` text,
  PRIMARY KEY (`promo_card_setting`),
  KEY `promo_card_idx` (`card_style`)
);
#RC 08.12.14 Mantis 1971: CREATE promo_card_setting table

INSERT INTO `gift_design` (`gift_design`,`filetype`,`font_1`,`font_size_1`,`font_color_1`,`font_2`,`font_size_2`,`font_color_2`,`font_3`,`font_size_3`,`font_color_3`,`to_x`,`to_y`,`from_x`,`from_y`,`value_x`,`value_y`,`value_width`,`value_height`,`value_pos`,`message_x`,`message_y`,`message_width`,`message_height`,`message_pos`,`expiration_x`,`expiration_y`,`expiration_align`,`legal_x`,`legal_y`,`legal_width`,`date_x`,`date_y`,`date_align`,`gift_no_x`,`gift_no_y`,`gift_no_align`,`barcode_x`,`barcode_y`,`logo_x`,`logo_y`,`logo_pos`,`phone_x`,`phone_y`,`phone_align`,`website_x`,`website_y`,`website_align`,`website_phone_x`,`website_phone_y`,`website_phone_align`,`font_4`,`font_size_4`,`font_color_4`) VALUES (2360,0,'Century Gothic',12,0,'Century Gothic',10,0,'Century Gothic',10,0,0,0,0,0,0,0,0,0,0,63,458,560,190,0,79,730,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,NULL,0,0);
INSERT INTO `gift_design` (`gift_design`,`filetype`,`font_1`,`font_size_1`,`font_color_1`,`font_2`,`font_size_2`,`font_color_2`,`font_3`,`font_size_3`,`font_color_3`,`to_x`,`to_y`,`from_x`,`from_y`,`value_x`,`value_y`,`value_width`,`value_height`,`value_pos`,`message_x`,`message_y`,`message_width`,`message_height`,`message_pos`,`expiration_x`,`expiration_y`,`expiration_align`,`legal_x`,`legal_y`,`legal_width`,`date_x`,`date_y`,`date_align`,`gift_no_x`,`gift_no_y`,`gift_no_align`,`barcode_x`,`barcode_y`,`logo_x`,`logo_y`,`logo_pos`,`phone_x`,`phone_y`,`phone_align`,`website_x`,`website_y`,`website_align`,`website_phone_x`,`website_phone_y`,`website_phone_align`,`font_4`,`font_size_4`,`font_color_4`) VALUES (2361,0,'Century Gothic',12,0,'Century Gothic',10,0,'Century Gothic',10,0,0,0,0,0,0,0,0,0,0,104,526,600,180,0,141,744,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,NULL,0,0);
INSERT INTO `gift_design` (`gift_design`,`filetype`,`font_1`,`font_size_1`,`font_color_1`,`font_2`,`font_size_2`,`font_color_2`,`font_3`,`font_size_3`,`font_color_3`,`to_x`,`to_y`,`from_x`,`from_y`,`value_x`,`value_y`,`value_width`,`value_height`,`value_pos`,`message_x`,`message_y`,`message_width`,`message_height`,`message_pos`,`expiration_x`,`expiration_y`,`expiration_align`,`legal_x`,`legal_y`,`legal_width`,`date_x`,`date_y`,`date_align`,`gift_no_x`,`gift_no_y`,`gift_no_align`,`barcode_x`,`barcode_y`,`logo_x`,`logo_y`,`logo_pos`,`phone_x`,`phone_y`,`phone_align`,`website_x`,`website_y`,`website_align`,`website_phone_x`,`website_phone_y`,`website_phone_align`,`font_4`,`font_size_4`,`font_color_4`) VALUES (2362,0,'Century Gothic',12,0,'Century Gothic',10,0,'Century Gothic',10,0,0,0,0,0,0,0,0,0,0,486,553,530,100,0,492,699,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,NULL,0,0);
INSERT INTO `gift_design` (`gift_design`,`filetype`,`font_1`,`font_size_1`,`font_color_1`,`font_2`,`font_size_2`,`font_color_2`,`font_3`,`font_size_3`,`font_color_3`,`to_x`,`to_y`,`from_x`,`from_y`,`value_x`,`value_y`,`value_width`,`value_height`,`value_pos`,`message_x`,`message_y`,`message_width`,`message_height`,`message_pos`,`expiration_x`,`expiration_y`,`expiration_align`,`legal_x`,`legal_y`,`legal_width`,`date_x`,`date_y`,`date_align`,`gift_no_x`,`gift_no_y`,`gift_no_align`,`barcode_x`,`barcode_y`,`logo_x`,`logo_y`,`logo_pos`,`phone_x`,`phone_y`,`phone_align`,`website_x`,`website_y`,`website_align`,`website_phone_x`,`website_phone_y`,`website_phone_align`,`font_4`,`font_size_4`,`font_color_4`) VALUES (2363,0,'Century Gothic',12,0,'Century Gothic',10,0,'Century Gothic',10,0,0,0,0,0,0,0,0,0,0,260,572,550,150,0,261,723,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,NULL,0,0);
INSERT INTO `gift_design` (`gift_design`,`filetype`,`font_1`,`font_size_1`,`font_color_1`,`font_2`,`font_size_2`,`font_color_2`,`font_3`,`font_size_3`,`font_color_3`,`to_x`,`to_y`,`from_x`,`from_y`,`value_x`,`value_y`,`value_width`,`value_height`,`value_pos`,`message_x`,`message_y`,`message_width`,`message_height`,`message_pos`,`expiration_x`,`expiration_y`,`expiration_align`,`legal_x`,`legal_y`,`legal_width`,`date_x`,`date_y`,`date_align`,`gift_no_x`,`gift_no_y`,`gift_no_align`,`barcode_x`,`barcode_y`,`logo_x`,`logo_y`,`logo_pos`,`phone_x`,`phone_y`,`phone_align`,`website_x`,`website_y`,`website_align`,`website_phone_x`,`website_phone_y`,`website_phone_align`,`font_4`,`font_size_4`,`font_color_4`) VALUES (2364,0,'Century Gothic',12,0,'Century Gothic',10,0,'Century Gothic',10,0,0,0,0,0,0,0,0,0,0,86,504,650,200,0,86,702,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,NULL,0,0);
INSERT INTO `gift_design` (`gift_design`,`filetype`,`font_1`,`font_size_1`,`font_color_1`,`font_2`,`font_size_2`,`font_color_2`,`font_3`,`font_size_3`,`font_color_3`,`to_x`,`to_y`,`from_x`,`from_y`,`value_x`,`value_y`,`value_width`,`value_height`,`value_pos`,`message_x`,`message_y`,`message_width`,`message_height`,`message_pos`,`expiration_x`,`expiration_y`,`expiration_align`,`legal_x`,`legal_y`,`legal_width`,`date_x`,`date_y`,`date_align`,`gift_no_x`,`gift_no_y`,`gift_no_align`,`barcode_x`,`barcode_y`,`logo_x`,`logo_y`,`logo_pos`,`phone_x`,`phone_y`,`phone_align`,`website_x`,`website_y`,`website_align`,`website_phone_x`,`website_phone_y`,`website_phone_align`,`font_4`,`font_size_4`,`font_color_4`) VALUES (2365,0,'Century Gothic',12,0,'Century Gothic',10,0,'Century Gothic',10,0,0,0,0,0,0,0,0,300,0,241,523,600,120,0,241,656,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,NULL,0,0);
INSERT INTO `gift_design` (`gift_design`,`filetype`,`font_1`,`font_size_1`,`font_color_1`,`font_2`,`font_size_2`,`font_color_2`,`font_3`,`font_size_3`,`font_color_3`,`to_x`,`to_y`,`from_x`,`from_y`,`value_x`,`value_y`,`value_width`,`value_height`,`value_pos`,`message_x`,`message_y`,`message_width`,`message_height`,`message_pos`,`expiration_x`,`expiration_y`,`expiration_align`,`legal_x`,`legal_y`,`legal_width`,`date_x`,`date_y`,`date_align`,`gift_no_x`,`gift_no_y`,`gift_no_align`,`barcode_x`,`barcode_y`,`logo_x`,`logo_y`,`logo_pos`,`phone_x`,`phone_y`,`phone_align`,`website_x`,`website_y`,`website_align`,`website_phone_x`,`website_phone_y`,`website_phone_align`,`font_4`,`font_size_4`,`font_color_4`) VALUES (2366,0,'Century Gothic',12,0,'Century Gothic',10,0,'Century Gothic',10,0,0,0,0,0,0,212,0,0,0,247,526,600,150,0,227,677,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,NULL,0,0);
INSERT INTO `gift_design` (`gift_design`,`filetype`,`font_1`,`font_size_1`,`font_color_1`,`font_2`,`font_size_2`,`font_color_2`,`font_3`,`font_size_3`,`font_color_3`,`to_x`,`to_y`,`from_x`,`from_y`,`value_x`,`value_y`,`value_width`,`value_height`,`value_pos`,`message_x`,`message_y`,`message_width`,`message_height`,`message_pos`,`expiration_x`,`expiration_y`,`expiration_align`,`legal_x`,`legal_y`,`legal_width`,`date_x`,`date_y`,`date_align`,`gift_no_x`,`gift_no_y`,`gift_no_align`,`barcode_x`,`barcode_y`,`logo_x`,`logo_y`,`logo_pos`,`phone_x`,`phone_y`,`phone_align`,`website_x`,`website_y`,`website_align`,`website_phone_x`,`website_phone_y`,`website_phone_align`,`font_4`,`font_size_4`,`font_color_4`) VALUES (2367,0,'Century Gothic',12,0,'Century Gothic',10,0,'Century Gothic',10,0,0,0,0,0,0,0,0,0,0,14,523,430,120,0,18,660,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,NULL,0,0);
INSERT INTO `gift_design` (`gift_design`,`filetype`,`font_1`,`font_size_1`,`font_color_1`,`font_2`,`font_size_2`,`font_color_2`,`font_3`,`font_size_3`,`font_color_3`,`to_x`,`to_y`,`from_x`,`from_y`,`value_x`,`value_y`,`value_width`,`value_height`,`value_pos`,`message_x`,`message_y`,`message_width`,`message_height`,`message_pos`,`expiration_x`,`expiration_y`,`expiration_align`,`legal_x`,`legal_y`,`legal_width`,`date_x`,`date_y`,`date_align`,`gift_no_x`,`gift_no_y`,`gift_no_align`,`barcode_x`,`barcode_y`,`logo_x`,`logo_y`,`logo_pos`,`phone_x`,`phone_y`,`phone_align`,`website_x`,`website_y`,`website_align`,`website_phone_x`,`website_phone_y`,`website_phone_align`,`font_4`,`font_size_4`,`font_color_4`) VALUES (2368,0,'Century Gothic',12,0,'Century Gothic',10,0,'Century Gothic',10,0,0,0,0,0,0,0,0,0,0,561,481,500,160,0,566,636,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,NULL,0,0);
INSERT INTO `gift_design` (`gift_design`,`filetype`,`font_1`,`font_size_1`,`font_color_1`,`font_2`,`font_size_2`,`font_color_2`,`font_3`,`font_size_3`,`font_color_3`,`to_x`,`to_y`,`from_x`,`from_y`,`value_x`,`value_y`,`value_width`,`value_height`,`value_pos`,`message_x`,`message_y`,`message_width`,`message_height`,`message_pos`,`expiration_x`,`expiration_y`,`expiration_align`,`legal_x`,`legal_y`,`legal_width`,`date_x`,`date_y`,`date_align`,`gift_no_x`,`gift_no_y`,`gift_no_align`,`barcode_x`,`barcode_y`,`logo_x`,`logo_y`,`logo_pos`,`phone_x`,`phone_y`,`phone_align`,`website_x`,`website_y`,`website_align`,`website_phone_x`,`website_phone_y`,`website_phone_align`,`font_4`,`font_size_4`,`font_color_4`) VALUES (2369,0,'Century Gothic',12,0,'Century Gothic',10,0,'Century Gothic',10,0,0,0,0,0,0,0,0,0,0,348,539,550,160,0,350,708,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,NULL,0,0);
INSERT INTO `gift_design` (`gift_design`,`filetype`,`font_1`,`font_size_1`,`font_color_1`,`font_2`,`font_size_2`,`font_color_2`,`font_3`,`font_size_3`,`font_color_3`,`to_x`,`to_y`,`from_x`,`from_y`,`value_x`,`value_y`,`value_width`,`value_height`,`value_pos`,`message_x`,`message_y`,`message_width`,`message_height`,`message_pos`,`expiration_x`,`expiration_y`,`expiration_align`,`legal_x`,`legal_y`,`legal_width`,`date_x`,`date_y`,`date_align`,`gift_no_x`,`gift_no_y`,`gift_no_align`,`barcode_x`,`barcode_y`,`logo_x`,`logo_y`,`logo_pos`,`phone_x`,`phone_y`,`phone_align`,`website_x`,`website_y`,`website_align`,`website_phone_x`,`website_phone_y`,`website_phone_align`,`font_4`,`font_size_4`,`font_color_4`) VALUES (2370,0,'Century Gothic',12,0,'Century Gothic',10,0,'Century Gothic',10,0,0,0,0,0,0,0,0,0,0,337,478,390,80,0,438,565,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,NULL,0,0);
INSERT INTO `gift_design` (`gift_design`,`filetype`,`font_1`,`font_size_1`,`font_color_1`,`font_2`,`font_size_2`,`font_color_2`,`font_3`,`font_size_3`,`font_color_3`,`to_x`,`to_y`,`from_x`,`from_y`,`value_x`,`value_y`,`value_width`,`value_height`,`value_pos`,`message_x`,`message_y`,`message_width`,`message_height`,`message_pos`,`expiration_x`,`expiration_y`,`expiration_align`,`legal_x`,`legal_y`,`legal_width`,`date_x`,`date_y`,`date_align`,`gift_no_x`,`gift_no_y`,`gift_no_align`,`barcode_x`,`barcode_y`,`logo_x`,`logo_y`,`logo_pos`,`phone_x`,`phone_y`,`phone_align`,`website_x`,`website_y`,`website_align`,`website_phone_x`,`website_phone_y`,`website_phone_align`,`font_4`,`font_size_4`,`font_color_4`) VALUES (2371,0,'Century Gothic',12,0,'Century Gothic',10,0,'Century Gothic',10,0,0,0,0,0,0,0,0,0,0,193,552,550,140,0,194,697,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,NULL,0,0);
INSERT INTO `gift_design` (`gift_design`,`filetype`,`font_1`,`font_size_1`,`font_color_1`,`font_2`,`font_size_2`,`font_color_2`,`font_3`,`font_size_3`,`font_color_3`,`to_x`,`to_y`,`from_x`,`from_y`,`value_x`,`value_y`,`value_width`,`value_height`,`value_pos`,`message_x`,`message_y`,`message_width`,`message_height`,`message_pos`,`expiration_x`,`expiration_y`,`expiration_align`,`legal_x`,`legal_y`,`legal_width`,`date_x`,`date_y`,`date_align`,`gift_no_x`,`gift_no_y`,`gift_no_align`,`barcode_x`,`barcode_y`,`logo_x`,`logo_y`,`logo_pos`,`phone_x`,`phone_y`,`phone_align`,`website_x`,`website_y`,`website_align`,`website_phone_x`,`website_phone_y`,`website_phone_align`,`font_4`,`font_size_4`,`font_color_4`) VALUES (2372,0,'Century Gothic',12,1,'Century Gothic',10,0,'Century Gothic',10,0,0,0,0,0,0,0,0,0,0,468,512,550,170,0,470,689,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,NULL,0,0);
#RC 08.12.14 Mantis 1971: INSERT data to gift_design table

ALTER TABLE `sevence`.`org_gift_design` CHANGE COLUMN `mobile` `mobile` VARCHAR(50) NULL  ;
#RC 08.12.14 Mantis 1971: ALTER TABLE org_gift_design

INSERT INTO `org_gift_design` (`org_gift_design`,`org`,`default_org_gift_design`,`name`,`gift_design`,`gift_design_cat`,`popularity`,`promo_only`,`sort`,`hide`,`update`,`mobile`) VALUES (1130207,409,NULL,'Crafty Design',2360,15204,0,1,3.00000000,0,0,'crafty');
INSERT INTO `org_gift_design` (`org_gift_design`,`org`,`default_org_gift_design`,`name`,`gift_design`,`gift_design_cat`,`popularity`,`promo_only`,`sort`,`hide`,`update`,`mobile`) VALUES (1130208,409,NULL,'Stylish Design',2361,15204,0,1,3.00000000,0,0,'stylish');
INSERT INTO `org_gift_design` (`org_gift_design`,`org`,`default_org_gift_design`,`name`,`gift_design`,`gift_design_cat`,`popularity`,`promo_only`,`sort`,`hide`,`update`,`mobile`) VALUES (1130209,409,NULL,'Professional Design',2362,15204,0,1,3.00000000,0,0,'professional');
INSERT INTO `org_gift_design` (`org_gift_design`,`org`,`default_org_gift_design`,`name`,`gift_design`,`gift_design_cat`,`popularity`,`promo_only`,`sort`,`hide`,`update`,`mobile`) VALUES (1130210,409,NULL,'Wallpaper Design',2363,15204,0,1,3.00000000,0,0,'wallpaper');
INSERT INTO `org_gift_design` (`org_gift_design`,`org`,`default_org_gift_design`,`name`,`gift_design`,`gift_design_cat`,`popularity`,`promo_only`,`sort`,`hide`,`update`,`mobile`) VALUES (1130211,409,NULL,'Brown Paper Design',2364,15204,0,1,3.00000000,0,0,'brown-paper');
INSERT INTO `org_gift_design` (`org_gift_design`,`org`,`default_org_gift_design`,`name`,`gift_design`,`gift_design_cat`,`popularity`,`promo_only`,`sort`,`hide`,`update`,`mobile`) VALUES (1130212,409,NULL,'Orange Design',2365,15204,0,1,3.00000000,0,0,'orange');
INSERT INTO `org_gift_design` (`org_gift_design`,`org`,`default_org_gift_design`,`name`,`gift_design`,`gift_design_cat`,`popularity`,`promo_only`,`sort`,`hide`,`update`,`mobile`) VALUES (1130213,409,NULL,'Triangles Design',2366,15204,0,1,3.00000000,0,0,'triangles');
INSERT INTO `org_gift_design` (`org_gift_design`,`org`,`default_org_gift_design`,`name`,`gift_design`,`gift_design_cat`,`popularity`,`promo_only`,`sort`,`hide`,`update`,`mobile`) VALUES (1130214,409,NULL,'Cardboard Design',2367,15204,0,1,3.00000000,0,0,'cardboard');
INSERT INTO `org_gift_design` (`org_gift_design`,`org`,`default_org_gift_design`,`name`,`gift_design`,`gift_design_cat`,`popularity`,`promo_only`,`sort`,`hide`,`update`,`mobile`) VALUES (1130215,409,NULL,'Orange2 Design',2368,15204,0,1,3.00000000,0,0,'orange2');
INSERT INTO `org_gift_design` (`org_gift_design`,`org`,`default_org_gift_design`,`name`,`gift_design`,`gift_design_cat`,`popularity`,`promo_only`,`sort`,`hide`,`update`,`mobile`) VALUES (1130216,409,NULL,'Blue2 Design',2369,15204,0,1,3.00000000,0,0,'blue2');
INSERT INTO `org_gift_design` (`org_gift_design`,`org`,`default_org_gift_design`,`name`,`gift_design`,`gift_design_cat`,`popularity`,`promo_only`,`sort`,`hide`,`update`,`mobile`) VALUES (1130217,409,NULL,'Brown Design',2370,15204,0,1,3.00000000,0,0,'brown');
INSERT INTO `org_gift_design` (`org_gift_design`,`org`,`default_org_gift_design`,`name`,`gift_design`,`gift_design_cat`,`popularity`,`promo_only`,`sort`,`hide`,`update`,`mobile`) VALUES (1130218,409,NULL,'Wrench Dessign',2371,15204,0,1,3.00000000,0,0,'wrench');
INSERT INTO `org_gift_design` (`org_gift_design`,`org`,`default_org_gift_design`,`name`,`gift_design`,`gift_design_cat`,`popularity`,`promo_only`,`sort`,`hide`,`update`,`mobile`) VALUES (1130219,409,NULL,'Blue Design',2372,15204,0,1,3.00000000,0,0,'blue');

#DCS 08.11.14 Mantis 0001970: Yahoo email value is getting truncated. - Profile Info

ALTER TABLE `sevence`.`org` CHANGE COLUMN `security_pin` `security_pin` INT(4) UNSIGNED ZEROFILL NULL DEFAULT NULL;
#MM 08.15.14 Mantis 1914: alter table field security_pin to accept values beginning with 0

INSERT INTO `partner` (`partner`,`name`,`api_key`) VALUES (-1,'Client Booking',NULL);# 1 row affected.
#RC 08.22.14 Mantis 1966: INSERT data to partner table

CREATE  TABLE `sevence`.`gift_screen` (
  `gift_screen` INT(11) NOT NULL AUTO_INCREMENT ,
  `id` VARCHAR(100) NOT NULL ,
  `html` TEXT NULL ,
  `css` TEXT NULL ,
  PRIMARY KEY (`gift_screen`) );

INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('jslot_main',' <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n		<html lang=\"en\">\n		<meta charset=\"utf-8\">\n  		<title>Spin & Win</title>\n  		<meta name=\"description\" content=\"Spin & Win\">\n  		<meta name=\"author\" content=\"Anything Graphic\">\n		<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1\">\n		<head>\n		<!-- We need to load this version of jQuery because it is compatible with the Slot Machine and Star Review scripts -->\n	 	<script src=\'https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js\'></script>\n	  	<!-- The next three scripts are for the Slot Machine --> \n	  	<script src=\'boomtag{boomtime_path}/script/jquery.spritely.js\'></script>\n	 	<script src=\'boomtag{boomtime_path}/script/jquery.backgroundPosition.js\'></script>\n	  	<script src=\'boomtag{boomtime_path}/script/slot.js\'></script>\n	  	<!-- Star review script -->\n	  	<script src=\'boomtag{boomtime_path}/script/jquery.raty.min.js\'></script>\n		</head>\n		<body>\n <!-- [if lt IE 9]>\n	  <script src=\"http://html5shiv.googlecode.com/svn/trunk/html5.js\"></script>\n	  <![endif]-->\n	   <script type=\"text/javascript\">\n\n		$(function() {\n\n			//added this script for firefox support to remove disabled \n			//attribute in text and submit button once you click the back button after form submit and you hit refresh\n			$(\"#email-submit\").attr(\'disabled\', false);\n			$(\"#email_add\").attr(\'disabled\',false);\n\n			if($(\"#email_add\").val() == \'\')\n				setTimeout(this.preStartSlotMachine, 1000);\n\n			//validate Email Address\n			function validateEmail($email) {\n			  	var emailReg = /^([\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4})?$/;\n			  	if( !emailReg.test( $email ) ) {\n			    	return false;\n			  	} else {\n			    	return true;\n			  	}\n			}\n\n			//Play the slot machine when the email is submitted\n			$(\"#email-submit\").click(function(){\n\n				$(\"#err_msg\").html(\'\');\n				$(\'#jackpot\').fadeOut(\'fast\');\n				$(\'.slot-wrapper\').fadeTo( \"fast\", 1 );\n\n				if(!$(\"#email_add\").val()) {\n					$(\"#err_msg\").html(\"* Please enter your email address.\");\n					return false;\n				} else if( !validateEmail($(\"#email_add\").val())){\n					$(\"#err_msg\").html(\"* Please enter a valid email address. For example <b><i>johnsmith@gmail.com</i></b>\");\n					return false;\n			    } else {\n\n					$(\"#email-submit\").attr(\'disabled\', true);\n					$(\"#email_add\").attr(\'disabled\',true);\n					$(\"button#control\").click();\n\n					//get start time of running ajax;\n					var start_time = new Date().getTime();\n\n					\n					$.ajax({\n						url: \'/slot-machine\',\n					 	type: \"POST\",\n					  	dataType: \"json\",\n					  	data: { \n					  		id : \'play_slot\',\n					  		email: $(\'#email_add\').val(),\n					  		referred_org: \'boomtag{org_business_client_email}\'\n					  	},\n					  	success: function(data){\n\n					  		slot_callback = false;\n					  		//get the ajax processing time.. \n					  		var request_time = new Date().getTime() - start_time;\n					  		//if ajax processing time is less than 3 seconds.. put a delay of 3 seconds before slot machine stops.\n					  		var delay_time = (request_time < 3000) ? 3000 - request_time : 0;\n\n					  		var success = true;\n\n					  		if(data[0] == \"error\")\n					  		{\n					  			$(\'#won_msg\').text(\'Sorry!\');\n					  			$(\'#offer\').text(\'No prizes available.\');\n					  			$(\'#prize_info\').text(\'Prize Info: Sorry no email was sent.\');\n					  			success = false;\n					  		}\n					  		else if(data[0] == \'exist\')\n					  		{\n					  			$(\'#won_msg\').text(\'Sorry, only one spin per email address.\');\n					  			$(\'#offer\').text(\'\');\n					  			$(\'#prize_info\').text(\'\');\n					  			success = false;\n					  		}\n\n					  		if(!success) {\n					  			//callback function if email already exists or if there are no prizes available.\n					  			slot_callback = function() {\n					  				$(\'#control\').text(\'Start\');\n					  				$(\'#jackpot\').fadeIn(\'fast\');\n									$(\'.slot-wrapper\').fadeTo( \"slow\", 0.33 );\n									$(\"#email-submit\").attr(\'disabled\', false);\n									$(\"#email_add\").attr(\'disabled\',false);\n					  			};\n\n					  			setTimeout(function() {\n						  			$(\"button#control\").click();\n					  			}, delay_time);\n\n					  			return false;\n					  		} else {\n\n						  		//callback function for successful slot machine game..\n								slot_callback = function(){\n									$(\'#won_msg\').text(\'You’ve Won!\');\n									$(\'#offer\').text(data[0]);\n					  				$(\'#org_client\').val(data[1]);\n									$(\'#page-title\').text(\'Congratulations\').after(\'<p>You will be redirected to your prize in a moment.</p>\');	\n\n									var send_data = {};\n									send_data.prize = data[0];\n						  			send_data.client_id = data[1];\n\n									var frm = document.createElement(\"form\");\n										frm.method = \"post\";\n											send_data.main_org = \'boomtag{main_org}\';\n											frm.action = \'boomtag{main_org_claim_prize}\';\n									var input = document.createElement(\"input\");\n										input.type=\"hidden\";\n										input.name=\"data\";\n										input.value = JSON.stringify(send_data);\n										\n									frm.appendChild(input);\n									document.body.appendChild(frm);\n\n									setTimeout(function() {\n										frm.submit();	\n									}, 2000);\n									\n									$(\'html, body, #wrapper, #container\').delay(3600).css(\'height\', \'auto\');\n					  			};\n\n					  			setTimeout(function() {\n	 								$(\"button#control\").click();\n	 							}, delay_time);\n\n				  			}\n						}\n					});\n					// ends here\n				}\n			});\n\n			$(\'#email_add\').focus(this.stopPreSlotMachine).on(\'keyup\', this.stopPreSlotMachine);\n		});\n	  </script>\n<div id=\"wrapper\">\n  <div id=\"container\" style=\'background:none repeat scroll 0 0 boomtag{background_container}\'>  	\n  	<div class=\"header row\" boomtag{back_image_style}>\n  		<div class=\"inner\">\n  			 <img id=\"logo\" border=\"0\" src=\"boomtag{logo}\" boomtag{spin_win_logo_visibility} >\n  		</div>\n  	</div>\n  	\n  	<div class=\"row game\">\n  		<div class=\"inner\">\n	  		<h1 id=\"page-title\">boomtag{page_title}</h1>\n			<div class=\"container\">\n				<div id=\"jackpot\">\n					<div class=\"wrapper\">\n						<h1 id=\'won_msg\'>YOU’VE WON!!</h1>\n						<p id = \'offer\'></p>\n						<p><small><i id = \'prize_info\'>Prize Info: An email with your prize has been sent</i></small></p>\n					</div>\n				</div>\n				<div class=\"slot-wrapper\">\n					<div id=\"slot1\" class=\"slot\"></div>\n					<div id=\"slot2\" class=\"slot\"></div>\n					<div id=\"slot3\" class=\"slot\"></div>\n					<div class=\"clear\"></div>\n				</div>\n				<div><button id=\"control\" style=\"display:none;\">Start</button></div>\n			</div>\n			<div id=\"email-address\" class=\"box\">\n	  			<span id=\'err_msg\' style=\'color:red;font-size:14px\'></span>\n		  		<input type=\"email\" placeholder=\"Email address\" id = \'email_add\' value=\"boomtag{business_client_email}\">\n		  		<input id=\"email-submit\" type=\"submit\" value=\"Play\">\n		  	</div>\n		  	<p>We need your email to send your prize and other offers.</p>\n  		</div>\n  	</div> <!-- .row.white -->\n	<!--\n  	 <div class=\"row social-media\">\n  		<div class=\"inner\">\n	  		<h2>Follow Us!</h2>\n	  		<a href=\"#\" target = \"_blank\" title=\"facebook\">\n	  			<img src=\"<?= boomtime_path() ?>/img/jslot_images/facebook.png\" alt=\"\" />\n	  		</a>\n	  		<a href=\"#\" title=\"twitter\">\n	  			<img src=\"<?= boomtime_path() ?>/img/jslot_images/twitter.png\" alt=\"\" />\n	  		</a>\n	  		<a href=\"#\" title=\"google plus\">\n	  			<img src=\"<?= boomtime_path() ?>/img/jslot_images/google-plus.png\" alt=\"\" />\n	  		</a>\n	  		<a href=\"#\" title=\"instagram\">\n	  			<img src=\"<?= boomtime_path() ?>/img/jslot_images/instagram.png\" alt=\"\" />\n	  		</a>\n	  		<a href=\"#\" title=\"pinterest\">\n	  			<img src=\"<?= boomtime_path() ?>/img/jslot_images/pinterest.png\" alt=\"\" />\n	  		</a>\n  		</div>\n  	</div> \n  -->\n  	<div class=\"row copyright\" style=\"position:relative;\">\n  		<div class=\"inner\" id=\"footer_badge\">\n  			<p>Copyright 2014</p>\n  		</div>\n  		<a href=\"http://www.boomtime.com/promotions-tos\" id=\"terms\" target =\"_blank\">Fine print</a>\n  	</div>\n  </div> <!-- #container -->\n</div> <!-- #wrapper -->\n<style type=\"text/css\">boomtag{main_css}</style>\n</body></html>','/*  HTML5 Reset  --------------------------------------------- */  article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em;margin:.67em 0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}mark{background:#ff0;color:#000}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}pre{white-space:pre-wrap}q{quotes:\"\\201C\" \"\\201D\" \"\\2018\" \"\\2019\"}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}button,input{line-height:normal}button,select{text-transform:none}button,html input[type=\"button\"],input[type=\"reset\"],input[type=\"submit\"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}input[type=\"checkbox\"],input[type=\"radio\"]{box-sizing:border-box;padding:0}input[type=\"search\"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=\"search\"]::-webkit-search-cancel-button,input[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}    /* Box Sizing  --------------------------------------------- */  *, input[type=\"search\"] {  	-webkit-box-sizing: border-box;  	-moz-box-sizing:    border-box;  	box-sizing:         border-box;  }    /* Float Clearing  --------------------------------------------- */  .archive-pagination:before,  .clearfix:before,  .entry:before,  .entry-pagination:before,  .footer-widgets:before,  .nav-primary:before,  .nav-secondary:before,  .site-container:before,  .site-footer:before,  .site-header:before,  .site-inner:before,  .wrap:before {  	content: \" \";  	display: table;  }    .archive-pagination:after,  .clearfix:after,  .entry:after,  .entry-pagination:after,  .footer-widgets:after,  .nav-primary:after,  .nav-secondary:after,  .site-container:after,  .site-footer:after,  .site-header:after,  .site-inner:after,  .wrap:after {  	clear: both;  	content: \" \";  	display: table;  }      /* Typographical Elements  --------------------------------------------- */  body, html {    height: 100%;  }    html {  	font-size: 62.5%; /* 10px browser default */  }    body {  	background: #EEE;  	color: #414142;  	font-family: \'Helvetica Neue\', Helvetica, Arial, sans-serif;  	font-size: 18px;  	font-weight: 300;  	line-height: normal;  }    p {  	line-height: 1.4;  	margin: 0 0 1em;  }      /* Links  --------------------------------------------- */  a,  button,  input:focus,  input[type=\"button\"],  input[type=\"reset\"],  input[type=\"submit\"],  textarea:focus,  .button {  	-webkit-transition: all 0.1s ease-in-out;  	-moz-transition:    all 0.1s ease-in-out;  	-ms-transition:     all 0.1s ease-in-out;  	-o-transition:      all 0.1s ease-in-out;  	transition:         all 0.1s ease-in-out;  }    a {  	color: #cd2032;  }    a:hover {  	text-decoration: none;  }    .row.red a {  	color: #FFF;  }      /* Headings  --------------------------------------------- */  h1, h2, h3, h4 {  	font-weight: normal;  	margin: 0 0 10px;  }    h1#page-title {  	font-size: 30px;  	font-weight: bold;  	text-align: center;  }    /* Forms  --------------------------------------------- */  ::-webkit-input-placeholder {  	color: #414142;  }  :-moz-placeholder { /* Mozilla Firefox 4 to 18 */  	color: #414142;  }  ::-moz-placeholder { /* Mozilla Firefox 19+ */  	color: #414142;  }  :-ms-input-placeholder { /* Internet Explorer 10+ */  	color: #414142;  }    input[type=\"text\"], input[type=\"email\"], input[type=\"submit\"], textarea {      border: 1px solid #ABA8A8;      box-shadow: inset 0 0 2px #EEE;      color: #414142;      float: left;      font-size: 0.9em;      height: 42px;      margin: 0;      padding: .5em 1em;      width: 270px;  }    input[type=\"submit\"], #control {  	background: #CD2032;  	border: 0;  	color: #FFF;  	float: right;  	font-size: 1em;  	width: 132px;  }    textarea {  	font-size: .8em;  	height: 90px;  	padding: 1em;  	width: 100%;  }    /* Containers & Rows  --------------------------------------------- */  #wrapper {  	height: 100%;  	margin: 0 auto;  	max-width: 600px;  	width: 100%;  }    #container {  	background: #D8D0C5;  	border: 4px solid #414142;  	border-top: 0;  	float: left;  	font-size: 1em;  	width: 100%;  }    .header.row {  	background: url(boomtag{boomtime_path}/img/jslot_images/tinpot-image.jpg) no-repeat center center #FFF;  	background-size: 100%;  	border-bottom:0px;  	padding-bottom: 2em;          padding-top: 1.4em;  }    .header img {  	display: block;  	margin: 0 auto;  	max-width: 100%;  }    .game p {  	font-size: .9em;  	margin: .5em 0 1em;  	text-align: center;  }    .game p:last-child {  	margin-bottom: 0;  }    .row {  	float: left;  	padding: 2em;  	width: 100%;  }      .row.copyright {  	border: 0;  	border-top: 1px solid #a1a1a1;  	font-size: .7em;  	padding: 1em;  	text-align: center;  }    .row.copyright p {  	margin-bottom: 0;  }    .inner {  	margin: 0 auto;  	max-width: 408px;  	width: 100%;  }    .row.white {  	color: #cd2032;  }    .row.gray {  	background: #f1f1f1;  }    .row.dark-gray {  	background: #aba8a8;  }    .row.dark-gray p {  	margin-bottom: 0;  }    .row.white h1, .row.white h2 {  	color: #414142;  }    .row.red {  	background: #cd2032;  	color: #FFF;  }    .box {      float: left;      margin: 1em 0;      width: 100%;  }    .one-third {  	float: left;  	margin-left: 2.564102564102564%;  	width: 31.623931623931625%;  }    .first {  	margin-left: 0;  	padding-top: 0;  }    .stars {  	float: left;  	margin-bottom: 1em;  	text-align: center;  	width: 100%;  }    .social-media a, .footer a {  	text-decoration: none;  }    .social-media img {  	margin-right: .8em;  }    .social-media img:hover {  	opacity: .7;  }    .footer {  	font-size: .75em;  	padding: 1em;  }    .footer p {  	margin: 0;  	padding: 0;  }    .footer span {  	margin-right: 1em;  }    .footer a {  	color: #414142;  }    .footer a:hover {  	text-decoration: underline;  }    .one-third-container:after,  #low-rating:after{  	content: \".\";  	display: block;  	clear: both;  	visibility: hidden;  	line-height: 0;  	height: 0;  }     .one-third-container,  #low-rating{  	display: inline-block;  }     html[xmlns] .one-third-container,  html[xmlns] #low-rating{  	display: block;  }     * html .one-third-container,  * html #low-rating{   	height: 1%;  }      .one-third-container,  #low-rating{      display: block;  }  /* Slot Machine  --------------------------------------------- */  .row.slotmachine {  	background: url(boomtag{boomtime_path}/img/jslot_images/tinpot-image.jpg) no-repeat center center #FFF;  	background-size: 100%;  	position: relative;  }    .container {  	float: left;  	margin:0 auto;  	position: relative;  	text-align: center;  	width: 100%;  }    .slot-wrapper {  	 display: block;  	 margin: 0 auto;  	 text-align: center;  }    .slot {  	background:url(boomtag{boomtime_path}/img/jslot_images/reel_normal_transparent_white.png) repeat-y 0 4px;      border: 3px solid #3a3a3c;      box-shadow: 0 0 6px #333 inset;      display: inline-block;      height: 154px;  	-webkit-transition: background-image .8s ease-in-out;  	-moz-transition: background-image .8s ease-in-out;  	-ms-transition: background-image .8s ease-in-out;  	-o-transition: background-image .8s ease-in-out;  	transition: background-image .8s ease-in-out;      width: 132px;  }    .motion {  	background-image:url(boomtag{boomtime_path}/img/jslot_images/reel_blur_transparent_white.png) #D8D0C5;  }    button {      cursor: pointer;      display: block;      font-size: 16px;      height: 33px;      margin: 20px auto;      width: 138px;  }    #result {      font-weight: bold;      margin: 20px 0;  }    #jackpot {  	background: rgba(255, 255, 255, .5);      color: #414142;      display: none;      float: left;      font-weight: 400;      margin: 0 auto;      max-width: 408px;      min-height: 155px;      padding: 1em 2em 0;      position: absolute;      top: auto; left: 0; right: 0;      text-align: center;      vertical-align: middle;      width: 100%;      z-index: 10;  }  }    #jackpot .wrapper {  	/*border: 5px solid #FFF;  	margin: 1em;*/  	padding: 1em;  }    #jackpot h1 {  	color: #CD2032;  }    #jackpot p {  	margin-bottom: 0;  }    #jackpot p + p {  	margin-top: 0;  }    .clear {  	clear: both;  }      /* Media Queries  --------------------------------------------- */      /* HD/Retina CSS */  @media  only screen and (-webkit-min-device-pixel-ratio: 1.25),  only screen and ( min--moz-device-pixel-ratio: 1.25),  only screen and ( -o-min-device-pixel-ratio: 1.25/1),  only screen and ( min-device-pixel-ratio: 1.25),  only screen and ( min-resolution: 200dpi),  only screen and ( min-resolution: 1.25dppx){      #wrapper {          max-width: 100%;          width: 100%;      }            #container{          border:none;      }  }      /* iPads (portrait and landscape) ----------- */  @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {  	#wrapper {  		max-width: 100%;  	}  	  	#container {  		border: 0;  		min-width: 100%;  	}  }    @media screen and (max-width: 650px) {  	#wrapper {  		max-width: 100%;  	}  	  	#container {  		border: 0;  		min-width: 100%;  	}  }    @media screen and (max-width: 485px) {  	h1#page-title {  		font-size: 31px;  	}  	  	.row {  		padding: 2em 1em;  	}  	  	.inner {  		max-width: 341px;  	}  	  	input[type=\"submit\"], #control {  		width: 110px;  	}  	  	input[type=\"email\"] {  		width: 224px;  	}  	  	.slot {  		background-size: 104px 1730px;  		height: 128px;  		width: 110px;  	}  	  	#jackpot {  		top: 22px;  	}  	  	#jackpot p {  		line-height: normal;  	}  	  	#jackpot p:last-child {  	    line-height: 15px;  	    margin-top: 5px;  	}  	  	textarea {  		font-size: .72em;  		height: 130px;  	}  }    @media screen and (max-width: 380px) {  	.inner {  		width: 282px;  	}  	  	input[type=\"submit\"], #control {  		width: 90px;  	}  	  	input[type=\"email\"] {  		width: 186px;  	}  	  	.slot {  		background-size: 84px 1400px;  		height: 105px;  		width: 90px;  	}  	  	#jackpot {  		font-size: .85em;  		min-height: inherit;  		padding-bottom: .5em;  	}  }  @media screen and (max-width: 340px) {  	p {  		font-size: 16px;  	}  	  	.one-third {  		margin-left: 0;  		width: 100%;  	}  	  	.one-third p {  		margin: 0;  	}  	  	.stars img {  		max-width: 40px;  	}  }  \n@media\n	only screen and (-webkit-min-device-pixel-ratio: 1.25),\n	only screen and ( min--moz-device-pixel-ratio: 1.25),\n	only screen and ( -o-min-device-pixel-ratio: 1.25/1),\n	only screen and ( min-device-pixel-ratio: 1.25),\n	only screen and ( min-resolution: 200dpi),\n	only screen and ( min-resolution: 1.25dppx){\n	   body{\n	       background:{boomtag{background_container}};\n	   }\n	}\n.game{\n  		min-height: 418px;\n  	}\n  	#footer_badge{\n  		background: url(\"boomtag{boomtime_slot_footer}\") no-repeat scroll right center;\n		max-width: 100%;\n		width: 100%;\n  	}\n\n  	#terms {\n		position:absolute;\n		font-family: boomtag{slot_machine_font};\n		color: boomtag{slot_machine_theme};\n		text-decoration: none;\n		left:18px;\n		top:34%;\n		font-size: 1em;\n	}\n\n	@media screen\n	and (orientation : portrait){\n		#footer_badge{\n			  		background: url(\"boomtag{boomtime_slot_footer}\") no-repeat scroll center bottom;\n			  		padding-bottom:20px;\n		}\n\n		#terms {\n			position: relative;\n			top:5px;\n			left:0;\n		}\n\n		.partner_section {\n			margin-top:60px;\n		}\n\n		#footer_badge p {\n			font-size: 1em;\n		}\n	} ');
INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('jslot_claim','<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n<html lang=\"en\">\n<html>\n<head>\n    <title>Spin &amp; Win</title>\n    <meta name=\"description\" content=\"Spin & Win\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1\">\n    <style type=\"text/css\">boomtag{main_css}</style>\n    <script type=\"text/javascript\" src=\'https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js\'></script>\n	<script type=\"text/javascript\">\n		$(document).ready(function() {\n			$(\'.business_partner_link\').click(function(e) {\n				e.preventDefault();\n				location.href = $(this).attr(\'href\') + \"?1=boomtag{client_id}&main_org=boomtag{main_org}\";\n			})\n		});\n	</script>\n</head>\n<body>\n	<div class=\"wrapper\">\n		<div class=\"container\">\n			<div class=\"header\">\n			    <div class=\"logo-container\">\n			    	<img id=\"logo\" border=\"0\" src=\"boomtag{logo}\" boomtag{spin_win_logo_visibility} />\n			    </div>	\n			</div>\n			<div class=\"main\">\n				<div class=\"reward-msg\">\n			    	<h1>You\'ve Won!</h1>\n			    	<p>boomtag{prize}</p>\n			    	<p style=\"font-style:italic;font-size: 14px;margin-top: 6px;margin-left: 10px;\">Prize Info: Your prize will be emailed to you</i></p>\n			    </div>	\n			    boomtag{org_links_section}\n			</div>\n		  	<div class=\"row copyright\">\n		  		<div class=\"inner\" id=\"footer_badge\">\n		  			<p>Copyright 2014</p>\n		  		</div>\n		  		<a href=\"http://www.boomtime.com/promotions-tos\" id=\"terms\" target = \"_blank\">Fine print</a>\n		  	</div>\n		</div>\n	</div>\n</body>\n</html>','body {\n			margin:0;\n			background: #EEE;\n			color: boomtag{theme};\n			font-family: \'Helvetica Neue\', Helvetica, Arial, sans-serif;\n			font-size: 18px;\n			font-weight: 300;\n			line-height: normal;\n		}\n\n		p {\n			margin:0;\n			font-family: boomtag{font};\n		}\n\n		.wrapper {\n			height: 100%;\n			margin: 0 auto;\n			max-width: 600px;\n			width: 100%;\n		}\n\n		.wrapper .container {\n			background: boomtag{background_container};\n			border: 4px solid #414142;\n			border-top: 0;\n			float: left;\n			font-size: 1em;\n			width: 100%;\n			min-height:652px;\n			position: relative;\n		}\n\n		.header{\n			background:white;\n			background-image:url(\'boomtag{back_image_url}\');\n			background-position:center center;\n			background-size:cover;\n			padding: 1.4em 2em 2em;\n			width: 100%;\n		}\n\n		*, input[type=\"search\"] {\n			-webkit-box-sizing: border-box;\n			-moz-box-sizing: border-box;\n			box-sizing: border-box;\n		}\n\n		.header .logo-container {\n			margin: 0 auto;\n			max-width: 408px;\n			width: 100%;\n		}\n\n		.header .logo-container img{\n			display: block;\n			margin: 0 auto;\n			max-width: 100%;\n		}\n\n		.main {\n			min-height: 260px;\n			margin-top:50px;\n		}\n\n		.reward-msg h1 {\n			color: boomtag{theme};\n			font-family: boomtag{font};\n		    font-size: 1.7em;\n		    text-align: center;\n		    margin-top: 0;\n			margin-bottom: 10px;\n		}\n\n		.reward-msg p {\n			color: boomtag{theme};\n		    font-family: boomtag{font};\n		    font-size: 20px;\n		    text-align: center;\n		}\n\n		.partner_section {\n			margin-bottom: 76px;\n			margin-top:80px;\n		}\n\n		.partner_section h2 {\n			margin-bottom:10px;\n			color:boomtag{theme};\n			text-align:center;\n			font-size: 1.4em;\n		}\n\n		.partners {\n			margin: 0 auto 0 14%;\n			margin-bottom: 21px;\n		}\n\n		.partners li{\n			list-style-type: square;\n			margin-bottom: 6px;\n		}\n\n		.partners li a {\n		    color: boomtag{theme};	\n		    font-family: boomtag{font};\n		    font-size: 18px;\n		    text-decoration: none;\n		    width:100%;\n		}\n\n		.row.copyright {\n			border: 0;\n			border-top: 1px solid #a1a1a1;\n			font-size: .7em;\n			padding: 1em;\n			text-align: center;\n			position: absolute;\n			bottom: 0;\n		}\n\n		.row {\n			border-bottom: 1px solid #a1a1a1;\n			float: left;\n			padding: 2em;\n			width: 100%;\n		}\n\n		#terms {\n			position:absolute;\n			font-family: boomtag{font};\n			color: boomtag{theme};\n			text-decoration: none;\n			left:18px;\n			top:29%;\n			font-size: 1em;\n		}\n\n		#footer_badge{\n	  		background: url(boomtag{boomtime_slot_footer}) no-repeat scroll right center;\n			max-width: 100%;\n			width: 100%;\n	  	}\n\n	  	#footer_badge p{\n	  		line-height: 16px;\n	  		color: #414142;\n	  	}\n		@media screen\n		and (orientation : portrait){\n			#footer_badge{\n				  		background: url(\"boomtag{boomtime_slot_footer}\") no-repeat scroll center bottom;\n				  		padding-bottom: 20px;\n			}\n\n			#terms {\n				position: relative;\n				top:5px;\n				left:0;\n			}\n\n			.container {\n				min-height: 603px;\n			}\n\n			.partner_section {\n				margin-top:60px;\n				padding-bottom: 15px;\n			}\n\n\n		}\n		/* iPads (portrait and landscape) ----------- */\n		@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {\n			.wrapper {\n				max-width: 100%;\n			}\n			\n			.container {\n				border: 0 !important;\n				min-width: 100%;\n			}\n			\n			.partner_section .partners {\n				margin-left:10%;\n				padding-left:0;\n			}\n		}\n\n		@media screen and (max-width: 650px) {\n			.wrapper {\n				max-width: 100%;\n			}\n			\n			.container {\n				border: 0 !important;\n				min-width: 100%;\n			}\n\n			.partners {\n				margin-left:auto;\n			}\n\n			.partner_section .partners {\n				margin: 0 auto 21px 17%;\n			}\n		}\n\n		@media screen and (max-width: 600px) {\n			.partner_section .partners {\n				margin: 0 auto 21px 14%;\n			}\n		}\n\n		@media screen and (max-width: 550px) {\n			.partner_section .partners {\n				margin: 0 auto 21px 11%;\n			}\n		}\n\n		@media screen and (max-width: 485px) {\n			h1#page-title {\n				font-size: 31px;\n			}\n			\n			.row {\n				padding: 2em 1em;\n			}\n			\n			.logo-container {\n				max-width: 341px;\n			}\n\n			.partner_section h2 {\n				font-size:1.2em;\n			}\n\n			.partner_section .partners {\n				margin: 0 auto 21px 11%;\n			}\n\n			.partner_section .partners li a {\n				font-size:17px;\n			}\n			\n		}\n\n		@media screen and (max-width: 435px) {\n			.partner_section .partners {\n				margin: 0 auto 21px 7%;\n			}\n		}\n\n		@media screen and (max-width: 380px) {\n			.logo-container {\n				width: 282px;\n			}\n\n			.partner_section .partners {\n				margin: 0 auto 21px 0;\n			}\n		}\n\n		@media screen and (max-width: 340px) {\n\n			.partner_section h2 {\n				font-size:1.1em;\n			}\n\n			.partner_section .partners {\n				margin-left:10%;\n				padding-left:0;\n			}\n\n			.partner_section .partners li a {\n				font-size:17px;\n			}\n		}\n\n		@media\n		only screen and (-webkit-min-device-pixel-ratio: 1.25),\n		only screen and ( min--moz-device-pixel-ratio: 1.25),\n		only screen and ( -o-min-device-pixel-ratio: 1.25/1),\n		only screen and ( min-device-pixel-ratio: 1.25),\n		only screen and ( min-resolution: 200dpi),\n		only screen and ( min-resolution: 1.25dppx){\n		   body{\n		       background:boomtag{background_container};\n		   }\n		}			');
INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('jslot_business_rating','<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\"> 	<html lang=\"en\"> 	<meta charset=\"utf-8\"> 	<title>Business Review</title> 	<head> 	<!-- We need to load this version of jQuery because it is compatible with the Slot Machine and Star Review scripts -->  	<script src=\'http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js\'></script> 	<style type=\'text/css\'>boomtag{main_css}</style> 	<script src=\'boomtag{boomtime_path}/script/jquery.raty.min.js\'></script> 	</head> 	<body> 	 	<div class=\"row reviews noprint\"> 		boomtag{thank_you_feedback} 		<div class=\"inner\"> 			<h2>Rate Us</h2> 			<p>Please take a minute to rate your experience with our business.</p> 	         	        <div class=\"stars\"></div> 	        <span id=\'feedback_err_msg\' style=\'font-size:16px\'></span> 			<div id=\"low-rating\"> 				<form id=\'myform\' name=\'myform\' method=\'POST\' action = \"boomtag{myform_post_url}\" > 				<textarea class=\"box\" id=\"review_text\" name=\"review_text\"  name=\"reviewless\" placeholder=\"Your feedback is important to us. We\'d appreciate it if you took a second to let us know how we can serve you better.\"></textarea> 				<input type=\'submit\' name=\'submit\' id=\'submit-review\' value=\'Submit\' /> 				</form> 			</div> <!-- #low-rating --> 			<div id=\"high-rating\"> 				<h3>Review Us</h3> 				<p>You seem to like us, so we\'d love it if you would write a review on the site of your choice below</p> 				<div class=\"one-third-container\"> 					<div class=\"one-third first\"> 					<p>	 					boomtag{org_provider_link} 					</div>	 				</div> 				<p>Select one of the links above to post a review. Thanks for talking about us!</p> 			</div> <!-- #high-rating --> 		</div> 	</div> <!-- .row.red --> 	<script type=\"text/javascript\"> 		function record_data(url_link) 		{ 			$.ajax({ 					url: url_link + \'&s=\' + $(\'#score\').val(), 				 	type: \"GET\", 				 	complete: function(data){ 				 		if(data){ 				 			for(var x=1;x<=$(\'#score\').val();x++) 				 				$(\'.stars img[alt=\"\'+x+\'\"]\').off(); 				 		} 				 	} 			}); 		} 		$(function() {  			$(\'.stars\').raty({ 				score: 3, 				size: 45, 				path: \'boomtag{boomtime_path}/img/jslot_images\', 				width: false 			}); 			function handler(e){ 			    e.preventDefault(); 			    $(this).unbind(\'click\'); 			    setTimeout(function(){$(\'#submit-review\').click(handler)}, 500) 			} 			$(\'#submit-review\').click(handler); 			$(\'#low-rating, #high-rating\').hide(); 			$(\'.stars img[alt=\"1\"], .stars img[alt=\"2\"], .stars img[alt=\"3\"]\').click(function() { 				$(\'#high-rating\').fadeOut(function() { 					$(\'#low-rating\').fadeIn(); 				}); 			}); 			$(\'.stars img[alt=\"4\"]\').click(function() { 				$(\'#low-rating\').fadeOut(); 				$(\'#high-rating\').fadeIn(); 			}); 			 			$(\'.stars img[alt=\"5\"]\').click(function() { 				$(\'#low-rating\').fadeOut(); 				$(\'#high-rating\').fadeIn(); 			}); 			boomtag{review_client_check} 			$(\'#review_text\').val(\'\'); 			$(\"#submit-review\").click(function() { 				$(\"#feedback_err_msg\").html(\'\'); 				if(!$(\'#review_text\').val()) 				{ 					$(\"#feedback_err_msg\").css(\'color\',\'red\'); 					$(\"#feedback_err_msg\").html(\'Please provide your feedback message.\'); 					return false; 				} 				else 				 { 				 	$.ajax({ 						url: \'/business-review?cj=boomtag{client_journal}&s=\' + $(\'#score\').val(), 					 	type: \"POST\", 					 	dataType: \"json\", 					 	data:{ 					 			submit:1, 					 			review_text: $(\'#review_text\').val() 					 	}, 					 	complete: function(data){ 					 			if(data) window.location.reload(); 					 	} 				 	}); 				 }	  			}); 		}); 	</script>','/*  HTML5 Reset  --------------------------------------------- */  article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em;margin:.67em 0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}mark{background:#ff0;color:#000}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}pre{white-space:pre-wrap}q{quotes:\"\\201C\" \"\\201D\" \"\\2018\" \"\\2019\"}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}button,input{line-height:normal}button,select{text-transform:none}button,html input[type=\"button\"],input[type=\"reset\"],input[type=\"submit\"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}input[type=\"checkbox\"],input[type=\"radio\"]{box-sizing:border-box;padding:0}input[type=\"search\"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=\"search\"]::-webkit-search-cancel-button,input[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}    /* Box Sizing  --------------------------------------------- */  *, input[type=\"search\"] {  	-webkit-box-sizing: border-box;  	-moz-box-sizing:    border-box;  	box-sizing:         border-box;  }    /* Float Clearing  --------------------------------------------- */  .archive-pagination:before,  .clearfix:before,  .entry:before,  .entry-pagination:before,  .footer-widgets:before,  .nav-primary:before,  .nav-secondary:before,  .site-container:before,  .site-footer:before,  .site-header:before,  .site-inner:before,  .wrap:before {  	content: \" \";  	display: table;  }    .archive-pagination:after,  .clearfix:after,  .entry:after,  .entry-pagination:after,  .footer-widgets:after,  .nav-primary:after,  .nav-secondary:after,  .site-container:after,  .site-footer:after,  .site-header:after,  .site-inner:after,  .wrap:after {  	clear: both;  	content: \" \";  	display: table;  }      /* Typographical Elements  --------------------------------------------- */  body, html {    height: 100%;  }    html {  	font-size: 62.5%; /* 10px browser default */  }    body {  	background: #EEE;  	color: #414142;  	font-family: \'Helvetica Neue\', Helvetica, Arial, sans-serif;  	font-size: 18px;  	font-weight: 300;  	line-height: normal;  }    p {  	line-height: 1.4;  	margin: 0 0 1em;  }      /* Links  --------------------------------------------- */  a,  button,  input:focus,  input[type=\"button\"],  input[type=\"reset\"],  input[type=\"submit\"],  textarea:focus,  .button {  	-webkit-transition: all 0.1s ease-in-out;  	-moz-transition:    all 0.1s ease-in-out;  	-ms-transition:     all 0.1s ease-in-out;  	-o-transition:      all 0.1s ease-in-out;  	transition:         all 0.1s ease-in-out;  }    a {  	color: #cd2032;  }    a:hover {  	text-decoration: none;  }    .row.red a {  	color: #FFF;  }      /* Headings  --------------------------------------------- */  h1, h2, h3, h4 {  	font-weight: normal;  	margin: 0 0 10px;  }    h1#page-title {  	font-size: 30px;  	font-weight: bold;  	text-align: center;  }    /* Forms  --------------------------------------------- */  ::-webkit-input-placeholder {  	color: #414142;  }  :-moz-placeholder { /* Mozilla Firefox 4 to 18 */  	color: #414142;  }  ::-moz-placeholder { /* Mozilla Firefox 19+ */  	color: #414142;  }  :-ms-input-placeholder { /* Internet Explorer 10+ */  	color: #414142;  }    input[type=\"text\"], input[type=\"email\"], input[type=\"submit\"], textarea {      border: 1px solid #ABA8A8;      box-shadow: inset 0 0 2px #EEE;      color: #414142;      float: left;      font-size: 0.9em;      height: 42px;      margin: 0;      padding: .5em 1em;      width: 270px;  }    input[type=\"submit\"], #control {  	background: #CD2032;  	border: 0;  	color: #FFF;  	float: right;  	font-size: 1em;  	width: 132px;  }    textarea {  	font-size: .8em;  	height: 90px;  	padding: 1em;  	width: 100%;  }    /* Containers & Rows  --------------------------------------------- */  #wrapper {  	height: 100%;  	margin: 0 auto;  	max-width: 600px;  	width: 100%;  }    #container {  	background: #D8D0C5;  	border: 4px solid #414142;  	border-top: 0;  	float: left;  	font-size: 1em;  	width: 100%;  }    .header.row {  	background: url(boomtag{boomtime_path}/img/jslot_images/tinpot-image.jpg) no-repeat center center #FFF;  	background-size: 100%;  	border-bottom:0px;  	padding-bottom: 2em;          padding-top: 1.4em;  }    .header img {  	display: block;  	margin: 0 auto;  	max-width: 100%;  }    .game p {  	font-size: .9em;  	margin: .5em 0 1em;  	text-align: center;  }    .game p:last-child {  	margin-bottom: 0;  }    .row {  	float: left;  	padding: 2em;  	width: 100%;  }      .row.copyright {  	border: 0;  	border-top: 1px solid #a1a1a1;  	font-size: .7em;  	padding: 1em;  	text-align: center;  }    .row.copyright p {  	margin-bottom: 0;  }    .inner {  	margin: 0 auto;  	max-width: 408px;  	width: 100%;  }    .row.white {  	color: #cd2032;  }    .row.gray {  	background: #f1f1f1;  }    .row.dark-gray {  	background: #aba8a8;  }    .row.dark-gray p {  	margin-bottom: 0;  }    .row.white h1, .row.white h2 {  	color: #414142;  }    .row.red {  	background: #cd2032;  	color: #FFF;  }    .box {      float: left;      margin: 1em 0;      width: 100%;  }    .one-third {  	float: left;  	margin-left: 2.564102564102564%;  	width: 31.623931623931625%;  }    .first {  	margin-left: 0;  	padding-top: 0;  }    .stars {  	float: left;  	margin-bottom: 1em;  	text-align: center;  	width: 100%;  }    .social-media a, .footer a {  	text-decoration: none;  }    .social-media img {  	margin-right: .8em;  }    .social-media img:hover {  	opacity: .7;  }    .footer {  	font-size: .75em;  	padding: 1em;  }    .footer p {  	margin: 0;  	padding: 0;  }    .footer span {  	margin-right: 1em;  }    .footer a {  	color: #414142;  }    .footer a:hover {  	text-decoration: underline;  }    .one-third-container:after,  #low-rating:after{  	content: \".\";  	display: block;  	clear: both;  	visibility: hidden;  	line-height: 0;  	height: 0;  }     .one-third-container,  #low-rating{  	display: inline-block;  }     html[xmlns] .one-third-container,  html[xmlns] #low-rating{  	display: block;  }     * html .one-third-container,  * html #low-rating{   	height: 1%;  }      .one-third-container,  #low-rating{      display: block;  }  /* Slot Machine  --------------------------------------------- */  .row.slotmachine {  	background: url(boomtag{boomtime_path}/img/jslot_images/tinpot-image.jpg) no-repeat center center #FFF;  	background-size: 100%;  	position: relative;  }    .container {  	float: left;  	margin:0 auto;  	position: relative;  	text-align: center;  	width: 100%;  }    .slot-wrapper {  	 display: block;  	 margin: 0 auto;  	 text-align: center;  }    .slot {  	background:url(boomtag{boomtime_path}/img/jslot_images/reel_normal_transparent_white.png) repeat-y 0 4px;      border: 3px solid #3a3a3c;      box-shadow: 0 0 6px #333 inset;      display: inline-block;      height: 154px;  	-webkit-transition: background-image .8s ease-in-out;  	-moz-transition: background-image .8s ease-in-out;  	-ms-transition: background-image .8s ease-in-out;  	-o-transition: background-image .8s ease-in-out;  	transition: background-image .8s ease-in-out;      width: 132px;  }    .motion {  	background-image:url(boomtag{boomtime_path}/img/jslot_images/reel_blur_transparent_white.png) #D8D0C5;  }    button {      cursor: pointer;      display: block;      font-size: 16px;      height: 33px;      margin: 20px auto;      width: 138px;  }    #result {      font-weight: bold;      margin: 20px 0;  }    #jackpot {  	background: rgba(255, 255, 255, .5);      color: #414142;      display: none;      float: left;      font-weight: 400;      margin: 0 auto;      max-width: 408px;      min-height: 155px;      padding: 1em 2em 0;      position: absolute;      top: auto; left: 0; right: 0;      text-align: center;      vertical-align: middle;      width: 100%;      z-index: 10;  }  }    #jackpot .wrapper {  	/*border: 5px solid #FFF;  	margin: 1em;*/  	padding: 1em;  }    #jackpot h1 {  	color: #CD2032;  }    #jackpot p {  	margin-bottom: 0;  }    #jackpot p + p {  	margin-top: 0;  }    .clear {  	clear: both;  }      /* Media Queries  --------------------------------------------- */      /* HD/Retina CSS */  @media  only screen and (-webkit-min-device-pixel-ratio: 1.25),  only screen and ( min--moz-device-pixel-ratio: 1.25),  only screen and ( -o-min-device-pixel-ratio: 1.25/1),  only screen and ( min-device-pixel-ratio: 1.25),  only screen and ( min-resolution: 200dpi),  only screen and ( min-resolution: 1.25dppx){      #wrapper {          max-width: 100%;          width: 100%;      }            #container{          border:none;      }  }      /* iPads (portrait and landscape) ----------- */  @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {  	#wrapper {  		max-width: 100%;  	}  	  	#container {  		border: 0;  		min-width: 100%;  	}  }    @media screen and (max-width: 650px) {  	#wrapper {  		max-width: 100%;  	}  	  	#container {  		border: 0;  		min-width: 100%;  	}  }    @media screen and (max-width: 485px) {  	h1#page-title {  		font-size: 31px;  	}  	  	.row {  		padding: 2em 1em;  	}  	  	.inner {  		max-width: 341px;  	}  	  	input[type=\"submit\"], #control {  		width: 110px;  	}  	  	input[type=\"email\"] {  		width: 224px;  	}  	  	.slot {  		background-size: 104px 1730px;  		height: 128px;  		width: 110px;  	}  	  	#jackpot {  		top: 22px;  	}  	  	#jackpot p {  		line-height: normal;  	}  	  	#jackpot p:last-child {  	    line-height: 15px;  	    margin-top: 5px;  	}  	  	textarea {  		font-size: .72em;  		height: 130px;  	}  }    @media screen and (max-width: 380px) {  	.inner {  		width: 282px;  	}  	  	input[type=\"submit\"], #control {  		width: 90px;  	}  	  	input[type=\"email\"] {  		width: 186px;  	}  	  	.slot {  		background-size: 84px 1400px;  		height: 105px;  		width: 90px;  	}  	  	#jackpot {  		font-size: .85em;  		min-height: inherit;  		padding-bottom: .5em;  	}  }  @media screen and (max-width: 340px) {  	p {  		font-size: 16px;  	}  	  	.one-third {  		margin-left: 0;  		width: 100%;  	}  	  	.one-third p {  		margin: 0;  	}  	  	.stars img {  		max-width: 40px;  	}  }   @media 	only screen and (-webkit-min-device-pixel-ratio: 1.25), 	only screen and ( min--moz-device-pixel-ratio: 1.25), 	only screen and ( -o-min-device-pixel-ratio: 1.25/1), 	only screen and ( min-device-pixel-ratio: 1.25), 	only screen and ( min-resolution: 200dpi), 	only screen and ( min-resolution: 1.25dppx){ 	   body{ 	       background:{boomtag{background_container}}; 	   } 	} .game{   		min-height: 418px;   	}   	#footer_badge{   		background: url(\"boomtag{boomtime_slot_footer}\") no-repeat scroll right center; 		max-width: 100%; 		width: 100%;   	}    	#terms { 		position:absolute; 		font-family: boomtag{slot_machine_font}; 		color: boomtag{slot_machine_theme}; 		text-decoration: none; 		left:18px; 		top:34%; 		font-size: 1em; 	}  	@media screen 	and (orientation : portrait){ 		#footer_badge{ 			  		background: url(\"boomtag{boomtime_slot_footer}\") no-repeat scroll center bottom; 			  		padding-bottom:20px; 		}  		#terms { 			position: relative; 			top:5px; 			left:0; 		}  		.partner_section { 			margin-top:60px; 		}  		#footer_badge p { 			font-size: 1em; 		} 	} ');
INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('Professional_main', '<!DOCTYPE HTML> <html lang=\"en-US\"> <head> 	<meta charset=\"UTF-8\">     <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"> 	<title>boomtag{title}</title>     <link href=\'http://fonts.googleapis.com/css?family=Montserrat:400,700\' rel=\'stylesheet\' type=\'text/css\'>     <link href=\'http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700\' rel=\'stylesheet\' type=\'text/css\'>     <script src=\'https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js\'></script>     <style type=\"text/css\">boomtag{main_css}</style>    	<script type=\"text/javascript\">  		$(function() {  			$(\"#email-submit\").attr(\'disabled\', false); 			$(\"#email_add\").attr(\'disabled\',false);  			function validateEmail($email) { 			  	var emailReg = /^([\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4})?$/; 			  	if( !emailReg.test( $email ) ) { 			    	return false; 			  	} else { 			    	return true; 			  	} 			}  			$(\"#email-submit\").click(function(){  				$(\"#err_msg\").html(\'\'); 				$(\'#jackpot\').fadeOut(\'fast\'); 				$(\'.slot-wrapper\').fadeTo( \"fast\", 1 );  				if(!$(\"#email_add\").val()) { 					$(\"#err_msg\").html(\"* Please enter your email address.\"); 					return false; 				} else if( !validateEmail($(\"#email_add\").val())){ 					$(\"#err_msg\").html(\"* Please enter a valid email address. For example <b><i>johnsmith@gmail.com</i></b>\"); 					return false; 			    } else {  					$(\"#email-submit\").attr(\'disabled\', true); 					$(\"#email_add\").attr(\'disabled\',true); 					var start_time = new Date().getTime();  					 					$.ajax({ 						url: \'/slot-machine\', 					 	type: \"POST\", 					  	dataType: \"json\", 					  	data: {  					  		id : \'play_slot\', 					  		email: $(\'#email_add\').val(), 					  		referred_org: \'boomtag{org_business_client_email}\' 					  	}, 					  	success: function(data){ 					  		var success = true;  					  		if(data[0] == \"error\") 					  		{ 					  			$(\'#won_msg\').text(\'Sorry!\'); 					  			$(\'#offer\').text(\'No prizes available.\'); 					  			$(\'#prize_info\').text(\'Prize Info: Sorry no email was sent.\'); 					  			success = false; 					  		} 					  		else if(data[0] == \'exist\') 					  		{ 					  			$(\'#won_msg\').text(\'Sorry, only one spin per email address.\'); 					  			$(\'#offer\').text(\'\'); 					  			$(\'#prize_info\').text(\'\'); 					  			success = false; 					  		}  					  		if(!success) { 					  				$(\'#jackpot\').fadeIn(\'fast\'); 									$(\'.slot-wrapper\').fadeTo( \"slow\", 0.33 ); 									$(\"#email-submit\").attr(\'disabled\', true); 									$(\"#email_add\").attr(\'disabled\',true); 					  			return false; 					  		} else { 						  			$(\'#won_msg\').text(\'You’ve Won!\'); 									$(\'#offer\').text(data[0]); 					  				$(\'#org_client\').val(data[1]); 									$(\'#page-title\').text(\'Congratulations\').after(\'<p>You will be redirected to your prize in a moment.</p>\');	  									var send_data = {}; 									send_data.prize = data[0]; 						  			send_data.client_id = data[1];  									var frm = document.createElement(\"form\"); 										frm.method = \"post\"; 											send_data.main_org = \'boomtag{main_org}\'; 											frm.action = \'boomtag{main_org_claim_prize}\'; 									var input = document.createElement(\"input\"); 										input.type=\"hidden\"; 										input.name=\"data\"; 										input.value = JSON.stringify(send_data); 										 									frm.appendChild(input); 									document.body.appendChild(frm);  									setTimeout(function() { 										frm.submit();	 									}, 500); 									 									$(\'html, body, #wrapper, #container\').delay(3600).css(\'height\', \'auto\'); 					  		} 						} 					}); 				} 			}); 		}); 	  </script> </head> <body> <div id=\"main-wrapper-ribbon\"> 	<div class=\"container\">          <div class=\"row\">          <div id=\"tag-wrapper\" class=\"col-xs-9 col-xs-offset-3\">             <div id=\"tag-container\">                 <div class=\"tag-boarder\">                     <div class=\"clearfix\">                         <div class=\"recipient-container\">                             <h2>Enter your email address to open your gift</h2>                             <div class=\"clearfix prof-header-border\"></div>                             <div class=\"prof-form-container\">                             	<span style=\"color:red;font-size:14px\" id=\"err_msg\"></span> 								<div class=\"row\">   								        <div class=\"col-sm-9\"> 								            <div class=\"form-group\"> 								            	<div id=\"jackpot\"> 													<div class=\"wrapper\"> 														<h1 id=\"won_msg\">YOU?VE WON!!</h1> 														<p id=\"offer\"></p> 														<p><small><i id=\"prize_info\">Prize Info: An email with your prize has been sent</i></small></p> 													</div> 												</div> 								            	<input class=\"form-control input-sm\" id=\"email_add\" placeholder=\"Email Address\"> 								            </div> 								        </div> 								        <div class=\"col-sm-3\"> 								            <div class=\"form-group\"> 								            	<button type=\"submit\" id=\"email-submit\" class=\"btn btn-primary btn-block btn-sm\">Submit</button> 								            </div> 								        </div> 								</div>                             </div>                         </div>                     </div>                     <div class=\"clearfix\">                                                  <div id=\"tag-org-details\">                             <div class=\"row\">                               <div class=\"col-md-12 tag-orgname-container\"><span class=\"tag-orgname\">boomtag{org_name}</span></div>                             </div>                         </div>                                          </div>                 </div>                 </div>         </div>     </div>          </div> </div>     </body> </html>', '@import url(\"boomtag{boomtime_path}/css/bootstrap.css\");   @media(max-width:767px){     #tag-wrapper{         margin-top:10px;     }          #main-wrapper-ribbon{         background: url(\"boomtag{boomtime_path}/img/gift_foryou/v1/ribbon-bg.png\") no-repeat scroll -50px -50px / 150%  rgba(0, 0, 0, 0) !important;         height:100%;     }          #tag-to,     #tag-from{         font-size: 14px !important;     }          #tag-org-details{         font-size: 12px !important;         word-break: break-all;     }          .recipient-container h2{         font-size:13px !important;     } }    @media(max-width:767px) and (orientation:portrait){     #main-wrapper-ribbon{         background: url(\"boomtag{boomtime_path}/img/gift_foryou/v1/ribbon-bg.png\") no-repeat scroll -90px top / cover  rgba(0, 0, 0, 0) !important;         height:100%;     }          #tag-wrapper{         width:100% !important;         margin-left:0 !important;     }          #tag-wrapper{         margin-top:150px;     }      }  @media(min-width:768px){     #tag-wrapper{         margin-top:250px;     }          #main-wrapper-ribbon{         background: url(\"boomtag{boomtime_path}/img/gift_foryou/v1/ribbon-bg.png\") no-repeat scroll -150px -80px rgba(0, 0, 0, 0) !important;     }          #tag-to,     #tag-from{         font-size: 28px !important;     }          #tag-org-details{         font-size: 18px !important;         word-break: break-all;     } }  @media(min-width:992px){     #tag-wrapper{         margin-top:300px;            }          #main-wrapper-ribbon{         background: url(\"boomtag{boomtime_path}/img/gift_foryou/v1/ribbon-bg.png\") no-repeat scroll -170px -80px rgba(0, 0, 0, 0) !important;     }          #tag-to,     #tag-from{         font-size: 34px !important;     }          #tag-org-details{         font-size: 24px !important;         word-break: break-all;     }           }  @media(min-width:1200px){     #tag-wrapper{         margin-top:560px;     }          #main-wrapper-ribbon{         background: url(\"boomtag{boomtime_path}/img/gift_foryou/v1/ribbon-bg.png\") no-repeat scroll left top / cover  rgba(0, 0, 0, 0) !important;     }          #tag-to,     #tag-from{         font-size: 26px !important;     }          #tag-org-details{         font-size: 18px !important;         word-break: break-all;     }  }      body,html{         height:100%;     }  body{     background:url(\'boomtag{boomtime_path}/img/gift_foryou/v1/proffesional-bg-pattern.png\'); }  #main-wrapper-ribbon{     background: url(\"boomtag{boomtime_path}/img/gift_foryou/v1/ribbon-bg.png\") no-repeat scroll left top / cover  rgba(0, 0, 0, 0);     height:100%; }  #tag-container{     background: url(\"boomtag{boomtime_path}/img/gift_foryou/v1/proffesional-tag-bg-pattern.png\") repeat scroll 0 0 rgba(0, 0, 0, 0);     box-shadow: 1px 1px 2px #b8b8b8;     padding: 10px; }  .tag-boarder{     border:3px solid #007ba6; }  .recipient-container{     border-bottom: 2px solid #007ea8;     padding: 5px; }  .recipient-container h2{ margin-top:10px; }  .tag-orgcontent-container{     border-left: 2px solid #007ea8;     padding: 15px; }  .tag-orgname-container{     padding: 10px 25px; }  .prof-header-border{     background: url(\"boomtag{boomtime_path}/img/gift_foryou/v1/header-border.png\") repeat scroll 0 0 rgba(0, 0, 0, 0);     height: 7px;     margin-bottom: 10px;     width: 100%; }  .prof-form-container .form-control{ background-image: -o-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%); background-image: -moz-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%); background-image: -webkit-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%); background-image: -ms-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%); background-image: linear-gradient(to bottom, #F5F5F5 0%, #FFFFFF 100%);     border-radius: 0;     box-shadow: 0 0 3px #d3d3d3 inset;     font-family: \'Montserrat\',sans-serif;     font-size: 14px;     text-transform: uppercase; }  .prof-form-container .btn{ background: #007ca5; /* Old browsers */ background: -moz-linear-gradient(top, #007ca5 0%, #006792 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#007ca5), color-stop(100%,#006792)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #007ca5 0%,#006792 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #007ca5 0%,#006792 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #007ca5 0%,#006792 100%); /* IE10+ */ background: linear-gradient(to bottom, #007ca5 0%,#006792 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=\'#007ca5\', endColorstr=\'#006792\',GradientType=0 ); /* IE6-9 */          border-radius: 0;     box-shadow: 0 0 5px #00567f inset;     font-family: \'Open Sans Condensed\',sans-serif;     font-weight: bold;     text-transform: uppercase; }  .tag-orgname-container, .tag-orgcontent-container{     text-align:center;     font-family: \'Montserrat\',sans-serif; }  .recipient-container h2{     color: #00749f;     font-family: \'Montserrat\',sans-serif;     font-size: 20px;     text-align: center;     text-transform: uppercase; }  #tag-to, #tag-from{     color: #007ca7;     font-size: 18px; }  .tag-span-to-lbl, .tag-span-from-label{     font-weight: 800; }  .tag-orgcontent a{     color: #007ca7; }  .tag-orgcontent{     font-weight:600; }  .tag-orgname{     font-weight:600; }  #jackpot {     background: none repeat scroll 0 0 rgba(255, 255, 255, 0.5);     color: #414142;     display: none;     float: left;     font-weight: 400;     margin: 0 auto;     max-width: 408px;     min-height: 155px;     padding: 1em 2em 0;     position: absolute;     right: 0;     text-align: center;     bottom: -50px;     vertical-align: middle;     width: 100%;     z-index: 10; } #jackpot h1 {     color: #cd2032; } #jackpot p {     margin-bottom: 0; }');
INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('Stylish_main','<!DOCTYPE HTML>\n<html lang=\"en-US\">\n<head>\n	<meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n	<title>boomtag{title}</title>\n    <link href=\'http://fonts.googleapis.com/css?family=Montserrat:400,700\' rel=\'stylesheet\' type=\'text/css\'>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700\' rel=\'stylesheet\' type=\'text/css\'>\n    <script src=\'https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js\'></script>\n    <style type=\"text/css\">boomtag{main_css}</style> \n    <script type=\"text/javascript\">\n    \n		$(function() {\n\n			$(\"#email-submit\").attr(\'disabled\', false);\n			$(\"#email_add\").attr(\'disabled\',false);\n\n			function validateEmail($email) {\n			  	var emailReg = /^([\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4})?$/;\n			  	if( !emailReg.test( $email ) ) {\n			    	return false;\n			  	} else {\n			    	return true;\n			  	}\n			}\n\n			$(\"#email-submit\").click(function(){\n\n				$(\"#err_msg\").html(\'\');\n				$(\'#jackpot\').fadeOut(\'fast\');\n				$(\'.slot-wrapper\').fadeTo( \"fast\", 1 );\n\n				if(!$(\"#email_add\").val()) {\n					$(\"#err_msg\").html(\"* Please enter your email address.\");\n					return false;\n				} else if( !validateEmail($(\"#email_add\").val())){\n					$(\"#err_msg\").html(\"* Please enter a valid email address. For example <b><i>johnsmith@gmail.com</i></b>\");\n					return false;\n			    } else {\n\n					$(\"#email-submit\").attr(\'disabled\', true);\n					$(\"#email_add\").attr(\'disabled\',true);\n					var start_time = new Date().getTime();\n\n					\n					$.ajax({\n						url: \'/slot-machine\',\n					 	type: \"POST\",\n					  	dataType: \"json\",\n					  	data: { \n					  		id : \'play_slot\',\n					  		email: $(\'#email_add\').val(),\n					  		referred_org: \'boomtag{org_business_client_email}\'\n					  	},\n					  	success: function(data){\n					  		var success = true;\n\n					  		if(data[0] == \"error\")\n					  		{\n					  			$(\'#won_msg\').text(\'Sorry!\');\n					  			$(\'#offer\').text(\'No prizes available.\');\n					  			$(\'#prize_info\').text(\'Prize Info: Sorry no email was sent.\');\n					  			success = false;\n					  		}\n					  		else if(data[0] == \'exist\')\n					  		{\n					  			$(\'#won_msg\').text(\'Sorry, only one spin per email address.\');\n					  			$(\'#offer\').text(\'\');\n					  			$(\'#prize_info\').text(\'\');\n					  			success = false;\n					  		}\n\n					  		if(!success) {\n					  				$(\'#jackpot\').fadeIn(\'fast\');\n									$(\'.slot-wrapper\').fadeTo( \"slow\", 0.33 );\n									$(\"#email-submit\").attr(\'disabled\', true);\n									$(\"#email_add\").attr(\'disabled\',true);\n					  			return false;\n					  		} else {\n						  			$(\'#won_msg\').text(\'You’ve Won!\');\n									$(\'#offer\').text(data[0]);\n					  				$(\'#org_client\').val(data[1]);\n									$(\'#page-title\').text(\'Congratulations\').after(\'<p>You will be redirected to your prize in a moment.</p>\');	\n\n									var send_data = {};\n									send_data.prize = data[0];\n						  			send_data.client_id = data[1];\n\n									var frm = document.createElement(\"form\");\n										frm.method = \"post\";\n											send_data.main_org = \'boomtag{main_org}\';\n											frm.action = \'boomtag{main_org_claim_prize}\';\n									var input = document.createElement(\"input\");\n										input.type=\"hidden\";\n										input.name=\"data\";\n										input.value = JSON.stringify(send_data);\n										\n									frm.appendChild(input);\n									document.body.appendChild(frm);\n\n									setTimeout(function() {\n										frm.submit();	\n									}, 500);\n									\n									$(\'html, body, #wrapper, #container\').delay(3600).css(\'height\', \'auto\');\n					  		}\n						}\n					});\n				}\n			});\n		});\n	  </script>\n</head>\n<body>\n<div id=\"main-wrapper-ribbon\">\n	<div class=\"container\"> \n    <div class=\"row\">\n        <div id=\"tag-wrapper\" class=\"col-xs-9\">\n            <div id=\"tag-container\">\n                <div class=\"tag-boarder\">\n                    <div class=\"clearfix\">\n                        <div class=\"recipient-container\">\n                            <h2>Enter your email address to open your gift</h2>                  \n                            <div class=\"prof-form-container\">\n                            	<span style=\"color:red;font-size:14px\" id=\"err_msg\"></span>\n								<div class=\"row\">  \n							        <div class=\"col-sm-9\">\n							            <div class=\"form-group\">\n							            	<div id=\"jackpot\">\n												<div class=\"wrapper\">\n													<h1 id=\"won_msg\">YOU\'VE WON!!</h1>\n													<p id=\"offer\"></p>\n													<p><small><i id=\"prize_info\">Prize Info: An email with your prize has been sent</i></small></p>\n												</div>\n											</div>\n							            	<input class=\"form-control input-sm\" id=\"email_add\" placeholder=\"Email Address\">\n							            </div>\n							        </div>\n							        <div class=\"col-sm-3\">\n							            <div class=\"form-group\">\n							            	<button type=\"submit\" id=\"email-submit\" class=\"btn btn-primary btn-block btn-sm\">Submit</button>\n							            </div>\n							        </div>\n							     </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">\n                        \n                        <div id=\"tag-org-details\">\n                            <div class=\"row\">\n                              <div class=\"col-md-12 tag-orgname-container\"><span class=\"tag-orgname\">boomtag{org_name}</span></div>\n                            </div>\n                        </div>\n                    \n                    </div>\n                </div>    \n            </div>\n        </div>\n    </div>\n    </div>\n</div>    \n</body>\n</html>','@import url(\"boomtag{boomtime_path}/css/bootstrap.css\");   @media(max-width:767px){     #tag-wrapper{         margin-top:40px;     }          #main-wrapper-ribbon{         background: url(\"boomtag{boomtime_path}/img/gift_foryou/v2/ribbon-bg.png\") no-repeat scroll 50px -50px / 150%  rgba(0, 0, 0, 0) !important;         height:100%;     }          #tag-to,     #tag-from{         font-size: 14px !important;     }          #tag-org-details{         font-size: 12px !important;         word-break: break-all;     }          .recipient-container h2{         font-size:13px !important;     } }    @media(max-width:767px) and (orientation:portrait){     #main-wrapper-ribbon{         background: url(\"boomtag{boomtime_path}/img/gift_foryou/v2/ribbon-bg.png\") no-repeat scroll -80px top / cover  rgba(0, 0, 0, 0) !important;         height:100%;     }          #tag-wrapper{         width:100% !important;         margin-left:0 !important;     }          #tag-wrapper{         margin-top:170px;     }      }  @media(min-width:768px){     #tag-wrapper{         margin-top:250px;     }          #main-wrapper-ribbon{         background: url(\"boomtag{boomtime_path}/img/gift_foryou/v2/ribbon-bg.png\") no-repeat scroll -150px -80px rgba(0, 0, 0, 0) !important;     }          #tag-to,     #tag-from{         font-size: 28px !important;     }          #tag-org-details{         font-size: 18px !important;         word-break: break-all;     } }  @media(min-width:992px){     #tag-wrapper{         margin-top:300px;            }          #main-wrapper-ribbon{         background: url(\"boomtag{boomtime_path}/img/gift_foryou/v2/ribbon-bg.png\") no-repeat scroll -170px -80px rgba(0, 0, 0, 0) !important;     }          #tag-to,     #tag-from{         font-size: 34px !important;     }          #tag-org-details{         font-size: 24px !important;         word-break: break-all;     }           }  @media(min-width:1200px){     #tag-wrapper{         margin-top:560px;     }          #main-wrapper-ribbon{         background: url(\"boomtag{boomtime_path}/img/gift_foryou/v2/ribbon-bg.png\") no-repeat scroll center center / cover  rgba(0, 0, 0, 0) !important;     }          #tag-to,     #tag-from{         font-size: 26px !important;     }          #tag-org-details{         font-size: 18px !important;         word-break: break-all;     }  }      body,html{         height:100%;     }  body{     background:url(\'boomtag{boomtime_path}/img/gift_foryou/v2/proffesional-bg-pattern.png\'); }  #main-wrapper-ribbon{     background: url(\"boomtag{boomtime_path}/img/gift_foryou/v2/ribbon-bg.png\") no-repeat scroll left top / cover  rgba(0, 0, 0, 0);     height:100%; }  #tag-container{     background: url(\"boomtag{boomtime_path}/img/gift_foryou/v2/proffesional-tag-bg-pattern.png\") repeat scroll 0 0 rgba(0, 0, 0, 0);     box-shadow: 1px 1px 2px #b8b8b8;     padding: 10px; }   .recipient-container{     padding: 5px; }  .recipient-container h2{ margin-top:10px; }  #tag-org-details{     border-top:3px solid #f2e1bb; }  .tag-orgcontent-container{      padding: 15px; }  .tag-orgname-container{     padding: 10px 25px; }  .prof-header-border{     background: url(\"boomtag{boomtime_path}/img/gift_foryou/v2/header-border.png\") repeat scroll 0 0 rgba(0, 0, 0, 0);     height: 7px;     margin-bottom: 10px;     width: 100%; }  .prof-form-container .form-control{  background-image: -o-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%); background-image: -moz-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%); background-image: -webkit-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%); background-image: -ms-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%); background-image: linear-gradient(to bottom, #F5F5F5 0%, #FFFFFF 100%);      border-radius: 0;     box-shadow: 0 0 3px #d3d3d3 inset;     font-family: \'Montserrat\',sans-serif;     font-size: 14px;     text-transform: uppercase;      }  .prof-form-container .btn{  background: #f4d68c; /* Old browsers */ background: -moz-linear-gradient(top, #f4d68c 0%, #dcb75a 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f4d68c), color-stop(100%,#dcb75a)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #f4d68c 0%,#dcb75a 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #f4d68c 0%,#dcb75a 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #f4d68c 0%,#dcb75a 100%); /* IE10+ */ background: linear-gradient(to bottom, #f4d68c 0%,#dcb75a 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=\'#f4d68c\', endColorstr=\'#dcb75a\',GradientType=0 ); /* IE6-9 */           color:#FFF;     border:1px solid #a88631;     border-radius: 0;     box-shadow: 0 0 5px #947936 inset;     font-family: \'Open Sans Condensed\',sans-serif;     font-weight: bold;     text-transform: uppercase; }  .tag-boarder{  border: 3px solid #f2e1bb; }  .prof-form-container .btn:hover{  background: #dcb75a; /* Old browsers */ background: -moz-linear-gradient(top, #dcb75a 0%, #f4d68c 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dcb75a), color-stop(100%,#f4d68c)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #dcb75a 0%,#f4d68c 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #dcb75a 0%,#f4d68c 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #dcb75a 0%,#f4d68c 100%); /* IE10+ */ background: linear-gradient(to bottom, #dcb75a 0%,#f4d68c 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=\'#dcb75a\', endColorstr=\'#f4d68c\',GradientType=0 ); /* IE6-9 */  }   .tag-orgname-container, .tag-orgcontent-container{     text-align:center;     font-family: \'Montserrat\',sans-serif; }  .recipient-container h2{     color: #59514c;     font-family: \'Montserrat\',sans-serif;     font-size: 20px;     text-align: center;     text-transform: uppercase; }  #tag-to, #tag-from{     color: #007ca7;     font-size: 18px; }  .tag-span-to-lbl, .tag-span-from-label{     font-weight: 800; }  .tag-orgcontent a{     color: #007ca7; }  .tag-orgcontent{     font-weight:600; }  .tag-orgname{     font-weight:600; } \n\n#jackpot {\n    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.5);\n    color: #414142;\n    display: none;\n    float: left;\n    font-weight: 400;\n    margin: 0 auto;\n    max-width: 408px;\n    min-height: 155px;\n    padding: 1em 2em 0;\n    position: absolute;\n    right: 0;\n    text-align: center;\n    bottom: -60px;\n    vertical-align: middle;\n    width: 100%;\n    z-index: 10;\n}\n#jackpot h1 {\n    color: #cd2032;\n}\n#jackpot p {\n    margin-bottom: 0;\n}\n');
INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('Crafty_main','<!DOCTYPE HTML>\n<html lang=\"en-US\">\n<head>\n	<meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n	<title>boomtag{title}</title>\n    <link href=\'http://fonts.googleapis.com/css?family=Bree+Serif\' rel=\'stylesheet\' type=\'text/css\'>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700\' rel=\'stylesheet\' type=\'text/css\'>\n    <script src=\'https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js\'></script>\n    <style type=\"text/css\">boomtag{main_css}</style> \n    <script type=\"text/javascript\">\n    \n		$(function() {\n\n			$(\"#email-submit\").attr(\'disabled\', false);\n			$(\"#email_add\").attr(\'disabled\',false);\n\n			function validateEmail($email) {\n			  	var emailReg = /^([\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4})?$/;\n			  	if( !emailReg.test( $email ) ) {\n			    	return false;\n			  	} else {\n			    	return true;\n			  	}\n			}\n\n			$(\"#email-submit\").click(function(){\n\n				$(\"#err_msg\").html(\'\');\n				$(\'#jackpot\').fadeOut(\'fast\');\n				$(\'.slot-wrapper\').fadeTo( \"fast\", 1 );\n\n				if(!$(\"#email_add\").val()) {\n					$(\"#err_msg\").html(\"* Please enter your email address.\");\n					return false;\n				} else if( !validateEmail($(\"#email_add\").val())){\n					$(\"#err_msg\").html(\"* Please enter a valid email address. For example <b><i>johnsmith@gmail.com</i></b>\");\n					return false;\n			    } else {\n\n					$(\"#email-submit\").attr(\'disabled\', true);\n					$(\"#email_add\").attr(\'disabled\',true);\n					var start_time = new Date().getTime();\n\n					\n					$.ajax({\n						url: \'/slot-machine\',\n					 	type: \"POST\",\n					  	dataType: \"json\",\n					  	data: { \n					  		id : \'play_slot\',\n					  		email: $(\'#email_add\').val(),\n					  		referred_org: \'boomtag{org_business_client_email}\'\n					  	},\n					  	success: function(data){\n					  		var success = true;\n\n					  		if(data[0] == \"error\")\n					  		{\n					  			$(\'#won_msg\').text(\'Sorry!\');\n					  			$(\'#offer\').text(\'No prizes available.\');\n					  			$(\'#prize_info\').text(\'Prize Info: Sorry no email was sent.\');\n					  			success = false;\n					  		}\n					  		else if(data[0] == \'exist\')\n					  		{\n					  			$(\'#won_msg\').text(\'Sorry, only one spin per email address.\');\n					  			$(\'#offer\').text(\'\');\n					  			$(\'#prize_info\').text(\'\');\n					  			success = false;\n					  		}\n\n					  		if(!success) {\n					  				$(\'#jackpot\').fadeIn(\'fast\');\n									$(\'.slot-wrapper\').fadeTo( \"slow\", 0.33 );\n									$(\"#email-submit\").attr(\'disabled\', true);\n									$(\"#email_add\").attr(\'disabled\',true);\n					  			return false;\n					  		} else {\n						  			$(\'#won_msg\').text(\'You’ve Won!\');\n									$(\'#offer\').text(data[0]);\n					  				$(\'#org_client\').val(data[1]);\n									$(\'#page-title\').text(\'Congratulations\').after(\'<p>You will be redirected to your prize in a moment.</p>\');	\n\n									var send_data = {};\n									send_data.prize = data[0];\n						  			send_data.client_id = data[1];\n\n									var frm = document.createElement(\"form\");\n										frm.method = \"post\";\n											send_data.main_org = \'boomtag{main_org}\';\n											frm.action = \'boomtag{main_org_claim_prize}\';\n									var input = document.createElement(\"input\");\n										input.type=\"hidden\";\n										input.name=\"data\";\n										input.value = JSON.stringify(send_data);\n										\n									frm.appendChild(input);\n									document.body.appendChild(frm);\n\n									setTimeout(function() {\n										frm.submit();	\n									}, 500);\n									\n									$(\'html, body, #wrapper, #container\').delay(3600).css(\'height\', \'auto\');\n					  		}\n						}\n					});\n				}\n			});\n		});\n	  </script>\n</head>\n<body>\n<div id=\"main-wrapper-ribbon\">\n	<div class=\"container\">\n    \n    <div class=\"row\">\n\n        <div id=\"tag-wrapper\" class=\"col-xs-9\">\n            <div id=\"tag-container\">\n                <div class=\"tag-boarder\">\n                    <div class=\"clearfix\">\n                        <div class=\"recipient-container\">\n                            <h2>Enter your email address to open your gift</h2>\n                            <div class=\"clearfix v1-header-border\"></div>\n                            <div class=\"v1-form-container\">\n							<span style=\"color:red;font-size:14px\" id=\"err_msg\"></span>\n								<div class=\"row\">  \n							        <div class=\"col-sm-9\">\n							            <div class=\"form-group\">\n							            	<div id=\"jackpot\">\n												<div class=\"wrapper\">\n													<h1 id=\"won_msg\">YOU\'VE WON!!</h1>\n													<p id=\"offer\"></p>\n													<p><small><i id=\"prize_info\">Prize Info: An email with your prize has been sent</i></small></p>\n												</div>\n											</div>\n							            	<input class=\"form-control input-sm\" id=\"email_add\" placeholder=\"Email Address\">\n							            </div>\n							        </div>\n							        <div class=\"col-sm-3\">\n							            <div class=\"form-group\">\n							            	<button type=\"submit\" id=\"email-submit\" class=\"btn btn-primary btn-block btn-sm\">Submit</button>\n							            </div>\n							        </div>\n							     </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">\n                        \n                        <div id=\"tag-org-details\">\n                            <div class=\"row\">\n                              <div class=\"col-md-12 tag-orgname-container\"><span class=\"tag-orgname\">boomtag{org_name}</span></div>\n                            </div>\n                        </div>\n                    \n                    </div>\n                </div>    \n            </div>\n        </div>\n    </div>\n    \n    </div>\n</div>    \n</body>\n</html>','@import url(\"boomtag{boomtime_path}/css/bootstrap.css\");\n\n\n@media(max-width:767px){\n    #tag-wrapper{\n        margin-top:40px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v3/ribbon-bg.png\") no-repeat scroll -150px -50px / 150%  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 14px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 12px !important;\n        word-break: break-all;\n    }\n    \n    .recipient-container h2{\n        font-size:13px !important;\n    }\n}\n\n\n\n@media(max-width:767px) and (orientation:portrait){\n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v3/ribbon-bg.png\") no-repeat scroll -300px -20px / cover  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-wrapper{\n        width:100% !important;\n        margin-left:0 !important;\n    }\n    \n    #tag-wrapper{\n        margin-top:150px;\n    }\n    \n}\n\n@media(min-width:768px){\n    #tag-wrapper{\n        margin-top:250px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v3/ribbon-bg.png\") no-repeat scroll center center / 150% rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 28px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n}\n\n@media(min-width:992px){\n    #tag-wrapper{\n        margin-top:300px;       \n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v3/ribbon-bg.png\") no-repeat scroll center center rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 34px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 24px !important;\n        word-break: break-all;\n    }\n    \n    \n}\n\n@media(min-width:1200px){\n    #tag-wrapper{\n        margin-top:560px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v3/ribbon-bg.png\") no-repeat scroll center center / cover  rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 26px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n\n}\n\n    body,html{\n        height:100%;\n    }\n\nbody{\n    background:url(\'boomtag{boomtime_path}/img/gift_foryou/v3/v1-bg-pattern.png\');\n}\n\n#main-wrapper-ribbon{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v3/ribbon-bg.png\") no-repeat scroll left top / cover  rgba(0, 0, 0, 0);\n    height:100%;\n}\n\n#tag-container{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v3/form-bg.png\") repeat scroll 0 0 rgba(0, 0, 0, 0);\n    box-shadow: 1px 1px 2px #6d5e53;\n    padding: 10px;\n}\n\n.tag-boarder{\n}\n\n.recipient-container{\n    padding: 5px;\n}\n\n.recipient-container h2{\n    margin-top:10px;\n}\n\n.tag-orgcontent-container{\n    padding: 15px;\n}\n\n.tag-orgname-container{\n    padding: 0px 25px 10px;\n}\n\n.v1-header-border{\n    background:#7a7750;\n    height: 7px;\n    margin-bottom: 10px;\n    width: 100%;\n}\n\n.v1-form-container .form-control{\nbackground-image: -o-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -moz-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -webkit-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -ms-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: linear-gradient(to bottom, #F5F5F5 0%, #FFFFFF 100%);\n    border-radius: 0;\n    box-shadow: 0 0 3px #d3d3d3 inset;\n    font-family: \'Bree Serif\', serif;\n    font-size: 14px;\n    text-transform: uppercase;\n}\n\n.v1-form-container .btn{\n\n\nbackground: #7a7a52; /* Old browsers */\nbackground: -moz-linear-gradient(top, #7a7a52 0%, #5e5e2a 100%); /* FF3.6+ */\nbackground: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#7a7a52), color-stop(100%,#5e5e2a)); /* Chrome,Safari4+ */\nbackground: -webkit-linear-gradient(top, #7a7a52 0%,#5e5e2a 100%); /* Chrome10+,Safari5.1+ */\nbackground: -o-linear-gradient(top, #7a7a52 0%,#5e5e2a 100%); /* Opera 11.10+ */\nbackground: -ms-linear-gradient(top, #7a7a52 0%,#5e5e2a 100%); /* IE10+ */\nbackground: linear-gradient(to bottom, #7a7a52 0%,#5e5e2a 100%); /* W3C */\nfilter: progid:DXImageTransform.Microsoft.gradient( startColorstr=\'#7a7a52\', endColorstr=\'#5e5e2a\',GradientType=0 ); /* IE6-9 */\n    \n    border-radius: 0;\n    box-shadow: 0 0 5px #55552a inset;\n    font-family: \'Open Sans Condensed\',sans-serif;\n    font-weight: bold;\n    text-transform: uppercase;\n    border:1px solid #393926;\n}\n\n.v1-form-container .btn:hover{\nbackground: #5e5e2a; /* Old browsers */\nbackground: -moz-linear-gradient(top, #5e5e2a 0%, #7a7a52 100%); /* FF3.6+ */\nbackground: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#5e5e2a), color-stop(100%,#7a7a52)); /* Chrome,Safari4+ */\nbackground: -webkit-linear-gradient(top, #5e5e2a 0%,#7a7a52 100%); /* Chrome10+,Safari5.1+ */\nbackground: -o-linear-gradient(top, #5e5e2a 0%,#7a7a52 100%); /* Opera 11.10+ */\nbackground: -ms-linear-gradient(top, #5e5e2a 0%,#7a7a52 100%); /* IE10+ */\nbackground: linear-gradient(to bottom, #5e5e2a 0%,#7a7a52 100%); /* W3C */\nfilter: progid:DXImageTransform.Microsoft.gradient( startColorstr=\'#5e5e2a\', endColorstr=\'#7a7a52\',GradientType=0 ); /* IE6-9 */\n}\n\n.tag-orgname-container,\n.tag-orgcontent-container{\n    text-align:center;\n    font-family: \'Bree Serif\', serif;\n}\n\n.recipient-container h2{\n    color: #7b7a52;\n    font-family: \'Bree Serif\', serif;\n    font-size: 20px;\n    text-align: center;\n    text-transform: uppercase;\n}\n\n#tag-to,\n#tag-from{\n    color: #7b7a52;\n    font-size: 18px;\n}\n\n.tag-span-to-lbl,\n.tag-span-from-label{\n    font-weight: 800;\n}\n\n.tag-orgcontent a{\n    color: #7b7a52;\n}\n\n.tag-orgcontent{\n    font-weight:600;\n}\n\n.tag-orgname{\n    font-weight:600;\n}\n\n#jackpot {\n    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.5);\n    color: #414142;\n    display: none;\n    float: left;\n    font-weight: 400;\n    margin: 0 auto;\n    max-width: 408px;\n    min-height: 155px;\n    padding: 1em 2em 0;\n    position: absolute;\n    right: 0;\n    text-align: center;\n    bottom: -50px;\n    vertical-align: middle;\n    width: 100%;\n    z-index: 10;\n}\n#jackpot h1 {\n    color: #cd2032;\n}\n#jackpot p {\n    margin-bottom: 0;\n}');
INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('Brown-paper_main','<!DOCTYPE HTML>\n<html lang=\"en-US\">\n<head>\n	<meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n	<title>boomtag{title}</title>\n    <link href=\'http://fonts.googleapis.com/css?family=Bree+Serif\' rel=\'stylesheet\' type=\'text/css\'>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700\' rel=\'stylesheet\' type=\'text/css\'>\n    <script src=\'https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js\'></script>\n    <style type=\"text/css\">boomtag{main_css}</style> \n    <script type=\"text/javascript\">\n    \n		$(function() {\n\n			$(\"#email-submit\").attr(\'disabled\', false);\n			$(\"#email_add\").attr(\'disabled\',false);\n\n			function validateEmail($email) {\n			  	var emailReg = /^([\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4})?$/;\n			  	if( !emailReg.test( $email ) ) {\n			    	return false;\n			  	} else {\n			    	return true;\n			  	}\n			}\n\n			$(\"#email-submit\").click(function(){\n\n				$(\"#err_msg\").html(\'\');\n				$(\'#jackpot\').fadeOut(\'fast\');\n				$(\'.slot-wrapper\').fadeTo( \"fast\", 1 );\n\n				if(!$(\"#email_add\").val()) {\n					$(\"#err_msg\").html(\"* Please enter your email address.\");\n					return false;\n				} else if( !validateEmail($(\"#email_add\").val())){\n					$(\"#err_msg\").html(\"* Please enter a valid email address. For example <b><i>johnsmith@gmail.com</i></b>\");\n					return false;\n			    } else {\n\n					$(\"#email-submit\").attr(\'disabled\', true);\n					$(\"#email_add\").attr(\'disabled\',true);\n					var start_time = new Date().getTime();\n\n					\n					$.ajax({\n						url: \'/slot-machine\',\n					 	type: \"POST\",\n					  	dataType: \"json\",\n					  	data: { \n					  		id : \'play_slot\',\n					  		email: $(\'#email_add\').val(),\n					  		referred_org: \'boomtag{org_business_client_email}\'\n					  	},\n					  	success: function(data){\n					  		var success = true;\n\n					  		if(data[0] == \"error\")\n					  		{\n					  			$(\'#won_msg\').text(\'Sorry!\');\n					  			$(\'#offer\').text(\'No prizes available.\');\n					  			$(\'#prize_info\').text(\'Prize Info: Sorry no email was sent.\');\n					  			success = false;\n					  		}\n					  		else if(data[0] == \'exist\')\n					  		{\n					  			$(\'#won_msg\').text(\'Sorry, only one spin per email address.\');\n					  			$(\'#offer\').text(\'\');\n					  			$(\'#prize_info\').text(\'\');\n					  			success = false;\n					  		}\n\n					  		if(!success) {\n					  				$(\'#jackpot\').fadeIn(\'fast\');\n									$(\'.slot-wrapper\').fadeTo( \"slow\", 0.33 );\n									$(\"#email-submit\").attr(\'disabled\', true);\n									$(\"#email_add\").attr(\'disabled\',true);\n					  			return false;\n					  		} else {\n						  			$(\'#won_msg\').text(\'You’ve Won!\');\n									$(\'#offer\').text(data[0]);\n					  				$(\'#org_client\').val(data[1]);\n									$(\'#page-title\').text(\'Congratulations\').after(\'<p>You will be redirected to your prize in a moment.</p>\');	\n\n									var send_data = {};\n									send_data.prize = data[0];\n						  			send_data.client_id = data[1];\n\n									var frm = document.createElement(\"form\");\n										frm.method = \"post\";\n											send_data.main_org = \'boomtag{main_org}\';\n											frm.action = \'boomtag{main_org_claim_prize}\';\n									var input = document.createElement(\"input\");\n										input.type=\"hidden\";\n										input.name=\"data\";\n										input.value = JSON.stringify(send_data);\n										\n									frm.appendChild(input);\n									document.body.appendChild(frm);\n\n									setTimeout(function() {\n										frm.submit();	\n									}, 500);\n									\n									$(\'html, body, #wrapper, #container\').delay(3600).css(\'height\', \'auto\');\n					  		}\n						}\n					});\n				}\n			});\n		});\n	  </script>    \n</head>\n<body>\n<div id=\"ribbon-1\"></div>\n<div id=\"ribbon-2\"></div>\n	<div class=\"container\">\n    \n    <div class=\"row\">\n\n        <div id=\"tag-wrapper\" class=\"col-xs-10 col-xs-offset-1\">\n            <div id=\"tag-container\">\n                <div class=\"tag-boarder\">\n                    <div class=\"clearfix\">\n                        <div class=\"recipient-container\">\n                            <h2>Enter your email address to open your gift</h2>\n                            <div class=\"clearfix v1-header-border\"></div>\n                            <div class=\"v1-form-container\">\n							<span style=\"color:red;font-size:14px\" id=\"err_msg\"></span>\n								<div class=\"row\">  \n							        <div class=\"col-sm-9\">\n							            <div class=\"form-group\">\n							            	<div id=\"jackpot\">\n												<div class=\"wrapper\">\n													<h1 id=\"won_msg\">YOU\'VE WON!!</h1>\n													<p id=\"offer\"></p>\n													<p><small><i id=\"prize_info\">Prize Info: An email with your prize has been sent</i></small></p>\n												</div>\n											</div>\n							            	<input class=\"form-control input-sm\" id=\"email_add\" placeholder=\"Email Address\">\n							            </div>\n							        </div>\n							        <div class=\"col-sm-3\">\n							            <div class=\"form-group\">\n							            	<button type=\"submit\" id=\"email-submit\" class=\"btn btn-primary btn-block btn-sm\">Submit</button>\n							            </div>\n							        </div>\n							     </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">\n                        \n                        <div id=\"tag-org-details\">\n                            <div class=\"row\">\n                              <div class=\"col-md-12 tag-orgname-container\"><span class=\"tag-orgname\">boomtag{org_name}</span></div>\n                            </div>\n                        </div>\n                    \n                    </div>\n                </div>    \n            </div>\n        </div>\n    </div>\n    \n    </div>\n</body>\n</html>','@import url(\"boomtag{boomtime_path}/css/bootstrap.css\");\n\n\n@media(max-width:767px){\n    #tag-wrapper{\n        margin-top:10px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v4/ribbon-bg.png\") no-repeat scroll -50px -50px / 150%  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 14px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 12px !important;\n        word-break: break-all;\n    }\n    \n    .recipient-container h2{\n        font-size:13px !important;\n    }\n}\n\n\n\n@media(max-width:767px) and (orientation:portrait){\n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v4/ribbon-bg.png\") no-repeat scroll -90px top / cover  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-wrapper{\n        width:100% !important;\n        margin-left:0 !important;\n    }\n    \n    #tag-wrapper{\n        margin-top:150px;\n    }\n    \n}\n\n@media(min-width:768px){\n    #tag-wrapper{\n        margin-top:250px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v4/ribbon-bg.png\") no-repeat scroll center center / 150% rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 28px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n}\n\n@media(min-width:992px){\n    #tag-wrapper{\n        margin-top:300px;       \n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v4/ribbon-bg.png\") no-repeat scroll center center rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 34px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 24px !important;\n        word-break: break-all;\n    }\n    \n    \n}\n\n@media(min-width:1200px){\n    #tag-wrapper{\n        margin-top:560px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v4/ribbon-bg.png\") no-repeat scroll center center / cover  rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 26px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n\n}\n\n    body,html{\n        height:100%;\n    }\n\nbody{\n    background:url(\'boomtag{boomtime_path}/img/gift_foryou/v4/v1-bg-pattern.png\');\n}\n\n#ribbon-1{\nbackground: url(\"boomtag{boomtime_path}/img/gift_foryou/v4/ribbon-top.png\") no-repeat scroll left top / contain  rgba(0, 0, 0, 0);\nheight: 51%;\nposition: absolute;\nwidth: 50%;\ntop:0;\nleft:0;\n}\n\n#ribbon-2{\nbackground: url(\"boomtag{boomtime_path}/img/gift_foryou/v4/ribbon-bottom.png\") no-repeat scroll right bottom / contain  rgba(0, 0, 0, 0);\nheight: 30%;\nposition: absolute;\nwidth: 50%;\nbottom:0;\nright:0;\n}\n\n\n#tag-container{\nbackground: url(\'boomtag{boomtime_path}/img/gift_foryou/v4/form-bg.png\');\nbox-shadow: 1px 1px 2px #5f3e25;\npadding: 10px;\n}\n\n.tag-boarder{\nborder: 4px double #ac9859;\n}\n\n.recipient-container{\n    padding: 5px;\n}\n\n.recipient-container h2{\n    margin-top:10px;\n}\n\n.tag-orgcontent-container{\n    padding: 15px;\n}\n\n.tag-orgname-container{\n    padding: 10px 25px;\n}\n\n.v1-header-border{\n    background:#7a7750;\n    height: 7px;\n    margin-bottom: 10px;\n    width: 100%;\n}\n\n.v1-form-container .form-control{\nbackground-image: -o-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -moz-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -webkit-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -ms-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: linear-gradient(to bottom, #F5F5F5 0%, #FFFFFF 100%);\n    border-radius: 0;\n    box-shadow: 0 0 3px #d3d3d3 inset;\n    font-family: \'Open Sans Condensed\', sans-serif;\n    font-size: 14px;\n    text-transform: uppercase;\n}\n\n.v1-form-container .btn{\nbackground: none repeat scroll 0 0 #b1463b;\nborder: 1px solid #9d3b30;\nborder-radius: 0;\nfont-family: \"Open Sans Condensed\",sans-serif;\nfont-weight: bold;\ntext-transform: uppercase;\n}\n\n.v1-form-container .btn:hover{\nbackground: none repeat scroll 0 0 #CF6458;\n}\n\n.tag-orgname-container,\n.tag-orgcontent-container{\n    text-align:center;\n    font-family: \'Open Sans Condensed\', sans-serif;\n}\n\n.v1-header-border{\nbackground:url(\'boomtag{boomtime_path}/img/gift_foryou/v4/v4-header-border.png\');\n}\n\n.recipient-container h2{\n    color: #363636;\n    font-family: \'Open Sans Condensed\', sans-serif;\n    font-size: 20px;\n    text-align: center;\n    font-weight:bold;\n    text-transform: uppercase;\n}\n\n#tag-to,\n#tag-from{\n    color: #363636;\n    font-size: 18px;\n}\n\n.tag-span-to-lbl,\n.tag-span-from-label{\n    font-weight: 800;\n}\n\n.tag-orgcontent a{\n    color: #363636;\n}\n\n.tag-orgcontent{\n    font-weight:600;\n}\n\n.tag-orgname{\n    font-weight:600;\n}\n\n#jackpot {\n    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.5);\n    color: #414142;\n    display: none;\n    float: left;\n    font-weight: 400;\n    margin: 0 auto;\n    max-width: 408px;\n    min-height: 155px;\n    padding: 1em 2em 0;\n    position: absolute;\n    right: 0;\n    text-align: center;\n    bottom: -50px;\n    vertical-align: middle;\n    width: 100%;\n    z-index: 10;\n}\n#jackpot h1 {\n    color: #cd2032;\n}\n#jackpot p {\n    margin-bottom: 0;\n}');
INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('Wallpaper_main','<!DOCTYPE HTML>\n<html lang=\"en-US\">\n<head>\n	<meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n	<title>boomtag{title}</title>\n    <link href=\'http://fonts.googleapis.com/css?family=Bree+Serif\' rel=\'stylesheet\' type=\'text/css\'>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700\' rel=\'stylesheet\' type=\'text/css\'>\n    <script src=\'https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js\'></script>\n    <style type=\"text/css\">boomtag{main_css}</style> \n    <script type=\"text/javascript\">\n    \n		$(function() {\n\n			$(\"#email-submit\").attr(\'disabled\', false);\n			$(\"#email_add\").attr(\'disabled\',false);\n\n			function validateEmail($email) {\n			  	var emailReg = /^([\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4})?$/;\n			  	if( !emailReg.test( $email ) ) {\n			    	return false;\n			  	} else {\n			    	return true;\n			  	}\n			}\n\n			$(\"#email-submit\").click(function(){\n\n				$(\"#err_msg\").html(\'\');\n				$(\'#jackpot\').fadeOut(\'fast\');\n				$(\'.slot-wrapper\').fadeTo( \"fast\", 1 );\n\n				if(!$(\"#email_add\").val()) {\n					$(\"#err_msg\").html(\"* Please enter your email address.\");\n					return false;\n				} else if( !validateEmail($(\"#email_add\").val())){\n					$(\"#err_msg\").html(\"* Please enter a valid email address. For example <b><i>johnsmith@gmail.com</i></b>\");\n					return false;\n			    } else {\n\n					$(\"#email-submit\").attr(\'disabled\', true);\n					$(\"#email_add\").attr(\'disabled\',true);\n					var start_time = new Date().getTime();\n\n					\n					$.ajax({\n						url: \'/slot-machine\',\n					 	type: \"POST\",\n					  	dataType: \"json\",\n					  	data: { \n					  		id : \'play_slot\',\n					  		email: $(\'#email_add\').val(),\n					  		referred_org: \'boomtag{org_business_client_email}\'\n					  	},\n					  	success: function(data){\n					  		var success = true;\n\n					  		if(data[0] == \"error\")\n					  		{\n					  			$(\'#won_msg\').text(\'Sorry!\');\n					  			$(\'#offer\').text(\'No prizes available.\');\n					  			$(\'#prize_info\').text(\'Prize Info: Sorry no email was sent.\');\n					  			success = false;\n					  		}\n					  		else if(data[0] == \'exist\')\n					  		{\n					  			$(\'#won_msg\').text(\'Sorry, only one spin per email address.\');\n					  			$(\'#offer\').text(\'\');\n					  			$(\'#prize_info\').text(\'\');\n					  			success = false;\n					  		}\n\n					  		if(!success) {\n					  				$(\'#jackpot\').fadeIn(\'fast\');\n									$(\'.slot-wrapper\').fadeTo( \"slow\", 0.33 );\n									$(\"#email-submit\").attr(\'disabled\', true);\n									$(\"#email_add\").attr(\'disabled\',true);\n					  			return false;\n					  		} else {\n						  			$(\'#won_msg\').text(\'You’ve Won!\');\n									$(\'#offer\').text(data[0]);\n					  				$(\'#org_client\').val(data[1]);\n									$(\'#page-title\').text(\'Congratulations\').after(\'<p>You will be redirected to your prize in a moment.</p>\');	\n\n									var send_data = {};\n									send_data.prize = data[0];\n						  			send_data.client_id = data[1];\n\n									var frm = document.createElement(\"form\");\n										frm.method = \"post\";\n											send_data.main_org = \'boomtag{main_org}\';\n											frm.action = \'boomtag{main_org_claim_prize}\';\n									var input = document.createElement(\"input\");\n										input.type=\"hidden\";\n										input.name=\"data\";\n										input.value = JSON.stringify(send_data);\n										\n									frm.appendChild(input);\n									document.body.appendChild(frm);\n\n									setTimeout(function() {\n										frm.submit();	\n									}, 500);\n									\n									$(\'html, body, #wrapper, #container\').delay(3600).css(\'height\', \'auto\');\n					  		}\n						}\n					});\n				}\n			});\n		});\n	  </script>\n</head>\n<body>\n<div id=\"bottom-ribbon\" class=\"hidden-xs\"></div>\n<div id=\"main-wrapper-ribbon\"></div>\n	<div class=\"container\">\n    \n    <div class=\"row\">\n\n        <div id=\"tag-wrapper\" class=\"col-xs-10 col-xs-offset-1\">\n            <div id=\"tag-container\">\n                <div class=\"tag-boarder\">\n                    <div class=\"clearfix\">\n                        <div class=\"recipient-container\">\n                            <h2>Enter your email address to open your gift</h2>\n                            <div class=\"clearfix v1-header-border\"></div>\n                            <div class=\"v1-form-container\">\n							<span style=\"color:red;font-size:14px\" id=\"err_msg\"></span>\n								<div class=\"row\">  \n							        <div class=\"col-sm-9\">\n							            <div class=\"form-group\">\n							            	<div id=\"jackpot\">\n												<div class=\"wrapper\">\n													<h1 id=\"won_msg\">YOU\'VE WON!!</h1>\n													<p id=\"offer\"></p>\n													<p><small><i id=\"prize_info\">Prize Info: An email with your prize has been sent</i></small></p>\n												</div>\n											</div>\n							            	<input class=\"form-control input-sm\" id=\"email_add\" placeholder=\"Email Address\">\n							            </div>\n							        </div>\n							        <div class=\"col-sm-3\">\n							            <div class=\"form-group\">\n							            	<button type=\"submit\" id=\"email-submit\" class=\"btn btn-primary btn-block btn-sm\">Submit</button>\n							            </div>\n							        </div>\n							     </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">\n                        \n                        <div id=\"tag-org-details\">\n                            <div class=\"row\">\n                              <div class=\"col-md-12 tag-orgname-container\"><span class=\"tag-orgname\">boomtag{org_name}</span></div>\n                            </div>\n                        </div>\n                    \n                    </div>\n                </div>    \n            </div>\n        </div>\n    </div>\n    \n    </div>\n</body>\n</html>','@import url(\"boomtag{boomtime_path}/css/bootstrap.css\");\n\n\n@media(max-width:767px){\n    #tag-wrapper{\n        margin-top:40px;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 14px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 12px !important;\n        word-break: break-all;\n    }\n    \n    .recipient-container h2{\n        font-size:13px !important;\n    }\n    \n}\n\n@media(max-width:767px) and (orientation:landscape){\n\n    #main-wrapper-ribbon{\n        display:none !important;\n    }\n    \n}\n\n\n@media(max-width:767px) and (orientation:portrait){\n\n    #tag-wrapper{\n        width:100% !important;\n        margin-left:0 !important;\n    }\n    \n    #tag-wrapper{\n        margin-top:200px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v5/ribbon-bg.png\") no-repeat scroll center top rgba(0, 0, 0, 0);\n        height: 100%;\n        position: absolute;\n        width: 100% !important;\n        z-index:0;\n    }\n    \n}\n\n@media(min-width:768px){\n    #tag-wrapper{\n        margin-top:250px;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 28px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n}\n\n@media(min-width:992px){\n    #tag-wrapper{\n        margin-top:300px;       \n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 34px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 24px !important;\n        word-break: break-all;\n    }\n    \n    \n}\n\n@media(min-width:1200px){\n    #tag-wrapper{\n        margin-top:560px;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 26px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n\n}\n\nbody{\n    background:url(\'boomtag{boomtime_path}/img/gift_foryou/v5/v1-bg-pattern.png\');\n}\n\n#bottom-ribbon{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v5/bottom-ribbon.png\") repeat scroll 0 0 rgba(0, 0, 0, 0);\n    bottom: 0;\n    height: 29%;\n    left: 0;\n    position: absolute;\n    width: 100%;\n    z-index: 0;\n}\n\n#main-wrapper-ribbon{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v5/ribbon-bg.png\") no-repeat scroll center bottom rgba(0, 0, 0, 0);\n    height: 100%;\n    position: absolute;\n    width: 430px;\n    z-index:0;\n}\n\n#tag-container{\n    background: none repeat scroll 0 0 #dcdfdc;\n    box-shadow: 1px 1px 2px #6d5e53;\n    padding: 10px;\n}\n\n.recipient-container{\n    padding: 5px;\n}\n\n.recipient-container h2{\n    margin-top:10px;\n}\n\n.tag-orgcontent-container{\n    padding: 15px;\n}\n\n.tag-orgname-container{\n    padding: 10px 25px;\n}\n\n.v1-header-border{\n    border-top: 1px dotted #5b5e60;\n    height: 1px;\n    margin-bottom: 10px;\n    width: 100%;\n}\n\n.v1-form-container .form-control{\n    background-image: -o-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\n    background-image: -moz-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\n    background-image: -webkit-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\n    background-image: -ms-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\n    background-image: linear-gradient(to bottom, #F5F5F5 0%, #FFFFFF 100%);\n    border-radius: 0;\n    box-shadow: 0 0 3px #d3d3d3 inset;\n    font-family: \'Bree Serif\', serif;\n    font-size: 14px;\n    text-transform: uppercase;\n}\n\n.v1-form-container .btn{\n    background: none repeat scroll 0 0 #cd962b;\n    border: 1px solid #b7831c;\n    border-radius: 0;\n    font-family: \"Open Sans Condensed\",sans-serif;\n    font-weight: bold;\n    text-transform: uppercase;\n}\n\n.v1-form-container .btn:hover{\n    background: none repeat scroll 0 0 #E4B048;\n}\n\n.tag-orgname-container,\n.tag-orgcontent-container{\n    text-align:center;\n    font-family: \'Bree Serif\', serif;\n}\n\n.recipient-container h2{\n    color: #cd962b;\n    font-family: \"Bree Serif\",serif;\n    font-size: 20px;\n    text-align: center;\n    text-transform: uppercase;\n}\n\n#tag-to,\n#tag-from{\n    color: #7b7a52;\n    font-size: 18px;\n}\n\n.tag-span-to-lbl,\n.tag-span-from-label{\n    font-weight: 800;\n}\n\n.tag-orgcontent a{\n    color: #7b7a52;\n}\n\n.tag-orgcontent{\n    font-weight:600;\n}\n\n.tag-orgname{\n    font-weight:600;\n}\n\n#jackpot {\n    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.5);\n    color: #414142;\n    display: none;\n    float: left;\n    font-weight: 400;\n    margin: 0 auto;\n    max-width: 408px;\n    min-height: 155px;\n    padding: 1em 2em 0;\n    position: absolute;\n    right: 0;\n    text-align: center;\n    bottom: -50px;\n    vertical-align: middle;\n    width: 100%;\n    z-index: 10;\n}\n#jackpot h1 {\n    color: #cd2032;\n}\n#jackpot p {\n    margin-bottom: 0;\n}');
INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('Orange_main','<!DOCTYPE HTML>\n<html lang=\"en-US\">\n<head>\n	<meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n	<title>boomtag{title}</title>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800\' rel=\'stylesheet\' type=\'text/css\'>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700\' rel=\'stylesheet\' type=\'text/css\'>\n    <script src=\'https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js\'></script>\n    <style type=\"text/css\">boomtag{main_css}</style>\n   	<script type=\"text/javascript\">\n\n		$(function() {\n\n			$(\"#email-submit\").attr(\'disabled\', false);\n			$(\"#email_add\").attr(\'disabled\',false);\n\n			function validateEmail($email) {\n			  	var emailReg = /^([\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4})?$/;\n			  	if( !emailReg.test( $email ) ) {\n			    	return false;\n			  	} else {\n			    	return true;\n			  	}\n			}\n\n			$(\"#email-submit\").click(function(){\n\n				$(\"#err_msg\").html(\'\');\n				$(\'#jackpot\').fadeOut(\'fast\');\n				$(\'.slot-wrapper\').fadeTo( \"fast\", 1 );\n\n				if(!$(\"#email_add\").val()) {\n					$(\"#err_msg\").html(\"* Please enter your email address.\");\n					return false;\n				} else if( !validateEmail($(\"#email_add\").val())){\n					$(\"#err_msg\").html(\"* Please enter a valid email address. For example <b><i>johnsmith@gmail.com</i></b>\");\n					return false;\n			    } else {\n\n					$(\"#email-submit\").attr(\'disabled\', true);\n					$(\"#email_add\").attr(\'disabled\',true);\n					var start_time = new Date().getTime();\n\n					\n					$.ajax({\n						url: \'/slot-machine\',\n					 	type: \"POST\",\n					  	dataType: \"json\",\n					  	data: { \n					  		id : \'play_slot\',\n					  		email: $(\'#email_add\').val(),\n					  		referred_org: \'boomtag{org_business_client_email}\'\n					  	},\n					  	success: function(data){\n					  		var success = true;\n\n					  		if(data[0] == \"error\")\n					  		{\n					  			$(\'#won_msg\').text(\'Sorry!\');\n					  			$(\'#offer\').text(\'No prizes available.\');\n					  			$(\'#prize_info\').text(\'Prize Info: Sorry no email was sent.\');\n					  			success = false;\n					  		}\n					  		else if(data[0] == \'exist\')\n					  		{\n					  			$(\'#won_msg\').text(\'Sorry, only one spin per email address.\');\n					  			$(\'#offer\').text(\'\');\n					  			$(\'#prize_info\').text(\'\');\n					  			success = false;\n					  		}\n\n					  		if(!success) {\n					  				$(\'#jackpot\').fadeIn(\'fast\');\n									$(\'.slot-wrapper\').fadeTo( \"slow\", 0.33 );\n									$(\"#email-submit\").attr(\'disabled\', true);\n									$(\"#email_add\").attr(\'disabled\',true);\n					  			return false;\n					  		} else {\n						  			$(\'#won_msg\').text(\'You’ve Won!\');\n									$(\'#offer\').text(data[0]);\n					  				$(\'#org_client\').val(data[1]);\n									$(\'#page-title\').text(\'Congratulations\').after(\'<p>You will be redirected to your prize in a moment.</p>\');	\n\n									var send_data = {};\n									send_data.prize = data[0];\n						  			send_data.client_id = data[1];\n\n									var frm = document.createElement(\"form\");\n										frm.method = \"post\";\n											send_data.main_org = \'boomtag{main_org}\';\n											frm.action = \'boomtag{main_org_claim_prize}\';\n									var input = document.createElement(\"input\");\n										input.type=\"hidden\";\n										input.name=\"data\";\n										input.value = JSON.stringify(send_data);\n										\n									frm.appendChild(input);\n									document.body.appendChild(frm);\n\n									setTimeout(function() {\n										frm.submit();	\n									}, 500);\n									\n									$(\'html, body, #wrapper, #container\').delay(3600).css(\'height\', \'auto\');\n					  		}\n						}\n					});\n				}\n			});\n		});\n	  </script>    \n</head>\n<body>\n<div id=\"main-wrapper-ribbon\">\n	<div class=\"container\">\n    \n    <div class=\"row\">\n\n        <div id=\"tag-wrapper\" class=\"col-xs-9 col-xs-offset-3\">\n            <div id=\"tag-container\">\n                <div class=\"tag-boarder\">\n                    <div class=\"clearfix\">\n                        <div class=\"recipient-container\">\n                            <h2>Enter your email address to open your gift</h2>\n                            \n                            <div class=\"prof-form-container\">\n                            <span style=\"color:red;font-size:14px\" id=\"err_msg\"></span>\n<div class=\"row\">  \n                       \n    <form role=\"form\">\n        <div class=\"col-sm-9\">\n            <div class=\"form-group\">\n            	<div id=\"jackpot\">\n					<div class=\"wrapper\">\n						<h1 id=\"won_msg\">YOU?VE WON!!</h1>\n						<p id=\"offer\"></p>\n						<p><small><i id=\"prize_info\">Prize Info: An email with your prize has been sent</i></small></p>\n					</div>\n				</div>\n                <input class=\"form-control input-sm\" id=\"email_add\" placeholder=\"Email Address\">\n            </div>\n        </div>\n        <div class=\"col-sm-3\">\n            <div class=\"form-group\">\n                <button type=\"submit\" id=\"email-submit\" class=\"btn btn-primary btn-block btn-sm\">Submit</button>\n            </div>\n        </div>\n    </form>\n\n</div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">\n                        \n                        <div id=\"tag-org-details\">\n                            <div class=\"row\">\n                              <div class=\"col-md-12 tag-orgname-container\"><span class=\"tag-orgname\">boomtag{org_name}</span></div>\n                            </div>\n                        </div>\n                    \n                    </div>\n                </div>    \n            </div>\n        </div>\n    </div>\n    \n    </div>\n</div>    \n</body>\n</html>','@import url(\"boomtag{boomtime_path}/css/bootstrap.css\");\n\n\n@media(max-width:767px){\n    #tag-wrapper{\n        margin-top:50px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v6/ribbon-bg.png\") no-repeat scroll left top / 70%  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 14px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 12px !important;\n        word-break: break-all;\n    }\n    \n    .recipient-container h2{\n        font-size:13px !important;\n    }\n}\n\n\n\n@media(max-width:767px) and (orientation:portrait){\n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v6/ribbon-bg.png\") no-repeat scroll left top / cover  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-wrapper{\n        width:100% !important;\n        margin-left:0 !important;\n    }\n    \n    #tag-wrapper{\n        margin-top:200px;\n    }\n    \n}\n\n@media(min-width:768px){\n    #tag-wrapper{\n        margin-top:250px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v6/ribbon-bg.png\") no-repeat scroll left top rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 28px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n}\n\n@media(min-width:992px){\n    #tag-wrapper{\n        margin-top:300px;       \n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v6/ribbon-bg.png\") no-repeat scroll left top rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 34px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 24px !important;\n        word-break: break-all;\n    }\n    \n    \n}\n\n@media(min-width:1200px){\n    #tag-wrapper{\n        margin-top:560px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v6/ribbon-bg.png\") no-repeat scroll left top / contain  rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 26px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n\n}\n\n    body,html{\n        height:100%;\n    }\n\nbody {\n  background: url(\"boomtag{boomtime_path}/img/gift_foryou/v6/proffesional-bg-pattern.png\") repeat scroll 0 0 rgba(0, 0, 0, 0);\n}\n\n#main-wrapper-ribbon{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v6/ribbon-bg.png\") no-repeat scroll left top / contain  rgba(0, 0, 0, 0);\n    height:100%;\n}\n\n#tag-container{\n    background: url(\'boomtag{boomtime_path}/img/gift_foryou/v6/proffesional-tag-bg-pattern.png\');\n    padding: 10px;\n}\n\n\n.recipient-container{\n    padding: 5px;\n}\n\n.recipient-container h2{\n    margin-top:10px;\n}\n\n#tag-org-details{\n    border-top:3px solid #df6957;\n}\n\n.tag-orgcontent-container{\n\n    padding: 15px;\n}\n\n.tag-orgname-container{\n    padding: 10px 25px;\n}\n\n.prof-header-border{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v6/header-border.png\") repeat scroll 0 0 rgba(0, 0, 0, 0);\n    height: 7px;\n    margin-bottom: 10px;\n    width: 100%;\n}\n\n.prof-form-container .form-control{\n\nbackground-image: -o-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -moz-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -webkit-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -ms-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: linear-gradient(to bottom, #F5F5F5 0%, #FFFFFF 100%);\n\n    border-radius: 0;\n    box-shadow: 0 0 3px #d3d3d3 inset;\n    font-family: \'Open Sans\', sans-serif;\n    font-size: 14px;\n    text-transform: uppercase;\n    \n}\n\n.prof-form-container .btn{\n\nbackground: #9a8379; /* Old browsers */\n    \n    color:#FFF;\nborder:none;\n    border-radius: 0;\n\n    font-family: \'Open Sans Condensed\',sans-serif;\n    font-weight: bold;\n    text-transform: uppercase;\n}\n\n.tag-boarder{\n border: 3px solid #df6957;\n}\n\n.prof-form-container .btn:hover{\n\nbackground: #df6957; /* Old browsers */\n\n\n}\n\n\n.tag-orgname-container,\n.tag-orgcontent-container{\n    text-align:center;\n    font-family: \'Open Sans\', sans-serif;\n}\n\n.recipient-container h2{\n    color: #9a8379;\n    font-family: \'Open Sans Condensed\', sans-serif;\n    font-size: 20px;\n    font-weight: 800;\n    text-align: center;\n    text-transform: uppercase;\n}\n\n#tag-to,\n#tag-from{\n    color: #007ca7;\n    font-size: 18px;\n}\n\n.tag-span-to-lbl,\n.tag-span-from-label{\n    font-weight: 800;\n}\n\n.tag-orgcontent a{\n    color: #007ca7;\n}\n\n.tag-orgcontent{\n    font-weight:600;\n}\n\n.tag-orgname{\n    color:#9a8379;\n    font-weight:600;\n}\n\n#jackpot {\n    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.5);\n    color: #414142;\n    display: none;\n    float: left;\n    font-weight: 400;\n    margin: 0 auto;\n    max-width: 408px;\n    min-height: 155px;\n    padding: 1em 2em 0;\n    position: absolute;\n    right: 0;\n    text-align: center;\n    bottom: -50px;\n    vertical-align: middle;\n    width: 100%;\n    z-index: 10;\n}\n#jackpot h1 {\n    color: #cd2032;\n}\n#jackpot p {\n    margin-bottom: 0;\n}');
INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('Triangles_main','<!DOCTYPE HTML>\n<html lang=\"en-US\">\n<head>\n	<meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n	<title>boomtag{title}</title>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800\' rel=\'stylesheet\' type=\'text/css\'>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700\' rel=\'stylesheet\' type=\'text/css\'>\n    <script src=\'https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js\'></script>\n    <style type=\"text/css\">boomtag{main_css}</style>\n   	<script type=\"text/javascript\">\n\n		$(function() {\n\n			$(\"#email-submit\").attr(\'disabled\', false);\n			$(\"#email_add\").attr(\'disabled\',false);\n\n			function validateEmail($email) {\n			  	var emailReg = /^([\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4})?$/;\n			  	if( !emailReg.test( $email ) ) {\n			    	return false;\n			  	} else {\n			    	return true;\n			  	}\n			}\n\n			$(\"#email-submit\").click(function(){\n\n				$(\"#err_msg\").html(\'\');\n				$(\'#jackpot\').fadeOut(\'fast\');\n				$(\'.slot-wrapper\').fadeTo( \"fast\", 1 );\n\n				if(!$(\"#email_add\").val()) {\n					$(\"#err_msg\").html(\"* Please enter your email address.\");\n					return false;\n				} else if( !validateEmail($(\"#email_add\").val())){\n					$(\"#err_msg\").html(\"* Please enter a valid email address. For example <b><i>johnsmith@gmail.com</i></b>\");\n					return false;\n			    } else {\n\n					$(\"#email-submit\").attr(\'disabled\', true);\n					$(\"#email_add\").attr(\'disabled\',true);\n					var start_time = new Date().getTime();\n\n					\n					$.ajax({\n						url: \'/slot-machine\',\n					 	type: \"POST\",\n					  	dataType: \"json\",\n					  	data: { \n					  		id : \'play_slot\',\n					  		email: $(\'#email_add\').val(),\n					  		referred_org: \'boomtag{org_business_client_email}\'\n					  	},\n					  	success: function(data){\n					  		var success = true;\n\n					  		if(data[0] == \"error\")\n					  		{\n					  			$(\'#won_msg\').text(\'Sorry!\');\n					  			$(\'#offer\').text(\'No prizes available.\');\n					  			$(\'#prize_info\').text(\'Prize Info: Sorry no email was sent.\');\n					  			success = false;\n					  		}\n					  		else if(data[0] == \'exist\')\n					  		{\n					  			$(\'#won_msg\').text(\'Sorry, only one spin per email address.\');\n					  			$(\'#offer\').text(\'\');\n					  			$(\'#prize_info\').text(\'\');\n					  			success = false;\n					  		}\n\n					  		if(!success) {\n					  				$(\'#jackpot\').fadeIn(\'fast\');\n									$(\'.slot-wrapper\').fadeTo( \"slow\", 0.33 );\n									$(\"#email-submit\").attr(\'disabled\', true);\n									$(\"#email_add\").attr(\'disabled\',true);\n					  			return false;\n					  		} else {\n						  			$(\'#won_msg\').text(\'You’ve Won!\');\n									$(\'#offer\').text(data[0]);\n					  				$(\'#org_client\').val(data[1]);\n									$(\'#page-title\').text(\'Congratulations\').after(\'<p>You will be redirected to your prize in a moment.</p>\');	\n\n									var send_data = {};\n									send_data.prize = data[0];\n						  			send_data.client_id = data[1];\n\n									var frm = document.createElement(\"form\");\n										frm.method = \"post\";\n											send_data.main_org = \'boomtag{main_org}\';\n											frm.action = \'boomtag{main_org_claim_prize}\';\n									var input = document.createElement(\"input\");\n										input.type=\"hidden\";\n										input.name=\"data\";\n										input.value = JSON.stringify(send_data);\n										\n									frm.appendChild(input);\n									document.body.appendChild(frm);\n\n									setTimeout(function() {\n										frm.submit();	\n									}, 500);\n									\n									$(\'html, body, #wrapper, #container\').delay(3600).css(\'height\', \'auto\');\n					  		}\n						}\n					});\n				}\n			});\n		});\n	  </script> \n</head>\n<body>\n<div id=\"main-wrapper-ribbon\">\n	<div class=\"container\">\n    \n    <div class=\"row\">\n\n        <div id=\"tag-wrapper\" class=\"col-xs-9 col-xs-offset-3\">\n            <div id=\"tag-container\">\n                <div class=\"tag-boarder\">\n                    <div class=\"clearfix\">\n                        <div class=\"recipient-container\">\n                            <h2>Enter your email address to open your gift</h2>\n                            \n                            <div class=\"prof-form-container\">\n                            <span style=\"color:red;font-size:14px\" id=\"err_msg\"></span>\n<div class=\"row\">  \n                       \n    <form role=\"form\">\n        <div class=\"col-sm-9\">\n            <div class=\"form-group\">\n            	<div id=\"jackpot\">\n					<div class=\"wrapper\">\n						<h1 id=\"won_msg\">YOU?VE WON!!</h1>\n						<p id=\"offer\"></p>\n						<p><small><i id=\"prize_info\">Prize Info: An email with your prize has been sent</i></small></p>\n					</div>\n				</div>\n                <input class=\"form-control input-sm\" id=\"email_add\" placeholder=\"Email Address\">\n            </div>\n        </div>\n        <div class=\"col-sm-3\">\n            <div class=\"form-group\">\n                <button type=\"submit\" id=\"email-submit\" class=\"btn btn-primary btn-block btn-sm\">Submit</button>\n            </div>\n        </div>\n    </form>\n\n</div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">\n                        \n                        <div id=\"tag-org-details\">\n                            <div class=\"row\">\n                              <div class=\"col-md-12 tag-orgname-container\"><span class=\"tag-orgname\">boomtag{org_name}</span></div>\n                            </div>\n                        </div>\n                    \n                    </div>\n                </div>    \n            </div>\n        </div>\n    </div>\n    \n    </div>\n</div>    \n</body>\n</html>','@import url(\"boomtag{boomtime_path}/css/bootstrap.css\");\n\n\n@media(max-width:767px){\n    #tag-wrapper{\n        margin-top:40px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v7/ribbon-bg.png\") no-repeat scroll -40px top / 70%  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 14px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 12px !important;\n        word-break: break-all;\n    }\n    \n    .recipient-container h2{\n        font-size:13px !important;\n    }\n}\n\n\n\n@media(max-width:767px) and (orientation:portrait){\n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v7/ribbon-bg.png\") no-repeat scroll left top / cover  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-wrapper{\n        width:100% !important;\n        margin-left:0 !important;\n    }\n    \n    #tag-wrapper{\n        margin-top:200px;\n    }\n    \n}\n\n@media(min-width:768px){\n    #tag-wrapper{\n        margin-top:250px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v7/ribbon-bg.png\") no-repeat scroll left top rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 28px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n}\n\n@media(min-width:992px){\n    #tag-wrapper{\n        margin-top:300px;       \n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v7/ribbon-bg.png\") no-repeat scroll left top rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 34px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 24px !important;\n        word-break: break-all;\n    }\n    \n    \n}\n\n@media(min-width:1200px){\n    #tag-wrapper{\n        margin-top:560px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v7/ribbon-bg.png\") no-repeat scroll left top / contain  rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 26px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n\n}\n\n    body,html{\n        height:100%;\n    }\n\nbody {\n  background: url(\"boomtag{boomtime_path}/img/gift_foryou/v7/proffesional-bg-pattern.png\") repeat scroll 0 0 rgba(0, 0, 0, 0);\n}\n\n#main-wrapper-ribbon{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v7/ribbon-bg.png\") no-repeat scroll left top / contain  rgba(0, 0, 0, 0);\n    height:100%;\n}\n\n#tag-container{\n    background: url(\'boomtag{boomtime_path}/img/gift_foryou/v7/proffesional-tag-bg-pattern.png\');\n    padding: 10px;\n}\n\n\n.recipient-container{\n    padding: 5px;\n}\n\n.recipient-container h2{\n    margin-top:10px;\n}\n\n#tag-org-details{\n    border-top:3px solid #67676a;\n}\n\n.tag-orgcontent-container{\n\n    padding: 15px;\n}\n\n.tag-orgname-container{\n    padding: 10px 25px;\n}\n\n.prof-header-border{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v7/header-border.png\") repeat scroll 0 0 rgba(0, 0, 0, 0);\n    height: 7px;\n    margin-bottom: 10px;\n    width: 100%;\n}\n\n.prof-form-container .form-control{\n\nbackground-image: -o-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -moz-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -webkit-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -ms-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: linear-gradient(to bottom, #F5F5F5 0%, #FFFFFF 100%);\n\n    border-radius: 0;\n    box-shadow: 0 0 3px #d3d3d3 inset;\n    font-family: \'Open Sans\', sans-serif;\n    font-size: 14px;\n    text-transform: uppercase;\n    \n}\n\n.prof-form-container .btn{\n    background: #1777ad; /* Old browsers */\n    color:#FFF;\n    border:none;\n    border-radius: 0;\n    font-family: \'Open Sans Condensed\',sans-serif;\n    font-weight: bold;\n    text-transform: uppercase;\n}\n\n.tag-boarder{\n    border: 3px solid #616262;\n}\n\n.prof-form-container .btn:hover{\n    background: none repeat scroll 0 0 #28A2E3; /* Old browsers */\n}\n\n\n.tag-orgname-container,\n.tag-orgcontent-container{\n    text-align:center;\n    font-family: \'Open Sans\', sans-serif;\n}\n\n.recipient-container h2{\n    color: #616262;\n    font-family: \'Open Sans Condensed\', sans-serif;\n    font-size: 20px;\n    font-weight: 800;\n    text-align: center;\n    text-transform: uppercase;\n}\n\n#tag-to,\n#tag-from{\n    color: #007ca7;\n    font-size: 18px;\n}\n\n.tag-span-to-lbl,\n.tag-span-from-label{\n    font-weight: 800;\n}\n\n.tag-orgcontent a{\n    color: #007ca7;\n}\n\n.tag-orgcontent{\n    font-weight:600;\n}\n\n.tag-orgname{\n    color:#616262;\n    font-weight:600;\n}\n\n#jackpot {\n    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.5);\n    color: #414142;\n    display: none;\n    float: left;\n    font-weight: 400;\n    margin: 0 auto;\n    max-width: 408px;\n    min-height: 155px;\n    padding: 1em 2em 0;\n    position: absolute;\n    right: 0;\n    text-align: center;\n    bottom: -50px;\n    vertical-align: middle;\n    width: 100%;\n    z-index: 10;\n}\n#jackpot h1 {\n    color: #cd2032;\n}\n#jackpot p {\n    margin-bottom: 0;\n}');
INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('Cardboard_main','<!DOCTYPE HTML>\n<html lang=\"en-US\">\n<head>\n	<meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n	<title>boomtag{title}</title>\n    <link href=\'http://fonts.googleapis.com/css?family=Oswald:400,300,700\' rel=\'stylesheet\' type=\'text/css\'>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700\' rel=\'stylesheet\' type=\'text/css\'>\n    <script src=\'https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js\'></script>\n    <style type=\"text/css\">boomtag{main_css}</style>\n   	<script type=\"text/javascript\">\n\n		$(function() {\n\n			$(\"#email-submit\").attr(\'disabled\', false);\n			$(\"#email_add\").attr(\'disabled\',false);\n\n			function validateEmail($email) {\n			  	var emailReg = /^([\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4})?$/;\n			  	if( !emailReg.test( $email ) ) {\n			    	return false;\n			  	} else {\n			    	return true;\n			  	}\n			}\n\n			$(\"#email-submit\").click(function(){\n\n				$(\"#err_msg\").html(\'\');\n				$(\'#jackpot\').fadeOut(\'fast\');\n				$(\'.slot-wrapper\').fadeTo( \"fast\", 1 );\n\n				if(!$(\"#email_add\").val()) {\n					$(\"#err_msg\").html(\"* Please enter your email address.\");\n					return false;\n				} else if( !validateEmail($(\"#email_add\").val())){\n					$(\"#err_msg\").html(\"* Please enter a valid email address. For example <b><i>johnsmith@gmail.com</i></b>\");\n					return false;\n			    } else {\n\n					$(\"#email-submit\").attr(\'disabled\', true);\n					$(\"#email_add\").attr(\'disabled\',true);\n					var start_time = new Date().getTime();\n\n					\n					$.ajax({\n						url: \'/slot-machine\',\n					 	type: \"POST\",\n					  	dataType: \"json\",\n					  	data: { \n					  		id : \'play_slot\',\n					  		email: $(\'#email_add\').val(),\n					  		referred_org: \'boomtag{org_business_client_email}\'\n					  	},\n					  	success: function(data){\n					  		var success = true;\n\n					  		if(data[0] == \"error\")\n					  		{\n					  			$(\'#won_msg\').text(\'Sorry!\');\n					  			$(\'#offer\').text(\'No prizes available.\');\n					  			$(\'#prize_info\').text(\'Prize Info: Sorry no email was sent.\');\n					  			success = false;\n					  		}\n					  		else if(data[0] == \'exist\')\n					  		{\n					  			$(\'#won_msg\').text(\'Sorry, only one spin per email address.\');\n					  			$(\'#offer\').text(\'\');\n					  			$(\'#prize_info\').text(\'\');\n					  			success = false;\n					  		}\n\n					  		if(!success) {\n					  				$(\'#jackpot\').fadeIn(\'fast\');\n									$(\'.slot-wrapper\').fadeTo( \"slow\", 0.33 );\n									$(\"#email-submit\").attr(\'disabled\', true);\n									$(\"#email_add\").attr(\'disabled\',true);\n					  			return false;\n					  		} else {\n						  			$(\'#won_msg\').text(\'You’ve Won!\');\n									$(\'#offer\').text(data[0]);\n					  				$(\'#org_client\').val(data[1]);\n									$(\'#page-title\').text(\'Congratulations\').after(\'<p>You will be redirected to your prize in a moment.</p>\');	\n\n									var send_data = {};\n									send_data.prize = data[0];\n						  			send_data.client_id = data[1];\n\n									var frm = document.createElement(\"form\");\n										frm.method = \"post\";\n											send_data.main_org = \'boomtag{main_org}\';\n											frm.action = \'boomtag{main_org_claim_prize}\';\n									var input = document.createElement(\"input\");\n										input.type=\"hidden\";\n										input.name=\"data\";\n										input.value = JSON.stringify(send_data);\n										\n									frm.appendChild(input);\n									document.body.appendChild(frm);\n\n									setTimeout(function() {\n										frm.submit();	\n									}, 500);\n									\n									$(\'html, body, #wrapper, #container\').delay(3600).css(\'height\', \'auto\');\n					  		}\n						}\n					});\n				}\n			});\n		});\n	  </script> \n</head>\n<body>\n<div id=\"main-wrapper-ribbon\">\n	<div class=\"container\">\n    \n    <div class=\"row\">\n\n        <div id=\"tag-wrapper\" class=\"col-xs-9\">\n            <div id=\"tag-container\">\n                <div class=\"tag-boarder\">\n                    <div class=\"clearfix\">\n                        <div class=\"recipient-container\">\n                            <h2>Enter your email address to open your gift</h2>\n                            <div class=\"clearfix prof-header-border\"></div>\n                            <div class=\"prof-form-container\">\n                            <span style=\"color:red;font-size:14px\" id=\"err_msg\"></span>\n<div class=\"row\">  \n    <form role=\"form\">\n        <div class=\"col-sm-9\">\n            <div class=\"form-group\">\n            	<div id=\"jackpot\">\n					<div class=\"wrapper\">\n						<h1 id=\"won_msg\">YOU?VE WON!!</h1>\n						<p id=\"offer\"></p>\n						<p><small><i id=\"prize_info\">Prize Info: An email with your prize has been sent</i></small></p>\n					</div>\n				</div>\n                <input class=\"form-control input-sm\" id=\"email_add\" placeholder=\"Email Address\">\n            </div>\n        </div>\n        <div class=\"col-sm-3\">\n            <div class=\"form-group\">\n                <button type=\"submit\" id=\"email-submit\" class=\"btn btn-primary btn-block btn-sm\">Submit</button>\n            </div>\n        </div>\n    </form>\n</div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">\n                        \n                        <div id=\"tag-org-details\">\n                            <div class=\"row\">\n                              <div class=\"col-md-12 tag-orgname-container\"><span class=\"tag-orgname\">boomtag{org_name}</span></div>\n                            </div>\n                        </div>\n                    \n                    </div>\n                </div>    \n            </div>\n        </div>\n    </div>\n    \n    </div>\n</div>    \n</body>\n</html>\n','@import url(\"boomtag{boomtime_path}/css/bootstrap.css\");\n\n\n@media(max-width:767px){\n    #tag-wrapper{\n        margin-top:40px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v8/ribbon-bg.png\") no-repeat scroll -50px -50px / 150%  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 14px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 12px !important;\n        word-break: break-all;\n    }\n    \n    .recipient-container h2{\n        font-size:13px !important;\n    }\n}\n\n\n\n@media(max-width:767px) and (orientation:portrait){\n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v8/ribbon-bg.png\") no-repeat scroll center -35px / cover  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-wrapper{\n        width:100% !important;\n        margin-left:0 !important;\n    }\n    \n    #tag-wrapper{\n        margin-top:180px;\n    }\n    \n}\n\n@media(min-width:768px){\n    #tag-wrapper{\n        margin-top:250px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v8/ribbon-bg.png\") no-repeat scroll -150px -80px rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 28px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n}\n\n@media(min-width:992px){\n    #tag-wrapper{\n        margin-top:300px;       \n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v8/ribbon-bg.png\") no-repeat scroll -170px -80px rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 34px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 24px !important;\n        word-break: break-all;\n    }\n    \n    \n}\n\n@media(min-width:1200px){\n    #tag-wrapper{\n        margin-top:560px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v8/ribbon-bg.png\") no-repeat scroll left top / cover  rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 26px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n\n}\n\n    body,html{\n        height:100%;\n    }\n\nbody{\n    background:url(\'boomtag{boomtime_path}/img/gift_foryou/v8/proffesional-bg-pattern.png\');\n}\n\n#main-wrapper-ribbon{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v8/ribbon-bg.png\") no-repeat scroll left top / cover  rgba(0, 0, 0, 0);\n    height:100%;\n}\n\n#tag-container{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v8/proffesional-tag-bg-pattern.png\") repeat scroll 0 0 rgba(0, 0, 0, 0);\n    box-shadow: 1px 1px 2px #b8b8b8;\n    padding: 10px;\n}\n\n.tag-boarder{\n    border:3px solid #d4c6a9;\n}\n\n.recipient-container{\n    border-bottom: 2px solid #d4c6a9;\n    padding: 5px;\n}\n\n.recipient-container h2{\nmargin-top:10px;\n}\n\n.tag-orgcontent-container{\n    border-left: 2px solid #d4c6a9;\n    padding: 15px;\n}\n\n.tag-orgname-container{\n    padding: 10px 25px;\n}\n\n.prof-header-border{\n    background: #9d978f;\n    height: 5px;\n    margin-bottom: 10px;\n    width: 100%;\n}\n\n.prof-form-container .form-control{\nbackground-image: -o-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -moz-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -webkit-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -ms-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: linear-gradient(to bottom, #F5F5F5 0%, #FFFFFF 100%);\n    border-radius: 0;\n    box-shadow: 0 0 3px #d3d3d3 inset;\n    font-family: \'Oswald\', sans-serif;\n    font-size: 14px;\n    text-transform: uppercase;\n}\n\n.prof-form-container .btn{\nbackground: #772f2e; /* Old browsers */\nbackground: -moz-linear-gradient(top, #772f2e 0%, #9b1515 100%); /* FF3.6+ */\nbackground: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#772f2e), color-stop(100%,#9b1515)); /* Chrome,Safari4+ */\nbackground: -webkit-linear-gradient(top, #772f2e 0%,#9b1515 100%); /* Chrome10+,Safari5.1+ */\nbackground: -o-linear-gradient(top, #772f2e 0%,#9b1515 100%); /* Opera 11.10+ */\nbackground: -ms-linear-gradient(top, #772f2e 0%,#9b1515 100%); /* IE10+ */\nbackground: linear-gradient(to bottom, #772f2e 0%,#9b1515 100%); /* W3C */\nfilter: progid:DXImageTransform.Microsoft.gradient( startColorstr=\'#772f2e\', endColorstr=\'#9b1515\',GradientType=0 ); /* IE6-9 */\n    \n    border-radius: 0;\n    box-shadow: 0 0 5px #4e1615 inset;\n    font-family: \'Open Sans Condensed\',sans-serif;\n    font-weight: bold;\n    border:1px solid #463131;\n    text-transform: uppercase;\n}\n\n.prof-form-container .btn:hover{\nbackground: #9b1515; /* Old browsers */\nbackground: -moz-linear-gradient(top, #9b1515 0%, #772f2e 100%); /* FF3.6+ */\nbackground: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#9b1515), color-stop(100%,#772f2e)); /* Chrome,Safari4+ */\nbackground: -webkit-linear-gradient(top, #9b1515 0%,#772f2e 100%); /* Chrome10+,Safari5.1+ */\nbackground: -o-linear-gradient(top, #9b1515 0%,#772f2e 100%); /* Opera 11.10+ */\nbackground: -ms-linear-gradient(top, #9b1515 0%,#772f2e 100%); /* IE10+ */\nbackground: linear-gradient(to bottom, #9b1515 0%,#772f2e 100%); /* W3C */\nfilter: progid:DXImageTransform.Microsoft.gradient( startColorstr=\'#9b1515\', endColorstr=\'#772f2e\',GradientType=0 ); /* IE6-9 */\n}\n\n.tag-orgname-container,\n.tag-orgcontent-container{\n    text-align:center;\n    font-family: \'Oswald\', sans-serif;\n}\n\n.recipient-container h2{\ncolor: #772f2e;\nfont-family: \'Oswald\',sans-serif;\nfont-size: 20px;\nfont-weight: 800;\ntext-align: center;\ntext-transform: uppercase;\n}\n\n#tag-to,\n#tag-from{\n    color: #007ca7;\n    font-size: 18px;\n}\n\n.tag-span-to-lbl,\n.tag-span-from-label{\n    font-weight: 800;\n}\n\n.tag-orgcontent a{\n    color: #007ca7;\n}\n\n.tag-orgcontent{\n    font-weight:600;\n}\n\n.tag-orgname{\n    font-weight:600;\n}\n\n\n#jackpot {\n    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.5);\n    color: #414142;\n    display: none;\n    float: left;\n    font-weight: 400;\n    margin: 0 auto;\n    max-width: 408px;\n    min-height: 155px;\n    padding: 1em 2em 0;\n    position: absolute;\n    right: 0;\n    text-align: center;\n    bottom: -50px;\n    vertical-align: middle;\n    width: 100%;\n    z-index: 10;\n}\n#jackpot h1 {\n    color: #cd2032;\n}\n#jackpot p {\n    margin-bottom: 0;\n}');
INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('Orange2_main','<!DOCTYPE HTML>\n<html lang=\"en-US\">\n<head>\n	<meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n	<title>boomtag{title}</title>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800\' rel=\'stylesheet\' type=\'text/css\'>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700\' rel=\'stylesheet\' type=\'text/css\'>\n    <script src=\'https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js\'></script>\n    <style type=\"text/css\">boomtag{main_css}</style>\n   	<script type=\"text/javascript\">\n\n		$(function() {\n\n			$(\"#email-submit\").attr(\'disabled\', false);\n			$(\"#email_add\").attr(\'disabled\',false);\n\n			function validateEmail($email) {\n			  	var emailReg = /^([\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4})?$/;\n			  	if( !emailReg.test( $email ) ) {\n			    	return false;\n			  	} else {\n			    	return true;\n			  	}\n			}\n\n			$(\"#email-submit\").click(function(){\n\n				$(\"#err_msg\").html(\'\');\n				$(\'#jackpot\').fadeOut(\'fast\');\n				$(\'.slot-wrapper\').fadeTo( \"fast\", 1 );\n\n				if(!$(\"#email_add\").val()) {\n					$(\"#err_msg\").html(\"* Please enter your email address.\");\n					return false;\n				} else if( !validateEmail($(\"#email_add\").val())){\n					$(\"#err_msg\").html(\"* Please enter a valid email address. For example <b><i>johnsmith@gmail.com</i></b>\");\n					return false;\n			    } else {\n\n					$(\"#email-submit\").attr(\'disabled\', true);\n					$(\"#email_add\").attr(\'disabled\',true);\n					var start_time = new Date().getTime();\n\n					\n					$.ajax({\n						url: \'/slot-machine\',\n					 	type: \"POST\",\n					  	dataType: \"json\",\n					  	data: { \n					  		id : \'play_slot\',\n					  		email: $(\'#email_add\').val(),\n					  		referred_org: \'boomtag{org_business_client_email}\'\n					  	},\n					  	success: function(data){\n					  		var success = true;\n\n					  		if(data[0] == \"error\")\n					  		{\n					  			$(\'#won_msg\').text(\'Sorry!\');\n					  			$(\'#offer\').text(\'No prizes available.\');\n					  			$(\'#prize_info\').text(\'Prize Info: Sorry no email was sent.\');\n					  			success = false;\n					  		}\n					  		else if(data[0] == \'exist\')\n					  		{\n					  			$(\'#won_msg\').text(\'Sorry, only one spin per email address.\');\n					  			$(\'#offer\').text(\'\');\n					  			$(\'#prize_info\').text(\'\');\n					  			success = false;\n					  		}\n\n					  		if(!success) {\n					  				$(\'#jackpot\').fadeIn(\'fast\');\n									$(\'.slot-wrapper\').fadeTo( \"slow\", 0.33 );\n									$(\"#email-submit\").attr(\'disabled\', true);\n									$(\"#email_add\").attr(\'disabled\',true);\n					  			return false;\n					  		} else {\n						  			$(\'#won_msg\').text(\'You’ve Won!\');\n									$(\'#offer\').text(data[0]);\n					  				$(\'#org_client\').val(data[1]);\n									$(\'#page-title\').text(\'Congratulations\').after(\'<p>You will be redirected to your prize in a moment.</p>\');	\n\n									var send_data = {};\n									send_data.prize = data[0];\n						  			send_data.client_id = data[1];\n\n									var frm = document.createElement(\"form\");\n										frm.method = \"post\";\n											send_data.main_org = \'boomtag{main_org}\';\n											frm.action = \'boomtag{main_org_claim_prize}\';\n									var input = document.createElement(\"input\");\n										input.type=\"hidden\";\n										input.name=\"data\";\n										input.value = JSON.stringify(send_data);\n										\n									frm.appendChild(input);\n									document.body.appendChild(frm);\n\n									setTimeout(function() {\n										frm.submit();	\n									}, 500);\n									\n									$(\'html, body, #wrapper, #container\').delay(3600).css(\'height\', \'auto\');\n					  		}\n						}\n					});\n				}\n			});\n		});\n	  </script>  \n</head>\n<body>\n<div id=\"main-wrapper-ribbon\">\n	<div class=\"container\">\n    \n    <div class=\"row\">\n\n        <div id=\"tag-wrapper\" class=\"col-xs-9 col-xs-offset-3\">\n            <div id=\"tag-container\">\n                <div class=\"tag-boarder\">\n                    <div class=\"clearfix\">\n                        <div class=\"recipient-container\">\n                            <h2>Enter your email address to open your gift</h2>\n                            \n                            <div class=\"prof-form-container\">\n                            <span style=\"color:red;font-size:14px\" id=\"err_msg\"></span>\n<div class=\"row\">  \n                       \n    <form role=\"form\">\n        <div class=\"col-sm-9\">\n            <div class=\"form-group\">\n            	<div id=\"jackpot\">\n					<div class=\"wrapper\">\n						<h1 id=\"won_msg\">YOU?VE WON!!</h1>\n						<p id=\"offer\"></p>\n						<p><small><i id=\"prize_info\">Prize Info: An email with your prize has been sent</i></small></p>\n					</div>\n				</div>\n                <input class=\"form-control input-sm\" id=\"email_add\" placeholder=\"Email Address\">\n            </div>\n        </div>\n        <div class=\"col-sm-3\">\n            <div class=\"form-group\">\n                <button type=\"submit\" id=\"email-submit\" class=\"btn btn-primary btn-block btn-sm\">Submit</button>\n            </div>\n        </div>\n    </form>\n\n</div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">\n                        \n                        <div id=\"tag-org-details\">\n                            <div class=\"row\">\n                              <div class=\"col-md-12 tag-orgname-container\"><span class=\"tag-orgname\">boomtag{org_name}</span></div>\n                            </div>\n                        </div>\n                    \n                    </div>\n                </div>    \n            </div>\n        </div>\n    </div>\n    \n    </div>\n</div>    \n</body>\n</html>','@import url(\"boomtag{boomtime_path}/css/bootstrap.css\");\n\n\n@media(max-width:767px){\n    #tag-wrapper{\n        margin-top:40px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v9/ribbon-bg.png\") no-repeat scroll -60px top / 90%  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 14px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 12px !important;\n        word-break: break-all;\n    }\n    \n    .recipient-container h2{\n        font-size:13px !important;\n    }\n}\n\n\n\n@media(max-width:767px) and (orientation:portrait){\n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v9/ribbon-bg.png\") no-repeat scroll left top / cover  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-wrapper{\n        width:100% !important;\n        margin-left:0 !important;\n    }\n    \n    #tag-wrapper{\n        margin-top:200px;\n    }\n    \n}\n\n@media(min-width:768px){\n    #tag-wrapper{\n        margin-top:250px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v9/ribbon-bg.png\") no-repeat scroll left top rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 28px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n}\n\n@media(min-width:992px){\n    #tag-wrapper{\n        margin-top:300px;       \n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v9/ribbon-bg.png\") no-repeat scroll left top rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 34px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 24px !important;\n        word-break: break-all;\n    }\n    \n    \n}\n\n@media(min-width:1200px){\n    #tag-wrapper{\n        margin-top:560px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v9/ribbon-bg.png\") no-repeat scroll left top / cover  rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 26px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n\n}\n\n    body,html{\n        height:100%;\n    }\n\nbody{\n    background:#f05044;\n}\n\n#main-wrapper-ribbon{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v9/ribbon-bg.png\") no-repeat scroll left top / cover  rgba(0, 0, 0, 0);\n    height:100%;\n}\n\n#tag-container{\n    background: #FFF;\n    padding: 10px;\n}\n\n\n.recipient-container{\n    padding: 5px;\n}\n\n.recipient-container h2{\n    margin-top:10px;\n}\n\n#tag-org-details{\n    border-top:3px solid #f05044;\n}\n\n.tag-orgcontent-container{\n\n    padding: 15px;\n}\n\n.tag-orgname-container{\n    padding: 10px 25px;\n}\n\n.prof-header-border{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v9/header-border.png\") repeat scroll 0 0 rgba(0, 0, 0, 0);\n    height: 7px;\n    margin-bottom: 10px;\n    width: 100%;\n}\n\n.prof-form-container .form-control{\n\nbackground-image: -o-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -moz-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -webkit-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -ms-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: linear-gradient(to bottom, #F5F5F5 0%, #FFFFFF 100%);\n\n    border-radius: 0;\n    box-shadow: 0 0 3px #d3d3d3 inset;\n    font-family: \'Open Sans\', sans-serif;\n    font-size: 14px;\n    text-transform: uppercase;\n    \n}\n\n.prof-form-container .btn{\n\nbackground: #8b281f; /* Old browsers */\n    \n    color:#FFF;\nborder:none;\n    border-radius: 0;\n\n    font-family: \'Open Sans Condensed\',sans-serif;\n    font-weight: bold;\n    text-transform: uppercase;\n}\n\n.tag-boarder{\n border: 3px solid #f05044;\n}\n\n.prof-form-container .btn:hover{\n\nbackground: #f05044; /* Old browsers */\n\n\n}\n\n\n.tag-orgname-container,\n.tag-orgcontent-container{\n    text-align:center;\n    font-family: \'Open Sans\', sans-serif;\n}\n\n.recipient-container h2{\n    color: #8b281f;\n    font-family: \'Open Sans\',sans-serif;\n    font-size: 20px;\n    font-weight: 800;\n    text-align: center;\n    text-transform: uppercase;\n}\n\n#tag-to,\n#tag-from{\n    color: #007ca7;\n    font-size: 18px;\n}\n\n.tag-span-to-lbl,\n.tag-span-from-label{\n    font-weight: 800;\n}\n\n.tag-orgcontent a{\n    color: #007ca7;\n}\n\n.tag-orgcontent{\n    font-weight:600;\n}\n\n.tag-orgname{\n    color:#8b281f;\n    font-weight:600;\n}\n\n#jackpot {\n    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.5);\n    color: #414142;\n    display: none;\n    float: left;\n    font-weight: 400;\n    margin: 0 auto;\n    max-width: 408px;\n    min-height: 155px;\n    padding: 1em 2em 0;\n    position: absolute;\n    right: 0;\n    text-align: center;\n    bottom: -50px;\n    vertical-align: middle;\n    width: 100%;\n    z-index: 10;\n}\n#jackpot h1 {\n    color: #cd2032;\n}\n#jackpot p {\n    margin-bottom: 0;\n}');

#KA M1973: Replacing the Spin N Win Page: mechanics  

INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('Blue2_main','<!DOCTYPE HTML>\n<html lang=\"en-US\">\n<head>\n  <meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <title>boomtag{title}</title>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800\' rel=\'stylesheet\' type=\'text/css\'>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700\' rel=\'stylesheet\' type=\'text/css\'>\n    <script src=\'https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js\'></script>\n    <style type=\"text/css\">boomtag{main_css}</style>\n    <script type=\"text/javascript\">\n\n    $(function() {\n\n      $(\"#email-submit\").attr(\'disabled\', false);\n     $(\"#email_add\").attr(\'disabled\',false);\n\n     function validateEmail($email) {\n          var emailReg = /^([\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4})?$/;\n          if( !emailReg.test( $email ) ) {\n            return false;\n         } else {\n            return true;\n          }\n     }\n\n     $(\"#email-submit\").click(function(){\n\n        $(\"#err_msg\").html(\'\');\n       $(\'#jackpot\').fadeOut(\'fast\');\n        $(\'.slot-wrapper\').fadeTo( \"fast\", 1 );\n\n       if(!$(\"#email_add\").val()) {\n          $(\"#err_msg\").html(\"* Please enter your email address.\");\n         return false;\n       } else if( !validateEmail($(\"#email_add\").val())){\n          $(\"#err_msg\").html(\"* Please enter a valid email address. For example <b><i>johnsmith@gmail.com</i></b>\");\n          return false;\n         } else {\n\n          $(\"#email-submit\").attr(\'disabled\', true);\n          $(\"#email_add\").attr(\'disabled\',true);\n          var start_time = new Date().getTime();\n\n          \n         $.ajax({\n            url: \'/slot-machine\',\n           type: \"POST\",\n             dataType: \"json\",\n             data: { \n                id : \'play_slot\',\n               email: $(\'#email_add\').val(),\n               referred_org: \'boomtag{org_business_client_email}\'\n              },\n              success: function(data){\n                var success = true;\n\n               if(data[0] == \"error\")\n                {\n                 $(\'#won_msg\').text(\'Sorry!\');\n                 $(\'#offer\').text(\'No prizes available.\');\n                 $(\'#prize_info\').text(\'Prize Info: Sorry no email was sent.\');\n                  success = false;\n                }\n               else if(data[0] == \'exist\')\n               {\n                 $(\'#won_msg\').text(\'Sorry, only one spin per email address.\');\n                  $(\'#offer\').text(\'\');\n                 $(\'#prize_info\').text(\'\');\n                  success = false;\n                }\n\n               if(!success) {\n                    $(\'#jackpot\').fadeIn(\'fast\');\n                 $(\'.slot-wrapper\').fadeTo( \"slow\", 0.33 );\n                  $(\"#email-submit\").attr(\'disabled\', true);\n                  $(\"#email_add\").attr(\'disabled\',true);\n                  return false;\n               } else {\n                    $(\'#won_msg\').text(\'You’ve Won!\');\n                  $(\'#offer\').text(data[0]);\n                    $(\'#org_client\').val(data[1]);\n                  $(\'#page-title\').text(\'Congratulations\').after(\'<p>You will be redirected to your prize in a moment.</p>\'); \n\n                  var send_data = {};\n                 send_data.prize = data[0];\n                    send_data.client_id = data[1];\n\n                  var frm = document.createElement(\"form\");\n                   frm.method = \"post\";\n                      send_data.main_org = \'boomtag{main_org}\';\n                     frm.action = \'boomtag{main_org_claim_prize}\';\n                 var input = document.createElement(\"input\");\n                    input.type=\"hidden\";\n                    input.name=\"data\";\n                    input.value = JSON.stringify(send_data);\n                    \n                  frm.appendChild(input);\n                 document.body.appendChild(frm);\n\n                 setTimeout(function() {\n                   frm.submit(); \n                  }, 500);\n                  \n                  $(\'html, body, #wrapper, #container\').delay(3600).css(\'height\', \'auto\');\n                }\n           }\n         });\n       }\n     });\n   });\n   </script>\n</head>\n<body>\n<div id=\"main-wrapper-ribbon\">\n  <div class=\"container\">\n    \n    <div class=\"row\">\n\n        <div id=\"tag-wrapper\" class=\"col-xs-9 col-xs-offset-3\">\n            <div id=\"tag-container\">\n                <div class=\"tag-boarder\">\n                    <div class=\"clearfix\">\n                        <div class=\"recipient-container\">\n                            <h2>Enter your email address to open your gift</h2>\n                            \n                            <div class=\"prof-form-container\">\n                             <span style=\"color:red;font-size:14px\" id=\"err_msg\"></span>\n               <div class=\"row\">  \n                       <div class=\"col-sm-9\">\n                            <div class=\"form-group\">\n                              <div id=\"jackpot\">\n                          <div class=\"wrapper\">\n                           <h1 id=\"won_msg\">YOU?VE WON!!</h1>\n                            <p id=\"offer\"></p>\n                            <p><small><i id=\"prize_info\">Prize Info: An email with your prize has been sent</i></small></p>\n                         </div>\n                        </div>\n                              <input class=\"form-control input-sm\" id=\"email_add\" placeholder=\"Email Address\">\n                            </div>\n                        </div>\n                        <div class=\"col-sm-3\">\n                            <div class=\"form-group\">\n                              <button type=\"submit\" id=\"email-submit\" class=\"btn btn-primary btn-block btn-sm\">Submit</button>\n                            </div>\n                        </div>\n                </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">\n                        \n                        <div id=\"tag-org-details\">\n                            <div class=\"row\">\n                              <div class=\"col-md-12 tag-orgname-container\"><span class=\"tag-orgname\">boomtag{org_name}</span></div>\n                            </div>\n                        </div>\n                    \n                    </div>\n                </div>    \n            </div>\n        </div>\n    </div>\n    \n    </div>\n</div>    \n</body>\n</html>','@import url(\"boomtag{boomtime_path}/css/bootstrap.css\");\n\n\n@media(max-width:767px){\n    #tag-wrapper{\n        margin-top:40px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v10/ribbon-bg.png\") no-repeat scroll -60px top / 100%  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 14px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 12px !important;\n        word-break: break-all;\n    }\n    \n    .recipient-container h2{\n        font-size:13px !important;\n    }\n}\n\n\n\n@media(max-width:767px) and (orientation:portrait){\n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v10/ribbon-bg.png\") no-repeat scroll -40px top / cover  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-wrapper{\n        width:100% !important;\n        margin-left:0 !important;\n    }\n    \n    #tag-wrapper{\n        margin-top:200px;\n    }\n    \n}\n\n@media(min-width:768px){\n    #tag-wrapper{\n        margin-top:250px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v10/ribbon-bg.png\") no-repeat scroll left top rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 28px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n}\n\n@media(min-width:992px){\n    #tag-wrapper{\n        margin-top:300px;       \n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v10/ribbon-bg.png\") no-repeat scroll left top rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 34px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 24px !important;\n        word-break: break-all;\n    }\n    \n    \n}\n\n@media(min-width:1200px){\n    #tag-wrapper{\n        margin-top:560px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v10/ribbon-bg.png\") no-repeat scroll left top / cover  rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 26px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n\n}\n\n    body,html{\n        height:100%;\n    }\n\nbody {\n  background: url(\"boomtag{boomtime_path}/img/gift_foryou/v10/proffesional-bg-pattern.png\") repeat scroll right top / cover  #2d4a5f;\n}\n\n#main-wrapper-ribbon{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v10/ribbon-bg.png\") no-repeat scroll left top / cover  rgba(0, 0, 0, 0);\n    height:100%;\n}\n\n#tag-container{\n    background: #FFF;\n    padding: 10px;\n}\n\n\n.recipient-container{\n    padding: 5px;\n}\n\n.recipient-container h2{\n    margin-top:10px;\n}\n\n#tag-org-details{\n    border-top:3px solid #7fd2ea;\n}\n\n.tag-orgcontent-container{\n\n    padding: 15px;\n}\n\n.tag-orgname-container{\n    padding: 10px 25px;\n}\n\n.prof-header-border{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v10/header-border.png\") repeat scroll 0 0 rgba(0, 0, 0, 0);\n    height: 7px;\n    margin-bottom: 10px;\n    width: 100%;\n}\n\n.prof-form-container .form-control{\n\nbackground-image: -o-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -moz-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -webkit-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -ms-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: linear-gradient(to bottom, #F5F5F5 0%, #FFFFFF 100%);\n\n    border-radius: 0;\n    box-shadow: 0 0 3px #d3d3d3 inset;\n    font-family: \'Open Sans\', sans-serif;\n    font-size: 14px;\n    text-transform: uppercase;\n    \n}\n\n.prof-form-container .btn{\n\nbackground: #327ec1; /* Old browsers */\n    \n    color:#FFF;\nborder:none;\n    border-radius: 0;\n\n    font-family: \'Open Sans Condensed\',sans-serif;\n    font-weight: bold;\n    text-transform: uppercase;\n}\n\n.tag-boarder{\n border: 3px solid #7fd2ea;\n}\n\n.prof-form-container .btn:hover{\n\nbackground: #7fd2ea; /* Old browsers */\n\n\n}\n\n\n.tag-orgname-container,\n.tag-orgcontent-container{\n    text-align:center;\n    font-family: \'Open Sans\', sans-serif;\n}\n\n.recipient-container h2{\n    color: #327ec1;\n    font-family: \'Open Sans\',sans-serif;\n    font-size: 20px;\n    font-weight: 800;\n    text-align: center;\n    text-transform: uppercase;\n}\n\n#tag-to,\n#tag-from{\n    color: #007ca7;\n    font-size: 18px;\n}\n\n.tag-span-to-lbl,\n.tag-span-from-label{\n    font-weight: 800;\n}\n\n.tag-orgcontent a{\n    color: #007ca7;\n}\n\n.tag-orgcontent{\n    font-weight:600;\n}\n\n.tag-orgname{\n    color:#327ec1;\n    font-weight:600;\n}\n\n#jackpot {\n    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.5);\n    color: #414142;\n    display: none;\n    float: left;\n    font-weight: 400;\n    margin: 0 auto;\n    max-width: 408px;\n    min-height: 155px;\n    padding: 1em 2em 0;\n    position: absolute;\n    right: 0;\n    text-align: center;\n    bottom: -50px;\n    vertical-align: middle;\n    width: 100%;\n    z-index: 10;\n}\n#jackpot h1 {\n    color: #cd2032;\n}\n#jackpot p {\n    margin-bottom: 0;\n}');
INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('Brown_main','<!DOCTYPE HTML>\n<html lang=\"en-US\">\n<head>\n  <meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <title>boomtag{title}</title>\n    <link href=\'http://fonts.googleapis.com/css?family=Bree+Serif\' rel=\'stylesheet\' type=\'text/css\'>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700\' rel=\'stylesheet\' type=\'text/css\'>\n    <script src=\'https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js\'></script>\n    <style type=\"text/css\">boomtag{main_css}</style>\n    <script type=\"text/javascript\">\n\n        $(function() {\n\n            $(\"#email-submit\").attr(\'disabled\', false);\n            $(\"#email_add\").attr(\'disabled\',false);\n\n            function validateEmail($email) {\n                var emailReg = /^([\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4})?$/;\n                if( !emailReg.test( $email ) ) {\n                    return false;\n                } else {\n                    return true;\n                }\n            }\n\n            $(\"#email-submit\").click(function(){\n\n                $(\"#err_msg\").html(\'\');\n                $(\'#jackpot\').fadeOut(\'fast\');\n                $(\'.slot-wrapper\').fadeTo( \"fast\", 1 );\n\n                if(!$(\"#email_add\").val()) {\n                    $(\"#err_msg\").html(\"* Please enter your email address.\");\n                    return false;\n                } else if( !validateEmail($(\"#email_add\").val())){\n                    $(\"#err_msg\").html(\"* Please enter a valid email address. For example <b><i>johnsmith@gmail.com</i></b>\");\n                    return false;\n                } else {\n\n                    $(\"#email-submit\").attr(\'disabled\', true);\n                    $(\"#email_add\").attr(\'disabled\',true);\n                    var start_time = new Date().getTime();\n\n                    \n                    $.ajax({\n                        url: \'/slot-machine\',\n                        type: \"POST\",\n                        dataType: \"json\",\n                        data: { \n                            id : \'play_slot\',\n                            email: $(\'#email_add\').val(),\n                            referred_org: \'boomtag{org_business_client_email}\'\n                        },\n                        success: function(data){\n                            var success = true;\n\n                            if(data[0] == \"error\")\n                            {\n                                $(\'#won_msg\').text(\'Sorry!\');\n                                $(\'#offer\').text(\'No prizes available.\');\n                                $(\'#prize_info\').text(\'Prize Info: Sorry no email was sent.\');\n                                success = false;\n                            }\n                            else if(data[0] == \'exist\')\n                            {\n                                $(\'#won_msg\').text(\'Sorry, only one spin per email address.\');\n                                $(\'#offer\').text(\'\');\n                                $(\'#prize_info\').text(\'\');\n                                success = false;\n                            }\n\n                            if(!success) {\n                                    $(\'#jackpot\').fadeIn(\'fast\');\n                                    $(\'.slot-wrapper\').fadeTo( \"slow\", 0.33 );\n                                    $(\"#email-submit\").attr(\'disabled\', true);\n                                    $(\"#email_add\").attr(\'disabled\',true);\n                                return false;\n                            } else {\n                                    $(\'#won_msg\').text(\'You’ve Won!\');\n                                    $(\'#offer\').text(data[0]);\n                                    $(\'#org_client\').val(data[1]);\n                                    $(\'#page-title\').text(\'Congratulations\').after(\'<p>You will be redirected to your prize in a moment.</p>\'); \n\n                                    var send_data = {};\n                                    send_data.prize = data[0];\n                                    send_data.client_id = data[1];\n\n                                    var frm = document.createElement(\"form\");\n                                        frm.method = \"post\";\n                                            send_data.main_org = \'boomtag{main_org}\';\n                                            frm.action = \'boomtag{main_org_claim_prize}\';\n                                    var input = document.createElement(\"input\");\n                                        input.type=\"hidden\";\n                                        input.name=\"data\";\n                                        input.value = JSON.stringify(send_data);\n                                        \n                                    frm.appendChild(input);\n                                    document.body.appendChild(frm);\n\n                                    setTimeout(function() {\n                                        frm.submit();   \n                                    }, 500);\n                                    \n                                    $(\'html, body, #wrapper, #container\').delay(3600).css(\'height\', \'auto\');\n                            }\n                        }\n                    });\n                }\n            });\n        });\n      </script>    \n</head>\n<body>\n<div id=\"ribbon-1\"></div>\n  <div class=\"container\">\n    \n    <div class=\"row\">\n\n        <div id=\"tag-wrapper\" class=\"col-xs-9\">\n            <div id=\"tag-container\">\n                <div class=\"tag-boarder\">\n                    <div class=\"clearfix\">\n                        <div class=\"recipient-container\">\n                            <h2>Enter your email address to open your gift</h2>\n                            <div class=\"clearfix v1-header-border\"></div>\n                            <div class=\"v1-form-container\">\n                                <span style=\"color:red;font-size:14px\" id=\"err_msg\"></span>\n                                <div class=\"row\">  \n                                        <div class=\"col-sm-9\">\n                                            <div class=\"form-group\">\n                                                <div id=\"jackpot\">\n                                                    <div class=\"wrapper\">\n                                                        <h1 id=\"won_msg\">YOU?VE WON!!</h1>\n                                                        <p id=\"offer\"></p>\n                                                        <p><small><i id=\"prize_info\">Prize Info: An email with your prize has been sent</i></small></p>\n                                                    </div>\n                                                </div>\n                                                <input class=\"form-control input-sm\" id=\"email_add\" placeholder=\"Email Address\">\n                                            </div>\n                                        </div>\n                                        <div class=\"col-sm-3\">\n                                            <div class=\"form-group\">\n                                                <button type=\"submit\" id=\"email-submit\" class=\"btn btn-primary btn-block btn-sm\">Submit</button>\n                                            </div>\n                                        </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">\n                        \n                        <div id=\"tag-org-details\">\n                            <div class=\"row\">\n                              <div class=\"col-md-12 tag-orgname-container\"><span class=\"tag-orgname\">boomtag{org_name}</span></div>\n                            </div>\n                        </div>\n                    \n                    </div>\n                </div>    \n            </div>\n        </div>\n    </div>\n    \n    </div>\n</body>\n</html>','@import url(\"boomtag{boomtime_path}/css/bootstrap.css\");\n\n\n@media(max-width:767px){\n    #tag-wrapper{\n        margin-top:40px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v11/ribbon-bg.png\") no-repeat scroll -50px -50px / 150%  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 14px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 12px !important;\n        word-break: break-all;\n    }\n    \n    .recipient-container h2{\n        font-size:13px !important;\n    }\n}\n\n\n\n@media(max-width:767px) and (orientation:portrait){\n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v11/ribbon-bg.png\") no-repeat scroll -90px top / cover  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-wrapper{\n        width:100% !important;\n        margin-left:0 !important;\n    }\n    \n    #tag-wrapper{\n        margin-top:150px;\n    }\n    \n}\n\n@media(min-width:768px){\n    #tag-wrapper{\n        margin-top:250px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v11/ribbon-bg.png\") no-repeat scroll center center / 150% rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 28px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n}\n\n@media(min-width:992px){\n    #tag-wrapper{\n        margin-top:300px;       \n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v11/ribbon-bg.png\") no-repeat scroll center center rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 34px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 24px !important;\n        word-break: break-all;\n    }\n    \n    \n}\n\n@media(min-width:1200px){\n    #tag-wrapper{\n        margin-top:560px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v11/ribbon-bg.png\") no-repeat scroll center center / cover  rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 26px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n\n}\n\n    body,html{\n        height:100%;\n    }\n\nbody{\n    background:url(\'boomtag{boomtime_path}/img/gift_foryou/v11/v1-bg-pattern.png\');\n}\n\n#ribbon-1{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v11/ribbon-top.png\") no-repeat scroll left top / contain  rgba(0, 0, 0, 0);\n    height: 70%;\n    position: absolute;\n    right: 0;\n    top: 0;\n    width: 30%;\n}\n\n\n#tag-container {\n    background: none repeat scroll 0 0 #cc3927;\n    padding: 10px;\n}\n\n.tag-boarder{\n    border: 4px solid #3c2314;\n}\n\n.recipient-container{\n    padding: 5px;\n}\n\n.recipient-container h2{\n    margin-top:10px;\n}\n\n.tag-orgcontent-container{\n    padding: 15px;\n}\n\n.tag-orgname-container{\n    padding: 10px 25px;\n}\n\n.v1-header-border{\n    background:#3c2314;\n    height: 4px;\n    margin-bottom: 10px;\n    width: 100%;\n}\n\n.v1-form-container .form-control{\nbackground-image: -o-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -moz-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -webkit-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -ms-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: linear-gradient(to bottom, #F5F5F5 0%, #FFFFFF 100%);\n    border-radius: 0;\n    box-shadow: 0 0 3px #d3d3d3 inset;\n    font-family: \'Open Sans Condensed\', sans-serif;\n    font-size: 14px;\n    text-transform: uppercase;\n}\n\n.v1-form-container .btn{\nbackground: none repeat scroll 0 0 #b1463b;\nborder: 1px solid #9d3b30;\nborder-radius: 0;\nfont-family: \"Open Sans Condensed\",sans-serif;\nfont-weight: bold;\ntext-transform: uppercase;\n}\n\n.v1-form-container .btn:hover{\nbackground: none repeat scroll 0 0 #CF6458;\n}\n\n.tag-orgname-container,\n.tag-orgcontent-container{\n    text-align:center;\n    font-family: \'Open Sans Condensed\', sans-serif;\n}\n\n\n.recipient-container h2{\n    color: #FFFFFF;\n    font-family: \'Open Sans Condensed\', sans-serif;\n    font-size: 20px;\n    text-align: center;\n    font-weight:bold;\n    text-transform: uppercase;\n}\n\n\n\n#tag-to,\n#tag-from{\n    color: #FFFFFF;\n    font-size: 18px;\n}\n\n.tag-span-to-lbl,\n.tag-span-from-label{\n    font-weight: 800;\n}\n\n.tag-orgcontent a{\n    color: #FFFFFF;\n}\n\n.tag-orgcontent{\n    font-weight:600;\n}\n\n.tag-orgname{\n    color:#FFF;\n    font-weight:600;\n}\n\n#jackpot {\n    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.5);\n    color: #414142;\n    display: none;\n    float: left;\n    font-weight: 400;\n    margin: 0 auto;\n    max-width: 408px;\n    min-height: 155px;\n    padding: 1em 2em 0;\n    position: absolute;\n    right: 0;\n    text-align: center;\n    bottom: -50px;\n    vertical-align: middle;\n    width: 100%;\n    z-index: 10;\n}\n#jackpot h1 {\n    color: #cd2032;\n}\n#jackpot p {\n    margin-bottom: 0;\n}');
INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('Wrench_main','<!DOCTYPE HTML>\n<html lang=\"en-US\">\n<head>\n <meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <title>boomtag{title}</title>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800\' rel=\'stylesheet\' type=\'text/css\'>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700\' rel=\'stylesheet\' type=\'text/css\'>\n    <script src=\'https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js\'></script>\n    <style type=\"text/css\">boomtag{main_css}</style>\n    <script type=\"text/javascript\">\n\n        $(function() {\n\n            $(\"#email-submit\").attr(\'disabled\', false);\n            $(\"#email_add\").attr(\'disabled\',false);\n\n            function validateEmail($email) {\n                var emailReg = /^([\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4})?$/;\n                if( !emailReg.test( $email ) ) {\n                    return false;\n                } else {\n                    return true;\n                }\n            }\n\n            $(\"#email-submit\").click(function(){\n\n                $(\"#err_msg\").html(\'\');\n                $(\'#jackpot\').fadeOut(\'fast\');\n                $(\'.slot-wrapper\').fadeTo( \"fast\", 1 );\n\n                if(!$(\"#email_add\").val()) {\n                    $(\"#err_msg\").html(\"* Please enter your email address.\");\n                    return false;\n                } else if( !validateEmail($(\"#email_add\").val())){\n                    $(\"#err_msg\").html(\"* Please enter a valid email address. For example <b><i>johnsmith@gmail.com</i></b>\");\n                    return false;\n                } else {\n\n                    $(\"#email-submit\").attr(\'disabled\', true);\n                    $(\"#email_add\").attr(\'disabled\',true);\n                    var start_time = new Date().getTime();\n\n                    \n                    $.ajax({\n                        url: \'/slot-machine\',\n                        type: \"POST\",\n                        dataType: \"json\",\n                        data: { \n                            id : \'play_slot\',\n                            email: $(\'#email_add\').val(),\n                            referred_org: \'boomtag{org_business_client_email}\'\n                        },\n                        success: function(data){\n                            var success = true;\n\n                            if(data[0] == \"error\")\n                            {\n                                $(\'#won_msg\').text(\'Sorry!\');\n                                $(\'#offer\').text(\'No prizes available.\');\n                                $(\'#prize_info\').text(\'Prize Info: Sorry no email was sent.\');\n                                success = false;\n                            }\n                            else if(data[0] == \'exist\')\n                            {\n                                $(\'#won_msg\').text(\'Sorry, only one spin per email address.\');\n                                $(\'#offer\').text(\'\');\n                                $(\'#prize_info\').text(\'\');\n                                success = false;\n                            }\n\n                            if(!success) {\n                                    $(\'#jackpot\').fadeIn(\'fast\');\n                                    $(\'.slot-wrapper\').fadeTo( \"slow\", 0.33 );\n                                    $(\"#email-submit\").attr(\'disabled\', true);\n                                    $(\"#email_add\").attr(\'disabled\',true);\n                                return false;\n                            } else {\n                                    $(\'#won_msg\').text(\'You’ve Won!\');\n                                    $(\'#offer\').text(data[0]);\n                                    $(\'#org_client\').val(data[1]);\n                                    $(\'#page-title\').text(\'Congratulations\').after(\'<p>You will be redirected to your prize in a moment.</p>\'); \n\n                                    var send_data = {};\n                                    send_data.prize = data[0];\n                                    send_data.client_id = data[1];\n\n                                    var frm = document.createElement(\"form\");\n                                        frm.method = \"post\";\n                                            send_data.main_org = \'boomtag{main_org}\';\n                                            frm.action = \'boomtag{main_org_claim_prize}\';\n                                    var input = document.createElement(\"input\");\n                                        input.type=\"hidden\";\n                                        input.name=\"data\";\n                                        input.value = JSON.stringify(send_data);\n                                        \n                                    frm.appendChild(input);\n                                    document.body.appendChild(frm);\n\n                                    setTimeout(function() {\n                                        frm.submit();   \n                                    }, 500);\n                                    \n                                    $(\'html, body, #wrapper, #container\').delay(3600).css(\'height\', \'auto\');\n                            }\n                        }\n                    });\n                }\n            });\n        });\n      </script>    \n</head>\n<body>\n<div id=\"main-wrapper-ribbon\">\n  <div class=\"container\">\n    \n    <div class=\"row\">\n\n        <div id=\"tag-wrapper\" class=\"col-xs-9 col-xs-offset-3\">\n            <div id=\"tag-container\">\n                <div class=\"tag-boarder\">\n                    <div class=\"clearfix\">\n                        <div class=\"recipient-container\">\n                            <h2>Enter your email address to open your gift</h2>\n                            <div class=\"clearfix v1-header-border\"></div>\n                            \n                            <div class=\"prof-form-container\">\n                                <span style=\"color:red;font-size:14px\" id=\"err_msg\"></span>\n                                <div class=\"row\">  \n                                        <div class=\"col-sm-9\">\n                                            <div class=\"form-group\">\n                                                <div id=\"jackpot\">\n                                                    <div class=\"wrapper\">\n                                                        <h1 id=\"won_msg\">YOU?VE WON!!</h1>\n                                                        <p id=\"offer\"></p>\n                                                        <p><small><i id=\"prize_info\">Prize Info: An email with your prize has been sent</i></small></p>\n                                                    </div>\n                                                </div>\n                                                <input class=\"form-control input-sm\" id=\"email_add\" placeholder=\"Email Address\">\n                                            </div>\n                                        </div>\n                                        <div class=\"col-sm-3\">\n                                            <div class=\"form-group\">\n                                                <button type=\"submit\" id=\"email-submit\" class=\"btn btn-primary btn-block btn-sm\">Submit</button>\n                                            </div>\n                                        </div>\n                                </div>\n                            </div>\n                            \n                            <div class=\"clearfix v2-header-border\"></div>\n                            \n                        </div>\n                    </div>\n                    <div class=\"clearfix\">\n                        \n                        <div id=\"tag-org-details\">\n                            <div class=\"row\">\n                              <div class=\"col-md-12 tag-orgname-container\"><span class=\"tag-orgname\">boomtag{org_name}</span></div>\n                            </div>\n                        </div>\n                    \n                    </div>\n                </div>    \n            </div>\n        </div>\n    </div>\n    \n    </div>\n</div>    \n</body>\n</html>','@import url(\"boomtag{boomtime_path}/css/bootstrap.css\");\n\n\n@media(max-width:767px){\n    #tag-wrapper{\n        margin-top:10px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v12/ribbon-bg.png\") no-repeat scroll -50px -50px / 150%  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 14px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 12px !important;\n        word-break: break-all;\n    }\n    \n    .recipient-container h2{\n        font-size:13px !important;\n    }\n}\n\n\n\n@media(max-width:767px) and (orientation:portrait){\n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v12/ribbon-bg.png\") no-repeat scroll -90px top / cover  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-wrapper{\n        width:100% !important;\n        margin-left:0 !important;\n    }\n    \n    #tag-wrapper{\n        margin-top:150px;\n    }\n    \n}\n\n@media(min-width:768px){\n    #tag-wrapper{\n        margin-top:250px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v12/ribbon-bg.png\") no-repeat scroll -150px -80px rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 28px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n}\n\n@media(min-width:992px){\n    #tag-wrapper{\n        margin-top:300px;       \n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v12/ribbon-bg.png\") no-repeat scroll -170px -80px rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 34px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 24px !important;\n        word-break: break-all;\n    }\n    \n    \n}\n\n@media(min-width:1200px){\n    #tag-wrapper{\n        margin-top:560px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v12/ribbon-bg.png\") no-repeat scroll left top / cover  rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 26px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n\n}\n\n    body,html{\n        height:100%;\n    }\n\nbody{\n    background:url(\'boomtag{boomtime_path}/img/gift_foryou/v12/proffesional-bg-pattern.png\');\n}\n\n#main-wrapper-ribbon{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v12/ribbon-bg.png\") no-repeat scroll left top / cover  rgba(0, 0, 0, 0);\n    height:100%;\n}\n\n#tag-container{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v12/proffesional-tag-bg-pattern.png\") repeat scroll 0 0 rgba(0, 0, 0, 0);\n    box-shadow: 1px 1px 2px #b8b8b8;\n    padding: 10px;\n}\n\n.tag-boarder{\n    border:3px solid #007ba6;\n}\n\n.recipient-container{\n    border-bottom: 2px solid #007ea8;\n    padding: 5px;\n}\n\n.recipient-container h2{\nmargin-top:10px;\n}\n\n.tag-orgcontent-container{\n    border-left: 2px solid #007ea8;\n    padding: 15px;\n}\n\n.tag-orgname-container{\n    padding: 10px 25px;\n}\n\n.prof-header-border{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v12/header-border.png\") repeat scroll 0 0 rgba(0, 0, 0, 0);\n    height: 7px;\n    margin-bottom: 10px;\n    width: 100%;\n}\n\n.prof-form-container .form-control{\nbackground-image: -o-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -moz-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -webkit-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -ms-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: linear-gradient(to bottom, #F5F5F5 0%, #FFFFFF 100%);\n    border-radius: 0;\n    box-shadow: 0 0 3px #d3d3d3 inset;\n    font-family: \'Montserrat\',sans-serif;\n    font-size: 14px;\n    text-transform: uppercase;\n}\n\n.prof-form-container .btn{\nbackground: #007ca5; /* Old browsers */\nbackground: -moz-linear-gradient(top, #007ca5 0%, #006792 100%); /* FF3.6+ */\nbackground: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#007ca5), color-stop(100%,#006792)); /* Chrome,Safari4+ */\nbackground: -webkit-linear-gradient(top, #007ca5 0%,#006792 100%); /* Chrome10+,Safari5.1+ */\nbackground: -o-linear-gradient(top, #007ca5 0%,#006792 100%); /* Opera 11.10+ */\nbackground: -ms-linear-gradient(top, #007ca5 0%,#006792 100%); /* IE10+ */\nbackground: linear-gradient(to bottom, #007ca5 0%,#006792 100%); /* W3C */\nfilter: progid:DXImageTransform.Microsoft.gradient( startColorstr=\'#007ca5\', endColorstr=\'#006792\',GradientType=0 ); /* IE6-9 */\n    \n    border-radius: 0;\n    box-shadow: 0 0 5px #00567f inset;\n    font-family: \'Open Sans Condensed\',sans-serif;\n    font-weight: bold;\n    text-transform: uppercase;\n}\n\n.tag-orgname-container,\n.tag-orgcontent-container{\n    text-align:center;\n    font-family: \'Montserrat\',sans-serif;\n}\n\n.recipient-container h2{\n    color: #00749f;\n    font-family: \'Montserrat\',sans-serif;\n    font-size: 20px;\n    text-align: center;\n    text-transform: uppercase;\n}\n\n#tag-to,\n#tag-from{\n    color: #007ca7;\n    font-size: 18px;\n}\n\n.tag-span-to-lbl,\n.tag-span-from-label{\n    font-weight: 800;\n}\n\n.tag-orgcontent a{\n    color: #007ca7;\n}\n\n.tag-orgcontent{\n    font-weight:600;\n}\n\n.tag-orgname{\n    font-weight:600;\n}\n\n#jackpot {\n    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.5);\n    color: #414142;\n    display: none;\n    float: left;\n    font-weight: 400;\n    margin: 0 auto;\n    max-width: 408px;\n    min-height: 155px;\n    padding: 1em 2em 0;\n    position: absolute;\n    right: 0;\n    text-align: center;\n    bottom: -50px;\n    vertical-align: middle;\n    width: 100%;\n    z-index: 10;\n}\n#jackpot h1 {\n    color: #cd2032;\n}\n#jackpot p {\n    margin-bottom: 0;\n}');
INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('Blue_main','<!DOCTYPE HTML>\n<html lang=\"en-US\">\n<head>\n <meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <title>boomtag{title}</title>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800\' rel=\'stylesheet\' type=\'text/css\'>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700\' rel=\'stylesheet\' type=\'text/css\'>\n    <script src=\'https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js\'></script>\n    <style type=\"text/css\">boomtag{main_css}</style>\n    <script type=\"text/javascript\">\n\n        $(function() {\n\n            $(\"#email-submit\").attr(\'disabled\', false);\n            $(\"#email_add\").attr(\'disabled\',false);\n\n            function validateEmail($email) {\n                var emailReg = /^([\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4})?$/;\n                if( !emailReg.test( $email ) ) {\n                    return false;\n                } else {\n                    return true;\n                }\n            }\n\n            $(\"#email-submit\").click(function(){\n\n                $(\"#err_msg\").html(\'\');\n                $(\'#jackpot\').fadeOut(\'fast\');\n                $(\'.slot-wrapper\').fadeTo( \"fast\", 1 );\n\n                if(!$(\"#email_add\").val()) {\n                    $(\"#err_msg\").html(\"* Please enter your email address.\");\n                    return false;\n                } else if( !validateEmail($(\"#email_add\").val())){\n                    $(\"#err_msg\").html(\"* Please enter a valid email address. For example <b><i>johnsmith@gmail.com</i></b>\");\n                    return false;\n                } else {\n\n                    $(\"#email-submit\").attr(\'disabled\', true);\n                    $(\"#email_add\").attr(\'disabled\',true);\n                    var start_time = new Date().getTime();\n\n                    \n                    $.ajax({\n                        url: \'/slot-machine\',\n                        type: \"POST\",\n                        dataType: \"json\",\n                        data: { \n                            id : \'play_slot\',\n                            email: $(\'#email_add\').val(),\n                            referred_org: \'boomtag{org_business_client_email}\'\n                        },\n                        success: function(data){\n                            var success = true;\n\n                            if(data[0] == \"error\")\n                            {\n                                $(\'#won_msg\').text(\'Sorry!\');\n                                $(\'#offer\').text(\'No prizes available.\');\n                                $(\'#prize_info\').text(\'Prize Info: Sorry no email was sent.\');\n                                success = false;\n                            }\n                            else if(data[0] == \'exist\')\n                            {\n                                $(\'#won_msg\').text(\'Sorry, only one spin per email address.\');\n                                $(\'#offer\').text(\'\');\n                                $(\'#prize_info\').text(\'\');\n                                success = false;\n                            }\n\n                            if(!success) {\n                                    $(\'#jackpot\').fadeIn(\'fast\');\n                                    $(\'.slot-wrapper\').fadeTo( \"slow\", 0.33 );\n                                    $(\"#email-submit\").attr(\'disabled\', true);\n                                    $(\"#email_add\").attr(\'disabled\',true);\n                                return false;\n                            } else {\n                                    $(\'#won_msg\').text(\'You’ve Won!\');\n                                    $(\'#offer\').text(data[0]);\n                                    $(\'#org_client\').val(data[1]);\n                                    $(\'#page-title\').text(\'Congratulations\').after(\'<p>You will be redirected to your prize in a moment.</p>\'); \n\n                                    var send_data = {};\n                                    send_data.prize = data[0];\n                                    send_data.client_id = data[1];\n\n                                    var frm = document.createElement(\"form\");\n                                        frm.method = \"post\";\n                                            send_data.main_org = \'boomtag{main_org}\';\n                                            frm.action = \'boomtag{main_org_claim_prize}\';\n                                    var input = document.createElement(\"input\");\n                                        input.type=\"hidden\";\n                                        input.name=\"data\";\n                                        input.value = JSON.stringify(send_data);\n                                        \n                                    frm.appendChild(input);\n                                    document.body.appendChild(frm);\n\n                                    setTimeout(function() {\n                                        frm.submit();   \n                                    }, 500);\n                                    \n                                    $(\'html, body, #wrapper, #container\').delay(3600).css(\'height\', \'auto\');\n                            }\n                        }\n                    });\n                }\n            });\n        });\n      </script>    \n</head>\n<body>\n<div id=\"main-wrapper-ribbon\">\n  <div class=\"container\">\n    \n    <div class=\"row\">\n\n        <div id=\"tag-wrapper\" class=\"col-xs-9 col-xs-offset-3\">\n            <div id=\"tag-container\">\n                <div class=\"tag-boarder\">\n                    <div class=\"clearfix\">\n                        <div class=\"recipient-container\">\n                            <h2>Enter your email address to open your gift</h2>\n                            \n                            <div class=\"prof-form-container\">\n                                <span style=\"color:red;font-size:14px\" id=\"err_msg\"></span>\n                                <div class=\"row\">  \n                                        <div class=\"col-sm-9\">\n                                            <div class=\"form-group\">\n                                                <div id=\"jackpot\">\n                                                    <div class=\"wrapper\">\n                                                        <h1 id=\"won_msg\">YOU?VE WON!!</h1>\n                                                        <p id=\"offer\"></p>\n                                                        <p><small><i id=\"prize_info\">Prize Info: An email with your prize has been sent</i></small></p>\n                                                    </div>\n                                                </div>\n                                                <input class=\"form-control input-sm\" id=\"email_add\" placeholder=\"Email Address\">\n                                            </div>\n                                        </div>\n                                        <div class=\"col-sm-3\">\n                                            <div class=\"form-group\">\n                                                <button type=\"submit\" id=\"email-submit\" class=\"btn btn-primary btn-block btn-sm\">Submit</button>\n                                            </div>\n                                        </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">\n                        \n                        <div id=\"tag-org-details\">\n                            <div class=\"row\">\n                              <div class=\"col-md-12 tag-orgname-container\"><span class=\"tag-orgname\">boomtag{org_name}</span></div>\n                            </div>\n                        </div>\n                    \n                    </div>\n                </div>    \n            </div>\n        </div>\n    </div>\n    \n    </div>\n</div>    \n</body>\n</html>','@import url(\"boomtag{boomtime_path}/css/bootstrap.css\");\n\n\n@media(max-width:767px){\n    #tag-wrapper{\n        margin-top:40px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v13/ribbon-bg.png\") no-repeat scroll -120px top / 150%  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 14px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 12px !important;\n        word-break: break-all;\n    }\n    \n    .recipient-container h2{\n        font-size:13px !important;\n    }\n}\n\n\n\n@media(max-width:767px) and (orientation:portrait){\n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v13/ribbon-bg.png\") no-repeat scroll -50px top / cover  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-wrapper{\n        width:100% !important;\n        margin-left:0 !important;\n    }\n    \n    #tag-wrapper{\n        margin-top:210px;\n    }\n    \n}\n\n@media(min-width:768px){\n    #tag-wrapper{\n        margin-top:250px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v13/ribbon-bg.png\") no-repeat scroll left top rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 28px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n}\n\n@media(min-width:992px){\n    #tag-wrapper{\n        margin-top:300px;       \n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v13/ribbon-bg.png\") no-repeat scroll left top rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 34px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 24px !important;\n        word-break: break-all;\n    }\n    \n    \n}\n\n@media(min-width:1200px){\n    #tag-wrapper{\n        margin-top:560px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v13/ribbon-bg.png\") no-repeat scroll left top / cover  rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 26px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n\n}\n\n    body,html{\n        height:100%;\n    }\n\nbody{\n    background:url(\'boomtag{boomtime_path}/img/gift_foryou/v13/proffesional-bg-pattern.png\');\n}\n\n#main-wrapper-ribbon{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v13/ribbon-bg.png\") no-repeat scroll left top / cover  rgba(0, 0, 0, 0);\n    height:100%;\n}\n\n#tag-container{\n    background: #FFF;\n    padding: 10px;\n}\n\n\n.recipient-container{\n    padding: 5px;\n}\n\n.recipient-container h2{\n    margin-top:10px;\n}\n\n#tag-org-details{\n    border-top:3px solid #7e92a5;\n}\n\n.tag-orgcontent-container{\n\n    padding: 15px;\n}\n\n.tag-orgname-container{\n    padding: 10px 25px;\n}\n\n.prof-header-border{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v13/header-border.png\") repeat scroll 0 0 rgba(0, 0, 0, 0);\n    height: 7px;\n    margin-bottom: 10px;\n    width: 100%;\n}\n\n.prof-form-container .form-control{\n\nbackground-image: -o-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -moz-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -webkit-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -ms-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: linear-gradient(to bottom, #F5F5F5 0%, #FFFFFF 100%);\n\n    border-radius: 0;\n    box-shadow: 0 0 3px #d3d3d3 inset;\n    font-family: \'Open Sans\', sans-serif;\n    font-size: 14px;\n    text-transform: uppercase;\n    \n}\n\n.prof-form-container .btn{\n\nbackground: #2d4a5f; /* Old browsers */\n    \n    color:#FFF;\nborder:none;\n    border-radius: 0;\n\n    font-family: \'Open Sans Condensed\',sans-serif;\n    font-weight: bold;\n    text-transform: uppercase;\n}\n\n.tag-boarder{\n border: 3px solid #7e92a5;\n}\n\n.prof-form-container .btn:hover{\n\nbackground: #7e92a5; /* Old browsers */\n\n\n}\n\n\n.tag-orgname-container,\n.tag-orgcontent-container{\n    text-align:center;\n    font-family: \'Open Sans\', sans-serif;\n}\n\n.recipient-container h2{\n    color: #2d4a5f;\n    font-family: \'Open Sans\',sans-serif;\n    font-size: 20px;\n    font-weight: 800;\n    text-align: center;\n    text-transform: uppercase;\n}\n\n#tag-to,\n#tag-from{\n    color: #007ca7;\n    font-size: 18px;\n}\n\n.tag-span-to-lbl,\n.tag-span-from-label{\n    font-weight: 800;\n}\n\n.tag-orgcontent a{\n    color: #007ca7;\n}\n\n.tag-orgcontent{\n    font-weight:600;\n}\n\n.tag-orgname{\n    color:#2d4a5f;\n    font-weight:600;\n}\n\n#jackpot {\n    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.5);\n    color: #414142;\n    display: none;\n    float: left;\n    font-weight: 400;\n    margin: 0 auto;\n    max-width: 408px;\n    min-height: 155px;\n    padding: 1em 2em 0;\n    position: absolute;\n    right: 0;\n    text-align: center;\n    bottom: -50px;\n    vertical-align: middle;\n    width: 100%;\n    z-index: 10;\n}\n#jackpot h1 {\n    color: #cd2032;\n}\n#jackpot p {\n    margin-bottom: 0;\n}');
#MT 09.04.14 Mantis 1972: Replacing the Spin N Win page: HTML Design

INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('Blue2_claim','<!DOCTYPE HTML>\n<html lang=\"en-US\">\n<head>\n <meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <title>boomtag{title}</title>\n    <style type=\"text/css\">boomtag{main_css}</style>\n    <link type=\"text/css\" rel=\"stylesheet\" href=\"http://fonts.googleapis.com/css?family=Montserrat:400,700\">\n    <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js\"></script>\n    <script>\n        if(!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))) {\n             $(document).ready(function() {\n                var maxHeight = -1;\n\n                $(\'.ob-child\').each(function() {\n                maxHeight = maxHeight > $(this).height() ? maxHeight : $(this).height();\n                });\n\n                $(\'.ob-child\').each(function() {\n                $(this).height(maxHeight);\n                });\n            });\n        }\n    </script>\n</head>\n<body>\n    <div class=\"container\">\n        <div id=\"openbox-main\">\n            <div id=\"openbox-inner\">\n                <div class=\"clearfix\">\n                    <div class=\"col-md-3 ob-greetings ob-child\">\n                        <h2>Congratulations <strong>You Won!</strong></h2>\n                    </div>\n                    <div class=\"col-md-6 main-content ob-child\">\n                        <!-- <div class=\"row upper-c\">\n                            <div class=\"col-sm-12\">\n                                <h1><sup>$</sup>1</h1>\n                            </div>\n                        </div> -->\n                        <div class=\"row lower-c\">\n                            <div class=\"col-sm-12\">\n                                <!--h2>free</h2-->\n                                <h3>boomtag{prize}</h3>\n                                <p style=\"font-style:italic;font-size: 14px;margin-top: 6px;margin-left: 10px;\">Prize Info: Your prize will be emailed to you</p>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"col-md-3 ob-org-name ob-child\">\n                        <h2>boomtag{org_name}</h2>\n                    </div>\n                </div>\n            </div>\n            boomtag{org_links_section}\n        </div>\n    </div>\n</body>\n</html>','@import url(\"boomtag{boomtime_path}/css/bootstrap.css\");\n\n\n@media(max-width:767px){\n\n    body{\n        background:#327ec1;\n    }\n\n    #openbox-main{\n        /* background: red !important; */\n        margin-top: 20px !important;\n        margin-bottom:40px !important;\n    }\n\n    .main-content{\n        border-top: 3px solid #7fd2ea;\n        border-bottom: 3px solid #7fd2ea;\n    }\n    \n    .ob-greetings h2{\n        position: static;\n        top: unset;\n        -webkit-transform: none;\n        -ms-transform:  none;\n        transform:  none;\n    }\n    .ob-greetings h2 strong{\n        font-size:22px !important; \n    }\n\n    .ob-org-name h2{\n        position: static;\n        top: unset;\n        -webkit-transform:  none;\n        -ms-transform:  none;\n        transform:  none;\n    }\n    \n    \n\n}\n\n@media(max-width:767px) and (orientation:portrait){\n\n    .ob-greetings h2{\n        font-size:20px !important;\n    }\n    body{\n        background:#327ec1;\n    }\n    \n}\n\n@media(max-width:767px) and (orientation:landscape){\n\n.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12{\n    float:left !important;\n}\n\n.col-md-3 {\n    width: 25% !important;\n}\n.col-md-6 {\n    width: 50% !important;\n}\n\n.main-content{\n    border-left: 3px solid #7fd2ea;\n    border-right: 3px solid #7fd2ea;\n    border-top: none;\n    border-bottom: none;\n}\n\n.ob-greetings h2{\n    font-size:12px !important;\n    -ms-word-break: break-all; \n    word-break: break-all; \n    word-break: break-word; /* old webkit */ \n}\n\n.ob-greetings h2 strong{\n    font-size:16px !important;\n}\n\n.ob-org-name h2{\n    font-size:16px !important;\n}\n\n.main-content .upper-c h1{\nfont-size:60px !important;\n}\n\nbody{\n    background:#327ec1;\n}\n\n}\n\n@media(min-width:768px){\n\n\n    #openbox-main{\n        /* background: blue !important; */\n    }\n    \n    .main-content{\n        border-top: 3px solid #7fd2ea;\n        border-bottom: 3px solid #7fd2ea;\n    }\n    \n    #openbox-main{\n        margin-top: 250px !important;\n    }\n\n    \n\n}\n\n@media(min-width:992px){\n\n    #openbox-main{\n        margin-top: 220px !important;\n    /*    background: pink !important;      */\n    }\n    \n    .ob-greetings h2{\n        font-size:18px !important;\n    }\n    \n    .main-content{\n        border-top: none;\n        border-bottom: none;\n        border-left: 3px solid #7fd2ea;\n        border-right: 3px solid #7fd2ea;\n    }\n    \n\n        \n}\n\n@media(min-width:1200px){\n\n    #openbox-main{\n      /*  background: green !important;   */\n    }\n    \n    .ob-greetings h2{\n        position: relative;\n        top: 50%;\n        margin-top:0;\n        -webkit-transform: translateY(-50%);\n        -ms-transform: translateY(-50%);\n        transform: translateY(-50%);\n    }\n\n    .ob-org-name h2{\n        position: relative;\n        top: 50%;\n        margin-top:0;\n        -webkit-transform: translateY(-50%);\n        -ms-transform: translateY(-50%);\n        transform: translateY(-50%);\n    }\n    #openbox-main {\n        margin-top: 370px !important;\n    }\n\n}\n\nbody,\nhtml{\n    height:100%;\n}\n\nbody{\n    background:#327ec1;\n}\n\n#openbox-main{\n    background: #ffffff;\n    margin-top: 320px;\n    padding: 15px;\n}\n\n#openbox-inner{\n    border: 3px solid #7fd2ea;\n}\n\n.ob-greetings{\n    font-family:\'Montserrat\',sans-serif;\n}\n\n.ob-greetings h2{\n    color: #327ec1;\n    font-size: 24px;\n    text-align: center;\n    text-transform: uppercase;\n}\n.ob-greetings h2 strong{\n    color: #333333;\n    font-size: 42px;\n    font-weight: bold;\n    display:block;\n}\n\n.main-content{\n    font-family: \'Montserrat\',sans-serif;\n    text-align: center;\n    text-transform: uppercase;\n}\n\n.ob-org-name{\n    font-family: \'Montserrat\',sans-serif;\n    text-align: center;\n    text-transform: uppercase;\n}\n\n.main-content .upper-c h1{\n    color: #327ec1;\n    font-size:120px;\n    margin-bottom:0;\n    margin-top:0;\n}\n.main-content .upper-c h1 sup{\n    font-size: 35%;\n}\n\n.main-content .lower-c h2{\n    font-size: 40px;\n    margin: 0;\n}\n\n.main-content .lower-c h3{\n    font-size: 32px;\n    margin: 0;\n}');
INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('Brown_claim','<!DOCTYPE HTML>\n<html lang=\"en-US\">\n<head>\n <meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <title>boomtag{title}</title>\n    <style type=\"text/css\">boomtag{main_css}</style>\n    <link type=\"text/css\" rel=\"stylesheet\" href=\"http://fonts.googleapis.com/css?family=Montserrat:400,700\">\n    <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js\"></script>\n    <script>\n        if(!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))) {\n             $(document).ready(function() {\n                var maxHeight = -1;\n\n                $(\'.ob-child\').each(function() {\n                maxHeight = maxHeight > $(this).height() ? maxHeight : $(this).height();\n                });\n\n                $(\'.ob-child\').each(function() {\n                $(this).height(maxHeight);\n                });\n            });\n        }\n    </script>\n</head>\n<body>\n    <div class=\"container\">\n        <div id=\"openbox-main\">\n            <div id=\"openbox-inner\">\n                <div class=\"clearfix\">\n                    <div class=\"col-md-3 ob-greetings ob-child\">\n                        <h2>Congratulations <strong>You Won!</strong></h2>\n                    </div>\n                    <div class=\"col-md-6 main-content ob-child\">\n                        <!-- <div class=\"row upper-c\">\n                            <div class=\"col-sm-12\">\n                                <h1><sup>$</sup>1</h1>\n                            </div>\n                        </div> -->\n                        <div class=\"row lower-c\">\n                            <div class=\"col-sm-12\">\n                                <!--h2>free</h2-->\n                                <h3>boomtag{prize}</h3>\n                                <p style=\"font-style:italic;font-size: 14px;margin-top: 6px;margin-left: 10px;\">Prize Info: Your prize will be emailed to you</p>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"col-md-3 ob-org-name ob-child\">\n                        <h2>boomtag{org_name}</h2>\n                    </div>\n                </div>\n            </div>\n            boomtag{org_links_section}\n        </div>\n    </div>\n</body>\n</html>','@import url(\"boomtag{boomtime_path}/css/bootstrap.css\");\n\n\n@media(max-width:767px){\n\n    body{\n        background:url(\"boomtag{boomtime_path}/img/gift_foryou/v11/v11-bg.png\") no-repeat scroll #363636 !important;\n    }\n\n    #openbox-main{\n        /* background: red !important; */\n        margin-top: 20px !important;\n        margin-bottom:40px !important;\n    }\n\n    .main-content{\n        border-top: 3px solid #3c2314;\n        border-bottom: 3px solid #3c2314;\n    }\n    \n    .ob-greetings h2{\n        position: static;\n        top: unset;\n        -webkit-transform: none;\n        -ms-transform:  none;\n        transform:  none;\n    }\n    .ob-greetings h2 strong{\n        font-size:22px !important; \n    }\n\n    .ob-org-name h2{\n        position: static;\n        top: unset;\n        -webkit-transform:  none;\n        -ms-transform:  none;\n        transform:  none;\n    }\n    \n    \n\n}\n\n@media(max-width:767px) and (orientation:portrait){\n\n    .ob-greetings h2{\n        font-size:20px !important;\n    }\n    body{\n        background:url(\"boomtag{boomtime_path}/img/gift_foryou/v11/v11-bg.png\") no-repeat scroll #363636 !important;\n    }\n    \n}\n\n@media(max-width:767px) and (orientation:landscape){\n\n.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12{\n    float:left !important;\n}\n\n.col-md-3 {\n    width: 25% !important;\n}\n.col-md-6 {\n    width: 50% !important;\n}\n\n.main-content{\n    border-left: 3px solid #3c2314;\n    border-right: 3px solid #3c2314;\n    border-top: none;\n    border-bottom: none;\n}\n\n.ob-greetings h2{\n    font-size:12px !important;\n    -ms-word-break: break-all; \n    word-break: break-all; \n    word-break: break-word; /* old webkit */ \n}\n\n.ob-greetings h2 strong{\n    font-size:16px !important;\n}\n\n.ob-org-name h2{\n    font-size:16px !important;\n}\n\n.main-content .upper-c h1{\nfont-size:60px !important;\n}\n\nbody{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v11/v11-bg.png\") repeat scroll center center rgba(0, 0, 0, 0) !important;\n}\n\n}\n\n@media(min-width:768px){\n\n\n    #openbox-main{\n        /* background: blue !important; */\n    }\n    \n    .main-content{\n        border-top: 3px solid #3c2314;\n        border-bottom: 3px solid #3c2314;\n    }\n    \n    #openbox-main{\n        margin-top: 250px !important;\n    }\n\n    \n\n}\n\n@media(min-width:992px){\n\n    #openbox-main{\n        margin-top: 220px !important;\n    /*    background: pink !important;      */\n    }\n    \n    .ob-greetings h2{\n        font-size:18px !important;\n    }\n    \n    .main-content{\n        border-top: none;\n        border-bottom: none;\n        border-left: 3px solid #3c2314;\n        border-right: 3px solid #3c2314;\n    }\n    \n\n        \n}\n\n@media(min-width:1200px){\n\n    #openbox-main{\n      /*  background: green !important;   */\n    }\n    \n    .ob-greetings h2{\n        position: relative;\n        top: 50%;\n        margin-top:0;\n        -webkit-transform: translateY(-50%);\n        -ms-transform: translateY(-50%);\n        transform: translateY(-50%);\n    }\n\n    .ob-org-name h2{\n        position: relative;\n        top: 50%;\n        margin-top:0;\n        -webkit-transform: translateY(-50%);\n        -ms-transform: translateY(-50%);\n        transform: translateY(-50%);\n    }\n    #openbox-main {\n        margin-top: 370px !important;\n    }\n\n}\n\nbody,\nhtml{\n    height:100%;\n}\n\n\nbody{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v11/v11-bg.png\") repeat scroll center center rgba(0, 0, 0, 0);\n    color:#FFF;\n}\n\n#openbox-main{\n    background: #cc3927;\n    margin-top: 320px;\n    padding: 15px;\n}\n\n#openbox-inner{\n    border: 3px solid #3c2314;\n}\n\n.ob-greetings{\n    font-family:\'Montserrat\',sans-serif;\n}\n\n.ob-greetings h2{\n    color: #3c2314;\n    font-size: 24px;\n    text-align: center;\n    text-transform: uppercase;\n}\n.ob-greetings h2 strong{\n    color: #FFF;\n    font-size: 42px;\n    font-weight: bold;\n    display:block;\n}\n\n.main-content{\n    font-family: \'Montserrat\',sans-serif;\n    text-align: center;\n    text-transform: uppercase;\n}\n\n.ob-org-name{\n    font-family: \'Montserrat\',sans-serif;\n    text-align: center;\n    text-transform: uppercase;\n}\n\n.main-content .upper-c h1{\n    color: #3c2314;\n    font-size:120px;\n    margin-bottom:0;\n    margin-top:0;\n}\n.main-content .upper-c h1 sup{\n    font-size: 35%;\n}\n\n.main-content .lower-c h2{\n    font-size: 40px;\n    margin: 0;\n}\n\n.main-content .lower-c h3{\n    font-size: 32px;\n    margin: 0;\n}');
INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('Wrench_claim','<!DOCTYPE HTML>\n<html lang=\"en-US\">\n<head>\n  <meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <title>boomtag{title}</title>\n    <style type=\"text/css\">boomtag{main_css}</style>\n    <link type=\"text/css\" rel=\"stylesheet\" href=\"http://fonts.googleapis.com/css?family=Montserrat:400,700\">\n    <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js\"></script>\n    <script>\n        if(!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))) {\n             $(document).ready(function() {\n                var maxHeight = -1;\n\n                $(\'.ob-child\').each(function() {\n                maxHeight = maxHeight > $(this).height() ? maxHeight : $(this).height();\n                });\n\n                $(\'.ob-child\').each(function() {\n                $(this).height(maxHeight);\n                });\n            });\n        }\n    </script>\n</head>\n<body>\n    <div class=\"container\">\n        <div id=\"openbox-main\">\n            <div id=\"openbox-inner\">\n                <div class=\"clearfix\">\n                    <div class=\"col-md-3 ob-greetings ob-child\">\n                        <h2>Congratulations <strong>You Won!</strong></h2>\n                    </div>\n                    <div class=\"col-md-6 main-content ob-child\">\n                        <!-- <div class=\"row upper-c\">\n                            <div class=\"col-sm-12\">\n                                <h1><sup>$</sup>1</h1>\n                            </div>\n                        </div> -->\n                        <div class=\"row lower-c\">\n                            <div class=\"col-sm-12\">\n                                <!--h2>free</h2-->\n                                <h3>boomtag{prize}</h3>\n                                <p style=\"font-style:italic;font-size: 14px;margin-top: 6px;margin-left: 10px;\">Prize Info: Your prize will be emailed to you</p>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"col-md-3 ob-org-name ob-child\">\n                        <h2>boomtag{org_name}</h2>\n                    </div>\n                </div>\n            </div>\n            boomtag{org_links_section}\n        </div>\n    </div>\n</body>\n</html>','@import url(\"boomtag{boomtime_path}/css/bootstrap.css\");   @media(max-width:767px){      body{         background:url(\"boomtag{boomtime_path}/img/gift_foryou/v12/v12-bg.png\") no-repeat scroll #363636 !important;     }      #openbox-main{         /* background: red !important; */         margin-top: 20px !important;         margin-bottom:40px !important;     }      .main-content{         border-top: 2px dotted #5b5e60;         border-bottom: 2px dotted #5b5e60;     }          .ob-greetings h2{         position: static;         top: unset;         -webkit-transform: none;         -ms-transform:  none;         transform:  none;     }     .ob-greetings h2 strong{         font-size:22px !important;      }      .ob-org-name h2{         position: static;         top: unset;         -webkit-transform:  none;         -ms-transform:  none;         transform:  none;     }            }  @media(max-width:767px) and (orientation:portrait){      .ob-greetings h2{         font-size:20px !important;     }     body{         background:url(\"boomtag{boomtime_path}/img/gift_foryou/v12/v12-bg.png\") no-repeat scroll #363636 !important;     }      }  @media(max-width:767px) and (orientation:landscape){  .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12{     float:left !important; }  .col-md-3 {     width: 25% !important; } .col-md-6 {     width: 50% !important; }  .main-content{     border-left: 2px dotted #5b5e60;     border-right: 2px dotted #5b5e60;     border-top: none;     border-bottom: none; }  .ob-greetings h2{     font-size:12px !important;     -ms-word-break: break-all;      word-break: break-all;      word-break: break-word; /* old webkit */  }  .ob-greetings h2 strong{     font-size:16px !important; }  .ob-org-name h2{     font-size:16px !important; }  .main-content .upper-c h1{ font-size:60px !important; }  body{     background: url(\"boomtag{boomtime_path}/img/gift_foryou/v12/v12-bg.png\") repeat scroll center center rgba(0, 0, 0, 0) !important; }  }  @media(min-width:768px){       #openbox-main{         /* background: blue !important; */     }          .main-content{         border-top: 2px dotted #5b5e60;         border-bottom: 2px dotted #5b5e60;     }          #openbox-main{         margin-top: 250px !important;     }        }  @media(min-width:992px){      #openbox-main{         margin-top: 220px !important;     /*    background: pink !important;      */     }          .ob-greetings h2{         font-size:18px !important;     }          .main-content{         border-top: none;         border-bottom: none;         border-left: 2px dotted #5b5e60;         border-right: 2px dotted #5b5e60;     }                }  @media(min-width:1200px){      #openbox-main{       /*  background: green !important;   */     }          .ob-greetings h2{         position: relative;         top: 50%;         margin-top:0;         -webkit-transform: translateY(-50%);         -ms-transform: translateY(-50%);         transform: translateY(-50%);     }      .ob-org-name h2{         position: relative;         top: 50%;         margin-top:0;         -webkit-transform: translateY(-50%);         -ms-transform: translateY(-50%);         transform: translateY(-50%);     }     #openbox-main {         margin-top: 370px !important;     }  }  body, html{     height:100%; }   body{     background: url(\"boomtag{boomtime_path}/img/gift_foryou/v12/v12-bg.png\") repeat scroll center center rgba(0, 0, 0, 0);     color:#00192c; }  #openbox-main{     background: #ffffff;     margin-top: 320px;     padding: 15px; }  #openbox-inner{     border: 2px dotted #5b5e60; }  .ob-greetings{     font-family:\'Montserrat\',sans-serif; }  .ob-greetings h2{     color: #b9b18c;     font-size: 24px;     text-align: center;     text-transform: uppercase; } .ob-greetings h2 strong{     color: #00192c;     font-size: 42px;     font-weight: bold;     display:block; }  .main-content{     font-family: \'Montserrat\',sans-serif;     text-align: center;     text-transform: uppercase; }  .ob-org-name{     font-family: \'Montserrat\',sans-serif;     text-align: center;     text-transform: uppercase; }  .main-content .upper-c h1{     color: #b9b18c;     font-size:120px;     margin-bottom:0;     margin-top:0; } .main-content .upper-c h1 sup{     font-size: 35%; }  .main-content .lower-c h2{     font-size: 40px;     margin: 0; }  .main-content .lower-c h3{     font-size: 32px;     margin: 0; }');
INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('Blue_claim','<!DOCTYPE HTML>\n<html lang=\"en-US\">\n<head>\n  <meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <title>boomtag{title}</title>\n    <style type=\"text/css\">boomtag{main_css}</style>\n    <link type=\"text/css\" rel=\"stylesheet\" href=\"http://fonts.googleapis.com/css?family=Montserrat:400,700\">\n    <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js\"></script>\n    <script>\n        if(!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))) {\n             $(document).ready(function() {\n                var maxHeight = -1;\n\n                $(\'.ob-child\').each(function() {\n                maxHeight = maxHeight > $(this).height() ? maxHeight : $(this).height();\n                });\n\n                $(\'.ob-child\').each(function() {\n                $(this).height(maxHeight);\n                });\n            });\n        }\n    </script>\n</head>\n<body>\n    <div class=\"container\">\n        <div id=\"openbox-main\">\n            <div id=\"openbox-inner\">\n                <div class=\"clearfix\">\n                    <div class=\"col-md-3 ob-greetings ob-child\">\n                        <h2>Congratulations <strong>You Won!</strong></h2>\n                    </div>\n                    <div class=\"col-md-6 main-content ob-child\">\n                        <!-- <div class=\"row upper-c\">\n                            <div class=\"col-sm-12\">\n                                <h1><sup>$</sup>1</h1>\n                            </div>\n                        </div> -->\n                        <div class=\"row lower-c\">\n                            <div class=\"col-sm-12\">\n                                <!--h2>free</h2-->\n                                <h3>boomtag{prize}</h3>\n                                <p style=\"font-style:italic;font-size: 14px;margin-top: 6px;margin-left: 10px;\">Prize Info: Your prize will be emailed to you</p>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"col-md-3 ob-org-name ob-child\">\n                        <h2>boomtag{org_name}</h2>\n                    </div>\n                </div>\n            </div>\n            boomtag{org_links_section}\n        </div>\n    </div>\n</body>\n</html>','@import url(\"boomtag{boomtime_path}/css/bootstrap.css\");\n\n\n@media(max-width:767px){\n\n    body{\n        background:url(\"boomtag{boomtime_path}/img/gift_foryou/v13/v13-bg.png\") no-repeat scroll #2d4a5f !important;\n    }\n\n    #openbox-main{\n        /* background: red !important; */\n        margin-top: 20px !important;\n        margin-bottom:40px !important;\n    }\n\n    .main-content{\n        border-top: 3px solid #7e92a5;\n        border-bottom: 3px solid #7e92a5;\n    }\n    \n    .ob-greetings h2{\n        position: static;\n        top: unset;\n        -webkit-transform: none;\n        -ms-transform:  none;\n        transform:  none;\n    }\n    .ob-greetings h2 strong{\n        font-size:22px !important; \n    }\n\n    .ob-org-name h2{\n        position: static;\n        top: unset;\n        -webkit-transform:  none;\n        -ms-transform:  none;\n        transform:  none;\n    }\n    \n    \n\n}\n\n@media(max-width:767px) and (orientation:portrait){\n\n    .ob-greetings h2{\n        font-size:20px !important;\n    }\n    body{\n        background:url(\"boomtag{boomtime_path}/img/gift_foryou/v13/v13-bg-portrait.png\") no-repeat scroll #2d4a5f !important;\n    }\n    \n}\n\n@media(max-width:767px) and (orientation:landscape){\n\n.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12{\n    float:left !important;\n}\n\n.col-md-3 {\n    width: 25% !important;\n}\n.col-md-6 {\n    width: 50% !important;\n}\n\n.main-content{\n    border-left: 3px solid #7e92a5;\n    border-right: 3px solid #7e92a5;\n    border-top: none;\n    border-bottom: none;\n}\n\n.ob-greetings h2{\n    font-size:12px !important;\n    -ms-word-break: break-all; \n    word-break: break-all; \n    word-break: break-word; /* old webkit */ \n}\n\n.ob-greetings h2 strong{\n    font-size:16px !important;\n}\n\n.ob-org-name h2{\n    font-size:16px !important;\n}\n\n.main-content .upper-c h1{\nfont-size:60px !important;\n}\n\nbody{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v13/v13-bg.png\") repeat scroll center center rgba(0, 0, 0, 0) !important;\n}\n\n}\n\n@media(min-width:768px){\n\n\n    #openbox-main{\n        /* background: blue !important; */\n    }\n    \n    .main-content{\n        border-top: 3px solid #7e92a5;\n        border-bottom: 3px solid #7e92a5;\n    }\n    \n    #openbox-main{\n        margin-top: 250px !important;\n    }\n\n    \n\n}\n\n@media(min-width:992px){\n\n    #openbox-main{\n        margin-top: 220px !important;\n    /*    background: pink !important;      */\n    }\n    \n    .ob-greetings h2{\n        font-size:18px !important;\n    }\n    \n    .main-content{\n        border-top: none;\n        border-bottom: none;\n        border-left: 3px solid #7e92a5;\n        border-right: 3px solid #7e92a5;\n    }\n    \n\n        \n}\n\n@media(min-width:1200px){\n\n    #openbox-main{\n      /*  background: green !important;   */\n    }\n    \n    .ob-greetings h2{\n        position: relative;\n        top: 50%;\n        margin-top:0;\n        -webkit-transform: translateY(-50%);\n        -ms-transform: translateY(-50%);\n        transform: translateY(-50%);\n    }\n\n    .ob-org-name h2{\n        position: relative;\n        top: 50%;\n        margin-top:0;\n        -webkit-transform: translateY(-50%);\n        -ms-transform: translateY(-50%);\n        transform: translateY(-50%);\n    }\n    #openbox-main {\n        margin-top: 370px !important;\n    }\n\n}\n\nbody,\nhtml{\n    height:100%;\n}\n\n\nbody{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v13/v13-bg.png\") repeat scroll center center rgba(0, 0, 0, 0);\n    color:#2d4a5f;\n}\n\n#openbox-main{\n    background: #ffffff;\n    margin-top: 320px;\n    padding: 15px;\n}\n\n#openbox-inner{\n    border: 3px solid #7e92a5;\n}\n\n.ob-greetings{\n    font-family:\'Montserrat\',sans-serif;\n}\n\n.ob-greetings h2{\n    color: #7e92a5;\n    font-size: 24px;\n    text-align: center;\n    text-transform: uppercase;\n}\n.ob-greetings h2 strong{\n    color: #2d4a5f;\n    font-size: 42px;\n    font-weight: bold;\n    display:block;\n}\n\n.main-content{\n    font-family: \'Montserrat\',sans-serif;\n    text-align: center;\n    text-transform: uppercase;\n}\n\n.ob-org-name{\n    font-family: \'Montserrat\',sans-serif;\n    text-align: center;\n    text-transform: uppercase;\n}\n\n.main-content .upper-c h1{\n    color: #7e92a5;\n    font-size:120px;\n    margin-bottom:0;\n    margin-top:0;\n}\n.main-content .upper-c h1 sup{\n    font-size: 35%;\n}\n\n.main-content .lower-c h2{\n    font-size: 40px;\n    margin: 0;\n}\n\n.main-content .lower-c h3{\n    font-size: 32px;\n    margin: 0;\n}');
INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('Blue2_business_rating','<!DOCTYPE HTML>\n<html lang=\"en-US\">\n<head>\n <meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <title>boomtag{title}</title>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800\' rel=\'stylesheet\' type=\'text/css\'>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700\' rel=\'stylesheet\' type=\'text/css\'>\n    <script src=\'https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js\'></script>\n    <script src=\'boomtag{boomtime_path}/script/jquery.raty.min.js\'></script>\n    <style type=\"text/css\">boomtag{main_css}</style>\n</head>\n<body>\n<div id=\"main-wrapper-ribbon\">\n  <div class=\"container\">\n    \n    <div class=\"row\">\n\n        <div id=\"tag-wrapper\" class=\"col-xs-9 col-xs-offset-3\">\n            <div id=\"tag-container\">\n                <div class=\"tag-boarder\">\n                    <div class=\"clearfix\">\n                        <div class=\"reviews noprint\" style=\"padding:5px;\">\n                        boomtag{thank_you_feedback}\n                       <div class=\"inner\">\n                         <h2>Rate Us</h2>\n                          <p>Please take a minute to rate your experience with our business.</p>\n                          <div class=\"stars\"></div>\n                         <span id=\'feedback_err_msg\' style=\'font-size:16px\'></span>\n                          <div id=\"low-rating\">\n                           <form id=\'myform\' name=\'myform\' method=\'POST\' action = \"boomtag{myform_post_url}\" >\n                             <textarea class=\"box\" id=\"review_text\" name=\"review_text\"  name=\"reviewless\" placeholder=\"Your feedback is important to us. We\'d appreciate it if you took a second to let us know how we can serve you better.\"></textarea>\n                             <input type=\'submit\' name=\'submit\' id=\'submit-review\' value=\'Submit\' />\n                           </form>\n                          </div> <!-- #low-rating -->\n                          <div id=\"high-rating\">\n                            <h3>Review Us</h3>\n                            <p>You seem to like us, so we\'d love it if you would write a review on the site of your choice below</p>\n                           <div class=\"one-third-container\">\n                             <div class=\"one-third first\">\n                               <p>boomtag{org_provider_link} \n                              </div>\n                            </div>\n                            <p>Select one of the links above to post a review. Thanks for talking about us!</p>\n                         </div> <!-- #high-rating -->\n                        </div>\n                       </div>\n                    </div>\n                </div>    \n            </div>\n        </div>\n    </div>\n    \n    </div>\n</div>\n<script type=\"text/javascript\">\n  function record_data(url_link)\n  {\n   $.ajax({\n        url: url_link + \'&s=\' + $(\'#score\').val(),\n        type: \"GET\",\n        complete: function(data){\n         if(data){\n           for(var x=1;x<=$(\'#score\').val();x++)\n             $(\'.stars img[alt=\"\'+x+\'\"]\').off();\n         }\n       }\n   });\n }\n $(function() { \n   $(\'.stars\').raty({\n      score: 3,\n     size: 45,\n     path: \'boomtag{boomtime_path}/img/jslot_images\',\n      width: false\n    });\n   function handler(e){\n        e.preventDefault();\n       $(this).unbind(\'click\');\n        setTimeout(function(){$(\'#submit-review\').click(handler)}, 500)\n   }\n   $(\'#submit-review\').click(handler);\n   $(\'#low-rating, #high-rating\').hide();\n    $(\'.stars img[alt=\"1\"], .stars img[alt=\"2\"], .stars img[alt=\"3\"]\').click(function() {\n     $(\'#high-rating\').fadeOut(function() {\n        $(\'#low-rating\').fadeIn();\n      });\n   });\n   $(\'.stars img[alt=\"4\"]\').click(function() {\n     $(\'#low-rating\').fadeOut();\n     $(\'#high-rating\').fadeIn();\n   });\n   \n    $(\'.stars img[alt=\"5\"]\').click(function() {\n     $(\'#low-rating\').fadeOut();\n     $(\'#high-rating\').fadeIn();\n   });\n   boomtag{review_client_check}\n    $(\'#review_text\').val(\'\');\n    $(\"#submit-review\").click(function() {\n      $(\"#feedback_err_msg\").html(\'\');\n      if(!$(\'#review_text\').val())\n      {\n       $(\"#feedback_err_msg\").css(\'color\',\'red\');\n        $(\"#feedback_err_msg\").html(\'Please provide your feedback message.\');\n       return false;\n     }\n     else\n       {\n        $.ajax({\n          url: \'/business-review?cj=boomtag{client_journal}&s=\' + $(\'#score\').val(),\n          type: \"POST\",\n         dataType: \"json\",\n         data:{\n              submit:1,\n             review_text: $(\'#review_text\').val()\n          },\n          complete: function(data){\n             if(data) window.location.reload();\n          }\n       });\n      }   \n   });\n });\n</script>    \n</body>\n</html>','@import url(\"boomtag{boomtime_path}/css/bootstrap.css\");\n\n\n@media(max-width:767px){\n    #tag-wrapper{\n        margin-top:40px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v10/ribbon-bg.png\") no-repeat scroll -60px top / 100%  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 14px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 12px !important;\n        word-break: break-all;\n    }\n    \n    .recipient-container h2{\n        font-size:13px !important;\n    }\n}\n\n\n\n@media(max-width:767px) and (orientation:portrait){\n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v10/ribbon-bg.png\") no-repeat scroll -40px top / cover  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-wrapper{\n        width:100% !important;\n        margin-left:0 !important;\n    }\n    \n    #tag-wrapper{\n        margin-top:200px;\n    }\n    \n}\n\n@media(min-width:768px){\n    #tag-wrapper{\n        margin-top:250px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v10/ribbon-bg.png\") no-repeat scroll left top rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 28px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n}\n\n@media(min-width:992px){\n    #tag-wrapper{\n        margin-top:300px;       \n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v10/ribbon-bg.png\") no-repeat scroll left top rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 34px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 24px !important;\n        word-break: break-all;\n    }\n    \n    \n}\n\n@media(min-width:1200px){\n    #tag-wrapper{\n        margin-top:560px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v10/ribbon-bg.png\") no-repeat scroll left top / cover  rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 26px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n\n}\n\n    body,html{\n        height:100%;\n    }\n\nbody {\n  background: url(\"boomtag{boomtime_path}/img/gift_foryou/v10/proffesional-bg-pattern.png\") repeat scroll right top / cover  #2d4a5f;\n}\n\n#main-wrapper-ribbon{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v10/ribbon-bg.png\") no-repeat scroll left top / cover  rgba(0, 0, 0, 0);\n    height:100%;\n}\n\n#tag-container{\n    background: #FFF;\n    padding: 10px;\n}\n\n\n.recipient-container{\n    padding: 5px;\n}\n\n.recipient-container h2{\n    margin-top:10px;\n}\n\n#tag-org-details{\n    border-top:3px solid #7fd2ea;\n}\n\n.tag-orgcontent-container{\n\n    padding: 15px;\n}\n\n.tag-orgname-container{\n    padding: 10px 25px;\n}\n\n.prof-header-border{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v10/header-border.png\") repeat scroll 0 0 rgba(0, 0, 0, 0);\n    height: 7px;\n    margin-bottom: 10px;\n    width: 100%;\n}\n\n.prof-form-container .form-control{\n\nbackground-image: -o-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -moz-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -webkit-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -ms-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: linear-gradient(to bottom, #F5F5F5 0%, #FFFFFF 100%);\n\n    border-radius: 0;\n    box-shadow: 0 0 3px #d3d3d3 inset;\n    font-family: \'Open Sans\', sans-serif;\n    font-size: 14px;\n    text-transform: uppercase;\n    \n}\n\n.prof-form-container .btn{\n\nbackground: #327ec1; /* Old browsers */\n    \n    color:#FFF;\nborder:none;\n    border-radius: 0;\n\n    font-family: \'Open Sans Condensed\',sans-serif;\n    font-weight: bold;\n    text-transform: uppercase;\n}\n\n.tag-boarder{\n border: 3px solid #7fd2ea;\n}\n\n.prof-form-container .btn:hover{\n\nbackground: #7fd2ea; /* Old browsers */\n\n\n}\n\n\n.tag-orgname-container,\n.tag-orgcontent-container{\n    text-align:center;\n    font-family: \'Open Sans\', sans-serif;\n}\n\n.recipient-container h2{\n    color: #327ec1;\n    font-family: \'Open Sans\',sans-serif;\n    font-size: 20px;\n    font-weight: 800;\n    text-align: center;\n    text-transform: uppercase;\n}\n\n#tag-to,\n#tag-from{\n    color: #007ca7;\n    font-size: 18px;\n}\n\n.tag-span-to-lbl,\n.tag-span-from-label{\n    font-weight: 800;\n}\n\n.tag-orgcontent a{\n    color: #007ca7;\n}\n\n.tag-orgcontent{\n    font-weight:600;\n}\n\n.tag-orgname{\n    color:#327ec1;\n    font-weight:600;\n}\n\n#jackpot {\n    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.5);\n    color: #414142;\n    display: none;\n    float: left;\n    font-weight: 400;\n    margin: 0 auto;\n    max-width: 408px;\n    min-height: 155px;\n    padding: 1em 2em 0;\n    position: absolute;\n    right: 0;\n    text-align: center;\n    bottom: -50px;\n    vertical-align: middle;\n    width: 100%;\n    z-index: 10;\n}\n#jackpot h1 {\n    color: #cd2032;\n}\n#jackpot p {\n    margin-bottom: 0;\n}\n\ntextarea {\n    font-size: 0.8em;\n    height: 90px;\n    padding: 1em;\n    width: 100%;\n    border: 1px solid #aba8a8;\n    box-shadow: 0 0 2px #eee inset;\n    color: #414142;\n    margin: 1em 0;\n}\ninput[type=\"submit\"], #control {\n    background: none repeat scroll 0 0 #cd2032;\n    border: 0 none;\n    color: #fff;\n    float: right;\n    font-size: 1em;\n    width: 132px;\n    height: 42px;\n    margin: 1em 0;\n    padding: 0.5em 1em;\n    box-shadow: 0 0 2px #eee inset;\n}\n.stars {\n    float: left;\n    margin-bottom: 1em;\n    width: 100%;\n}');
INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('Brown_business_rating','<!DOCTYPE HTML>\n<html lang=\"en-US\">\n<head>\n <meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <title>boomtag{title}</title>\n    <link href=\'http://fonts.googleapis.com/css?family=Bree+Serif\' rel=\'stylesheet\' type=\'text/css\'>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700\' rel=\'stylesheet\' type=\'text/css\'>\n    <script src=\'https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js\'></script>\n    <script src=\'boomtag{boomtime_path}/script/jquery.raty.min.js\'></script>\n    <style type=\"text/css\">boomtag{main_css}</style>\n</head>\n<body>\n<div id=\"ribbon-1\"></div>\n  <div class=\"container\">\n    \n    <div class=\"row\">\n\n        <div id=\"tag-wrapper\" class=\"col-xs-9\">\n            <div id=\"tag-container\">\n                <div class=\"tag-boarder\">\n                    <div class=\"clearfix\">\n                        <div class=\"reviews noprint\" style=\"padding:5px;\">\n                            boomtag{thank_you_feedback}\n                            <div class=\"inner\">\n                                <h2>Rate Us</h2>\n                                <p>Please take a minute to rate your experience with our business.</p>\n                                <div class=\"stars\"></div>\n                                <span id=\'feedback_err_msg\' style=\'font-size:16px\'></span>\n                                <div id=\"low-rating\">\n                                    <form id=\'myform\' name=\'myform\' method=\'POST\' action = \"boomtag{myform_post_url}\" >\n                                        <textarea class=\"box\" id=\"review_text\" name=\"review_text\"  name=\"reviewless\" placeholder=\"Your feedback is important to us. We\'d appreciate it if you took a second to let us know how we can serve you better.\"></textarea>\n                                        <input type=\'submit\' name=\'submit\' id=\'submit-review\' value=\'Submit\' />\n                                    </form>\n                                 </div> <!-- #low-rating -->\n                                <div id=\"high-rating\">\n                                    <h3>Review Us</h3>\n                                    <p>You seem to like us, so we\'d love it if you would write a review on the site of your choice below</p>\n                                    <div class=\"one-third-container\">\n                                        <div class=\"one-third first\">\n                                            <p>boomtag{org_provider_link} \n                                        </div>\n                                    </div>\n                                    <p>Select one of the links above to post a review. Thanks for talking about us!</p>\n                                </div> <!-- #high-rating -->\n                            </div>\n                        </div>\n                    </div>\n                </div>    \n            </div>\n        </div>\n    </div>\n    \n    </div>\n    <script type=\"text/javascript\">\n        function record_data(url_link)\n        {\n            $.ajax({\n                    url: url_link + \'&s=\' + $(\'#score\').val(),\n                    type: \"GET\",\n                    complete: function(data){\n                        if(data){\n                            for(var x=1;x<=$(\'#score\').val();x++)\n                                $(\'.stars img[alt=\"\'+x+\'\"]\').off();\n                        }\n                    }\n            });\n        }\n        $(function() { \n            $(\'.stars\').raty({\n                score: 3,\n                size: 45,\n                path: \'boomtag{boomtime_path}/img/jslot_images\',\n                width: false\n            });\n            function handler(e){\n                e.preventDefault();\n                $(this).unbind(\'click\');\n                setTimeout(function(){$(\'#submit-review\').click(handler)}, 500)\n            }\n            $(\'#submit-review\').click(handler);\n            $(\'#low-rating, #high-rating\').hide();\n            $(\'.stars img[alt=\"1\"], .stars img[alt=\"2\"], .stars img[alt=\"3\"]\').click(function() {\n                $(\'#high-rating\').fadeOut(function() {\n                    $(\'#low-rating\').fadeIn();\n                });\n            });\n            $(\'.stars img[alt=\"4\"]\').click(function() {\n                $(\'#low-rating\').fadeOut();\n                $(\'#high-rating\').fadeIn();\n            });\n            \n            $(\'.stars img[alt=\"5\"]\').click(function() {\n                $(\'#low-rating\').fadeOut();\n                $(\'#high-rating\').fadeIn();\n            });\n            boomtag{review_client_check}\n            $(\'#review_text\').val(\'\');\n            $(\"#submit-review\").click(function() {\n                $(\"#feedback_err_msg\").html(\'\');\n                if(!$(\'#review_text\').val())\n                {\n                    $(\"#feedback_err_msg\").css(\'color\',\'red\');\n                    $(\"#feedback_err_msg\").html(\'Please provide your feedback message.\');\n                    return false;\n                }\n                else\n                 {\n                    $.ajax({\n                        url: \'/business-review?cj=boomtag{client_journal}&s=\' + $(\'#score\').val(),\n                        type: \"POST\",\n                        dataType: \"json\",\n                        data:{\n                                submit:1,\n                                review_text: $(\'#review_text\').val()\n                        },\n                        complete: function(data){\n                                if(data) window.location.reload();\n                        }\n                    });\n                 }   \n            });\n        });\n    </script>\n</body>\n</html>','@import url(\"boomtag{boomtime_path}/css/bootstrap.css\");\n\n\n@media(max-width:767px){\n    #tag-wrapper{\n        margin-top:40px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v11/ribbon-bg.png\") no-repeat scroll -50px -50px / 150%  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 14px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 12px !important;\n        word-break: break-all;\n    }\n    \n    .recipient-container h2{\n        font-size:13px !important;\n    }\n}\n\n\n\n@media(max-width:767px) and (orientation:portrait){\n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v11/ribbon-bg.png\") no-repeat scroll -90px top / cover  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-wrapper{\n        width:100% !important;\n        margin-left:0 !important;\n    }\n    \n    #tag-wrapper{\n        margin-top:150px;\n    }\n    \n}\n\n@media(min-width:768px){\n    #tag-wrapper{\n        margin-top:250px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v11/ribbon-bg.png\") no-repeat scroll center center / 150% rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 28px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n}\n\n@media(min-width:992px){\n    #tag-wrapper{\n        margin-top:300px;       \n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v11/ribbon-bg.png\") no-repeat scroll center center rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 34px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 24px !important;\n        word-break: break-all;\n    }\n    \n    \n}\n\n@media(min-width:1200px){\n    #tag-wrapper{\n        margin-top:560px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v11/ribbon-bg.png\") no-repeat scroll center center / cover  rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 26px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n\n}\n\n    body,html{\n        height:100%;\n    }\n\nbody{\n    background:url(\'boomtag{boomtime_path}/img/gift_foryou/v11/v1-bg-pattern.png\');\n}\n\n#ribbon-1{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v11/ribbon-top.png\") no-repeat scroll left top / contain  rgba(0, 0, 0, 0);\n    height: 70%;\n    position: absolute;\n    right: 0;\n    top: 0;\n    width: 30%;\n}\n\n\n#tag-container {\n    background: none repeat scroll 0 0 #cc3927;\n    padding: 10px;\n}\n\n.tag-boarder{\n    border: 4px solid #3c2314;\n}\n\n.recipient-container{\n    padding: 5px;\n}\n\n.recipient-container h2{\n    margin-top:10px;\n}\n\n.tag-orgcontent-container{\n    padding: 15px;\n}\n\n.tag-orgname-container{\n    padding: 10px 25px;\n}\n\n.v1-header-border{\n    background:#3c2314;\n    height: 4px;\n    margin-bottom: 10px;\n    width: 100%;\n}\n\n.v1-form-container .form-control{\nbackground-image: -o-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -moz-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -webkit-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -ms-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: linear-gradient(to bottom, #F5F5F5 0%, #FFFFFF 100%);\n    border-radius: 0;\n    box-shadow: 0 0 3px #d3d3d3 inset;\n    font-family: \'Open Sans Condensed\', sans-serif;\n    font-size: 14px;\n    text-transform: uppercase;\n}\n\n.v1-form-container .btn{\nbackground: none repeat scroll 0 0 #b1463b;\nborder: 1px solid #9d3b30;\nborder-radius: 0;\nfont-family: \"Open Sans Condensed\",sans-serif;\nfont-weight: bold;\ntext-transform: uppercase;\n}\n\n.v1-form-container .btn:hover{\nbackground: none repeat scroll 0 0 #CF6458;\n}\n\n.tag-orgname-container,\n.tag-orgcontent-container{\n    text-align:center;\n    font-family: \'Open Sans Condensed\', sans-serif;\n}\n\n\n.recipient-container h2{\n    color: #FFFFFF;\n    font-family: \'Open Sans Condensed\', sans-serif;\n    font-size: 20px;\n    text-align: center;\n    font-weight:bold;\n    text-transform: uppercase;\n}\n\n\n\n#tag-to,\n#tag-from{\n    color: #FFFFFF;\n    font-size: 18px;\n}\n\n.tag-span-to-lbl,\n.tag-span-from-label{\n    font-weight: 800;\n}\n\n.tag-orgcontent a{\n    color: #FFFFFF;\n}\n\n.tag-orgcontent{\n    font-weight:600;\n}\n\n.tag-orgname{\n    color:#FFF;\n    font-weight:600;\n}\n\n#jackpot {\n    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.5);\n    color: #414142;\n    display: none;\n    float: left;\n    font-weight: 400;\n    margin: 0 auto;\n    max-width: 408px;\n    min-height: 155px;\n    padding: 1em 2em 0;\n    position: absolute;\n    right: 0;\n    text-align: center;\n    bottom: -50px;\n    vertical-align: middle;\n    width: 100%;\n    z-index: 10;\n}\n#jackpot h1 {\n    color: #cd2032;\n}\n#jackpot p {\n    margin-bottom: 0;\n}\n\ntextarea {\n    font-size: 0.8em;\n    height: 90px;\n    padding: 1em;\n    width: 100%;\n    border: 1px solid #aba8a8;\n    box-shadow: 0 0 2px #eee inset;\n    color: #414142;\n    margin: 1em 0;\n}\ninput[type=\"submit\"], #control {\n    background: none repeat scroll 0 0 #cd2032;\n    border: 0 none;\n    color: #fff;\n    float: right;\n    font-size: 1em;\n    width: 132px;\n    height: 42px;\n    margin: 1em 0;\n    padding: 0.5em 1em;\n    box-shadow: 0 0 2px #eee inset;\n}\n.stars {\n    float: left;\n    margin-bottom: 1em;\n    width: 100%;\n}');
INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('Wrench_business_rating','<!DOCTYPE HTML>\n<html lang=\"en-US\">\n<head>\n  <meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <title>boomtag{title}</title>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800\' rel=\'stylesheet\' type=\'text/css\'>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700\' rel=\'stylesheet\' type=\'text/css\'>\n    <script src=\'https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js\'></script>\n    <script src=\'boomtag{boomtime_path}/script/jquery.raty.min.js\'></script>\n    <style type=\"text/css\">boomtag{main_css}</style>\n</head>\n<body>\n<div id=\"main-wrapper-ribbon\">\n  <div class=\"container\">\n    \n    <div class=\"row\">\n\n        <div id=\"tag-wrapper\" class=\"col-xs-9 col-xs-offset-3\">\n            <div id=\"tag-container\">\n                <div class=\"tag-boarder\">\n                    <div class=\"clearfix\">\n                        <div class=\"reviews noprint\" style=\"padding:5px;\">\n                            boomtag{thank_you_feedback}\n                            <div class=\"inner\">\n                                <h2>Rate Us</h2>\n                                <p>Please take a minute to rate your experience with our business.</p>\n                                <div class=\"stars\"></div>\n                                <span id=\'feedback_err_msg\' style=\'font-size:16px\'></span>\n                                <div id=\"low-rating\">\n                                    <form id=\'myform\' name=\'myform\' method=\'POST\' action = \"boomtag{myform_post_url}\" >\n                                        <textarea class=\"box\" id=\"review_text\" name=\"review_text\"  name=\"reviewless\" placeholder=\"Your feedback is important to us. We\'d appreciate it if you took a second to let us know how we can serve you better.\"></textarea>\n                                        <input type=\'submit\' name=\'submit\' id=\'submit-review\' value=\'Submit\' />\n                                    </form>\n                                 </div> <!-- #low-rating -->\n                                <div id=\"high-rating\">\n                                    <h3>Review Us</h3>\n                                    <p>You seem to like us, so we\'d love it if you would write a review on the site of your choice below</p>\n                                    <div class=\"one-third-container\">\n                                        <div class=\"one-third first\">\n                                            <p>boomtag{org_provider_link} \n                                        </div>\n                                    </div>\n                                    <p>Select one of the links above to post a review. Thanks for talking about us!</p>\n                                </div> <!-- #high-rating -->\n                            </div>\n                         </div>\n                    </div>\n                </div>    \n            </div>\n        </div>\n    </div>\n    \n    </div>\n</div>\n    <script type=\"text/javascript\">\n        function record_data(url_link)\n        {\n            $.ajax({\n                    url: url_link + \'&s=\' + $(\'#score\').val(),\n                    type: \"GET\",\n                    complete: function(data){\n                        if(data){\n                            for(var x=1;x<=$(\'#score\').val();x++)\n                                $(\'.stars img[alt=\"\'+x+\'\"]\').off();\n                        }\n                    }\n            });\n        }\n        $(function() { \n            $(\'.stars\').raty({\n                score: 3,\n                size: 45,\n                path: \'boomtag{boomtime_path}/img/jslot_images\',\n                width: false\n            });\n            function handler(e){\n                e.preventDefault();\n                $(this).unbind(\'click\');\n                setTimeout(function(){$(\'#submit-review\').click(handler)}, 500)\n            }\n            $(\'#submit-review\').click(handler);\n            $(\'#low-rating, #high-rating\').hide();\n            $(\'.stars img[alt=\"1\"], .stars img[alt=\"2\"], .stars img[alt=\"3\"]\').click(function() {\n                $(\'#high-rating\').fadeOut(function() {\n                    $(\'#low-rating\').fadeIn();\n                });\n            });\n            $(\'.stars img[alt=\"4\"]\').click(function() {\n                $(\'#low-rating\').fadeOut();\n                $(\'#high-rating\').fadeIn();\n            });\n            \n            $(\'.stars img[alt=\"5\"]\').click(function() {\n                $(\'#low-rating\').fadeOut();\n                $(\'#high-rating\').fadeIn();\n            });\n            boomtag{review_client_check}\n            $(\'#review_text\').val(\'\');\n            $(\"#submit-review\").click(function() {\n                $(\"#feedback_err_msg\").html(\'\');\n                if(!$(\'#review_text\').val())\n                {\n                    $(\"#feedback_err_msg\").css(\'color\',\'red\');\n                    $(\"#feedback_err_msg\").html(\'Please provide your feedback message.\');\n                    return false;\n                }\n                else\n                 {\n                    $.ajax({\n                        url: \'/business-review?cj=boomtag{client_journal}&s=\' + $(\'#score\').val(),\n                        type: \"POST\",\n                        dataType: \"json\",\n                        data:{\n                                submit:1,\n                                review_text: $(\'#review_text\').val()\n                        },\n                        complete: function(data){\n                                if(data) window.location.reload();\n                        }\n                    });\n                 }   \n            });\n        });\n    </script>    \n</body>\n</html>','@import url(\"boomtag{boomtime_path}/css/bootstrap.css\");\n\n\n@media(max-width:767px){\n    #tag-wrapper{\n        margin-top:40px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v12/ribbon-bg.png\") no-repeat scroll left center / 150%  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 14px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 12px !important;\n        word-break: break-all;\n    }\n    \n    .recipient-container h2{\n        font-size:13px !important;\n    }\n}\n\n\n\n@media(max-width:767px) and (orientation:portrait){\n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v12/ribbon-bg.png\") no-repeat scroll left top / cover  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-wrapper{\n        width:100% !important;\n        margin-left:0 !important;\n    }\n    \n    #tag-wrapper{\n        margin-top:80px;\n    }\n    \n}\n\n@media(min-width:768px){\n    #tag-wrapper{\n        margin-top:250px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v12/ribbon-bg.png\") no-repeat scroll left top rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 28px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n}\n\n@media(min-width:992px){\n    #tag-wrapper{\n        margin-top:300px;       \n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v12/ribbon-bg.png\") no-repeat scroll left top rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 34px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 24px !important;\n        word-break: break-all;\n    }\n    \n    \n}\n\n@media(min-width:1200px){\n    #tag-wrapper{\n        margin-top:560px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v12/ribbon-bg.png\") no-repeat scroll left top / contain  rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 26px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n\n}\n\n    body,html{\n        height:100%;\n    }\n\nbody {\n  background: url(\"boomtag{boomtime_path}/img/gift_foryou/v12/proffesional-bg-pattern.png\") repeat scroll 0 0 rgba(0, 0, 0, 0);\n}\n\n#main-wrapper-ribbon{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v12/ribbon-bg.png\") no-repeat scroll left top / contain  rgba(0, 0, 0, 0);\n    height:100%;\n}\n\n#tag-container{\n    background: none repeat scroll 0 0 #fff;\n    padding: 10px;\n}\n\n.v1-header-border{\n    height:1px;\n    border-top: 1px dotted #5b5e60;\n    margin-bottom:15px;\n}\n\n.v2-header-border{\n    height:1px;\n    border-top: 1px dotted #5b5e60;\n}\n\n.recipient-container{\n    padding: 5px;\n}\n\n.recipient-container h2{\n    margin-top:10px;\n}\n\n.tag-orgcontent-container{\n    padding: 15px;\n}\n\n.tag-orgname-container{\n    padding: 10px 25px;\n}\n\n.prof-header-border{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v12/header-border.png\") repeat scroll 0 0 rgba(0, 0, 0, 0);\n    height: 7px;\n    margin-bottom: 10px;\n    width: 100%;\n}\n\n.prof-form-container .form-control{\n\nbackground-image: -o-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -moz-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -webkit-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -ms-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: linear-gradient(to bottom, #F5F5F5 0%, #FFFFFF 100%);\n\n    border-radius: 0;\n    box-shadow: 0 0 3px #d3d3d3 inset;\n    font-family: \'Open Sans\', sans-serif;\n    font-size: 14px;\n    text-transform: uppercase;\n    \n}\n\n.prof-form-container .btn{\n    background: #b9b18c; /* Old browsers */\n    color:#FFF;\n    border:none;\n    border-radius: 0;\n    font-family: \'Open Sans Condensed\',sans-serif;\n    font-weight: bold;\n    text-transform: uppercase;\n}\n\n.prof-form-container .btn:hover{\n    background: none repeat scroll 0 0 #111111; /* Old browsers */\n}\n\n\n.tag-orgname-container,\n.tag-orgcontent-container{\n    text-align:center;\n    font-family: \'Open Sans\', sans-serif;\n}\n\n.recipient-container h2{\n    color: #111111;\n    font-family: \'Open Sans Condensed\', sans-serif;\n    font-size: 20px;\n    font-weight: 800;\n    text-align: center;\n    text-transform: uppercase;\n}\n\n#tag-to,\n#tag-from{\n    color: #007ca7;\n    font-size: 18px;\n}\n\n.tag-span-to-lbl,\n.tag-span-from-label{\n    font-weight: 800;\n}\n\n.tag-orgcontent a{\n    color: #007ca7;\n}\n\n.tag-orgcontent{\n    font-weight:600;\n}\n\n.tag-orgname{\n    color:#111111;\n    font-weight:600;\n}\n\n#jackpot {\n    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.5);\n    color: #414142;\n    display: none;\n    float: left;\n    font-weight: 400;\n    margin: 0 auto;\n    max-width: 408px;\n    min-height: 155px;\n    padding: 1em 2em 0;\n    position: absolute;\n    right: 0;\n    text-align: center;\n    bottom: -50px;\n    vertical-align: middle;\n    width: 100%;\n    z-index: 10;\n}\n#jackpot h1 {\n    color: #cd2032;\n}\n#jackpot p {\n    margin-bottom: 0;\n}\n\ntextarea {\n    font-size: 0.8em;\n    height: 90px;\n    padding: 1em;\n    width: 100%;\n    border: 1px solid #aba8a8;\n    box-shadow: 0 0 2px #eee inset;\n    color: #414142;\n    margin: 1em 0;\n}\ninput[type=\"submit\"], #control {\n    background: none repeat scroll 0 0 #cd2032;\n    border: 0 none;\n    color: #fff;\n    float: right;\n    font-size: 1em;\n    width: 132px;\n    height: 42px;\n    margin: 1em 0;\n    padding: 0.5em 1em;\n    box-shadow: 0 0 2px #eee inset;\n}\n.stars {\n    float: left;\n    margin-bottom: 1em;\n    width: 100%;\n}');
INSERT INTO `gift_screen` (`id`,`html`,`css`) VALUES ('blue_business_rating','<!DOCTYPE HTML>\n<html lang=\"en-US\">\n<head>\n  <meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <title>boomtag{title}</title>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800\' rel=\'stylesheet\' type=\'text/css\'>\n    <link href=\'http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700\' rel=\'stylesheet\' type=\'text/css\'>\n    <script src=\'https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js\'></script>\n    <script src=\'boomtag{boomtime_path}/script/jquery.raty.min.js\'></script>\n    <style type=\"text/css\">boomtag{main_css}</style>\n</head>\n<body>\n<div id=\"main-wrapper-ribbon\">\n  <div class=\"container\">\n    \n    <div class=\"row\">\n\n        <div id=\"tag-wrapper\" class=\"col-xs-9 col-xs-offset-3\">\n            <div id=\"tag-container\">\n                <div class=\"tag-boarder\">\n                    <div class=\"clearfix\">\n                        <div class=\"reviews noprint\" style=\"padding:5px;\">\n                            boomtag{thank_you_feedback}\n                            <div class=\"inner\">\n                                <h2>Rate Us</h2>\n                                <p>Please take a minute to rate your experience with our business.</p>\n                                <div class=\"stars\"></div>\n                                <span id=\'feedback_err_msg\' style=\'font-size:16px\'></span>\n                                <div id=\"low-rating\">\n                                    <form id=\'myform\' name=\'myform\' method=\'POST\' action = \"boomtag{myform_post_url}\" >\n                                        <textarea class=\"box\" id=\"review_text\" name=\"review_text\"  name=\"reviewless\" placeholder=\"Your feedback is important to us. We\'d appreciate it if you took a second to let us know how we can serve you better.\"></textarea>\n                                        <input type=\'submit\' name=\'submit\' id=\'submit-review\' value=\'Submit\' />\n                                    </form>\n                                 </div> <!-- #low-rating -->\n                                <div id=\"high-rating\">\n                                    <h3>Review Us</h3>\n                                    <p>You seem to like us, so we\'d love it if you would write a review on the site of your choice below</p>\n                                    <div class=\"one-third-container\">\n                                        <div class=\"one-third first\">\n                                            <p>boomtag{org_provider_link} \n                                        </div>\n                                    </div>\n                                    <p>Select one of the links above to post a review. Thanks for talking about us!</p>\n                                </div> <!-- #high-rating -->\n                            </div>\n                         </div>\n                    </div>\n                </div>    \n            </div>\n        </div>\n    </div>\n    \n    </div>\n</div>\n<script type=\"text/javascript\">\n    function record_data(url_link)\n    {\n        $.ajax({\n                url: url_link + \'&s=\' + $(\'#score\').val(),\n                type: \"GET\",\n                complete: function(data){\n                    if(data){\n                        for(var x=1;x<=$(\'#score\').val();x++)\n                            $(\'.stars img[alt=\"\'+x+\'\"]\').off();\n                    }\n                }\n        });\n    }\n    $(function() { \n        $(\'.stars\').raty({\n            score: 3,\n            size: 45,\n            path: \'boomtag{boomtime_path}/img/jslot_images\',\n            width: false\n        });\n        function handler(e){\n            e.preventDefault();\n            $(this).unbind(\'click\');\n            setTimeout(function(){$(\'#submit-review\').click(handler)}, 500)\n        }\n        $(\'#submit-review\').click(handler);\n        $(\'#low-rating, #high-rating\').hide();\n        $(\'.stars img[alt=\"1\"], .stars img[alt=\"2\"], .stars img[alt=\"3\"]\').click(function() {\n            $(\'#high-rating\').fadeOut(function() {\n                $(\'#low-rating\').fadeIn();\n            });\n        });\n        $(\'.stars img[alt=\"4\"]\').click(function() {\n            $(\'#low-rating\').fadeOut();\n            $(\'#high-rating\').fadeIn();\n        });\n        \n        $(\'.stars img[alt=\"5\"]\').click(function() {\n            $(\'#low-rating\').fadeOut();\n            $(\'#high-rating\').fadeIn();\n        });\n        boomtag{review_client_check}\n        $(\'#review_text\').val(\'\');\n        $(\"#submit-review\").click(function() {\n            $(\"#feedback_err_msg\").html(\'\');\n            if(!$(\'#review_text\').val())\n            {\n                $(\"#feedback_err_msg\").css(\'color\',\'red\');\n                $(\"#feedback_err_msg\").html(\'Please provide your feedback message.\');\n                return false;\n            }\n            else\n             {\n                $.ajax({\n                    url: \'/business-review?cj=boomtag{client_journal}&s=\' + $(\'#score\').val(),\n                    type: \"POST\",\n                    dataType: \"json\",\n                    data:{\n                            submit:1,\n                            review_text: $(\'#review_text\').val()\n                    },\n                    complete: function(data){\n                            if(data) window.location.reload();\n                    }\n                });\n             }   \n        });\n    });\n</script>    \n</body>\n</html>','@import url(\"boomtag{boomtime_path}/css/bootstrap.css\");\n\n\n@media(max-width:767px){\n    #tag-wrapper{\n        margin-top:40px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v13/ribbon-bg.png\") no-repeat scroll -120px top / 150%  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 14px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 12px !important;\n        word-break: break-all;\n    }\n    \n    .recipient-container h2{\n        font-size:13px !important;\n    }\n}\n\n\n\n@media(max-width:767px) and (orientation:portrait){\n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v13/ribbon-bg.png\") no-repeat scroll -50px top / cover  rgba(0, 0, 0, 0) !important;\n        height:100%;\n    }\n    \n    #tag-wrapper{\n        width:100% !important;\n        margin-left:0 !important;\n    }\n    \n    #tag-wrapper{\n        margin-top:210px;\n    }\n    \n}\n\n@media(min-width:768px){\n    #tag-wrapper{\n        margin-top:250px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v13/ribbon-bg.png\") no-repeat scroll left top rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 28px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n}\n\n@media(min-width:992px){\n    #tag-wrapper{\n        margin-top:300px;       \n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v13/ribbon-bg.png\") no-repeat scroll left top rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 34px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 24px !important;\n        word-break: break-all;\n    }\n    \n    \n}\n\n@media(min-width:1200px){\n    #tag-wrapper{\n        margin-top:560px;\n    }\n    \n    #main-wrapper-ribbon{\n        background: url(\"boomtag{boomtime_path}/img/gift_foryou/v13/ribbon-bg.png\") no-repeat scroll left top / cover  rgba(0, 0, 0, 0) !important;\n    }\n    \n    #tag-to,\n    #tag-from{\n        font-size: 26px !important;\n    }\n    \n    #tag-org-details{\n        font-size: 18px !important;\n        word-break: break-all;\n    }\n\n}\n\n    body,html{\n        height:100%;\n    }\n\nbody{\n    background:url(\'boomtag{boomtime_path}/img/gift_foryou/v13/proffesional-bg-pattern.png\');\n}\n\n#main-wrapper-ribbon{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v13/ribbon-bg.png\") no-repeat scroll left top / cover  rgba(0, 0, 0, 0);\n    height:100%;\n}\n\n#tag-container{\n    background: #FFF;\n    padding: 10px;\n}\n\n\n.recipient-container{\n    padding: 5px;\n}\n\n.recipient-container h2{\n    margin-top:10px;\n}\n\n#tag-org-details{\n    border-top:3px solid #7e92a5;\n}\n\n.tag-orgcontent-container{\n\n    padding: 15px;\n}\n\n.tag-orgname-container{\n    padding: 10px 25px;\n}\n\n.prof-header-border{\n    background: url(\"boomtag{boomtime_path}/img/gift_foryou/v13/header-border.png\") repeat scroll 0 0 rgba(0, 0, 0, 0);\n    height: 7px;\n    margin-bottom: 10px;\n    width: 100%;\n}\n\n.prof-form-container .form-control{\n\nbackground-image: -o-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -moz-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -webkit-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: -ms-linear-gradient(bottom, #F5F5F5 0%, #FFFFFF 100%);\nbackground-image: linear-gradient(to bottom, #F5F5F5 0%, #FFFFFF 100%);\n\n    border-radius: 0;\n    box-shadow: 0 0 3px #d3d3d3 inset;\n    font-family: \'Open Sans\', sans-serif;\n    font-size: 14px;\n    text-transform: uppercase;\n    \n}\n\n.prof-form-container .btn{\n\nbackground: #2d4a5f; /* Old browsers */\n    \n    color:#FFF;\nborder:none;\n    border-radius: 0;\n\n    font-family: \'Open Sans Condensed\',sans-serif;\n    font-weight: bold;\n    text-transform: uppercase;\n}\n\n.tag-boarder{\n border: 3px solid #7e92a5;\n}\n\n.prof-form-container .btn:hover{\n\nbackground: #7e92a5; /* Old browsers */\n\n\n}\n\n\n.tag-orgname-container,\n.tag-orgcontent-container{\n    text-align:center;\n    font-family: \'Open Sans\', sans-serif;\n}\n\n.recipient-container h2{\n    color: #2d4a5f;\n    font-family: \'Open Sans\',sans-serif;\n    font-size: 20px;\n    font-weight: 800;\n    text-align: center;\n    text-transform: uppercase;\n}\n\n#tag-to,\n#tag-from{\n    color: #007ca7;\n    font-size: 18px;\n}\n\n.tag-span-to-lbl,\n.tag-span-from-label{\n    font-weight: 800;\n}\n\n.tag-orgcontent a{\n    color: #007ca7;\n}\n\n.tag-orgcontent{\n    font-weight:600;\n}\n\n.tag-orgname{\n    color:#2d4a5f;\n    font-weight:600;\n}\n\n#jackpot {\n    background: none repeat scroll 0 0 rgba(255, 255, 255, 0.5);\n    color: #414142;\n    display: none;\n    float: left;\n    font-weight: 400;\n    margin: 0 auto;\n    max-width: 408px;\n    min-height: 155px;\n    padding: 1em 2em 0;\n    position: absolute;\n    right: 0;\n    text-align: center;\n    bottom: -50px;\n    vertical-align: middle;\n    width: 100%;\n    z-index: 10;\n}\n#jackpot h1 {\n    color: #cd2032;\n}\n#jackpot p {\n    margin-bottom: 0;\n}\n\ntextarea {\n    font-size: 0.8em;\n    height: 90px;\n    padding: 1em;\n    width: 100%;\n    border: 1px solid #aba8a8;\n    box-shadow: 0 0 2px #eee inset;\n    color: #414142;\n    margin: 1em 0;\n}\ninput[type=\"submit\"], #control {\n    background: none repeat scroll 0 0 #cd2032;\n    border: 0 none;\n    color: #fff;\n    float: right;\n    font-size: 1em;\n    width: 132px;\n    height: 42px;\n    margin: 1em 0;\n    padding: 0.5em 1em;\n    box-shadow: 0 0 2px #eee inset;\n}\n.stars {\n    float: left;\n    margin-bottom: 1em;\n    width: 100%;\n}');
#MT 09.05.14 Mantis 1972: Replacing the Spin N Win page: HTML Design

