<?xml version="1.0" encoding="utf-8" ?><Module>
	<ModulePrefs title="Dhingana Music"
               title_url="http://www.dhingana.com"
               screenshot="http://cdn.dhingana.com/images/igoogle_app_image.png"
               thumbnail="http://cdn.dhingana.com/images/orkut_thumbnail_new.png"
               description="Experience music in Gmail. Welcome to Dhingana.com's award winning app. Google declared us the 'BEST OPENSOCIAL APP' during the 2009 WeekendApps Opensocial Event.
		               Experience quality bollywood and Indian music from a variety of genres like Hindi, Marathi, Pop, Ghazals, Bhajans, Punjabi Bhangra and more. 
		               Create your own playlists and share them with your friends. 
		               Discover new music everyday and access your music history anytime from Gmail. 
		               Come join us and experience the most musical app on Gmail - by Dhingana Team @ Dhingana.com"
               author="Dhingana.com"
               author_email="info@dhingana.com"
               scaling="true"
               scrolling="false"
               singleton="false" > 
		<Require feature="opensocial-0.8"/>
		<Require feature="views" />
		<Require feature="dynamic-height"/>
		<Require feature="analytics"/>
		
		<Require feature="opensocial-data" />
		<Require feature="opensocial-templates">
      		<Param name="process-on-server">true</Param>
    	</Require>
		
		<Optional feature="maximize" />
    	<Optional feature="flash" />
    	<Optional feature="setprefs" />
    	
		<Preload href="http://www.dhingana.com/api1.php/orkut?page=home" authz="signed" views="canvas" />
		<Preload href="http://www.dhingana.com/api1.php/orkut/profileView" authz="signed" views="profile" />
		<Optional feature="content-rewrite">
			<Param name="include-urls"></Param>
  			<Param name="exclude-urls">.*</Param>
  			<Param name="include-tags"></Param>
		</Optional>
	
	</ModulePrefs>
	
	<Content type="html" view="profile, canvas">
    <![CDATA[
    	<!-- ALm6fM3xfJAzLtpu4BbRbqBuksNmTImT4-YWMNTUKH0LmR-jE8kzKnLS5jq7r3wgHp1tXPDBPZP5-ddQtdMlkgz9y4iAZGfEpc1gGrDWJERkRFPWml0yGBg= -->
    	<style type="text/css">
<!--
html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:text-top;}sub{vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;}del,ins{text-decoration:none;}body{font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}select,input,button,textarea{font:99% arial,helvetica,clean,sans-serif;}table{font-size:inherit;font:100%;}pre,code,kbd,samp,tt{font-family:monospace;*font-size:108%;line-height:100%;}body{text-align:center;}#ft{clear:both;}#doc,#doc2,#doc3,#doc4,.yui-t1,.yui-t2,.yui-t3,.yui-t4,.yui-t5,.yui-t6,.yui-t7{margin:auto;text-align:left;width:57.69em;*width:56.25em;min-width:750px;}#doc2{width:73.076em;*width:71.25em;}#doc3{margin:auto 10px;width:auto;}#doc4{width:74.923em;*width:73.05em;}.yui-b{position:relative;}.yui-b{_position:static;}#yui-main .yui-b{position:static;}#yui-main,.yui-g .yui-u .yui-g{width:100%;}{width:100%;}.yui-t1 #yui-main,.yui-t2 #yui-main,.yui-t3 #yui-main{float:right;margin-left:-25em;}.yui-t4 #yui-main,.yui-t5 #yui-main,.yui-t6 #yui-main{float:left;margin-right:-25em;}.yui-t1 .yui-b{float:left;width:12.30769em;*width:12.00em;}.yui-t1 #yui-main .yui-b{margin-left:13.30769em;*margin-left:13.05em;}.yui-t2 .yui-b{float:left;width:13.8461em;*width:13.50em;}.yui-t2 #yui-main .yui-b{margin-left:14.8461em;*margin-left:14.55em;}.yui-t3 .yui-b{float:left;width:23.0769em;*width:22.50em;}.yui-t3 #yui-main .yui-b{margin-left:24.0769em;*margin-left:23.62em;}.yui-t4 .yui-b{float:right;width:13.8456em;*width:13.50em;}.yui-t4 #yui-main .yui-b{margin-right:14.8456em;*margin-right:14.55em;}.yui-t5 .yui-b{float:right;width:18.4615em;*width:18.00em;}.yui-t5 #yui-main .yui-b{margin-right:19.4615em;*margin-right:19.125em;}.yui-t6 .yui-b{float:right;width:23.0769em;*width:22.50em;}.yui-t6 #yui-main .yui-b{margin-right:24.0769em;*margin-right:23.62em;}.yui-t7 #yui-main .yui-b{display:block;margin:0 0 1em 0;}#yui-main .yui-b{float:none;width:auto;}.yui-gb .yui-u,.yui-g .yui-gb .yui-u,.yui-gb .yui-g,.yui-gb .yui-gb,.yui-gb .yui-gc,.yui-gb .yui-gd,.yui-gb .yui-ge,.yui-gb .yui-gf,.yui-gc .yui-u,.yui-gc .yui-g,.yui-gd .yui-u{float:left;}.yui-g .yui-u,.yui-g .yui-g,.yui-g .yui-gb,.yui-g .yui-gc,.yui-g .yui-gd,.yui-g .yui-ge,.yui-g .yui-gf,.yui-gc .yui-u,.yui-gd .yui-g,.yui-g .yui-gc .yui-u,.yui-ge .yui-u,.yui-ge .yui-g,.yui-gf .yui-g,.yui-gf .yui-u{float:right;}.yui-g div.first,.yui-gb div.first,.yui-gc div.first,.yui-gd div.first,.yui-ge div.first,.yui-gf div.first,.yui-g .yui-gc div.first,.yui-g .yui-ge div.first,.yui-gc div.first div.first{float:left;}.yui-g .yui-u,.yui-g .yui-g,.yui-g .yui-gb,.yui-g .yui-gc,.yui-g .yui-gd,.yui-g .yui-ge,.yui-g .yui-gf{width:49.1%;}.yui-gb .yui-u,.yui-g .yui-gb .yui-u,.yui-gb .yui-g,.yui-gb .yui-gb,.yui-gb .yui-gc,.yui-gb .yui-gd,.yui-gb .yui-ge,.yui-gb .yui-gf,.yui-gc .yui-u,.yui-gc .yui-g,.yui-gd .yui-u{width:32%;margin-left:1.99%;}.yui-gb .yui-u{*margin-left:1.9%;*width:31.9%;}.yui-gc div.first,.yui-gd .yui-u{width:66%;}.yui-gd div.first{width:32%;}.yui-ge div.first,.yui-gf .yui-u{width:74.2%;}.yui-ge .yui-u,.yui-gf div.first{width:24%;}.yui-g .yui-gb div.first,.yui-gb div.first,.yui-gc div.first,.yui-gd div.first{margin-left:0;}.yui-g .yui-g .yui-u,.yui-gb .yui-g .yui-u,.yui-gc .yui-g .yui-u,.yui-gd .yui-g .yui-u,.yui-ge .yui-g .yui-u,.yui-gf .yui-g .yui-u{width:49%;*width:48.1%;*margin-left:0;}.yui-g .yui-g .yui-u{width:48.1%;}.yui-g .yui-gb div.first,.yui-gb .yui-gb div.first{*margin-right:0;*width:32%;_width:31.7%;}.yui-g .yui-gc div.first,.yui-gd .yui-g{width:66%;}.yui-gb .yui-g div.first{*margin-right:4%;_margin-right:1.3%;}.yui-gb .yui-gc div.first,.yui-gb .yui-gd div.first{*margin-right:0;}.yui-gb .yui-gb .yui-u,.yui-gb .yui-gc .yui-u{*margin-left:1.8%;_margin-left:4%;}.yui-g .yui-gb .yui-u{_margin-left:1.0%;}.yui-gb .yui-gd .yui-u{*width:66%;_width:61.2%;}.yui-gb .yui-gd div.first{*width:31%;_width:29.5%;}.yui-g .yui-gc .yui-u,.yui-gb .yui-gc .yui-u{width:32%;_float:right;margin-right:0;_margin-left:0;}.yui-gb .yui-gc div.first{width:66%;*float:left;*margin-left:0;}.yui-gb .yui-ge .yui-u,.yui-gb .yui-gf .yui-u{margin:0;}.yui-gb .yui-gb .yui-u{_margin-left:.7%;}.yui-gb .yui-g div.first,.yui-gb .yui-gb div.first{*margin-left:0;}.yui-gc .yui-g .yui-u,.yui-gd .yui-g .yui-u{*width:48.1%;*margin-left:0;} .yui-gb .yui-gd div.first{width:32%;}.yui-g .yui-gd div.first{_width:29.9%;}.yui-ge .yui-g{width:24%;}.yui-gf .yui-g{width:74.2%;}.yui-gb .yui-ge div.yui-u,.yui-gb .yui-gf div.yui-u{float:right;}.yui-gb .yui-ge div.first,.yui-gb .yui-gf div.first{float:left;}.yui-gb .yui-ge .yui-u,.yui-gb .yui-gf div.first{*width:24%;_width:20%;}.yui-gb .yui-ge div.first,.yui-gb .yui-gf .yui-u{*width:73.5%;_width:65.5%;}.yui-ge div.first .yui-gd .yui-u{width:65%;}.yui-ge div.first .yui-gd div.first{width:32%;}#bd:after,.yui-g:after,.yui-gb:after,.yui-gc:after,.yui-gd:after,.yui-ge:after,.yui-gf:after{content:".";display:block;height:0;clear:both;visibility:hidden;}#bd,.yui-g,.yui-gb,.yui-gc,.yui-gd,.yui-ge,.yui-gf{zoom:1;}

.cl, .clear {
	font-size: 0;
	line-height: 0;
	height: 0;
	display: block;
	clear: both;
}
body {
	color: #000;
	background: #fff;
	font-family: Verdana, Arial, "MS Trebuchet", sans-serif;
}
.left {
	float: left;
	display: inline;
}
.right {
	float: right;
	display: inline;
}
.acenter {
	text-align: center;
}
a, a:visited {
	color: #05699e;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

#frame-content {
	font-size: 87%;
}

#doc3 {margin:auto;}

.navbar {
	border-bottom: solid 1px #81a1c6;
	margin-bottom: 7px;
}
.usertabs {
	float: right;
	display: inline;
	width: 47%;
	line-height: 23px;
	height: 23px;
}
.usertabs a,
.usertabs span {
	float: right;
	color: #f82307;
	font-weight: bold;
}
.usertabs span {
	padding: 0 7px;
}

/*----- Start "Search Bar" -----*/
.search-bar {
	float: left;
	display: inline;
	height: 40px;
	background: #769dd0;
	/*width: 498px;*/
	padding-left: 23px;
	padding-top: 19px;
}
.search-bar .field,
.search-bar .button {
	float: left;
	display: inline;
}
.search-bar select.field {
	width: 104px;
	margin-right: 2px;
	margin-top: -1px;
}
.search-bar input.field {
	width: 300px;
	border: 0;
	background: #fff url(http://cdn.dhingana.com/css/orkut/images/search-field.gif) no-repeat 2px center;
	padding: 3px 0 3px 10px;
	margin-right: 7px;
}
/*------ End "Search Bar" ------*/

.player {
	float: right;
	display: inline;
	height: 59px;
	width: 308px;
}
h2 {
	font-size: 18px;
	padding-left: 15px;
}
h3 {
	font-weight: bold;
	font-family: Arial, "MS Trebuchet", sans-serif;
	font-size: 145%;
	line-height: 162.5%;
}
h3 a span {
	color: #05699e;
	font-size: 91%;
}
h3 a {
	color: #000;
}
h3 a:hover {
	text-decoration: none;
}
a.sbutton {
	display: block;
	height: 18px;
	line-height: 18px;
	font-weight: bold;
	margin: 4px 0;
}
a.sbutton:hover {
	text-decoration: none;
}
a.sbutton span {
	float: left;
	display: inline;
	background: url(http://cdn.dhingana.com/css/orkut/images/btnbox_l.gif) no-repeat 0 0;
	padding-left: 5px;
	cursor: pointer;
}
a.sbutton span.btnbox {
	display: block;
	float: left;
	padding-left: 0;
	width: 5px;
	background: url(http://cdn.dhingana.com/css/orkut/images/btnbox_r.gif) no-repeat right 0;
}
.bordb1 {
	height: 1px;
	line-height: 0;
	font-size: 0;
	text-indent: -4000px;
	background: #d7e6f8;
	margin: 1px 0;
	clear: both;
}
.bordb2 {
	height: 1px;
	line-height: 0;
	font-size: 0;
	text-indent: -4000px;
	background: #ccc;
	margin: 4px 0;
	clear: both;
}
.bordmt, .bordmb {
	height: 1px;
	line-height: 0;
	font-size: 0;
	text-indent: -4000px;
}
.bordmt {
	margin-top: 5px;
}
.bordmb {
	margin-bottom: 5px;
}
.colbox {
	background: #edf7ff;
	padding: 9px 2px 20px;
}
.musicbox .image {
	float: left;
	display: inline;
	width: 106px !important;
	text-align: center;
}
.musicbox .image a.img img {
	padding: 2px;
	border: solid 1px #c0c1c1;
}
.musicbox .content {
	float: left;
	display: inline;
	width: 270px !important;
	/*width: 280px !important;*/
	padding-left: 14px;
}
.widermusicbox .content {
	width: 416px !important;
}
.widermusicbox {
	background: #edf7ff;
	padding: 2px 0 10px 2px;
	margin-bottom: 2px;
}
.musicbox .content .sbutton {
	margin-top: 14px;
}
.musicbox h4 {
	font-size: 14px;
}
.musicbox .grcol {
	color: #9796a0;
}
.musicbox .links {
	padding-top: 18px;
}
.fave-ico {
	width: 16px;
	height: 15px;
	background: url(http://cdn.dhingana.com/css/orkut/images/sprite.gif) no-repeat -90px -2px;
	float: left;
	margin-right: 9px;
	margin-top: 2px;
}
.tsongs {
	margin: 8px 0;
}
.tsongs .title {
	font-size: 109%;
	line-height: 16px;
}
.type-music {
	padding-left: 20px;
	background: url(http://cdn.dhingana.com/css/orkut/images/play-ico.gif) no-repeat 0 center;
}
.type-doc {
	height: 17px;
	width: 16px;
	background: url(http://cdn.dhingana.com/css/orkut/images/sprite.gif) no-repeat -31px 0;
	margin-bottom: -3px;
	margin-right: 7px;
}
.type-mov {
	height: 16px;
	width: 16px;
	background: url(http://cdn.dhingana.com/css/orkut/images/sprite.gif) no-repeat -15px -1px;
	margin-right: 7px;
}
.type-song {
	width: 16px;
	height: 14px;
	background: url(http://cdn.dhingana.com/css/orkut/images/sprite.gif) no-repeat -47px -2px;
	margin-right: 8px;
	margin-bottom: -3px;
}
img.arrowed {
	width: 11px;
	height: 6px;
	background: url(http://cdn.dhingana.com/css/orkut/images/sprite.gif) no-repeat -78px -2px;
	margin-right: 5px;
	margin-bottom: 2px;
}
.star {
	height: 14px;
	width: 14px;
	margin-top: 3px;
	margin-right: 3px;
	margin-bottom: -3px;
	background: url(http://cdn.dhingana.com/css/orkut/images/sprite.gif) no-repeat -63px -2px;
}
.tsongs .buttons a {
	float: left;
	display: inline;
	margin: 0;
	margin-right: 9px;
}
.ch-lang {
	float: right;
	font-size: 91%;
	padding-top: 5px;
}
.ch-lang select {
	width: 106px;
}
.musical-feed {
	font-size: 127%;
	color: #060606;
	width: 510px;
	padding-left: 15px;
}
.musical-feed ul li {
	padding: 5px 0;
}
.musical-feed ul li ul {
	padding-left: 15px;
}
/*----- Start "Footer" -----*/
#ft {
	padding-top: 30px;
	font-size: 91%;
	color: #bbbbbb;
}
#ft .copy {
	color: #555;
}
/*------ End "Footer" ------*/

/*----- Start "Main Tabs (Orkut Design)" -----*/
ul.intabs{height:23px; padding-left: 7px; }
ul.intabs li{ 
	background-repeat:no-repeat;
	background-position:right;
	margin-right:5px;
	line-height:23px;
	font-weight:700;
	padding-right:6px;
	float: left;
}
ul.intabs li .ltab,
ul.intabs li.sel .ltab {
	width:6px;
	height:23px;
	background-position:left;
	background-repeat:no-repeat;
	float:left;
}
ul.intabs li.sel, 
ul.intabs li.sel a {
	color:#fff
}
ul.intabs li{background-image:url(http://cdn.dhingana.com/css/orkut/images/tabnotsel_r.gif)}
ul.intabs li .ltab{background-image:url(http://cdn.dhingana.com/css/orkut/images/tabnotsel_l.gif)}
ul.intabs li.sel{background-image:url(http://cdn.dhingana.com/css/orkut/images/tabsel_r.gif)}
ul.intabs li.sel .ltab{background-image:url(http://cdn.dhingana.com/css/orkut/images/tabsel_l.gif)}
/*------ End "Main Tabs (Orkut Design)" ------*/

img.smartlist {
	height: 12px;
	width: 12px;
	background: url(http://cdn.dhingana.com/css/orkut/images/sprite.gif) no-repeat 0 -15px;
	margin-bottom: -2px;
	margin-right: 7px;
}
img.profile {
	width: 12px;
	height: 14px;
	background: url(http://cdn.dhingana.com/css/orkut/images/sprite.gif) no-repeat -78px -12px;
	margin-bottom: -2px;
	margin-right: 7px;
}
.profile-image .image {
	float: left;
	display: inline;
	margin-right: 16px;
}
.profile-image .links .name {
	font-weight: bold;
}
.profile-image .links p {
	padding-bottom: 8px;
}
.profile-info {
	float: right !important;
	display: inline !important;
	margin-left: 0 !important;
}
.profile-info .description {
	line-height: 24px;
	border: solid 1px #e9e9e9;
	padding-left: 10px;
	margin-bottom: 5px;
}
.profile-info table tr td {
	background: #d9eeff;
	line-height: 19px;
}
.profile-info table tr.row td {
	background: #edf7ff;
}
.profile-info table tr td.label {
	width: 30%;
	text-align: right;
	padding-right: 5%;
	color: #676677;
}
.profile-info .aright {
	text-align: right;
	font-weight: bold;
}
.paging {
	float: right;
	color: #a39999;
	font-size: 118%;
	line-height: 180%;
	margin-right: 5px;
}
.profiles a {
	float: left;
	display: inline;
	height: 95px;
	width: 85px;
	background: #f0f0f0;
	text-align: center;
	padding: 3px 0 0;
	margin-right: 4px;
	margin-bottom: 4px;
}
.profiles a.last {
	margin-right: 0;
}
.profiles a span {
	display: block;
}
.profiles a span.image {
	height: 79px;
}
.bluebutton {
	display: block;
	background: url(http://cdn.dhingana.com/css/orkut/images/blue_btn_r.gif) no-repeat right 0;
	height: 33px;
	line-height: 33px;
	padding-right: 6px;
	font-weight: bold;
	color: #fff;
	font-size: 11px;
	text-align: center;
	font-size: 130%;
}
.bluebutton span {
	display: block;
	background: url(http://cdn.dhingana.com/css/orkut/images/blue_btn_l.gif) no-repeat 0 0;
}
.smartlistbanner {
	text-align: center;
	margin: 9px 0;
}


/*----- Start "Popup" -----*/
.popup {
	position: absolute;
	width:484px;
	top: 400px;
	left: 180px;
	background-color: #edf6ff;
	margin-bottom: 10px;
	font-size: 11px;
	display: none;
	z-index: 10000000;
}
.popup .top,
.popup .bot {
	font-size: 0;
	line-height: 0;
	text-indent: -4000px;
	height: 7px;
	background: none no-repeat 0 0;
}
.popup .top {
	background-image: url(http://cdn.dhingana.com/css/orkut/images/pop-top.png);
}
.popup .bot {
	background-image: url(http://cdn.dhingana.com/css/orkut/images/pop-bot.png);
}
.popup .cnt {
	background: url(http://cdn.dhingana.com/css/orkut/images/pop-cnt.gif) repeat-y 0 0;
	height: 270px;
	position: relative;
	text-align: left;
	padding: 15px 20px;
}
.popup .cancel-button {
	margin: 0;
	position: absolute;
	bottom: 8px;
	left: 16px;
}
.popup h2 {
	padding: 0;
}
.popup .add-smartlist .sbutton {
	margin-top: 0;
	margin-bottom: 0;
}
.popup .add-smartlist .left {
	margin-right: 8px;
}
.popup .add-smartlist .row {
	margin-bottom: 5px;
}
.popup .add-smartlist .row .left {
	width: 126px;
	text-align: right;
	padding-right: 10px;
	margin-right: 0;
}
.popup .add-smartlist .row .right {
	float: left;
	width: 286px;
}
.popup .add-smartlist .create-smartlist {
	float: left;
	display: inline;
	margin-left: 136px;
}

#carousel {
	width: 717px;
	padding-left: 48px;
	padding-right: 48px;
	position: relative;
}
#carousel .yui-carousel-content {
	width: 640px;
}
#carousel-elements li {
	float: left;
	display: inline;
	width: 150px;
	height: 150px;
	margin: 0;
	margin-right: 8px;
	border: solid 1px #ccc;
}
#carousel .yui-carousel-nav ul {
	display: none;
}
#carousel .yui-carousel-nav .yui-carousel-button input {
	border: 0;
	background: url(http://cdn.dhingana.com/css/orkut/images/sprite.gif) no-repeat -178px -2px;
	height: 24px;
	width: 24px;
	font-size: 0;
	line-height: 0;
	text-indent: -4000px;
	position: absolute;
	top: 62px;
	left: 538px;
	cursor: pointer;
}
#carousel .yui-carousel-nav .yui-carousel-button-disabled input {
	background-position: -130px -2px;
	cursor: default;
}
#carousel .yui-carousel-nav .yui-carousel-first-button input {
	background: url(http://cdn.dhingana.com/css/orkut/images/sprite.gif) no-repeat -154px -2px;
	left: 8px;
}
#carousel .yui-carousel-nav .yui-carousel-first-button-disabled input {
	background-position: -106px -2px;
	cursor: default;
}
-->
</style>

<!--[if IE 6]>
<style type="text/css">
.popup .top {
	background:none;
	filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://cdn.dhingana.com/css/orkut/images/pop-top.png', sizingMethod='image');
}
.popup .bot {
	background:none;
	filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://cdn.dhingana.com/css/orkut/images/pop-bot.png', sizingMethod='image');
}
</style>
<![endif]--> 	
		<script type="text/javascript">
	var baseUrl = "http://www.dhingana.com/";
	var userName = ''; //Name of the user looking at the app.
	var userFirstName = ""
	var userLastName = ""
	var user_os_id = 0;	//OS id for the user
	var user_orkut_id = 0; //Orkut id for the user
	var appName = 'Dhingana Music'
	var isInstalled = false; 
	var globalDivId = "bd";
	var globalElementID = '';

	//Start the application..
	gadgets.util.registerOnLoadHandler(getUserData);
	
	var songId = '';	//used to store the songId which we want to add to SL
	//Get the current view..
	function getViewName() 
	{
		return gadgets.views.getCurrentView().getName();
	}

	function processPage(page, page_id, song_ids, user_id)
	{
		if (page == "album" || page == "smartlist") {
			if(song_ids != undefined)
				makeNormalRequest(baseUrl+'api1.php/orkut/album?id='+page_id+'&page='+page+'&song_ids='+song_ids,getHomePage);
			else
				makeNormalRequest(baseUrl+'api1.php/orkut/album?id='+page_id+'&page='+page,getHomePage);
		} else if (page == "test" ) {
		  makeNormalRequest(baseUrl+'api1.php/orkut/test',getHomePage);
		} else if (page == "topsongs" ) {
		  makeNormalRequest(baseUrl+'api1.php/orkut/topSongs?page='+page+'&id='+page_id,getHomePage);
		} else if (page == "mymusic" ) {
		  makeNormalRequest(baseUrl+'api1.php/orkut/myMusic?page='+page,getHomePage);
		} else if (page == "mysmartlist" ) {
		  makeNormalRequest(baseUrl+'api1.php/orkut/mySmartlist?page='+page+'&page_no='+page_id,getHomePage);
		} else if (page == "publicsmartlist" ) {
		  makeNormalRequest(baseUrl+'api1.php/orkut/publicSmartlist?page='+page+'&page_no='+page_id,getHomePage);
		} else if (page == "intro" ) {
		  makeNormalRequest(baseUrl+'api1.php/orkut/intro?page='+page,getHomePage);
		} else if (page == "deletesong" ) {
		  makeNormalRequest(baseUrl+'api1.php/orkut/deleteSongFromSmartList?id='+page_id+'&page=smartlist&songId='+song_ids,getHomePage);
		} else if (page == "search" ) {
		  makeNormalRequest(baseUrl+'api1.php/orkut/search?page='+page+'&page_no='+page_id+'&q='+song_ids+'&type='+user_id,getHomePage);
		} else {
		  makeNormalRequest(baseUrl+'api1.php/orkut?v=2&page=home&firstName='+userFirstName+'&lastName='+userLastName,getHomePage);
		}
	}
	
	function startApp()
	{
		if (getViewName() == "canvas" || getViewName() == "preview") 
		{
			var page = gadgets.views.getParams()["page"];
			var page_id = gadgets.views.getParams()["page_id"];
			var song_ids = gadgets.views.getParams()["song_ids"];
			var user_id = gadgets.views.getParams()["user_id"]; //used to go to a particular users mymusic or mysmartlist page
			
			//Track visits from profile view
			if ( gadgets.views.getParams()["profile"] == '1')
			{
				_IG_Analytics('UA-372861-7', '/orkut/profile');
			}
				
			processPage(page, page_id, song_ids, user_id);
		}
		
		if (getViewName() == "profile") 
		{
			var page = gadgets.views.getParams()["page"];
			var page_id = gadgets.views.getParams()["page_id"];
			makeNormalRequest(baseUrl+'api1.php/orkut/profileView',getHomePage);
		}
		
		if (getViewName() == "nav") 
		{
			var page = gadgets.views.getParams()["page"];
			var page_id = gadgets.views.getParams()["page_id"];
			makeNormalRequest(baseUrl+'api1.php/orkut/leftNav',getHomePage);
		} 
	}
	
 	function getUserData() {
 		var params = {};
  		params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] = [opensocial.Person.Field.PROFILE_URL];
  		
    	var req = opensocial.newDataRequest();
    	//req.add(req.newFetchPersonRequest(opensocial.IdSpec.PersonId.VIEWER), 'viewer');
    	req.add(req.newFetchPersonRequest(opensocial.IdSpec.PersonId.OWNER, params), "viewer");
    	
    	//req.add(req.newFetchPeopleRequest(opensocial.DataRequest.Group.VIEWER_FRIENDS), 'viewerFriends');
    	req.send(onLoadUserData);
  	};
  	
  	function onLoadUserData(data)
  	{
  		 var viewer = data.get('viewer').getData(); 
  		 
  		 if(viewer != null ) {
  		 	 if(undefined != viewer.getDisplayName()) {
	  		 	userName = viewer.getDisplayName();	//fullnanme
	  		 	userFirstName = viewer.getDisplayName().split(" ")[0]; //firstname
	  		 	userLastName = viewer.getDisplayName().split(" ")[1]; //lastname
	  		 } else {
	  		 	userName = "Your friend";
	  		 	userFirstName = ""; //firstname
	  		 }
	  		 user_os_id = viewer.getId();
	  		 
	  		 var profile_url = viewer.getField(opensocial.Person.Field.PROFILE_URL);
	  		 if(typeof profile_url !=  "undefined" )
	  		 {
				 var regex = /uid=([^&#]+)/;
				 var result = profile_url.match(regex);
				 if (result && result.length == 2) {
				 	user_orkut_id = result[1]; // uid now contains the viewer's orkut UID
				 } else {
				    /* there was a problem getting the UID */
				 }
			 }
  
	  		 isInstalled = true;
	  	 } else {
  		 	isInstalled = false;
  		 }
  		 startApp();
  	};
	
	function searchContent() {
		var params = {};
		var searchText = document.getElementById('searchText').value;
		var searchType = document.getElementById('searchType').value;
		var postdata = gadgets.io.encodeValues({q: searchText, type: searchType, page: 'search'});
      	params[gadgets.io.RequestParameters.METHOD] = gadgets.io.MethodType.POST;    
      	params[gadgets.io.RequestParameters.POST_DATA] = postdata;  
      	makeNormalRequest(baseUrl+'api1.php/orkut/search',getHomePage,params); 
      	showBodyLoading(); 
	}
	
	function linkAccount() {
		var params = {};
		var demail = document.getElementById('demail').value;
		var dpassword = document.getElementById('dpassword').value;
		var postdata = gadgets.io.encodeValues({dhingana_useremailid: demail,dhingana_password: dpassword});
      	params[gadgets.io.RequestParameters.METHOD] = gadgets.io.MethodType.POST;    
      	params[gadgets.io.RequestParameters.POST_DATA] = postdata;  
      	makeNormalRequest(baseUrl+'api1.php/orkut/linkAccount',getHomePage,params);  
	}
	
    function makeNormalRequest(url,respFunction, params) { 
	  	  if(typeof params === 'undefined') 
	      	var params = {};  
	      params[gadgets.io.RequestParameters.AUTHORIZATION] = gadgets.io.AuthorizationType.SIGNED;
	      params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.TEXT;    
	      params[gadgets.io.RequestParameters.REFRESH_INTERVAL] = 120;	//requests will be cached for X seconds
	      gadgets.io.makeRequest(url, respFunction, params);
    };

	function getHomePage(ret) {  
	      //obj.text contains the text of the page that was requested 	
	      if(ret) {
	      		if(ret.errors == '' && ret.text != undefined ) { 
		      		document.getElementById('frame-content').innerHTML = ret.text;   
		      		setInterval("gadgets.window.adjustHeight();",1000);
		      		//gadgets.window.adjustHeight();
		      	} else {
		      		document.getElementById('frame-content').innerHTML = "<div style='padding: 20px; font-size: 110%'>Sorry! For security reasons, your session has expired. Please re-fresh this page to start a new session and you should be good to go.</div>";
		      	}
		  } else {
		  		document.getElementById('frame-content').innerHTML = "<div style='padding: 20px; font-size: 110%'>Sorry! For security reasons, your session has expired. Please re-fresh this page to start a new session and you should be good to go.</div>";
		  }
    };
     
 	function gotoPage(to_page, id, song_ids, user_id) {
 		  gotoSection(to_page,id, song_ids, user_id);
		  /*
		  var canvas_view = new gadgets.views.View("canvas");
		  var params = {};
		  params["page"] = to_page;
		  params["page_id"] = id;
		  gadgets.views.requestNavigateTo(canvas_view, params);*/
	};
	
	function callServerAPI(url, elementId , args)
	{
		globalElementID = elementId;
		if(args != null && elementId=='smartlist-window')
		{
			sl_array = args.toString().split('$');
			sl_id = sl_array[0];
			sl_name = sl_array[1];
			sl_type = sl_array[2];
			sl_photo = sl_array[3];
			if(sl_type=="public")
			{
				link = makeLink('smartlist', sl_id );
				body='<a href="'+link+'"><img height=100 src="'+sl_photo+'" /></a>';
				postActivity("updated his SmartList <a href='"+link+"'>"+sl_name+"</a>. Listen to the songs from SmartList <a href='"+link+"'>"+sl_name+"</a>", body);
			}
			makeNormalRequest(baseUrl+url+sl_id+"&songId="+songId,callServerAPI_callback);
			document.getElementById(globalElementID).innerHTML = "<br/><b>adding song to smartlist....</b><br/><br/><img src='http://cdn.dhingana.com/css/orkut/images/loading.gif' />";
		}
		else
		{
			makeNormalRequest(baseUrl+url,callServerAPI_callback);
			document.getElementById(globalElementID).innerHTML = "<br/><b>loading....</b><br/><br/><img src='http://cdn.dhingana.com/css/orkut/images/loading.gif' />";
		}
		
	}
	
	function callServerAPI_callback(ret) {  
	      //obj.text contains the text of the page that was requested 	
	      if(ret) {
	      		if(ret.text != undefined) { 
		      		document.getElementById(globalElementID).innerHTML = ret.text;   
		      		//setInterval("gadgets.window.adjustHeight();",1000);
		      		//gadgets.window.adjustHeight();
		      	} else {
		      		document.getElementById(globalElementID).innerHTML = "<div style='padding: 20px; font-size: 110%'>No donut for you :( There was a problem sending this request to the servers. Please re-fresh this page and try again.</div>";
		      		
		      	}
		  } else {
		  		document.getElementById(globalElementID).innerHTML = "<div style='padding: 20px; font-size: 110%'>Errors are a part of life :( There was a problem sending this request to the servers. Please re-fresh this page and try again in sometime</div>";
		  }
    };
	
	function showBodyLoading()
	{
		statusMessage = "<br/><b>Loading music....</b><br/><br/><img src='http://cdn.dhingana.com/css/orkut/images/loading.gif' />"
		document.getElementById('bd').innerHTML = statusMessage;
	}
	
	function gotoSection(page, page_id, song_ids, user_id) 
	{
		showBodyLoading();
		processPage(page, page_id, song_ids, user_id);
	}
	
	

function dhinganaPlayer(url, songName, albumName, photo, page, page_id, oneSong, width_height)
{
		
		
	playerWindow = window.open(url,'Dhingana',width_height);
	playerWindow.focus();
	return true;
}

function sendEmail(songName, albumName, photo, page, page_id, oneSong, song_ids) 
{      
            
      	  
	  var params = [];
	  params[opensocial.Message.Field.TYPE] = opensocial.Message.Type.EMAIL;
	  
	  if(oneSong)
	  {
	  	params[opensocial.Message.Field.TITLE] = userFirstName+" has dedicated a song to you";
	  	var body = "Hi,<br/><br/>"+userFirstName+" dedicated you the song <a href='"+link+"'>"+songName+"</a>. To listen to your dedication please visit the album "+albumName+" here:<br/>"+link;
	  }
	  else
	  {
	  	params[opensocial.Message.Field.TITLE] = userFirstName+" has dedicated a musical "+page+" to you";
	  	var body = "Hi,<br/><br/>"+userFirstName+" dedicated you the "+page+" '"+albumName+"'. To listen to your dedication please visit the "+page+" "+albumName+" here: <br/>"+link;
	  }
	  
	  appLink = makeLink('home',1); 
	  body = body+" <br/><br/>Now it's your turn :) <br/><br/> Send "+userFirstName+" some nice songs using "+appName+": "+appLink;
	  
	  var message = opensocial.newMessage(body, params);
	  var recipient = "VIEWER_FRIENDS";
	  //var recipient = "OWNER";
	  opensocial.requestSendMessage(recipient, message, sendEmailCallback);
};
 
function sendEmailCallback(data) 
{
	  if (data.hadError()) 
	  {
	     console.log("Sorry! There was a problem sending the message. Please refresh the page and try again.");
	  } 
};

function inviteFriends(page, page_id, photo) 
{      
            
      	  
	  var params = [];
	  params[opensocial.Message.Field.TITLE] = userFirstName+" has invited you to try out the "+appName+" application";
	  params[opensocial.Message.Field.TYPE] = opensocial.Message.Type.EMAIL;
	
	  var body = "Hi,<br/><br/>I am using Dhingana.com's "+appName+" application to listen music on orkut. It allows you to send musical scraps to your friends, dedicate songs and discover new music with your friends. I love it and I think you will enjoy it as well. <br/><br/> <a href='"+link+"'>Check out "+appName+" application here</a>:<br/>"+link+"<br/><br/>Cheers,<br/>"+userFirstName;
	  
	  var message = opensocial.newMessage(body, params);
	  var recipient = "VIEWER_FRIENDS";
	  //var recipient = "OWNER";
	  opensocial.requestSendMessage(recipient, message, sendEmailCallback);
};
	 
	function makeLink(page, page_id, install, song_ids) {
	
		//create the params object
		if(song_ids == null) {
			var data = { "page": page,
	             		"page_id": page_id };
	    } else {
	    	var data = { "page": page,
	             		"page_id": page_id,
	             		"song_ids": song_ids };
	    }
	              
	    var json_data = gadgets.json.stringify(data);
	    var url_data = encodeURIComponent(json_data);
	    
	    if(install != null) {
	    	return [ gadgets.util.getUrlParameters()["parent"], 
		           "/Application.aspx?appId=", 
		           getAppId()].join("");
	    } else if (page=='mysmartlist' || page=='mymusic') {
			return [ gadgets.util.getUrlParameters()["parent"], 
		           "/Application.aspx?uid=",user_orkut_id,"&appId=", 
		           getAppId(), 
		           "&appParams=",url_data].join("");
		} else {
			return [ gadgets.util.getUrlParameters()["parent"], 
		           "/Application.aspx?appId=", 
		           getAppId(), 
		           "&appParams=",url_data].join("");
		}
	};
	
	function refreshContent(option, id)
	{
		gotoSection('topsongs',option, 'bd');
	}
	
	function getAppId()
	{
		return gadgets.util.getUrlParameters()["gadgetId"];
	}
	
	
	function sl_Error(msg, ele1, ele2)
	{
		document.getElementById(ele1).style.border= 'solid 2px #E00000';
		document.getElementById(ele2).style.border='';
		document.getElementById('slForm_status').style.display='block';
		document.getElementById('slForm_error').innerHTML = msg;
		document.getElementById(ele1).focus(); 
	}
	
	function validateSmartListForm(sl_type, operation_type, smartlistId, photo)
	{
		slName = document.slForm.sl_name.value;
		slDesc = document.slForm.sl_description.value;
		slPic = document.slForm.picturefile.value;
		numericExpression = /^[0-9]+$/;
		
		if(slName.length < 3)
		{	
			sl_Error('smartlist name should atleast be 3 characters long. Your friends may not like it. Lets get more creative with names.','sl_name','sl_description');
			return false;
		} 
		if(slName.match(numericExpression))
		{
			sl_Error('smartlist name cannot be only numbers :( Your friends will get confused. Lets get more creative with names.','sl_name','sl_description');
			return false;
		}
		if(slDesc.length < 2 || slDesc.length > 1024 )
		{	
			sl_Error('smartlist description should be between 3 and 1024 characters long. Your friends may not like it. Lets get more creative with descriptions.','sl_description','sl_name'); 
			return false;
		} 
		if(slDesc.match(numericExpression))
		{
			sl_Error('smartlist description cannot be only numbers :( Your friends will get confused. Lets get more creative with descriptions.','sl_description','sl_name');
			return false;
		}
		iDot=slPic.indexOf(".");
		if(iDot > 0)
		{
			ext=slPic.split(".");
			ext = ext[ext.length-1].toLowerCase();
			if(ext != 'jpg' && ext != 'png')
			{
				sl_Error('smartlist picture can either be a JPG or a PNG file. We know that sucks, but we are working on it.','picturefile','sl_description');
				return false;
			}
		}
		
		document.slForm.submit(); 
		
		if(operation_type == 'new')
		{
			document.getElementById('sl_options').style.display='none';
			if(sl_type=="public")
			{
				link = makeLink('mysmartlist', 0 );
				body='';//'<a href="'+link+'"><img height=100 src="'+photo+'" /></a>';
				postActivity("created a brand new SmartList <a href='"+link+"'>"+slName+"</a>", body);
			}
		}
		else if (operation_type == 'update')
		{
			if(sl_type=="public")
			{
				link = makeLink('smartlist', smartlistId );
				body='<a href="'+link+'"><img height=100 src="'+photo+'" /></a>';
				postActivity("updated his SmartList <a href='"+link+"'>"+slName+"</a>. Listen to the songs from SmartList <a href='"+link+"'>"+slName+"</a>", body);
			}
			document.getElementById('sl_options').innerHTML='<a href="javascript:void(0);" class="sbutton" onclick="gotoPage(\'smartlist\','+smartlistId+');"><span>view updated smartlist</span><span class="btnbox">&nbsp;</span></a>';
		}
			
		return true;
	}
	
	//Code for the windows..
	function size() {
		var topPos = 0;
		var screenH = 0;
		if (parent.pageYOffset && parent.innerWidth) {
			topPos = parent.pageYOffset;
			screenH = parent.innerHeight;
		}else if (document.documentElement && document.documentElement.scrollTop){
			topPos = parent.document.documentElement.scrollTop;
			screenH = parent.document.documentElement.clientHeight;
		}else if (document.body){
			topPos = parent.document.body.scrollTop;
			screenH = parent.document.body.clientHeight;
	    }
	    return  [topPos, screenH];
	}
	/*
	function show_popup(popup) {
		alert('show_popup');
	    document.getElementById(popup).style.top = locate_window() + 'px';
	    document.getElementById(popup).style.display = 'block';
	    return false;
	}
	function close_popup(popup) {
		alert('show_popup');
		document.getElementById(popup).style.display = 'none';
		return false;
	}*/
	function locate_window() {
		alert('show_popup');
	    var dims = size();
	    popup_height = 314;
	    //var __top = dims[0] + (dims[1] - popup_height) / 2;
	    var __top = dims[0];
	    return __top;
	}
	
	function findPosY(obj)
	{
	    var curtop = 0;
	    if(obj.offsetParent)
	        while(1)
	        {
	          curtop += obj.offsetTop;
	          if(!obj.offsetParent)
	            break;
	          obj = obj.offsetParent;
	        }
	    else if(obj.y)
	        curtop += obj.y;
	    return curtop;
	}
	function show_popup(popup,obj,ids,mode) {
	    //document.getElementById(popup).style.top = findPosY(obj)-parseInt('314')+'px'; 
	    
	    var mainHeight = findPosY(obj);
	    if(mainHeight> parseInt('157')) {
	    	document.getElementById(popup).style.top = findPosY(obj)-parseInt('157')+'px';
	    } else {
	    	document.getElementById(popup).style.top = findPosY(obj)+'px';
	    }
	    
	    document.getElementById(popup).style.display = 'block';
	    
	    if(popup == 'send-scraps')
	    {
	    	var endingEmbedCode = '<param name="FlashVars" value="queryValue='+ids+'" /><param name="AllowScriptAccess" value="always" /><embed src="http://cdn.dhingana.com/stream/DhinganaPlayer_v2.swf" width="369" height="373" type="application/x-shockwave-flash" FlashVars="queryValue='+ids+'" AllowScriptAccess="always" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object><br><a href="http://www.dhingana.com" style="font-size: 80%; color: #777777">music @ dhingana.com</a></div><img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyMzUyOTE1NjE4MjYmcHQ9MTIzNTI5MTU2NjczMyZwPTE2ODA2MSZkPSZnPTEmdD*mbz*yOGUzMGU2ZGY2OWE*ZTNiOGZkMWRlMDc3YjJhOTQ2YQ==.gif" />';
	    	document.getElementById('scrap_text_area').value = document.getElementById('scrap_text_area').value+endingEmbedCode;
	    }
	    else if (popup == 'add-to-list') 
	    {
	    	songId = ids; //set global song id
	    	if(mode == 'edit-smartlist')
	    		callServerAPI('api1.php/orkut/displaySmartListWindow?smartlistId='+ids+'&edit=true', 'smartlist-window');
	    	else
	    		callServerAPI('api1.php/orkut/displaySmartListWindow?songId='+ids, 'smartlist-window');
	    }	
	    return false;
	}
	function close_popup(popup) {
		document.getElementById(popup).style.display = 'none';
		return false;
	}
	
			_IG_Analytics('UA-372861-6', '/gmail');
		
</script>		
		<div id="frame-content">
			<b>Loading music....</b><br/><br/>
			<img src='http://ugc.dhingana.com/css/orkut/images/loading.gif' />
		</div>	
  	]]>
</Content>
<Content type="html" view="home, nav">
	<![CDATA[
		<!-- ALm6fM3xfJAzLtpu4BbRbqBuksNmTImT4-YWMNTUKH0LmR-jE8kzKnLS5jq7r3wgHp1tXPDBPZP5-ddQtdMlkgz9y4iAZGfEpc1gGrDWJERkRFPWml0yGBg= -->
		<style type="text/css">
<!--
html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:text-top;}sub{vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;}del,ins{text-decoration:none;}body{font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}select,input,button,textarea{font:99% arial,helvetica,clean,sans-serif;}table{font-size:inherit;font:100%;}pre,code,kbd,samp,tt{font-family:monospace;*font-size:108%;line-height:100%;}body{text-align:center;}#ft{clear:both;}#doc,#doc2,#doc3,#doc4,.yui-t1,.yui-t2,.yui-t3,.yui-t4,.yui-t5,.yui-t6,.yui-t7{margin:auto;text-align:left;width:57.69em;*width:56.25em;min-width:750px;}#doc2{width:73.076em;*width:71.25em;}#doc3{margin:auto 10px;width:auto;}#doc4{width:74.923em;*width:73.05em;}.yui-b{position:relative;}.yui-b{_position:static;}#yui-main .yui-b{position:static;}#yui-main,.yui-g .yui-u .yui-g{width:100%;}{width:100%;}.yui-t1 #yui-main,.yui-t2 #yui-main,.yui-t3 #yui-main{float:right;margin-left:-25em;}.yui-t4 #yui-main,.yui-t5 #yui-main,.yui-t6 #yui-main{float:left;margin-right:-25em;}.yui-t1 .yui-b{float:left;width:12.30769em;*width:12.00em;}.yui-t1 #yui-main .yui-b{margin-left:13.30769em;*margin-left:13.05em;}.yui-t2 .yui-b{float:left;width:13.8461em;*width:13.50em;}.yui-t2 #yui-main .yui-b{margin-left:14.8461em;*margin-left:14.55em;}.yui-t3 .yui-b{float:left;width:23.0769em;*width:22.50em;}.yui-t3 #yui-main .yui-b{margin-left:24.0769em;*margin-left:23.62em;}.yui-t4 .yui-b{float:right;width:13.8456em;*width:13.50em;}.yui-t4 #yui-main .yui-b{margin-right:14.8456em;*margin-right:14.55em;}.yui-t5 .yui-b{float:right;width:18.4615em;*width:18.00em;}.yui-t5 #yui-main .yui-b{margin-right:19.4615em;*margin-right:19.125em;}.yui-t6 .yui-b{float:right;width:23.0769em;*width:22.50em;}.yui-t6 #yui-main .yui-b{margin-right:24.0769em;*margin-right:23.62em;}.yui-t7 #yui-main .yui-b{display:block;margin:0 0 1em 0;}#yui-main .yui-b{float:none;width:auto;}.yui-gb .yui-u,.yui-g .yui-gb .yui-u,.yui-gb .yui-g,.yui-gb .yui-gb,.yui-gb .yui-gc,.yui-gb .yui-gd,.yui-gb .yui-ge,.yui-gb .yui-gf,.yui-gc .yui-u,.yui-gc .yui-g,.yui-gd .yui-u{float:left;}.yui-g .yui-u,.yui-g .yui-g,.yui-g .yui-gb,.yui-g .yui-gc,.yui-g .yui-gd,.yui-g .yui-ge,.yui-g .yui-gf,.yui-gc .yui-u,.yui-gd .yui-g,.yui-g .yui-gc .yui-u,.yui-ge .yui-u,.yui-ge .yui-g,.yui-gf .yui-g,.yui-gf .yui-u{float:right;}.yui-g div.first,.yui-gb div.first,.yui-gc div.first,.yui-gd div.first,.yui-ge div.first,.yui-gf div.first,.yui-g .yui-gc div.first,.yui-g .yui-ge div.first,.yui-gc div.first div.first{float:left;}.yui-g .yui-u,.yui-g .yui-g,.yui-g .yui-gb,.yui-g .yui-gc,.yui-g .yui-gd,.yui-g .yui-ge,.yui-g .yui-gf{width:49.1%;}.yui-gb .yui-u,.yui-g .yui-gb .yui-u,.yui-gb .yui-g,.yui-gb .yui-gb,.yui-gb .yui-gc,.yui-gb .yui-gd,.yui-gb .yui-ge,.yui-gb .yui-gf,.yui-gc .yui-u,.yui-gc .yui-g,.yui-gd .yui-u{width:32%;margin-left:1.99%;}.yui-gb .yui-u{*margin-left:1.9%;*width:31.9%;}.yui-gc div.first,.yui-gd .yui-u{width:66%;}.yui-gd div.first{width:32%;}.yui-ge div.first,.yui-gf .yui-u{width:74.2%;}.yui-ge .yui-u,.yui-gf div.first{width:24%;}.yui-g .yui-gb div.first,.yui-gb div.first,.yui-gc div.first,.yui-gd div.first{margin-left:0;}.yui-g .yui-g .yui-u,.yui-gb .yui-g .yui-u,.yui-gc .yui-g .yui-u,.yui-gd .yui-g .yui-u,.yui-ge .yui-g .yui-u,.yui-gf .yui-g .yui-u{width:49%;*width:48.1%;*margin-left:0;}.yui-g .yui-g .yui-u{width:48.1%;}.yui-g .yui-gb div.first,.yui-gb .yui-gb div.first{*margin-right:0;*width:32%;_width:31.7%;}.yui-g .yui-gc div.first,.yui-gd .yui-g{width:66%;}.yui-gb .yui-g div.first{*margin-right:4%;_margin-right:1.3%;}.yui-gb .yui-gc div.first,.yui-gb .yui-gd div.first{*margin-right:0;}.yui-gb .yui-gb .yui-u,.yui-gb .yui-gc .yui-u{*margin-left:1.8%;_margin-left:4%;}.yui-g .yui-gb .yui-u{_margin-left:1.0%;}.yui-gb .yui-gd .yui-u{*width:66%;_width:61.2%;}.yui-gb .yui-gd div.first{*width:31%;_width:29.5%;}.yui-g .yui-gc .yui-u,.yui-gb .yui-gc .yui-u{width:32%;_float:right;margin-right:0;_margin-left:0;}.yui-gb .yui-gc div.first{width:66%;*float:left;*margin-left:0;}.yui-gb .yui-ge .yui-u,.yui-gb .yui-gf .yui-u{margin:0;}.yui-gb .yui-gb .yui-u{_margin-left:.7%;}.yui-gb .yui-g div.first,.yui-gb .yui-gb div.first{*margin-left:0;}.yui-gc .yui-g .yui-u,.yui-gd .yui-g .yui-u{*width:48.1%;*margin-left:0;} .yui-gb .yui-gd div.first{width:32%;}.yui-g .yui-gd div.first{_width:29.9%;}.yui-ge .yui-g{width:24%;}.yui-gf .yui-g{width:74.2%;}.yui-gb .yui-ge div.yui-u,.yui-gb .yui-gf div.yui-u{float:right;}.yui-gb .yui-ge div.first,.yui-gb .yui-gf div.first{float:left;}.yui-gb .yui-ge .yui-u,.yui-gb .yui-gf div.first{*width:24%;_width:20%;}.yui-gb .yui-ge div.first,.yui-gb .yui-gf .yui-u{*width:73.5%;_width:65.5%;}.yui-ge div.first .yui-gd .yui-u{width:65%;}.yui-ge div.first .yui-gd div.first{width:32%;}#bd:after,.yui-g:after,.yui-gb:after,.yui-gc:after,.yui-gd:after,.yui-ge:after,.yui-gf:after{content:".";display:block;height:0;clear:both;visibility:hidden;}#bd,.yui-g,.yui-gb,.yui-gc,.yui-gd,.yui-ge,.yui-gf{zoom:1;}

.cl, .clear {
	font-size: 0;
	line-height: 0;
	height: 0;
	display: block;
	clear: both;
}
body {
	color: #000;
	background: #fff;
	font-family: Verdana, Arial, "MS Trebuchet", sans-serif;
}
.left {
	float: left;
	display: inline;
}
.right {
	float: right;
	display: inline;
}
.acenter {
	text-align: center;
}
a, a:visited {
	color: #05699e;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

#frame-content {
	font-size: 87%;
}

#doc3 {margin:auto;}

.navbar {
	border-bottom: solid 1px #81a1c6;
	margin-bottom: 7px;
}
.usertabs {
	float: right;
	display: inline;
	width: 47%;
	line-height: 23px;
	height: 23px;
}
.usertabs a,
.usertabs span {
	float: right;
	color: #f82307;
	font-weight: bold;
}
.usertabs span {
	padding: 0 7px;
}

/*----- Start "Search Bar" -----*/
.search-bar {
	float: left;
	display: inline;
	height: 40px;
	background: #769dd0;
	/*width: 498px;*/
	padding-left: 23px;
	padding-top: 19px;
}
.search-bar .field,
.search-bar .button {
	float: left;
	display: inline;
}
.search-bar select.field {
	width: 104px;
	margin-right: 2px;
	margin-top: -1px;
}
.search-bar input.field {
	width: 300px;
	border: 0;
	background: #fff url(http://cdn.dhingana.com/css/orkut/images/search-field.gif) no-repeat 2px center;
	padding: 3px 0 3px 10px;
	margin-right: 7px;
}
/*------ End "Search Bar" ------*/

.player {
	float: right;
	display: inline;
	height: 59px;
	width: 308px;
}
h2 {
	font-size: 18px;
	padding-left: 15px;
}
h3 {
	font-weight: bold;
	font-family: Arial, "MS Trebuchet", sans-serif;
	font-size: 145%;
	line-height: 162.5%;
}
h3 a span {
	color: #05699e;
	font-size: 91%;
}
h3 a {
	color: #000;
}
h3 a:hover {
	text-decoration: none;
}
a.sbutton {
	display: block;
	height: 18px;
	line-height: 18px;
	font-weight: bold;
	margin: 4px 0;
}
a.sbutton:hover {
	text-decoration: none;
}
a.sbutton span {
	float: left;
	display: inline;
	background: url(http://cdn.dhingana.com/css/orkut/images/btnbox_l.gif) no-repeat 0 0;
	padding-left: 5px;
	cursor: pointer;
}
a.sbutton span.btnbox {
	display: block;
	float: left;
	padding-left: 0;
	width: 5px;
	background: url(http://cdn.dhingana.com/css/orkut/images/btnbox_r.gif) no-repeat right 0;
}
.bordb1 {
	height: 1px;
	line-height: 0;
	font-size: 0;
	text-indent: -4000px;
	background: #d7e6f8;
	margin: 1px 0;
	clear: both;
}
.bordb2 {
	height: 1px;
	line-height: 0;
	font-size: 0;
	text-indent: -4000px;
	background: #ccc;
	margin: 4px 0;
	clear: both;
}
.bordmt, .bordmb {
	height: 1px;
	line-height: 0;
	font-size: 0;
	text-indent: -4000px;
}
.bordmt {
	margin-top: 5px;
}
.bordmb {
	margin-bottom: 5px;
}
.colbox {
	background: #edf7ff;
	padding: 9px 2px 20px;
}
.musicbox .image {
	float: left;
	display: inline;
	width: 106px !important;
	text-align: center;
}
.musicbox .image a.img img {
	padding: 2px;
	border: solid 1px #c0c1c1;
}
.musicbox .content {
	float: left;
	display: inline;
	width: 270px !important;
	/*width: 280px !important;*/
	padding-left: 14px;
}
.widermusicbox .content {
	width: 416px !important;
}
.widermusicbox {
	background: #edf7ff;
	padding: 2px 0 10px 2px;
	margin-bottom: 2px;
}
.musicbox .content .sbutton {
	margin-top: 14px;
}
.musicbox h4 {
	font-size: 14px;
}
.musicbox .grcol {
	color: #9796a0;
}
.musicbox .links {
	padding-top: 18px;
}
.fave-ico {
	width: 16px;
	height: 15px;
	background: url(http://cdn.dhingana.com/css/orkut/images/sprite.gif) no-repeat -90px -2px;
	float: left;
	margin-right: 9px;
	margin-top: 2px;
}
.tsongs {
	margin: 8px 0;
}
.tsongs .title {
	font-size: 109%;
	line-height: 16px;
}
.type-music {
	padding-left: 20px;
	background: url(http://cdn.dhingana.com/css/orkut/images/play-ico.gif) no-repeat 0 center;
}
.type-doc {
	height: 17px;
	width: 16px;
	background: url(http://cdn.dhingana.com/css/orkut/images/sprite.gif) no-repeat -31px 0;
	margin-bottom: -3px;
	margin-right: 7px;
}
.type-mov {
	height: 16px;
	width: 16px;
	background: url(http://cdn.dhingana.com/css/orkut/images/sprite.gif) no-repeat -15px -1px;
	margin-right: 7px;
}
.type-song {
	width: 16px;
	height: 14px;
	background: url(http://cdn.dhingana.com/css/orkut/images/sprite.gif) no-repeat -47px -2px;
	margin-right: 8px;
	margin-bottom: -3px;
}
img.arrowed {
	width: 11px;
	height: 6px;
	background: url(http://cdn.dhingana.com/css/orkut/images/sprite.gif) no-repeat -78px -2px;
	margin-right: 5px;
	margin-bottom: 2px;
}
.star {
	height: 14px;
	width: 14px;
	margin-top: 3px;
	margin-right: 3px;
	margin-bottom: -3px;
	background: url(http://cdn.dhingana.com/css/orkut/images/sprite.gif) no-repeat -63px -2px;
}
.tsongs .buttons a {
	float: left;
	display: inline;
	margin: 0;
	margin-right: 9px;
}
.ch-lang {
	float: right;
	font-size: 91%;
	padding-top: 5px;
}
.ch-lang select {
	width: 106px;
}
.musical-feed {
	font-size: 127%;
	color: #060606;
	width: 510px;
	padding-left: 15px;
}
.musical-feed ul li {
	padding: 5px 0;
}
.musical-feed ul li ul {
	padding-left: 15px;
}
/*----- Start "Footer" -----*/
#ft {
	padding-top: 30px;
	font-size: 91%;
	color: #bbbbbb;
}
#ft .copy {
	color: #555;
}
/*------ End "Footer" ------*/

/*----- Start "Main Tabs (Orkut Design)" -----*/
ul.intabs{height:23px; padding-left: 7px; }
ul.intabs li{ 
	background-repeat:no-repeat;
	background-position:right;
	margin-right:5px;
	line-height:23px;
	font-weight:700;
	padding-right:6px;
	float: left;
}
ul.intabs li .ltab,
ul.intabs li.sel .ltab {
	width:6px;
	height:23px;
	background-position:left;
	background-repeat:no-repeat;
	float:left;
}
ul.intabs li.sel, 
ul.intabs li.sel a {
	color:#fff
}
ul.intabs li{background-image:url(http://cdn.dhingana.com/css/orkut/images/tabnotsel_r.gif)}
ul.intabs li .ltab{background-image:url(http://cdn.dhingana.com/css/orkut/images/tabnotsel_l.gif)}
ul.intabs li.sel{background-image:url(http://cdn.dhingana.com/css/orkut/images/tabsel_r.gif)}
ul.intabs li.sel .ltab{background-image:url(http://cdn.dhingana.com/css/orkut/images/tabsel_l.gif)}
/*------ End "Main Tabs (Orkut Design)" ------*/

img.smartlist {
	height: 12px;
	width: 12px;
	background: url(http://cdn.dhingana.com/css/orkut/images/sprite.gif) no-repeat 0 -15px;
	margin-bottom: -2px;
	margin-right: 7px;
}
img.profile {
	width: 12px;
	height: 14px;
	background: url(http://cdn.dhingana.com/css/orkut/images/sprite.gif) no-repeat -78px -12px;
	margin-bottom: -2px;
	margin-right: 7px;
}
.profile-image .image {
	float: left;
	display: inline;
	margin-right: 16px;
}
.profile-image .links .name {
	font-weight: bold;
}
.profile-image .links p {
	padding-bottom: 8px;
}
.profile-info {
	float: right !important;
	display: inline !important;
	margin-left: 0 !important;
}
.profile-info .description {
	line-height: 24px;
	border: solid 1px #e9e9e9;
	padding-left: 10px;
	margin-bottom: 5px;
}
.profile-info table tr td {
	background: #d9eeff;
	line-height: 19px;
}
.profile-info table tr.row td {
	background: #edf7ff;
}
.profile-info table tr td.label {
	width: 30%;
	text-align: right;
	padding-right: 5%;
	color: #676677;
}
.profile-info .aright {
	text-align: right;
	font-weight: bold;
}
.paging {
	float: right;
	color: #a39999;
	font-size: 118%;
	line-height: 180%;
	margin-right: 5px;
}
.profiles a {
	float: left;
	display: inline;
	height: 95px;
	width: 85px;
	background: #f0f0f0;
	text-align: center;
	padding: 3px 0 0;
	margin-right: 4px;
	margin-bottom: 4px;
}
.profiles a.last {
	margin-right: 0;
}
.profiles a span {
	display: block;
}
.profiles a span.image {
	height: 79px;
}
.bluebutton {
	display: block;
	background: url(http://cdn.dhingana.com/css/orkut/images/blue_btn_r.gif) no-repeat right 0;
	height: 33px;
	line-height: 33px;
	padding-right: 6px;
	font-weight: bold;
	color: #fff;
	font-size: 11px;
	text-align: center;
	font-size: 130%;
}
.bluebutton span {
	display: block;
	background: url(http://cdn.dhingana.com/css/orkut/images/blue_btn_l.gif) no-repeat 0 0;
}
.smartlistbanner {
	text-align: center;
	margin: 9px 0;
}


/*----- Start "Popup" -----*/
.popup {
	position: absolute;
	width:484px;
	top: 400px;
	left: 180px;
	background-color: #edf6ff;
	margin-bottom: 10px;
	font-size: 11px;
	display: none;
	z-index: 10000000;
}
.popup .top,
.popup .bot {
	font-size: 0;
	line-height: 0;
	text-indent: -4000px;
	height: 7px;
	background: none no-repeat 0 0;
}
.popup .top {
	background-image: url(http://cdn.dhingana.com/css/orkut/images/pop-top.png);
}
.popup .bot {
	background-image: url(http://cdn.dhingana.com/css/orkut/images/pop-bot.png);
}
.popup .cnt {
	background: url(http://cdn.dhingana.com/css/orkut/images/pop-cnt.gif) repeat-y 0 0;
	height: 270px;
	position: relative;
	text-align: left;
	padding: 15px 20px;
}
.popup .cancel-button {
	margin: 0;
	position: absolute;
	bottom: 8px;
	left: 16px;
}
.popup h2 {
	padding: 0;
}
.popup .add-smartlist .sbutton {
	margin-top: 0;
	margin-bottom: 0;
}
.popup .add-smartlist .left {
	margin-right: 8px;
}
.popup .add-smartlist .row {
	margin-bottom: 5px;
}
.popup .add-smartlist .row .left {
	width: 126px;
	text-align: right;
	padding-right: 10px;
	margin-right: 0;
}
.popup .add-smartlist .row .right {
	float: left;
	width: 286px;
}
.popup .add-smartlist .create-smartlist {
	float: left;
	display: inline;
	margin-left: 136px;
}

#carousel {
	width: 717px;
	padding-left: 48px;
	padding-right: 48px;
	position: relative;
}
#carousel .yui-carousel-content {
	width: 640px;
}
#carousel-elements li {
	float: left;
	display: inline;
	width: 150px;
	height: 150px;
	margin: 0;
	margin-right: 8px;
	border: solid 1px #ccc;
}
#carousel .yui-carousel-nav ul {
	display: none;
}
#carousel .yui-carousel-nav .yui-carousel-button input {
	border: 0;
	background: url(http://cdn.dhingana.com/css/orkut/images/sprite.gif) no-repeat -178px -2px;
	height: 24px;
	width: 24px;
	font-size: 0;
	line-height: 0;
	text-indent: -4000px;
	position: absolute;
	top: 62px;
	left: 538px;
	cursor: pointer;
}
#carousel .yui-carousel-nav .yui-carousel-button-disabled input {
	background-position: -130px -2px;
	cursor: default;
}
#carousel .yui-carousel-nav .yui-carousel-first-button input {
	background: url(http://cdn.dhingana.com/css/orkut/images/sprite.gif) no-repeat -154px -2px;
	left: 8px;
}
#carousel .yui-carousel-nav .yui-carousel-first-button-disabled input {
	background-position: -106px -2px;
	cursor: default;
}
-->
</style>

<!--[if IE 6]>
<style type="text/css">
.popup .top {
	background:none;
	filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://cdn.dhingana.com/css/orkut/images/pop-top.png', sizingMethod='image');
}
.popup .bot {
	background:none;
	filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://cdn.dhingana.com/css/orkut/images/pop-bot.png', sizingMethod='image');
}
</style>
<![endif]-->		<script type="text/javascript">
	var baseUrl = "http://www.dhingana.com/";
	var errorMessage = "Sorry! Your session has expired. Maybe you did not use the application for more then 60 minutes. Please re-fresh this page and try again.";
	
    var params = {}; 
      params[gadgets.io.RequestParameters.AUTHORIZATION] = gadgets.io.AuthorizationType.SIGNED;
      params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.TEXT;    
      gadgets.io.makeRequest(baseUrl+'api1.php/orkut/leftNav', getHomePage, params);
   
	function getHomePage(ret) {  
      
      
      //obj.text contains the text of the page that was requested 	
      if(ret) {
      		if(ret.text != undefined) { 
	      		//obj.text contains the text of the page that was requested  
	      		document.getElementById('frame-content').innerHTML = ret.text;   
	      		//setInterval("gadgets.window.adjustHeight('290');",1000);
	      		gadgets.window.adjustHeight('280');
	      	} else {
	      		document.getElementById('frame-content').innerHTML = "<div style='padding: 20px; font-size: 110%'>"+errorMessage+"</div>";
	      	}
	  } else {
	  		document.getElementById('frame-content').innerHTML = "<div style='padding: 20px; font-size: 110%'>"+errorMessage+"</div>";
	  }
		  
    };
    
    function gotoCanvas(page, id) {
    var params = {};
  	params["page"] = page;
  	params["page_id"] = id;
    gadgets.views.requestNavigateTo(gadgets.views.getSupportedViews()['canvas'],params);
    }
    
    

function dhinganaPlayer(url, songName, albumName, photo, page, page_id, oneSong, width_height)
{
		
		
	playerWindow = window.open(url,'Dhingana',width_height);
	playerWindow.focus();
	return true;
}

    
    		_IG_Analytics('UA-372861-6', '/gmail/nav');
	  
</script> 
		
	   	<div id="frame-content">
		<b>Loading music....</b><br/><br/>
		<img src='http://cdn.dhingana.com/css/orkut/images/loading.gif' />
	</div>
	]]>
</Content>
 
		
</Module>

