<?php echo $header; ?><?php echo $column_right; ?>
<style type="text/css"> 
.container { position:relative; }
.imgA1 {   z-index: 1; } 
.imgB1 {   z-index: 3;position: absolute;margin-top: 146px;margin-left: -132px; } 
.imgC1 {   z-index: 3;position: absolute;margin-top: 164px;margin-left: -118px;color: #EB6C32;font-weight: bold;} 
.imgD1 {   z-index: 7;position: absolute;margin-top: 69px;margin-left: -142px;font-weight: bold;font-size: 24px;}
.img-with {   z-index: 7;position: absolute; margin-left: -45px;font-weight: bold;margin-top: 174px;font-size: 24px;}
.imgE1 {   z-index: 1; } 
.imgF1 {   z-index: 3;position: absolute;margin-top: -35px;margin-left: 49px; } 
.imgG1 {   z-index: 3;position: absolute;margin-top: -14px;margin-left: 63px;color: #EB6C32;font-weight: bold;} 
.imgH1 {   z-index: 7;position: absolute;margin-top: -113px;margin-left: 32px;font-weight: bold;font-size: 24px;color: black;}
</style> 
     <script>

    // This is the first thing we add ------------------------------------------
    $(document).ready(function() {
        $('.rate_widget').each(function(i) {
            var widget = this;
            var out_data = {
                widget_id : $(widget).attr('id'),
                fetch: 1
            };
            $.post(
                'ratings.php',
                out_data,
                function(INFO) {
                    $(widget).data( 'fsr', INFO );
                    set_votes(widget);
                },
                'json'
            );
        });
        $('.ratings_stars').hover(
            // Handles the mouseover
            function() {
                $(this).prevAll().andSelf().addClass('ratings_over');
                $(this).nextAll().removeClass('ratings_vote'); 
            },
            // Handles the mouseout
            function() {
                $(this).prevAll().andSelf().removeClass('ratings_over');
                // can't use 'this' because it wont contain the updated data
				var c=$(this).parent();
				var d=$(this).attr('style');
                set_votes(c,d);
            }
        );
        
        
        // This actually records the vote
        $('.ratings_stars').bind('click', function() {
            var star = this;
            var widget = $(this).parent();
            
            var clicked_data = {
                clicked_on : $(star).attr('class'),
                widget_id : $(star).parent().attr('id')
            };
            $.post(
                'ratings.php',
                clicked_data,
                function(INFO) {
                    widget.data( 'fsr', INFO );
                    set_votes(widget);
                },
                'json'
            ); 
        });
    });

    function set_votes(widget,avg) {
        $(widget).find('.star_' + avg).prevAll().andSelf().addClass('ratings_vote');
        $(widget).find('.star_' + avg).nextAll().removeClass('ratings_vote');  
    }
    // END FIRST THING
    </script>
    <style>
        .rate_widget1 {
            border:     1px solid #CCC;
            overflow:   visible;
            padding:    10px;
            position:   relative;
            width:      180px;
            height:     32px;
        }
        .ratings_stars {
            background: url('nostar.png') no-repeat;
            float:      left;
            height:     18px;
            width:      18px;
			cursor: pointer;
        }
        .ratings_vote {
            background: url('single.png') no-repeat;
        }
        .ratings_over {
            background: url('marked.png') no-repeat;
        }
        .total_votes {
            background: #eaeaea;
            top: 58px;
            left: 0;
            padding: 5px;
            position:   absolute;  
        } 
        .movie_choice {
            font: 10px verdana, sans-serif;
            margin: 0 auto 40px auto;
            width: 180px;
        }
        h1 {
            text-align: center;
            width: 400px;
            margin: 20px auto;
        }
    </style>	  

<div id="content"><?php echo $content_top; ?>
  <?php if ($error_warning) { ?>
  <div class="warning"><?php echo $error_warning; ?></div>
  <?php } ?>
  <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="edit">
  <?php $idd = 'Engagement Ring for Emily (Contest # '. $con_id .')'?>
    <h3><?php echo $idd; ?></h3>
	<hr>
	  <div id="tabs" class="htabs">
			<!-- <a href="#tab-entries" style="font-family:calibri;">ENTRIES</a> -->
			<a href="#tab-designers" style="font-family:calibri;">DESIGNERS</a>
			<a href="#tab-designbrief" style="font-family:calibri;">DESIGN BRIEF</a>
	  </div>
	  <!---
	  
    <div class="content" id="tab-entries" style="background:none;border-right:none;border-left:none;border-bottom:none;">
		<div style="width:962px;margin-left:10px;"> 
			<div style="width:500px;position:relative;float:left;margin-bottom:15px;">
				<span style="color:#FA6102;margin-right:10px;font-weight:bold;">	Show </span>
				<span id="mainall" style="cursor:pointer;margin-right:10px;text-decoration:underline;">	All </span>
				<span id="mainactive" style="cursor:pointer;margin-right:10px;text-decoration:underline;">	Active</span>
				<span id="mainunrated" style="cursor:pointer;margin-right:10px;text-decoration:underline;">	Unrated</span>
				<span id="mainrated" style="cursor:pointer;margin-right:10px;text-decoration:underline;">	Rated</span>
				<span id="maineliminated" style="cursor:pointer;margin-right:10px;text-decoration:underline;">	Eliminated</span>
				<span id="mainwithdrawn" style="cursor:pointer;margin-right:10px;text-decoration:underline;">	Withdrawn</span>
			</div>
			<div style="width:400px;position:relative;float:right;text-align:right;margin-bottom:15px;">
				<span style="color:#FA6102;margin-right:10px;font-weight:bold;">	Sort By </span>
				<span style="margin-right:10px;">	<a href="index.php?route=account/overall&time=1">Time </a></span>
				<span style="margin-right:10px;">	<a href="index.php?route=account/overall&rating=1">Rating </a></span>
			</div>
		</div>
		
		<div id="all" style="display:block;width:962px;margin-left:10px;">
			<?php foreach ($sketch_masters as $sketch_master) { ?>
			<div class="overallsection">
			   <?php if ($sketch_master['thumb']) { ?>
					<div class="image"><a href="index.php?route=account/feedback&sid=<?php echo $sketch_master['sketch_id']; ?>">
					<!--<img style="border:2px solid #EBEAEA;" src="<?php echo $sketch_master['thumb']; ?>"  /> 
					<img class="imgE1" style="border:2px solid #EBEAEA;" src="<?php echo $sketch_master['thumb']; ?>"  />
							<?php if($sketch_master['withdrawn'] == 'y') { ?> 
							<span class="imgH1" width="85px" >Withdrawn </span>
							<?php } ?>
							<?php if($sketch_master['eliminated'] == 'y') { ?>
							<span class="imgH1" width="85px" >Eliminated </span>
							<?php } ?>
					
					</a></div>
				<?php } ?> 
				<?php if($sketch_master['withdrawn'] != 'y' && $sketch_master['eliminated'] != 'y' ) { ?> 
				<?php if($sketch_master['rating'] == 1) { ?> 
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="1" class="star_1 ratings_stars ratings_vote"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="2" class="star_2 ratings_stars"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="3" class="star_3 ratings_stars"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="4" class="star_4 ratings_stars"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="5" class="star_5 ratings_stars"></div>
				<?php } elseif($sketch_master['rating'] == 2) { ?>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="1" class="star_1 ratings_stars ratings_vote"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="2" class="star_2 ratings_stars ratings_vote"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="3" class="star_3 ratings_stars"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="4" class="star_4 ratings_stars"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="5" class="star_5 ratings_stars"></div>
				<?php } elseif($sketch_master['rating'] == 3) { ?>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="1" class="star_1 ratings_stars ratings_vote"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="2" class="star_2 ratings_stars ratings_vote"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="3" class="star_3 ratings_stars ratings_vote"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="4" class="star_4 ratings_stars"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="5" class="star_5 ratings_stars"> </div>
				<?php } elseif($sketch_master['rating'] == 4) { ?>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="1" class="star_1 ratings_stars ratings_vote"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="2" class="star_2 ratings_stars ratings_vote"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="3" class="star_3 ratings_stars ratings_vote"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="4" class="star_4 ratings_stars ratings_vote"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="5" class="star_5 ratings_stars"></div>
				<?php } elseif($sketch_master['rating'] == 5) { ?>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="1" class="star_1 ratings_stars ratings_vote"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="2" class="star_2 ratings_stars ratings_vote"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="3" class="star_3 ratings_stars ratings_vote"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="4" class="star_4 ratings_stars ratings_vote"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="5" class="star_5 ratings_stars ratings_vote"></div>
				<?php } else { ?>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="1" class="star_1 ratings_stars"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="2" class="star_2 ratings_stars"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="3" class="star_3 ratings_stars"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="4" class="star_4 ratings_stars"></div>
				<div style="<?php echo $sketch_master['rating']; ?>" lang="<?php echo $sketch_master['sketch_id']; ?>" id="rate" value="5" class="star_5 ratings_stars"></div>
				<?php } ?> 
				
					<div class="overallitems">
							<a href="index.php?route=desaccount/feedback&sid=<?php echo $sketch_master['sketch_id']; ?>"><img width="20px" src="catalog/view/theme/default/image/newimage/fi.png" /></a>
							<img width="20px" title="winner" class="<?php echo $sketch_master['sketch_id']; ?>" alt="<?php echo $sketch_master['designer_id']; ?>" style="<?php echo $sketch_master['design_id']; ?>" id="item" src="catalog/view/theme/default/image/newimage/wi.png" />
							<img width="20px" title="withdrawn" class="<?php echo $sketch_master['sketch_id']; ?>" alt="<?php echo $sketch_master['designer_id']; ?>" style="<?php echo $sketch_master['design_id']; ?>" id="item" src="catalog/view/theme/default/image/newimage/exi.png" />
							<img width="20px" title="eliminated" class="<?php echo $sketch_master['sketch_id']; ?>" alt="<?php echo $sketch_master['designer_id']; ?>" style="<?php echo $sketch_master['design_id']; ?>" id="item" src="catalog/view/theme/default/image/newimage/ei.png" />
					</div>
					<?php } ?>
				<div class="overallname"><a href="index.php?route=desaccount/designerprofile&sid=<?php echo $sketch_master['sketch_id']; ?>"><?php echo $sketch_master['designer_id']; ?></a></div>
				<div class="overallsketchid">#<?php echo $sketch_master['sketch_id']; ?></div>
			</div>	
			<?php } ?> 
		</div>
		<div id="active" style="display:none;width:962px;margin-left:10px;">
			<?php foreach ($sketch_masters as $sketch_master) { ?>
		<?php if($sketch_master['withdrawn'] != 'y' && $sketch_master['eliminated'] != 'y' ) { ?> 
			<div class="overallsection">
			   <?php if ($sketch_master['thumb']) { ?>
					<div class="image"><img style="border:2px solid #EBEAEA;" src="<?php echo $sketch_master['thumb']; ?>"  /></div>
				<?php } ?>
				<div class="overallstar"><img width="85px" src="catalog/view/theme/default/image/newimage/<?php echo $sketch_master['rating'];?>_star.png" /></div>
				<div class="overallitems"><img width="85px" src="catalog/view/theme/default/image/newimage/items.png" /></div>
				<div class="overallname"><a href="index.php?route=desaccount/designerprofile&sid=<?php echo $sketch_master['sketch_id']; ?>"><?php echo $sketch_master['designer_id']; ?></a></div>
				<div class="overallsketchid">#<?php echo $sketch_master['sketch_id']; ?></div>
			</div>	
			<?php } } ?> 
		</div>
		<div id="unrated" style="display:none;width:962px;margin-left:10px;">
			<?php foreach ($sketch_masters as $sketch_master) { ?>
			<?php if ($sketch_master['rating'] == '0') { ?>
			<div class="overallsection">
			   <?php if ($sketch_master['thumb']) { ?>
					<div class="image"><img style="border:2px solid #EBEAEA;" src="<?php echo $sketch_master['thumb']; ?>"  /></div>
				<?php } ?>
				<div class="overallstar"><img width="85px" src="catalog/view/theme/default/image/newimage/<?php echo $sketch_master['rating'];?>_star.png" /></div>
				<div class="overallitems"><img width="85px" src="catalog/view/theme/default/image/newimage/items.png" /></div>
				<div class="overallname"><?php echo $sketch_master['designer_id']; ?></div>
				<div class="overallsketchid">#<?php echo $sketch_master['sketch_id']; ?></div>
			</div>	
			<?php } ?> 
			<?php } ?> 
		</div>
		<div id="rated" style="display:none;width:962px;margin-left:10px;">
			<?php foreach ($sketch_masters as $sketch_master) { ?>
			<?php if ($sketch_master['rating']) { ?>
			<div class="overallsection">
			   <?php if ($sketch_master['thumb']) { ?>
					<div class="image"><img style="border:2px solid #EBEAEA;" src="<?php echo $sketch_master['thumb']; ?>"  /></div>
				<?php } ?>
				<div class="overallstar"><img width="85px" src="catalog/view/theme/default/image/newimage/<?php echo $sketch_master['rating'];?>_star.png" /></div>
				<div class="overallitems"><img width="85px" src="catalog/view/theme/default/image/newimage/items.png" /></div>
				<div class="overallname"><?php echo $sketch_master['designer_id']; ?></div>
				<div class="overallsketchid">#<?php echo $sketch_master['sketch_id']; ?></div>
			</div>	
			<?php } ?> 
			<?php } ?> 
		</div>
		<div id="eliminated" style="display:none;width:962px;margin-left:10px;">
			<?php foreach ($sketch_masters as $sketch_master) { ?>
			<?php if ($sketch_master['eliminated'] == 'y') { ?>
			<div class="overallsection">
			   <?php if ($sketch_master['thumb']) { ?>
					<div class="image"><img style="border:2px solid #EBEAEA;" src="<?php echo $sketch_master['thumb']; ?>"  /></div>
				<?php } ?>
				<span class="imgH1" width="85px" >Eliminated </span>
				<div class="overallname"><?php echo $sketch_master['designer_id']; ?></div>
				<div class="overallsketchid">#<?php echo $sketch_master['sketch_id']; ?></div>
			</div>	
			<?php } ?> 
			<?php } ?> 
		</div>
		<div id="withdrawn" style="display:none;width:962px;margin-left:10px;">
			<?php foreach ($sketch_masters as $sketch_master) { ?>
			<?php if ($sketch_master['withdrawn'] == 'y') { ?>
			<div class="overallsection">
			   <?php if ($sketch_master['thumb']) { ?>
					<div class="image"><img style="border:2px solid #EBEAEA;" src="<?php echo $sketch_master['thumb']; ?>"  /></div>
				<?php } ?>
				<span class="imgH1" width="85px" >Withdrawn </span>
				<div class="overallname"><?php echo $sketch_master['designer_id']; ?></div>
				<div class="overallsketchid">#<?php echo $sketch_master['sketch_id']; ?></div>
			</div>	
			<?php } ?> 
			<?php } ?> 
		</div>
				
	</div>
	 --->
		<div class="content" id="tab-designers" style="background:none;border-right:none;border-left:none;border-bottom:none;">	
		
		  <div style="width:962px;margin-left:10px;"> 
			<div style="position:relative;margin-top:10px;color:#808080;">
				<span style="margin-right:110px;position:relative;left:30px;">	Designer </span>
				<span style="margin-right:10px;">	Submitted Designs </span>
			</div>
		  </div>
		  <hr>  <?php if ($sketch_ids) { ?>
		  <div style="width:962px;margin-left:10px;">  
			 <?php $designerid=0; ?>
				<?php foreach ($sketch_ids as $sketch_id) { ?>
					<?php if ($sketch_id['designer_id'] != $designerid) { ?> 
					   <?php if ($designerid!=0) { ?></div> <hr><?php } ?> 
						<?php $designerid=$sketch_id['designer_id']  ; ?> 
							<div class="image" style="width:120px;float:left;font-weight:bold;margin-right:30px;position:relative;top:20px;left:10px;font-family:calibri;color:#808080;">
							<a href="index.php?route=desaccount/feedback&sid=<?php echo $sketch_master['sketch_id']; ?>">	<img src="<?php echo $sketch_id['designerimage']; ?>"  /> </a><br>
								<?php echo $sketch_id['designer_name']; ?>
							</div>
							<div class="image">
							<?php }	?>	 
							<img class="imgA1" style="border:2px solid #EBEAEA;" src="<?php echo $sketch_id['sketchimage']; ?>"  /> 
							<?php if($sketch_id['rating']) { ?>
							<img class="imgB1" width="85px" src="catalog/view/theme/default/image/newimage/<?php echo $sketch_id['rating'];?>_star.png" />
							<?php } ?>
							<?php if($sketch_id['winner'] == 'y') { ?>
							<span class="imgC1" width="85px" >WINNER ! </span>
							<?php } ?>
							<?php if($sketch_id['withdrawn'] == 'y') { ?>
							<span class="imgD1" width="85px" >Withdrawn </span>
							<?php } ?>
							<?php if($sketch_id['eliminated'] == 'y') { ?>
							<span class="imgD1" width="85px" >Eliminated </span>
							<?php } ?> 
							
							 <span style="cursor:pointer" class="img-with"  >
							 <a href="index.php?route=desaccount/feedback&sid=<?php echo $sketch_id['sketch_id']; ?>"><img width="20px" src="catalog/view/theme/default/image/newimage/fi.png" /></a>
							<img width="20px" title="withdrawn" class="<?php echo $sketch_id['sketch_id']; ?>" alt="<?php echo $sketch_id['designer_id']; ?>" style="<?php echo $sketch_id['designer_id']; ?>" id="item" src="catalog/view/theme/default/image/newimage/ei.png" />
							</span>   
						<?php } ?><br><br><hr>
					</div>
				<?php } ?>
					
		  </div>
		  <div style="width:962px;margin-left:10px;">  
			 <?php $designerid=0; ?>
				<?php foreach ($notdesigner_ids as $sketch_id) { ?>
					<?php if ($sketch_id['designer_id'] != $designerid) { ?> 
					   <?php if ($designerid!=0) { ?></div> <hr><?php } ?> 
						<?php $designerid=$sketch_id['designer_id']  ; ?> 
							<div class="image" style="width:120px;float:left;font-weight:bold;margin-right:30px;position:relative;top:20px;left:10px;font-family:calibri;color:#808080;">
								<img src="<?php echo $sketch_id['designerimage']; ?>"  /><br>
								<?php echo $sketch_id['designer_name']; ?>
							</div>
							<div class="image">
							<?php }	?>	
							<img class="imgA1" style="border:2px solid #EBEAEA;" src="<?php echo $sketch_id['sketchimage']; ?>"  />
							<?php if($sketch_id['rating']) { ?>
							<img class="imgB1" width="85px" src="catalog/view/theme/default/image/newimage/<?php echo $sketch_id['rating'];?>_star.png" />
							<?php } ?>
							<?php if($sketch_id['winner'] == 'y') { ?>
							<span class="imgC1" width="85px" >WINNER ! </span>
							<?php } ?>
							<?php if($sketch_id['withdrawn'] == 'y') { ?>
							<span class="imgD1" width="85px" >Withdrawn </span>
							<?php } ?>
							<?php if($sketch_id['eliminated'] == 'y') { ?>
							<span class="imgD1" width="85px" >Eliminated </span>
							<?php } ?>
						<?php } ?><hr>
					</div>
					
		  </div>
			

		
		</div>
		
		<div class="content" id="tab-designbrief" style="background:none;border-right:none;border-left:none;border-bottom:none;">		
		GemTrésor is all about YOU because we are all about personalization! 
 
Even with a million designs no jewellery store can ever claim to capture that expression which is unique to YOU! But in our store you can because here:
YOU CREATE YOUR JEWELLERY!
 
Sounds interesting? Then read on here to see how you can create that dream design!
		</div>
		

	
  </form>
  <?php echo $content_bottom; ?></div>
<?php echo $footer; ?>
<script type="text/javascript"><!--
$('div[id="rate"]').click(function(){
var sketchvalue=$(this).attr('lang');
var rateval=$(this).attr('value');
$.ajax({
		url: 'index.php?route=account/overall/rating&rate='+rateval,
		type: 'post',
		dataType: 'json',	
		data: 'sketch_id='+ encodeURIComponent(sketchvalue),		
		success: function (json) {
			alert('Rating : '+rateval+' Submitted Successfully');
			window.location.reload(true);
		}
	});
});
//--></script> 

<script type="text/javascript"><!--
$('img[id="item"]').click(function(){
var sketchvalue=$(this).attr('class');
var title=$(this).attr('title');
var designid=$(this).attr('style');
var dname=$(this).attr('alt');
if (confirm('Are you sure ? you want to make this as a '+title.toUpperCase()+'?')) { 

			if(title == 'withdrawn')
			{
			var url = 'http://www.tresorjewellery.com.au/index.php?route=account/mail&did='+designid+'&dname='+dname;
			window.open(
		url,'popUpWindow','height=300,width=500,left=260,top=160,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
			}
$.ajax({
		url: 'index.php?route=account/overall/item&title='+title,
		type: 'post',
		dataType: 'json',	
		data: 'sketch_id='+ encodeURIComponent(sketchvalue),		
		success: function (json) {
		if(title != 'withdrawn')
			{
			alert('Submitted Successfully');
			window.location.reload(true);
			}
		}
	});
	}
});
//--></script>
<script type="text/javascript"><!--
$('#tabs a').tabs();
//--></script> 
 
<script type="text/javascript"><!--
$('#mainall').click(function() {
document.getElementById("mainall").style.underline="none";
document.getElementById("all").style.display="block";
document.getElementById("active").style.display="none";
document.getElementById("unrated").style.display="none";
document.getElementById("rated").style.display="none";
document.getElementById("eliminated").style.display="none";
document.getElementById("withdrawn").style.display="none";
});
//--></script> 
<script type="text/javascript"><!--
$('#mainactive').click(function() {
document.getElementById("mainactive").style.underline="none";
document.getElementById("all").style.display="none";
document.getElementById("active").style.display="block";
document.getElementById("unrated").style.display="none";
document.getElementById("rated").style.display="none";
document.getElementById("eliminated").style.display="none";
document.getElementById("withdrawn").style.display="none";
});
//--></script> 
<script type="text/javascript"><!--
$('#mainunrated').click(function() {
document.getElementById("mainunrated").style.underline="none";
document.getElementById("all").style.display="none";
document.getElementById("active").style.display="none";
document.getElementById("unrated").style.display="block";
document.getElementById("rated").style.display="none";
document.getElementById("eliminated").style.display="none";
document.getElementById("withdrawn").style.display="none";
});
//--></script> 
<script type="text/javascript"><!--
$('#mainrated').click(function() {
document.getElementById("mainrated").style.underline="none";
document.getElementById("all").style.display="none";
document.getElementById("active").style.display="none";
document.getElementById("unrated").style.display="none";
document.getElementById("rated").style.display="block";
document.getElementById("eliminated").style.display="none";
document.getElementById("withdrawn").style.display="none";
});
//--></script> 
<script type="text/javascript"><!--
$('#maineliminated').click(function() {
document.getElementById("maineliminated").style.underline="none";
document.getElementById("all").style.display="none";
document.getElementById("active").style.display="none";
document.getElementById("unrated").style.display="none";
document.getElementById("rated").style.display="none";
document.getElementById("eliminated").style.display="block";
document.getElementById("withdrawn").style.display="none";
});
//--></script> 
<script type="text/javascript"><!--
$('#mainwithdrawn').click(function() {
//document.getElementById("mainwithdrawn").style.underline="none";
$('#mainwithdrawn').parent().css('text-decoration','none')
document.getElementById("all").style.display="none";
document.getElementById("active").style.display="none";
document.getElementById("unrated").style.display="none";
document.getElementById("rated").style.display="none";
document.getElementById("eliminated").style.display="none";
document.getElementById("withdrawn").style.display="block";
});
//--></script> 
