<?php
require_once 'common.php';
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Dunk the corrupt Neta by Badshahi Ink</title>
<!--[if lt IE 9]>
	<script type="text/javascript" src="js/html5.js"></script> 
<![endif]-->
<link rel="stylesheet" href="css/styles.css" />
<link rel="stylesheet" href="css/colorbox.css" />
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/jquery.hoverIntent.minified.js"></script>
<script type="text/javascript" src="js/jquery.colorbox.js"></script>
<!-- Google Code for Remarketing tag -->
<!-- Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. For instructions on adding this tag and more information on the above requirements, read the setup guide: google.com/ads/remarketingsetup -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 997668950;
var google_conversion_label = "-BomCMqY1wMQ1vDc2wM";
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/997668950/?value=0&amp;label=-BomCMqY1wMQ1vDc2wM&amp;guid=ON&amp;script=0"/>
</div>
</noscript>
<!-- END: Google Code for Remarketing tag -->
<!-- Google Analytics Code -->
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-13214337-1']);
  _gaq.push(['_setDomainName', 'bigrock.in']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
<!-- END: Google Analytics Code -->
<script>
    var string = '';
    function login() {
			console.log('login');
        FB.login(function(response) {
            if (response.authResponse) {
                submitScore();
            } 
        }, {scope: 'email'});
    }
    
    function submitScore() {
			console.log('submitScore');
        FB.api('/me', function(response) {
            $.post('submit-score.php', 
                {score: string, facebook_id: response.id, firstname: response.first_name, lastname: response.last_name, email: response.email}, 
                function(data){
                    if(parseInt(data) === 1){
                        $.get('leaderboard.php', function(data){
                            $(".get-in-touch-content ol").html(data);                
                            $("#get-in-touch").fadeIn("fast",function(){$(this).css({"left":"0px"}); $(this).parent().animate({right:"0px"},"normal");});
														
														showModal('fb-share');
                        });
                    }
                }
            );
        });
    }
    
    function sendScore(score){
				console.log('sendScore');
        string = score;
        FB.getLoginStatus(function(response) {
						console.log(response);
            if (response.status === 'connected') {
              submitScore();
            }else{
              login();
            }
         });
    }
		
		function showModal(name){
			var dim = [$(window).height(),$(window).width()];
			$("#"+name).css({height: dim[0], width: dim[1]});
			$(".share-overlay").css({height: dim[0], width: dim[1]});
			$("#"+name).fadeIn();
		}
		function closeModal(name){
			$("#"+name).fadeOut();
		}
    
    $(document).ready(function(){
                //Examples of how to assign the ColorBox event to elements

                //Example of preserving a JavaScript event for inline calls.
                $("#click").click(function(){ 
                        $('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
                        return false;
                });
				
                $.get('leaderboard.php', function(data){
                    $(".get-in-touch-content ol").html(data);                
                });
		
		$("#get").hoverIntent(function(){
			$("#get-in-touch").fadeOut("fast",function(){$(this).css("left","50px"); $(this).parent().animate({right:"0px"},"normal");});
		},
		function(){
			$(this).animate({right:"-268px"},"normal",function(){$("#get-in-touch").show().animate({left:"0px"},"slow")});
	        });
                $("#get").hoverIntent(function(){
			$("#get-in-touch").fadeIn("fast",function(){$(this).css({"left":"0px"}); $(this).parent().animate({right:"0px"},"normal");});
		},
		function(){
			$(this).animate({right:"-365px"},"normal",function(){$("#get-in-touch").show().animate({left:"0px"},"slow")});
});
	   

				$(".youtube").colorbox({iframe:true, innerWidth:520, innerHeight:360});
			});
</script>
                
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<div id="wrapper">
  <section class="container">
    <div class="game">
      <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1000','height','600','title','','src','images/Main','wmode','transparent','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','images/Main' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="1000" height="600" title="">
        <param name="movie" value="images/Main.swf">
        <param name="wmode" value="transparent">
        <param name="quality" value="high">
        <embed src="images/Main.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1000" height="600" wmode='transparent'></embed>
      </object></noscript>
    </div>
      <div class="icon">
<?php
				$title=urlencode("BigRock");
				$url=urlencode('http://bit.ly/DunkNeta');
				$summary=urlencode("Show your support for the Anti-Corruption Movement by dunking the Corrupt Neta in Badshahi Ink:  #DunkTheNeta");
				$image='';
			?>
 

        <a onClick="window.open('https://twitter.com/share?text=<?php echo $summary;?>&amp;url=<?php echo $url; ?>','sharer','toolbar=0,status=0,width=548,height=325');" href="javascript: void(0)"><img src="images/twt-img.png"></a>
<?php $summary=urlencode("Show your support for the Anti-Corruption Movement by dunking the Corrupt Neta in Badshahi Ink:");?>
            

                <a class="fb" onClick="window.open('http://www.facebook.com/sharer.php?s=100&amp;p[title]=<?php echo $title;?>&amp;p[summary]=<?php echo $summary;?> <?php echo $url; ?>&amp;p[url]=<?php echo $url; ?>','sharer','toolbar=0,status=0,width=548,height=325');" href="javascript: void(0)"><img src="images/face-img.png"></a></div>
  </section>
  <header class="logo"><a href="#"><img src="images/logo.png"></a></header>
<!--  <a class="led-bord inline" href="#popup"><img src="images/bord-img.png"></a> -->
  <a href="http://www.youtube.com/embed/OY8WTkrE5qA" title="Badshahi Ink TVC" class="vid-bt youtube"> <img src="images/vid-bt.png"></a>
  <!--get in touch st-->
  <div id="get-block">
    <div id="get"> <a id="get-in-touch">Get in touch</a>
      <div class="get-in-touch-content">
         <ol>
            
          </ol>
      </div>
    </div>
  </div>
  <!---get in touch en-->
  
  <footer>
    <marquee>
			1.	India demands NO Corruption- Dunk the Corrupt Neta to support the movement!
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      2.	Owner of Badshahi Ink arrested in Anti-Corruption protest at Rampur!
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			3.	Thousands of angry supporters dunk corrupt neta effigies in Badshahi Ink across India!
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			4.	Sale of Badshahi Ink crosses 20,000 bottles in the first week itself!
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			5.	The Parliament session on the Anti-Corruption bill was peaceful despite protests across the country!
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			6.	Don't forget to share on Facebook and Twitter! Lets spread the word!
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </marquee>
  </footer>
</div>
    
<div id="fb-root"></div>
<script>
  // Additional JS functions here
  window.fbAsyncInit = function() {
    FB.init({
      appId      : '130893567099112', // App ID
      channelUrl : 'channel.html', // Channel File
      status     : true, // check login status
      cookie     : true, // enable cookies to allow the server to access the session
      xfbml      : true  // parse XFBML
    });

    // Additional init code here
    
  };

  // Load the SDK Asynchronously
  (function(d){
     var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
     if (d.getElementById(id)) {return;}
     js = d.createElement('script'); js.id = id; js.async = true;
     js.src = "//connect.facebook.net/en_US/all.js";
     ref.parentNode.insertBefore(js, ref);
   }(document));
</script>

<style type="text/css">
.overlay-wrap{
	position: absolute;
	top: 0;
	left: 0;
}
.share-overlay{
	background: #000;
	opacity: 0.4;
	filter: alpha(opacity=40);
	position: absolute;
	z-index: 9998;
	top: 0;
	left: 0;
}
.share-content{
	background: white;
	position: absolute;
	top: 50%;
	left: 44%;
	z-index: 9999;
	border-radius: 8px 8px 8px 8px;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
	padding: 20px;
}
.share-content .close{
	position: absolute;
	top: 7px;
	right: 12px;
	font: 13px arial;
	text-decoration: none;
	color: #434343;
}
.share-content h3{
	margin-top: 8px;
}
.share-content p{
	text-align: center;
	margin: 10px 0 0 0;
}
.get-in-touch-content ol li span{
	text-transform: none;
	font: 16px arial;
}
</style>
<div id="fb-share" class="overlay-wrap" style="display:none;">
	<div class="share-overlay"></div>
	<div class="share-content">
		<a href="#" class="close" onclick="closeModal('fb-share');">X</a>
		<h3>SHARE THIS WITH YOUR FRIENDS:</h3>
		<p>
			<?php
				$title=urlencode("BigRock");
				$url=urlencode('http://bit.ly/DunkNeta');
				$summary=urlencode("Show your support for the Anti-Corruption Movement by dunking the Corrupt Neta in Badshahi Ink:  #DunkTheNeta");
				$image='';
			?>
        <a onClick="window.open('https://twitter.com/share?text=<?php echo $summary;?>&amp;url=<?php echo $url; ?>','sharer','toolbar=0,status=0,width=548,height=325');closeModal('fb-share');" href="javascript: void(0)"><img src="images/twt-img.png"></a>
			<?php $summary=urlencode("Show your support for the Anti-Corruption Movement by dunking the Corrupt Neta in Badshahi Ink:");?>
        <a class="fb" onClick="window.open('http://www.facebook.com/sharer.php?s=100&amp;p[title]=<?php echo $title;?>&amp;p[summary]=<?php echo $summary;?> <?php echo $url; ?>&amp;p[url]=<?php echo $url; ?>','sharer','toolbar=0,status=0,width=548,height=325');closeModal('fb-share');" href="javascript: void(0)"><img src="images/face-img.png"></a>
		</p>
	</div>
</div>
</body>
</html>
 